You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Naresh Sharma <Na...@KeaneIndia.Com> on 2004/06/10 19:29:36 UTC

Request object

HI,

 

In one of my include JSP I wish to fetch a particular request attribute
which was set by main jsp page 

 

 

<%

HttpServletRequest httpRequest = (HttpServletRequest)request;

String header                 =          httpRequest.getParameter("header");

 

%>

 

Right now I am doing something like this?, please let me know the struts way

 

 

Regards

Naresh

 

 

 

 

 


Re: Request object

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Use --
<bean:param id="headerVar" name="header"/>

this will create a page-scoped variable and a scripting variable. 
Complete details can be found at:

http://jakarta.apache.org/struts/userGuide/struts-bean.html#parameter

Naresh Sharma wrote:

> HI,
> In one of my include JSP I wish to fetch a particular request attribute 
> which was set by main jsp page
> <%
> HttpServletRequest httpRequest = (HttpServletRequest)request;
> String header                 =          httpRequest.getParameter("header");
> %>
> Right now I am doing something like this?, please let me know the struts way


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