struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Naresh Sharma <Naresh_Sha...@KeaneIndia.Com>
Subject RE: Request object
Date Fri, 11 Jun 2004 03:43:53 GMT
HI Bill,

I am sorry I didn't get it.

Anyway let me tell you the scenario.

I am passing parameter from my main jsp file to include jsp using the
following scheme.

<jsp:include page="CommandSaveIncludeHeader.jsp">
        <jsp:param name="header" value="${global.commandinformation.title1}"

First thing, I am not sure if any Struts tag is there for above statement.
Using following scheme, so it will pick the actual value from resource
bundle, which is also not working, my page is displaying this value


Second I am fetching this parameter in include jsp using this 

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


I understand, this  is also not the right way, please suggest.


-----Original Message-----
From: Bill Siggelkow [] 
Sent: Friday, June 11, 2004 2:56 AM
Subject: Re: Request object

Use --
<bean:param id="headerVar" name="header"/>

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

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                 =
> %>
> Right now I am doing something like this?, please let me know the struts

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message