struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Abdullah Jibaly" <Abdullah.Jib...@aeroxchange.com>
Subject RE: Getting name of form bean?
Date Mon, 16 May 2005 15:29:31 GMT
John,

There is no automatic way AFAIK. What I've done is in the action that passes the request to
the form I set:

request.setAttribute("formName", mapping.getName());

then, in the JSP I can do:

<c:set var="form" value="${requestScope[formName]}" />

-Abdullah

-----Original Message-----
From: John Moore [mailto:john@jmsd.co.uk]
Sent: Monday, May 16, 2005 7:09 AM
To: Struts Mailing List
Subject: Getting name of form bean?


In a JSP which uses html:form, is there any way of determining the name 
of the form bean (assuming it's been set in the mapping, of course, not 
in the html:form tag!).

TIA


-- 
==============================================
John Moore  -  Norwich, UK  -  john@jmsd.co.uk
==============================================

---------------------------------------------------------------------
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


Mime
View raw message