2016-03-04 20:06 GMT+01:00 Steven Willis :
> I think I understand what you're saying, a param tag doesn't correspond to
> any directly generated html tag, so its 'value' attribute is special and gets
> evaluated. Whereas other tags, like 'hidden' correspond
I think I understand what you're saying, a param tag doesn't correspond to any
directly generated html tag, so its 'value' attribute is special and gets
evaluated. Whereas other tags, like 'hidden' correspond to html elements that
actually have a 'value
Hi,
I don't know the exact explanation and reasons why it behaves that
way, but looking at the code I can say it's by design :)
tag doesn't play alone, you must use it in context of other
tag so it is natural that its "value" attribute should be evaluated as
an expressi
I was having some issues with how freemarker/struts handles the 'value'
attribute on the 'param' tag. I figured it out and saw that struts will try to
evaluate any string passed in to 'value'. Freemarker had been evaluating my
expressions, sending in the resultin
Thanks Bill, this works fine.
I am still wondering what the value-attribute is good for, then.
Philipp
Am 18.12.2009 um 17:48 schrieb Bill Bohnenberger:
> I do not use the value attribute in my s:select tags & they work fine.
>
> I do always use the headerKey & headerValue
I do not use the value attribute in my s:select tags & they work fine.
I do always use the headerKey & headerValue attributes though.
Incidentally, the preselected (user-selected) key value is taken (stored)
using the name attribute so in your example your SelectAction should define
&
I would try
<@s.select name="bla" list=list listKey="id" listValue="str" value="%{
object.id}" />
-Brian
On Fri, Dec 18, 2009 at 9:30 AM, Philipp Leusmann <
philipp.leusm...@rwth-aachen.de> wrote:
> Hi,
>
> what exactly does the v
The documentation says it is:
<http://struts.apache.org/2.1.8.1/docs/select.html>
But the examples are not really helpful.
Philipp
Am 18.12.2009 um 16:43 schrieb Gabriel Belingueres:
> I believe that the "value" attribute is not used in this tag.
>
> 2009/12/18
I believe that the "value" attribute is not used in this tag.
2009/12/18 Philipp Leusmann :
> Hi,
>
> what exactly does the value-attribute of the select tag require? Is it one
> element of the list provided to the list-argument? Or is it the value which
> eventually
Hi,
what exactly does the value-attribute of the select tag require? Is it one
element of the list provided to the list-argument? Or is it the value which
eventually makes the value-attribute of the html-rendered select tag?
I have something like the following and I do not find a way to work
2009/9/12 Tommy Pham
> --- On Fri, 9/11/09, Dave Newton wrote:
>
> > From: Dave Newton
> > Subject: Re: [S2.1.6] problem with value attribute for
> > To: "Struts Users Mailing List"
> > Date: Friday, September 11, 2009, 7:14 PM
> > Tommy Pham wrote:
--- On Fri, 9/11/09, Dave Newton wrote:
> From: Dave Newton
> Subject: Re: [S2.1.6] problem with value attribute for
> To: "Struts Users Mailing List"
> Date: Friday, September 11, 2009, 7:14 PM
> Tommy Pham wrote:
> > After going over the tags reference s
--- On Fri, 9/11/09, Musachy Barroso wrote:
> From: Musachy Barroso
> Subject: Re: [S2.1.6] problem with value attribute for
> To: "Struts Users Mailing List"
> Date: Friday, September 11, 2009, 6:34 PM
> the url tag has an attribute to
> include/exclude the co
Tommy Pham wrote:
After going over the tags reference several times, I can't seem to
figure out the simplest way to get all of the parameters in the URL
as I'd like. If use the form's action attribute in conjunction with
, I get an extra context path inserted. What do you
recommend since the d
Fri, 11 Sep 2009 16:34:00 -0700
> Subject: Re: [S2.1.6] problem with value attribute for
> From: musa...@gmail.com
> To: user@struts.apache.org
>
> the url tag has an attribute to include/exclude the context, if I
> don't remember wrong.
>
> On Fri, Sep 11, 20
the url tag has an attribute to include/exclude the context, if I
don't remember wrong.
On Fri, Sep 11, 2009 at 4:30 PM, Tommy Pham wrote:
> --- On Fri, 9/11/09, Tommy Pham wrote:
>
>> From: Tommy Pham
>> Subject: Re: [S2.1.6] problem with value attribute for
>> T
--- On Fri, 9/11/09, Tommy Pham wrote:
> From: Tommy Pham
> Subject: Re: [S2.1.6] problem with value attribute for
> To: "Struts Users Mailing List"
> Date: Friday, September 11, 2009, 5:55 PM
> --- On Fri, 9/11/09, Musachy Barroso
>
> wrote:
>
> >
--- On Fri, 9/11/09, Musachy Barroso wrote:
> From: Musachy Barroso
> Subject: Re: [S2.1.6] problem with value attribute for
> To: "Struts Users Mailing List"
> Date: Friday, September 11, 2009, 3:17 PM
> I didn't even know that form had a
> "value"
I didn't even know that form had a "value" attribute. You should not
use that. (this might be due to our all-tags-inherit-from-UIBean prom)
musachy
On Fri, Sep 11, 2009 at 11:10 AM, Tommy Pham wrote:
> Hi,
>
> I think I found another bug ... I want to include whatever p
Hi,
I think I found another bug ... I want to include whatever parameters in URL to
a form submit action. This is what I used.
or shows the correct URL of:
/recipes/Admin/Languages?sort=isoCode2.
But when I use it in the :
or
The source code of the HTML shows:
/recipes/Admin/Languages
quot;value" attribute on the JSP page it's going to set the
value of the textfield every time the page is hit...
You can pre-set the action property's value and leave off the value
attribute altogether if you want, if that's what your requirements are.
There's no default
://www.nabble.com/s%3Atextfield-with-value-attribute-tp22597841p22597841.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e
Sorry, I missed the "After " portion...
Beez
( 4961
-Original Message-
From: Robert Graf-Waczenski [mailto:r...@lsoft.com]
Sent: Wednesday, December 17, 2008 11:33 AM
To: Struts Users Mailing List
Subject: Re: [S2 V2.0.14] value attribute has rtexprvalue=false -
shoul
sers Mailing List
Subject: Re: [S2 V2.0.14] value attribute has
rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]
Thanks Dave, that was a very enlightening suggestion, i'm using
right now. One thing remains: After , i need
to know if the iterator that was processed previous
z
>> ( 4961
>> -Original Message-
>> From: Robert Graf-Waczenski [mailto:r...@lsoft.com] Sent: Wednesday,
>> December 17, 2008 10:27 AM
>> To: Struts Users Mailing List
>> Subject: Re: [S2 V2.0.14] value attribute has
>> rtexprvalue=false - shouldn
, isEven, isFirst, isLast, isOdd, and
modulus. You could check isLast to find the last row (e.g., stat.isLast
== true).
Beez
( 4961
-Original Message-
From: Robert Graf-Waczenski [mailto:r...@lsoft.com]
Sent: Wednesday, December 17, 2008 10:27 AM
To: Struts Users Mailing List
Subject
true).
Beez
( 4961
-Original Message-
From: Robert Graf-Waczenski [mailto:r...@lsoft.com]
Sent: Wednesday, December 17, 2008 10:27 AM
To: Struts Users Mailing List
Subject: Re: [S2 V2.0.14] value attribute has
rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]
Tha
Thanks Dave, that was a very enlightening suggestion, i'm using
right now. One thing remains: After , i need
to know if the iterator that was processed previously delivered rows or
not. How would i accomplish this?
Robert
Dave Newton wrote:
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote:
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote:
> As a workaround, i must use the page context, like so here:
It's not a work-around, that's just how JSP works--you're making more work than
necessary by mixing paradigms: either use all scriptlets and do things the old
way, or use the currentl
Here's something that does (almost) work:
The problem is that access to JSP locals simply does not work. As a
workaround, i must use the page context, like so here:
Further up in the JSP:
<%
pageContext.setAttribute("list", list);
%>
And inside the for loop:
<%
pageContext.setAttrib
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote:
> <% int row = 0; %>
> [...]
>
> [...]
I'm not sure that declaring a scriptlet variable (ew, btw) is the same as
putting it into PageContext, which is where #attr is looking.
I never really do anything like this anymore, so to be honest I'v
Hm. Tried this, didn't work. Let me be more verbose now:
The class MyList wraps data in a backend and offers it to the view in
list form, for this, the class has methods like so here:
public int getRowCount();
public String getEntry(int row, int col);
Here's the JSP (which has been redirecte
Robert,
you might find some clues here
http://struts.apache.org/2.x/docs/ognl.html
(as well as links to the full OGNL documentation)
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: use
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote:
> [...] how would i access the value of a JSP-local variable
> in an ognl expression?
#attr.foo
http://struts.apache.org/2.x/docs/ognl.html
Dave
-
To unsubscribe, e-mail: us
Dave Newton wrote:
How would one create a url with multiple url parameters?
That bit was clear to me. The unclear part is where you put "..." above :-)
I need a method to supply somthing dynamically for the "vaue=" attribute
of the tag. OGNL has been suggested as the soluti
ce i need
more than one parameter with dynamic values for each of them, i already see
that i'm running into a problem.
I think that the culprit is that the value= attribute of the tag
is defined with rtexprvalue=false (in the tld), so trying to use a dynamic
value directly inside the tag of co
--- On Wed, 12/17/08, Robert Graf-Waczenski wrote:
> What is the reasoning behind restricting the value=
> attribute to non-runtime values only?
Security issues: since JSP EL/rtexprs are evaluated first, if they evaluate to
a valid OGNL expression it's possible to end up with evil
e url, i can do so
> here:
>
> <%=whateverObject.getBlurb()%>
>
> So i have a situation were i can do what i currently need, but once i need
> more than one parameter with dynamic values for each of them, i already see
> that i'm running into a problem.
>
> I think that the cul
n do what i currently need, but once i
need more than one parameter with dynamic values for each of them, i
already see that i'm running into a problem.
I think that the culprit is that the value= attribute of the
tag is defined with rtexprvalue=false (in the tld), so trying to use a
dynami
The request is accessible with ognl this way:
- Pascal
Eric Hamacher wrote:
Hello:
I am in a situation where I need to populate a with a
value in the request scope. It sounds anti-Struts but it can't be
helped. Since the value attribute cannot take a runtime expression,
Hello:
I am in a situation where I need to populate a with a
value in the request scope. It sounds anti-Struts but it can't be
helped. Since the value attribute cannot take a runtime expression, I
am wondering if there is a syntax for picking values off the request.
So, I am lookin
You need to use OGNL expression rather than JSP RT expressions:
http://struts.apache.org/2.0.11.1/docs/tag-syntax.html
though generally, just the name= is enough unless you need the value to
come from one place but get saved somewhere else on submit.
L.
Tauri Valor wrote:
I get the followin
t;
> Thanks in Advance,
> Tauri.
>
--
View this message in context:
http://www.nabble.com/Using-jsp-tag-in-Value-attribute-of-textfield-tag-in-Struts2-tp16602523p16603834.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
://www.nabble.com/Using-jsp-tag-in-Value-attribute-of-textfield-tag-in-Struts2-tp16602523p16602523.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On myForm, I have a collection (an array of Analyst objects),
analystList, when I iterate through it, I want to render a check box for
each row, and I specifically want to put the analyst id to value
attribute of the checkbox tag, do you know how to do it? And also how to
get the value of the
Niall Pemberton wrote:
Its a DynaBean - just use set("password", "")
Yeah but I'd rather not do it in Java, for various reasons...
- Scott
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO
Its a DynaBean - just use set("password", "")
Niall
On 6/22/06, Scott Van Wart <[EMAIL PROTECTED]> wrote:
Hi,
I have a LazyValidatorForm with a "password" property. I always want
this input field to be blank when the page loads. I also can't clear
the value out of the form in Java (code is t
Hi,
I have a LazyValidatorForm with a "password" property. I always want
this input field to be blank when the page loads. I also can't clear
the value out of the form in Java (code is too generic and I'd rather
not hack it for this single case). So I tried:
But the password shows up in
Ah. It's good to trim element values, but probably not attribute
values. Does this happen anywhere else?
> -Original Message-
> From: Niall Pemberton [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 05, 2005 3:50 PM
> To: Struts Users Mailing List
> Subject: Re
I got the build working a couple of weeks ago - but I didn't pick up the
recent build changes until after I'd finished the changes I was doing last
night. So I haven't tried the very latest. I have to say though that I think
James has done a great job - after struggling with a few things initially
From: "Niall Pemberton" <[EMAIL PROTECTED]>
> Nightlies for 1.2.x are being created here...
> http://svn.apache.org/builds/struts/maven/STRUTS_1_2_BRANCH/
>
> ...but I think you'll need to wait till the next one to pick up that
change.
Great! I thought the only nightlies were for 1.3. :)
Speaki
Nightlies for 1.2.x are being created here...
http://svn.apache.org/builds/struts/maven/STRUTS_1_2_BRANCH/
...but I think you'll need to wait till the next one to pick up that change.
You want the STRUTS_1_2_BRANCH branch if you're going to check it out and
build it yourself. A word of warning c
From: "Niall Pemberton" <[EMAIL PROTECTED]>
> Apologies, this was my fault - I added a trim() to the value when I
> re-factored this tag :-(
>
> I'll change this back.
Thanks, I saw the fix go in. But now... how do I get a 1.2.7-dev (or
whatever it would be called) build? Specifically, what do
Add
> Prospect">
>
> This is supposed to be a submit button with an image and no text (just
> spaces). It worked in 1.2.0, but 1.2.6 is ignoring the 'value' attribute
> and I'm getting the word 'Submit' plastered over the image.
>
> Before I open
I'm getting the following HTML rendered from the JSP below:
This is supposed to be a submit button with an image and no text (just
spaces). It worked in 1.2.0, but 1.2.6 is ignoring the 'value' attribute
and I'm getting the word 'Submit' plastered over the im
Hi all,
I'm using in a JSP for submit buttons. As this tag has a "value"
attribute, I'd like to know how to use it:
I can get this value when using Mozilla, but IE doesn't submit the value (only the x/y
position of the click inside the
image).
Is this attribute o
56 matches
Mail list logo