Re: Handling of value attribute in param and hidden tags

2016-03-05 Thread Lukasz Lenart
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

Re: Handling of value attribute in param and hidden tags

2016-03-04 Thread 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 to html elements that actually have a 'value&#x

Re: Handling of value attribute in param and hidden tags

2016-03-04 Thread Lukasz Lenart
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

Handling of value attribute in param and hidden tags

2016-03-04 Thread Steven Willis
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

Re: Problem with value attribute in select tag

2009-12-18 Thread Philipp Leusmann
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

Re: Problem with value attribute in select tag

2009-12-18 Thread Bill Bohnenberger
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 &

Re: Problem with value attribute in select tag

2009-12-18 Thread Brian Thompson
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

Re: Problem with value attribute in select tag

2009-12-18 Thread Philipp Leusmann
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

Re: Problem with value attribute in select tag

2009-12-18 Thread Gabriel Belingueres
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

Problem with value attribute in select tag

2009-12-18 Thread 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 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

Re: [S2.1.6] problem with value attribute for

2009-09-12 Thread David Canos
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:

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread 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: > > After going over the tags reference s

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
--- 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

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Dave Newton
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

RE: [S2.1.6] problem with value attribute for

2009-09-11 Thread Martin Gainty
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

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Musachy Barroso
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

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
--- 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: > > >

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
--- 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"

Re: [S2.1.6] problem with value attribute for

2009-09-11 Thread Musachy Barroso
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

[S2.1.6] problem with value attribute for

2009-09-11 Thread Tommy Pham
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

Re: s:textfield with value attribute

2009-03-19 Thread Dave Newton
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

s:textfield with value attribute

2009-03-19 Thread boraldo
://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

RE: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Biesbrock, Kevin
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Paweł Wielgus
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&#x

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
, 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

RE: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Biesbrock, Kevin
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
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:

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Dave Newton
--- 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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true? - [SOLVED]

2008-12-17 Thread Robert Graf-Waczenski
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dave Newton
--- 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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dimitar Vlasev
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dave Newton
--- 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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Dave Newton
--- 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

Re: [S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Nils-Helge Garli Hegvik
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

[S2 V2.0.14] value attribute has rtexprvalue=false - shouldn't it be rtexprvalue=true?

2008-12-17 Thread Robert Graf-Waczenski
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

Re: value attribute on

2008-09-12 Thread Pascal Lalonde
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,

value attribute on

2008-09-12 Thread Eric Hamacher
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

Re: Using jsp tag in Value attribute of textfield tag in Struts2

2008-04-10 Thread Laurie Harper
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

Re: Using jsp tag in Value attribute of textfield tag in Struts2

2008-04-10 Thread Tauri Valor
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. -

Using jsp tag in Value attribute of textfield tag in Struts2

2008-04-09 Thread Tauri Valor
://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

value attribute in the tag

2007-08-22 Thread Zhang, Larry (L.)
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

Re: html:password not listening to value attribute

2006-06-22 Thread Scott Van Wart
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

Re: html:password not listening to value attribute

2006-06-22 Thread Niall Pemberton
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

html:password not listening to value attribute

2006-06-22 Thread Scott Van Wart
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

RE: 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-06 Thread Karr, David
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

Re: 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-06 Thread Niall Pemberton
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

Re: 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-06 Thread Wendy Smoak
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

Re: 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-06 Thread Niall Pemberton
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

Re: 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-06 Thread Wendy Smoak
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

Re: 'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-05 Thread Niall Pemberton
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

'value' attribute behavior change 1.2.0 to 1.2.6

2005-04-05 Thread Wendy Smoak
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

value attribute

2004-05-15 Thread Nicolas De Loof
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