RE: Struts anchor question

2007-09-14 Thread TonyD
Yes that code runs correctly! Try to build the url link with a struts URL tag and use the struts param tag to set the a parameter . s:url id=url value=www.something.com s:param name=ab/s:param /s:url if you use the struts anchor tag it

Re: Struts anchor question

2007-09-13 Thread TonyD
Why have you sent me this link? Do you think I never seen that link? Do you think the answer to my question is in that link? You don't need to reply if you don't know the answer with another question. Thanks. newton.dave wrote: http://struts.apache.org/2.x/docs/url.html --- TonyD [EMAIL

RE: Struts anchor question

2007-09-13 Thread TonyD
I have Microsoft Internet Explorer 6.0.2 on my computer. If I use the struts anchor the URL parameters are separated by the character and the link works. If I use the html anchor with a struts property the URL parameters are separated by the amp; characters and the link doesn't work. I return

Re: Struts anchor question

2007-09-13 Thread TonyD
an Excepion report: Attribute escapeAmp invalid for tag url accorting to TLD. Thanks and sorry again. newton.dave wrote: --- TonyD [EMAIL PROTECTED] wrote: Why have you sent me this link? So you'd read what's on the page. Do you think I never seen that link? Apparently not, otherwise you

Struts anchor question

2007-09-12 Thread TonyD
I would like to display the URL link in a new window. How to obtain the equivalent html anchor in struts? s:property value= targets=_blank ... I tried with the targets parameter but it doesn't work. s:a href=%{url} targets=_blank ... /s:a

Struts anchor question

2007-09-12 Thread TonyD
I would like to display the URL link in a new window. How to obtain the equivalent html anchor in struts? .a href=s:property value=%{url}/ target=_blank ... ./a I tried with the targets parameter but it doesn't work. s:a href=%{url} targets=_blank ... /s:a Thanks in

Re: Struts anchor question

2007-09-12 Thread TonyD
Because the HTML anchor a.../ tag with a URL created via s:url.../ replaces the character between parameters with amp; characters and my link doesn't work. newton.dave wrote: --- TonyD [EMAIL PROTECTED] wrote: How to obtain the equivalent html anchor in struts? .a href=s:property

Re: Struts url problem

2007-09-10 Thread TonyD
: s:url id=url value=s:property value='mypath'/ s:param name=solutions:property value=solution//s:param ... (other params) /s:url TonyD [EMAIL PROTECTED] wrote: I'm trying to use a property value into a struts url but doesn't work because I can not use the ( character) twice

Re: Struts url problem

2007-09-10 Thread TonyD
I already tried this possible solution but a have exactly s:property value='mypath'/ with my parameters value in my url link, struts doesn't translate the property value in a struts url. I suspect it's a struts url bug. Thanks. newton.dave wrote: --- Ehteshamul Haque wrote: In that case

Struts url problem

2007-09-06 Thread TonyD
I'm trying to use a property value into a struts url but doesn't work because I can not use the ( character) twice into a url value, could somebody help me? Thanks in advance. s:url id=url value=s:property value=mypath/ s:param name=solutions:property value=solution//s:param ... (other

RE: Struts url problem

2007-09-06 Thread TonyD
=${mypath} s:param name=solutions:property value=solution//s:param ... (other params) /s:url -Original Message- From: TonyD [mailto:[EMAIL PROTECTED] Sent: Thursday, September 06, 2007 8:57 AM To: user@struts.apache.org Subject: Struts url problem I'm trying to use

Re: Struts url problem

2007-09-06 Thread TonyD
My resulting path doesn't contain myPath value it just replaces nothing. Do you have any other idea? Thanks meeboo wrote: try s:url id=url value=%{#myPath} s:param name=solutions:property value=solution//s:param ... (other params) /s:url TonyD wrote: I'm trying

How to call a method passing a parameter inside jsp with struts 2

2007-07-25 Thread TonyD
In a jsp page, I'am trying to call a method of my class passing a parameter and the method will return a string value. s:property value=#myClass.myMethod(myParameter) / or s:action name=myClass!myMethod executeResult=true s:param name=myParam value=%{myParam}/ /s:action but doesn't work.

Re: How to call a method passing a parameter inside jsp with struts 2

2007-07-25 Thread TonyD
s:property value=#myClass_myMethod(myParameter) / A made a syntax error, the underscore character and not the dot character between the class and the method name TonyD wrote: In a jsp page, I'am trying to call a method of my class passing a parameter and the method will return a string

checkbox bug

2007-07-17 Thread TonyD
I'am not using a specified theme in my form. In my jsp I have the following code: s:checkbox cssStyle=color: green id=myckb name=myckb label=I want to be green value=true/ and it generates the folowing HTML code: TR TD vAlign=top align=right/TD TD vAlign=top align=left

Re: How to control the display of Struts2 tags like s:textfield

2007-07-12 Thread TonyD
LABEL class=checkboxLabel for=myckbRED/LABEL /TD /TR The Style doesn't effect the label text, I supposed that: LABEL style=COLOR: red class=checkboxLabel for=myckbRED/LABEL was what I wanted to have, how could I obtain that? Thanks in advance. DNewfield wrote: TonyD wrote

How to display the ' character from a .properties file

2007-07-12 Thread TonyD
If in my .properties file I have text with the ' character my.properties (file) mylabel=I don't know how ... The output doesn't display the ' character I dont know how Do I need a special character before the ' character? Which one? Thanks. -- View this message in context:

Re: How to display the ' character from a .properties file

2007-07-12 Thread TonyD
Thanks it works! Pascal Lalonde-4 wrote: This should be the good solution, that's what we do ... [EMAIL PROTECTED] wrote: try to double the ' ex.: mylabel=I don''t know how If in my .properties file I have text with the ' character my.properties (file) mylabel=I don't know

Re: How to display the ' character from a .properties file

2007-07-12 Thread TonyD
I wrote my string in my .properties file mylabel=Now it''s working and then a got it in my .jsp with s:text name=mylabel/ Antonio Petrelli-3 wrote: 2007/7/12, TonyD [EMAIL PROTECTED]: Thanks it works! Mmm... this means that there's something wrong when you display the text

Re: How to control the display of Struts2 tags like s:textfield

2007-07-11 Thread TonyD
=true/ and if the syntax of this instruction is correct, I should see a checkbox with a red label checked. What does HTML mean? I know how setting colors with HTML and it works. The problem is structs. DNewfield wrote: TonyD wrote: I tried your suggestions but still the ccsStyle doesn't change

Re: [OT] Re: How to SUBMIT a form without calling an ACTION

2007-07-11 Thread TonyD
Thank You for the information it works! Antonio Petrelli-3 wrote: 2007/7/10, TonyD [EMAIL PROTECTED]: I need to SUBMIT a form without calling an ACTION because I will use a JAVASCRIPT to process it. Is it possible? How? Thanks in advance. Try using a normal input type=button

Re: How to control the display of Struts2 tags like s:textfield

2007-07-10 Thread TonyD
: TonyD wrote: I have the same problem with a checkbox tag, if a use the ccsStyle=color:Green to change the label color to green, it doesn't work at run time and the label remains with a black color! Is it generated by struts and ignored by the browser (if so, maybe Green and green

Re: How to control the display of Struts2 tags like s:textfield

2007-07-10 Thread TonyD
to css_xhtml . If you have any css classe, you can just call them within form elements like .e.g. s:submit action=ABC cssClass=buttons / s:textfield key=myText labelposition=left cssClass=textfield / Leena On 7/9/07, Dale Newfield [EMAIL PROTECTED] wrote: TonyD wrote: I have

Re: How to set checkbox label value in a iterator

2007-07-10 Thread TonyD
. DNewfield wrote: TonyD wrote: Well I found out what index is (index=count +1) Bzzt. Index is a zero-based iteration count, count is a one-based iteration count, so index+1=count. but a need something that tells me how much iterations are there before reaching the end of interation

How to SUBMIT a form without calling an ACTION

2007-07-10 Thread TonyD
I need to SUBMIT a form without calling an ACTION because I will use a JAVASCRIPT to process it. Is it possible? How? Thanks in advance. -- View this message in context: http://www.nabble.com/How-to-SUBMIT-a-form-without-calling-an-ACTION-tf4056005.html#a11521433 Sent from the Struts - User

Re: How to set checkbox label value in a iterator

2007-07-09 Thread TonyD
. Emplooyes data 2350 Thanks. DNewfield wrote: TonyD wrote: label=%{reports[#reportStatus.count -1]} Where could I find all status properties (first, last, odd, even, count, etc.) http://struts.apache.org/2.0.8/struts2-core/apidocs/org/apache/struts2/views/jsp/IteratorStatus.html

Re: How to control the display of Struts2 tags like s:textfield

2007-07-09 Thread TonyD
I have the same problem with a checkbox tag, if a use the ccsStyle=color:Green to change the label color to green, it doesn't work at run time and the label remains with a black color! It's a serious problem. I think Hubert Hers wrote for the same thing. Could someone help us! Thanks!

How to set checkbox label value in a iterator

2007-07-06 Thread TonyD
I have a iterator where each value is the label of a checkbox. How could I set each value into the checkbox label? This is code: s:iterator id=reports value=reports status=reportStatus tr td

Re: How to set checkbox label value in a iterator

2007-07-06 Thread TonyD
:clap: FOUND: label=%{reports[#reportStatus.count -1]} Where could I find all status properties (first, last, odd, even, count, etc.) TonyD wrote: I have a iterator where each value is the label of a checkbox. How could I set each value into the checkbox label? This is code

How to change colors to an item of a select tag list

2007-07-04 Thread TonyD
I'am using struct 2.0.6. I need to populate a select tag list with different colors for each item according to some conditions. example: First Item (in BLACK) Second Item (in GREEN) Third Item(in GREEN) Fourth Item (in RED) Is it possible? I haven't seen something like that

How to set a label position of a select tag

2007-06-29 Thread TonyD
Hi, Someone knows how to set a blank before a label of a select tag? State: and not State: the label value is read from a configuration file And more, how to have the label without the : character? State Thanks for a kindly reply! -- View this message in context:

Re: How to set a label position of a select tag

2007-06-29 Thread TonyD
, Try to add a nbsp; infront of the label and see, i havent dont it but just give a try. You can remove the : just edit the select tag template, i think is in the controlheader-core.ftl file, but not sure :) Thanks, Nuwan - Original Message - From: TonyD [EMAIL PROTECTED