obligatoire. Étant donné que les email
peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
aucune responsabilité pour le contenu fourni.
Date: Sat, 6 Jun 2009 13:13:08 -0500
Subject: Re: trouble retrieving a request parameter with struts2 tags
From: dimi@gmail.com
Dimitrios Christodoulakis wrote:
A further look at the struts 2 tag reference:
http://struts.apache.org/2.1.6/docs/url.html
Doesn't indicate that the url tag has such an attribute -- I am using
struts 2 version 2.1.6, was that attribute used in other versions?
No. I assumed an attempt at
Thank you for the information. That ofnl expression actually worked.
The textfield is populated with the value taken from the URL
parameter.
But something strange happens when I try to put more parameters on the request:
s:url action=edit var=editURL
s:param name=id value=%{id} /
With a little bit more searching I found the escapeAmp attribute of
the s:url tag. That did the trick:
s:url action=edit var=editURL escapeAmp = false
Thanks!
On Sat, Jun 6, 2009 at 10:41 AM, Dimitrios
Christodoulakisdimi@gmail.com wrote:
Thank you for the information. That ofnl expression
aucune responsabilité
pour le contenu fourni.
Date: Sat, 6 Jun 2009 13:13:08 -0500
Subject: Re: trouble retrieving a request parameter with struts2 tags
From: dimi@gmail.com
To: user@struts.apache.org
With a little bit more searching I found the escapeAmp attribute of
the s:url tag
Hello,
I am building a struts2-hibernate-mysql application. A user after
navigating through some pages reaches a pages where all the records on
the database are listed and can perform crud operations.
The jsp which iterates and displays the records is:
%@ taglib prefix=s uri=/struts-tags%
Dimitrios Christodoulakis wrote:
s:hidden name=person.id value=#attr.id label=Primary Key /
I told you #attr.id on javaranch; I meant #parameters. This information
is readily available via the S2 docs. [1, 2]
IIRC the value attribute expects a literal; I'd wrap it in the OGNL
escape,
7 matches
Mail list logo