You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ashish Kulkarni <ku...@yahoo.com> on 2004/10/27 19:05:02 UTC
data entry screen with more then one jsp page
Hi
Has anyone developed a data entry screen which spans
more then one jsp page,
This framework must do validation on each page, and
provide navigation buttons to go one page to other or
come back and see the data entered
How do i processed with this requirement
Ashish
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
RE: data entry screen with more then one jsp page
Posted by "David G. Friedman" <hu...@ix.netcom.com>.
Ashish,
Check out the validation.xml page="NUMBER" attribute. See "Multi Page
Forms" at: http://struts.apache.org/userGuide/dev_validator.html
Additionally, handling page navigation depends on how you set it up.
If you set up one action per page but using the same validation.xml form,
you could set an href with the url and the page=1 (or page=3, etc.)
parameter.
If you setup distinct actions per page, you might have to hard-code the
action in the JSP as a button or href labeled "next" or "previous".
Navigation is your choice and very flexible.
Heck, you could even use tiles with a Controller so one Action does
everything and the controller simply inserts the correct JSP for the center
of the form based on the page attribute. I.E. page #1 shows input.jsp, page
#2 shows selections.jsp, page #3 shows countries.jsp, etc. See the Tiles
Advanced Features PDF on the Struts site (bottom of the Tiles UserGuide
section) for more information on Tiles and Controllers.
Just keep in mind to use the appropriate "page" attribute with the
html:javascript tag IF you use client-side validation.
Regards,
David
-----Original Message-----
From: Ashish Kulkarni [mailto:kulkarni_ash1312@yahoo.com]
Sent: Wednesday, October 27, 2004 1:05 PM
To: user@struts.apache.org
Subject: data entry screen with more then one jsp page
Hi
Has anyone developed a data entry screen which spans
more then one jsp page,
This framework must do validation on each page, and
provide navigation buttons to go one page to other or
come back and see the data entered
How do i processed with this requirement
Ashish
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org