struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John W. Himpel" <j...@jlhimpel.net>
Subject jsp/properties file/validation interaction question
Date Tue, 06 Mar 2012 23:17:50 GMT
Good evening,

1) ActionClass A gathers some lists used in drop-down boxes and
check-boxes in A.jsp.  ActionClass A forwards to A.jsp.
2) The user makes selections and inputs additional data into A.jsp.  The
form in A.jsp forwards to ActionClass B.  A.jsp uses the property file
A.properties to provide titles, button labels, etc.
3)  ActionClass B validates the inputs from A.jsp and discovers a
validation error.  It populates the same lists referenced in #1 above.
ActionClass B then forwards to "input" which is configured to A.jsp.
3a) If ActionClass B successfully validates it's input from A.jsp, it
then performs some business logic and proceeds to forward to "success"
which is configured to B.jsp.
4)  A.jsp renders.  The drop-down boxes, check-boxes and input fields
are correctly populated.  But the jsp renderer tries to obtain a value
for <s:text value="getText('title')" /> from B.jsp.  Of course this
fails.

Either I'm missing something in A.jsp or I need to re-architect my
workflow.  I read where "chain" forwarding is highly discouraged.  Any
suggestions would be greatly appreciated.

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message