File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 JSP on same Page haing different action button

 
pax smith
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In my web Page I need to show two JSP's both for different purpose having differnt form and action button.

If I click on first then second JSP form should not be refreshed/submitted.

Can any body suggest how can I achieve it using Struts.


Thanks & Regards
Pax Smith
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The easiest way to accomplish this would be to use a frameset with two frames -- one for each of the JSPs. That way they could each refresh independently of the other.
 
pax smith
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI

Thanks for response. But Merrill I donot want to use frame but to do this by struts.

Thanks & regards
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might consider using a Tiles template. With tiles, though, the pages only seem to be separated. In actuality, the entire page is refreshed each time one of the sections is submitted.
 
pax smith
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Yes Merrill you are right. But I cannot use frames. Someone told me that there is option multiPage in Struts. Do you have any idea about that

Thanks & Regards
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I haven't heard of a multipage option in Struts.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic