This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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

multi forms from different action in one jsp?

suhasini dharmisetty

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:
subject: multi forms from different action in one jsp?
It's not a secret anymore!