aspose file tools*
The moose likes Struts and the fly likes Get Parameter from request don't works Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Get Parameter from request don Watch "Get Parameter from request don New topic

Get Parameter from request don't works

carlos Muller

Joined: Apr 20, 2006
Posts: 14
Hi, a simple problem with Struts2 and OGNL, the solution seems obvious but...

I've a JSP, I call it like:


The code of Wait.jsp (without simbols gt and lt):

%@ page contentType="text/html; charset=ISO-8859-1" %
%@ taglib prefix="s" uri="/struts-tags" %

1) s:property value="%{#parameters['urlRefresh']}"/
2) s:property value="#parameters['urlRefresh']"/
3) s:property value="#parameters.urlRefresh"/
4) s:property value="%{#request['urlRefresh']}"/
5) s:property value="#request['urlRefresh']"/
6) s:property value="#request.urlRefresh"/

7) %=request.getParameter("urlRefresh")%

Only works and show "Users" the option seven; Why? I don't see another way to do this.


Joe Ess

Joined: Oct 29, 2001
Posts: 8927

The Struts 2 documentation says #parameters['foo'] or should work
I just checked and they both work for me.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: Get Parameter from request don't works