Title: RE: Request object

I got the fetching scheme

 

Its

 

<bean:parameter name="header" id="head" value="Default Header"/>

<bean:write name="head" />

 

 

But other problems remains, how to tell jsp:include tag that pick the actual value from resource bundle for value="${global.commandinformation.title1}" />

 

 


From: Naresh Sharma
Sent: Friday, June 11, 2004 9:14 AM
To: Struts Users Mailing List
Subject: RE: Request object

 

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}" />
</jsp:include>

 

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 literally.

"value="${global.commandinformation.title1}"

 

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.

 

Regards
Naresh

 

-----Original Message-----
From: Bill Siggelkow [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 11, 2004 2:56 AM
To: [EMAIL PROTECTED]
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:

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: [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