<bean:write name="c"/>
-----Ursprungliche Nachricht----- Von: Caroline Jen [mailto:[EMAIL PROTECTED] Gesendet: Montag, 8. Dezember 2003 03:37 An: [EMAIL PROTECTED] Betreff: Pass A String From Servlet And Write Out Its Value in JSP My servlet has a String called 'category'. I want to pass the String to a JSP. Therefore, I have the code shown below in the servlet: session.setAttribute( "c", category ); OR request.setAttribute( "c", category ); And, I do the following in my JSP: <% String keyValue = (String)session.getAttribute( "c" ); %> OR <% String keyValue = (String)request.getAttribute( "c" ); %> How do I write out keyValue in my JSP in Struts? __________________________________ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ --------------------------------------------------------------------- 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]