permaculture playing cards
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

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: 17
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: 9136

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

[How To Ask Questions On JavaRanch]
Have you checked out Aspose?
subject: Get Parameter from request don't works
It's not a secret anymore!