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
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
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
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
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
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
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
:
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
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
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
=${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
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
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.
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
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
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
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:
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
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
=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
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
:
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
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
.
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
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
.
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
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!
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
: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
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
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:
,
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
32 matches
Mail list logo