Just reference your string by its name. e.g. 

  <bean:write name="MY_NAME"/>

Will display the value of the String.

Steve 
http://www.ninsky.com/struts/


> -----Original Message-----
> From: Fumitada Hattori [mailto:[EMAIL PROTECTED]
> Sent: August 27, 2003 9:02 AM
> To: [EMAIL PROTECTED]
> Subject: How to get a String object from request scope.
> 
> 
> Hi gurus.
> 
> I got one Action servlet class and one jsp.
> If the action servlet is successfully processed, it's forwarded to the
> jsp.
> In the Action servlet, there's a following statement.
> ----------------------------
> ....
> ....
> String my_name = "JACK";
> request.setAttributte("MY_NAME",my_name);
> return (mapping.findForward("success"));
> ----------------------------
> 
> Now I wanna get the "MY_NAME" property with a struts tag in the jsp 
> which is redirected from the Action servlet.
> I don't know how to make it since the instance(my_name) in the action 
> servlet is a just String Object...not a javabean.
> 
> Thanks in advance.
> 
> wolfgang
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to