You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by olivier <ol...@club-internet.fr> on 2001/04/17 23:05:29 UTC
in which scope to find a formBean request/session ?
Hi,
I am using struts 1.0b with Orion 1.4.5 (? one of the latest anyway).
In my JSP I have:
<logic:equal name="registrationForm" property="action" scope="request"
value="create">
<app:checkLogon/>
</logic:equal>
in my struts-config.xml I have:
<action path="/registration"
type="net.tnt.web.control.EditRegistrationAction">
name="registrationForm"
scope="request"
input="/registration.jsp">
<forward name="success" path="/saveRegistration.jsp"/>
</action>
When trying to display the content of scope in the Action:Actionforward()
method, I have:
mapping.getScope() => session
When loading the jsp, I have the following error:
javax.servlet.jsp.JspException: No bean found under attribute key
registrationForm
I don't understand exactly how it works.
Looks like the jsp is expecting the bean to be inside request, while it is
in session.
I would like to put it in request...I should I do this ?
Any clue?
Thanks,
Olivier