aspose file tools*
The moose likes Struts and the fly likes handle multiple jsp forms with different action in one tile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "handle multiple jsp forms with different action in one tile" Watch "handle multiple jsp forms with different action in one tile" New topic
Author

handle multiple jsp forms with different action in one tile

Anurag Kumar Dubey
Greenhorn

Joined: Sep 10, 2012
Posts: 8

hi Everyone...

I have a tiles page..In this Page there are more than one jsp pages with different form(or actions).
now when i submit one jsp .it reflecting the other jsp page.. means other page value became empty...how to solve this one.....
jatan bhavsar
Ranch Hand

Joined: Jul 23, 2008
Posts: 296

Hi Anurag,

Can you post some code ?

Regards
Jatan
Anurag Kumar Dubey
Greenhorn

Joined: Sep 10, 2012
Posts: 8

1-in tiles.def

<definition name="roadbooking" page="/web/jsp/booking/road/roadbooking.jsp" extends="newbooking" >
<put name="body1" value="/web/jsp/booking/road/package.jsp"/>
<put name="mainroad" value="/web/jsp/booking/road/mainroad.jsp"/>

</definition>
2.in road booking.jsp...
I have attached two jsp with different action
Package.jsp ang mainroad.jsp..
and both the jsp have two different form with different actions....
in first jsp i have some ajax code to fetch data...dynamically.......so after fetching the data when i go to second jsp and submits the form ..the data coming in first jsp going away ...i
 
wood burning stoves
 
subject: handle multiple jsp forms with different action in one tile