from all ur replies u seem to be like very knowledgeble person in web application. cld u pls help me in one thing? i work in C and totally new to web development. I m strting with struts on net bean jdk. my question is...
in normal login page we have two options. one is for existing users and other one is for new users. so there should be two links. one will take u to ur inbox and other for signing up process. my question is how do we configure more than one link from a single page.
if u will give me answer rltd to struts-config.xml, then pls give me one ex. also. i wld really appreciate all ur replies.
Thank u vry much for the reply, but still i didn't get the point :(
i have two buttons BUTTON A, BUTTON B on a single page. In struts config file how can i associate two different actions for a single page. In my case how will i associate different actions with BUTTON A and BUTTON B ?
For this do i need to do any change in java file (Action Class)? If yes then what type of changes? And if i need to do some other changes then please let me know.
1) While clicking the buttons u can get the indication in action file sepearatle for button A & B by request parameter or Hidden variables
2) In Action class, u hav to mention the mapping like "return mapping.findForward("link1");" and "return mapping.findForward("link2");"
3) This link1 & link2 are mentioned already in name attribute of struts-config.xml
4) Based on this link name, Page wil be forward to the mentioned url in attribute path of action tag in struts-config.xml
you can try with database .
please try to this code if any confusing then ask me .
PreparedStatement ps=con.PrepareStatement("select * from ravindra where login=?, password=?");
//enter into the if statement if login & pass is present in database.