struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zarar Siddiqi <zar...@gmail.com>
Subject Re: accessing url parameters in jsp.
Date Wed, 19 Dec 2007 20:35:24 GMT

Well, you could just use the pageContext variable to get the query string
like so:

${pageContext.request.queryString}

Zarar



strutstwouser wrote:
> 
> Hi,
> 
> I need to access certain url parameters and pass them on as the query
> string
> to an iframe within the jsp
> 
> So, if the incoming url is :
> 
> http://localhost:9080/myapp/searchForm.action?mainObj.childObj=xyz&abc=123
> 
> i need to pass to iframe as :
> 
> <iframe src="searchResults.action?mainObj.childObj=xyz&abc=123" ... />
> 
> I can access the abc param as <s:property value="%{#parameters.abc}" /> ,
> but the same doesn't work for <s:property value="%{#parameters.
> mainObj.childObj}" />
> 
> Ideally, i would want the entire incoming query string be passed on to the
> iframe- but didn't find anything handy.
> 
> Note  : i can't use the s:action tag in this case, since the result is a
> jasperreport page, and it flushes the response within the result itself ;
> so
> had to go with iframe.
> 
> Any help is appreciated.
> 
> Thanks,
> Joseph
> 
> 

-- 
View this message in context: http://www.nabble.com/accessing-url-parameters-in-jsp.-tp14411652p14424668.html
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message