struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "gnanaseelan" <gnanaseel...@indscape.com>
Subject Re: using ApplicationResources dynamically
Date Thu, 28 Feb 2002 12:12:42 GMT
Hi Nico

i have 3 jsps ,each jsp captures data from user and in the corresponding
Action class i construct a Value Object and keep that in seession and
forwards the request to next Jsp.

My problem is i have a BACK Button in 2rd and 3rd jsp which has to take to
corresponding previous Jsp with the values retained.I can populate the
values back from the value object in session  but i would like to know if
there is anything by which i can take back the previous JSP with the values
retained in the Fields

Thx
Gnan





----- Original Message -----
From: "Nicolas De Loof" <nicolas.deloof@cgey.com>
To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
Sent: Tuesday, June 25, 2002 2:32 PM
Subject: Re: using ApplicationResources dynamically


> This is true if erros are generetad during form validation (Struts
forwards
> back to input).
> If you detect (business) errors in Action class, you can save errors to
> request and forward to any view:
>
>
> To go back to input : return new ActionForward(mapping.getInput());
> To forward to an other error page : return mapping.findForward("error");
> To forward to an other URL : return new
ActionForward(http://www.google.fr);
>
> Nico
>
> > I totally agree, and use that often, but isn't the struts-config "input"
> > attribute bind us to use a specific JSP, for instance:
> > <action path="/DbList" type="app.db.DbListAction" name="dbListForm"
> > scope="session" input="/HandleDb.jsp">
> > which means the error handling will be at HandleDb.jsp?
> >
> > Oren
> > -----------------------------------------------------------------
> > Oren Gross Java(TM) Developer
> > Mercury Interactive APM TAC R&D
> > +972-3-5399407 ogross@mercury.co.il
> >
> >
> > -----Original Message-----
> > From: Nicolas De Loof [ mailto:nicolas.deloof@cgey.com
> > <mailto:nicolas.deloof@cgey.com> ]
> > Sent: Tuesday, June 25, 2002 10:30 AM
> > To: Struts Users Mailing List
> > Subject: Re: using ApplicationResources dynamically
> >
> >
> > For displaying error messages, you should use <html:errors /> and
> > saveErrors() in your Action class. If so, don't forget to set
> errors.header
> > and errors.footer in your ApplicationRessources.properties. (@see
> > html:errors documentation)
> >
> >
> > Nico
> >
> > > > Hi All, I'm trying to use the Application Resources as in the
> following:
> > > >     <%
> > > >       String messageKey = dbListForm.getErrorMessage();
> > > >     %>
> > > >   <tr>
> > > >         <td><bean:message key=<%=messageKey%>/></td>
> > > >   </tr>
> > > >
> > > >
> > > > The error I am getting is for expecting quotes after key=. Is there
> > > another
> > > > way to achieve this functionality?
> > > >
> > > > TIA Oren
> > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > < mailto:struts-user-unsubscribe@jakarta.apache.org
> > <mailto:struts-user-unsubscribe@jakarta.apache.org> >
> > > For additional commands, e-mail:
> > < mailto:struts-user-help@jakarta.apache.org
> > <mailto:struts-user-help@jakarta.apache.org> >
> >
> >
> > --
> > To unsubscribe, e-mail:   <
> > mailto:struts-user-unsubscribe@jakarta.apache.org
> > <mailto:struts-user-unsubscribe@jakarta.apache.org> >
> > For additional commands, e-mail: <
> > mailto:struts-user-help@jakarta.apache.org
> > <mailto:struts-user-help@jakarta.apache.org> >
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>


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


Mime
View raw message