You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Caroline Jen <ji...@yahoo.com> on 2003/12/18 01:51:37 UTC

Error When Trying to Pass A String From One JSP To Another JSP

Please help me.  I have tried to do it for days.  I
just could not get it right.  I got this error
message:

[ServletException in:/article/content/postForm.jsp]
Cannot find bean cr in scope session' 

In my view.jsp, I put a String in a session object:

   <html:form action="/list/Message">
   <c:set var="cr" value="${articleForm.creator}"
scope="session"/>
   <html:submit>View/Send Messages</html:submit>
   </html:form>

And in postForm.jsp, I tried to retrieve that String
and write it out in a text field:

      <bean:define id="author" name="cr"
scope="session" type="java.lang.String"/>
      <html:text property="creator"
value="<%=author%>" size="82" maxlength="25"
tabindex="1"/>




__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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