This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Struts and the fly likes multi forms from different action in one jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "multi forms from different action in one jsp?" Watch "multi forms from different action in one jsp?" New topic
Author

multi forms from different action in one jsp?

suhasini dharmisetty
Greenhorn

Joined: Oct 07, 2008
Posts: 19
In user home page i am using 3 tabs in that 1 tab is for personal , 2 tab is for resume details etc.. but i crated for personal form1 and resumes for form2. when i click in the resume tab i have to show resumes list using same jsp. when click that tab it is showing Null pointer exception. How to solve please help.......
Tom Rispoli
Ranch Hand

Joined: Aug 29, 2008
Posts: 349
I'm not entirely certain I understand your problem but my guess is that if someone submits form2 that when you redisplay the jsp you're missing the data for form1 so you get an exception when the jsp tries to redisplay the data for form1(let me know if this is a bad guess). Is there a reason why you need to use separate forms for this? If you must, then you can try hidding the data for form1 on form2 and vice versa, or you can look up the data from the other form again (this could be wastefull if the look up is a bottle neck).

...or maybe I don't understand the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multi forms from different action in one jsp?