Author Login
Post Reply
user Digest 2 Jun 2008 16:37:49 -0000 Issue 8066
Topics (messages 187118 through 187133):
Re: ApplicationResources.properties accessed by Javascript function: is it possible?
187118 by: Jukka Välimaa
JCAPTCHA
187119 by: cacodemon79
Re: [Struts 2] Set action parameter - simple
187120 by: Milan Milanovic
187125 by: Milan Milanovic
187126 by: Jim Kiley
187127 by: Milan Milanovic
187128 by: Milan Milanovic
187129 by: Jim Kiley
187130 by: Milan Milanovic
187131 by: Lukasz Lenart
187132 by: Milan Milanovic
187133 by: Milan Milanovic
Struts2, Uncodage / Charset=ISO-8859-1
187121 by: Yousri BENDI ABDALLAH
s:url does not render url properly
187122 by: Struts Two
187123 by: Musachy Barroso
187124 by: Struts Two
Administrivia:
---------------------------------------------------------------------
To post to the list, e-mail: user@(protected)
To unsubscribe, e-mail: user-digest-unsubscribe@(protected)
For additional commands, e-mail: user-digest-help@(protected)
----------------------------------------------------------------------

Attachment:
user_187118.ezm (zipped)Hi,
I either set them as parameters to function calls, or into variables in
global js objects, where js functions of those same objects get them. I
don't think there is any existing special functionality to get them.
Jukka
On Sun, Jun 1, 2008 at 2:42 PM, cacodemon79 <cacodemon@(protected):
>
> No reply? :(
>
>
> cacodemon79 wrote:
> >
> > Hi to all.
> > I'm a newbie on Struts framework. I'm developing a web site with Struts
> > 1.3, Tomcat 6.0, MySQL 5.0 and Eclipse.
> >
> > I have stored in the ApplicationResources.properties the strings (labels,
> > values, ...) of my site.
> > I'm wondering if it's possible to access this file by a Javascript
> > function as I would like to use the same strings without be obliged to
> > redefine them in Javascript functions.
> > Is there a special functionality (method) to do so?
> >
> > I have tought to the following alternatives:
> > 1) to store the ApplicationResources.properties keys in hidden fields so
> > that i can access them in javascript functions;
> > 2) to pass these strings as parameters when calling a javascript function
> >
> > Can you give me any suggestion on the matter?
> >
> > Thanks in advance.
> >
>
> --
> View this message in context:
> http://www.nabble.com/ApplicationResources.properties-accessed-by-Javascript-function%3A-is-it-possible--tp17563510p17584752.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>

Attachment:
user_187119.ezm (zipped)Hi, i'm using jcaptcha with Struts 1.3.
I already configured my web application following the suggestions present at
the JCAPTCHA homepage and all works.
Now, I'd like to customize the captcha: I'd like to use another engine than
the default one and try to change other options (size, colour, ...).
I tried to follow the suggestion present at the JCAPTCHA homepage:
Basically follow these steps to use another engine in struts:
1) create a new service class like this:
package mypackage;
import
com.octo.captcha.engine.image.gimpy.SimpleListImageCaptchaEngine;
import
com.octo.captcha.service.image.EhcacheManageableImageCaptchaService;
import
com.octo.captcha.service.image.ImageCaptchaService;
public class MyOwnManageableImageCaptchaService extends
EhcacheManageableImageCaptchaService
implements ImageCaptchaService {
public MyOwnManageableImageCaptchaService() {
super(new SimpleListImageCaptchaEngine(), 180, 100000);
}}and here pass the wished engine (here SimpleListImageCaptchaEngine which
I like best) to the superclass...
2) in the strus-config.xml pass the new service class to the
CaptchaServicePlugin like this:
<plug-in className="
com.octo.captcha.module.struts.CaptchaServicePlugin">
<set-property property="serviceClass"
value="mypackage.MyOwnManageableImageCaptchaService" />
</plug-in>
but I got some errors/warnings:
- The type MyOwnManageableImageCaptchaService must implement the inherited
abstract method ManageableCaptchaService.setCaptchaEngine(CaptchaEngine)
- The type EhcacheManageableImageCaptchaService is deprecated
- The constructor EhcacheManageableImageCaptchaService(CaptchaEngine, int,
int) is deprecated
How can I solve this problem?
Can you help me?
Thanks a lot in advance.
--
Sent from the Struts - User mailing list archive at Nabble.com.

Attachment:
user_187120.ezm (zipped)I found what is the problem. I tried to set this link in both ways, as:
<s:url id="url" action="list.action" >
<s:param name="currentPage" value="<s:property/>" />
</s:url>
and
<s:param name="currentPage" value="%{property}" />
value of this param is not written at all ? When I manually write
here e.g., value="2", then it works!
--
Thx, Milan
Milan Milanovic <milanmilanovich@(protected) ?
Musachy Barroso wrote: That means it is not finding a value for that variable, try printing
it to the page and see if it has a value.
musachy
On Mon, Jun 2, 2008 at 9:34 AM, Milan Milanovic
wrote:
> I tried this, but it doesn't set "currentPage" at all.
>
> Musachy Barroso wrote: use this instead:
>
>
>
> musachy
>
> On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
> wrote:
>> Hi,
>>
>> I have currentPage int attribute in my action class and I want when user click in my jsp to set currentPage attribute. I tried it like this (pages is a list of int values):
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> But, curentPage is not set at all ? I checked in method which is response to the "list.action", it is always 0. What is wrong here ?
>>
>> --
>> Thx, Milan
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187125.ezm (zipped)The real question is following, why this doesn't work in Struts 2, i.e., value parameter for <s:param is not generated:
<s:iterator value="pages"
<s:url id="url" action="list.action" >
<s:param name="currentPage" value="%{property}"
</s:url>
</s:iterator>
where "pages" is a simple int [] ?
--
Thx in advance, Milan
Milan Milanovic <milanmilanovich@(protected):
and
value of this param is not written at all ? When I manually write
here e.g., value="2", then it works!
--
Thx, Milan
Milan Milanovic wrote: I checked now and setCurrentPage method is not called at all ?
Musachy Barroso wrote: That means it is not finding a value for that variable, try printing
it to the page and see if it has a value.
musachy
On Mon, Jun 2, 2008 at 9:34 AM, Milan Milanovic
wrote:
> I tried this, but it doesn't set "currentPage" at all.
>
> Musachy Barroso wrote: use this instead:
>
>
>
> musachy
>
> On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
> wrote:
>> Hi,
>>
>> I have currentPage int attribute in my action class and I want when user click in my jsp to set currentPage attribute. I tried it like this (pages is a list of int values):
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> But, curentPage is not set at all ? I checked in method which is response to the "list.action", it is always 0. What is wrong here ?
>>
>> --
>> Thx, Milan
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
--
"Hey you! Would you help me to carry the stone?" Pink Floyd
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

Attachment:
user_187126.ezm (zipped)Because integers don't have "property" fields. You are essentially asking
for pages.iterator().next().getProperty().
On Mon, Jun 2, 2008 at 12:05 PM, Milan Milanovic <milanmilanovich@(protected)>
wrote:
> The real question is following, why this doesn't work in Struts 2, i.e.,
> value parameter for <s:param is not generated:
>
> <s:iterator value="pages"
> <s:url id="url" action="list.action" >
> <s:param name="currentPage" value="%{property}"
> </s:url>
> </s:iterator>
>
> where "pages" is a simple int [] ?
>
> --
> Thx in advance, Milan
>
>
>
>
>
> Milan Milanovic <milanmilanovich@(protected)
> problem. I tried to set this link in both ways, as:
>
>
>
>
>
>
> and
>
>
> value of this param is not written at all ? When I manually write
> here e.g., value="2", then it works!
>
> --
> Thx, Milan
>
>
>
> Milan Milanovic wrote: I checked now and setCurrentPage method is not
> called at all ?
>
> Musachy Barroso wrote: That means it is not finding a value for that
> variable, try printing
> it to the page and see if it has a value.
>
> musachy
>
> On Mon, Jun 2, 2008 at 9:34 AM, Milan Milanovic
> wrote:
> > I tried this, but it doesn't set "currentPage" at all.
> >
> > Musachy Barroso wrote: use this instead:
> >
> >
> >
> > musachy
> >
> > On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
> > wrote:
> >> Hi,
> >>
> >> I have currentPage int attribute in my action class and I want when user
> click in my jsp to set currentPage attribute. I tried it like this (pages is
> a list of int values):
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> But, curentPage is not set at all ? I checked in method which is
> response to the "list.action", it is always 0. What is wrong here ?
> >>
> >> --
> >> Thx, Milan
> >>
> >>
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>
>
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187127.ezm (zipped)O.K. Thanks. But how can I get its value then in param ?
Jim Kiley <jhkiley@(protected)
for pages.iterator().next().getProperty().
On Mon, Jun 2, 2008 at 12:05 PM, Milan Milanovic
wrote:
> The real question is following, why this doesn't work in Struts 2, i.e.,
> value parameter for
>
>
>
>
>
>
>
> where "pages" is a simple int [] ?
>
> --
> Thx in advance, Milan
>
>
>
>
>
> Milan Milanovic wrote: I found what is the
> problem. I tried to set this link in both ways, as:
>
>
>
>
>
>
> and
>
>
> value of this param is not written at all ? When I manually write
> here e.g., value="2", then it works!
>
> --
> Thx, Milan
>
>
>
> Milan Milanovic wrote: I checked now and setCurrentPage method is not
> called at all ?
>
> Musachy Barroso wrote: That means it is not finding a value for that
> variable, try printing
> it to the page and see if it has a value.
>
> musachy
>
> On Mon, Jun 2, 2008 at 9:34 AM, Milan Milanovic
> wrote:
> > I tried this, but it doesn't set "currentPage" at all.
> >
> > Musachy Barroso wrote: use this instead:
> >
> >
> >
> > musachy
> >
> > On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
> > wrote:
> >> Hi,
> >>
> >> I have currentPage int attribute in my action class and I want when user
> click in my jsp to set currentPage attribute. I tried it like this (pages is
> a list of int values):
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> But, curentPage is not set at all ? I checked in method which is
> response to the "list.action", it is always 0. What is wrong here ?
> >>
> >> --
> >> Thx, Milan
> >>
> >>
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>
>
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187128.ezm (zipped)How is this possible with iterator() when pages is an plain int array ?
Jim Kiley <jhkiley@(protected)
for pages.iterator().next().getProperty().
On Mon, Jun 2, 2008 at 12:05 PM, Milan Milanovic
wrote:
> The real question is following, why this doesn't work in Struts 2, i.e.,
> value parameter for
>
>
>
>
>
>
>
> where "pages" is a simple int [] ?
>
> --
> Thx in advance, Milan
>
>
>
>
>
> Milan Milanovic wrote: I found what is the
> problem. I tried to set this link in both ways, as:
>
>
>
>
>
>
> and
>
>
> value of this param is not written at all ? When I manually write
> here e.g., value="2", then it works!
>
> --
> Thx, Milan
>
>
>
> Milan Milanovic wrote: I checked now and setCurrentPage method is not
> called at all ?
>
> Musachy Barroso wrote: That means it is not finding a value for that
> variable, try printing
> it to the page and see if it has a value.
>
> musachy
>
> On Mon, Jun 2, 2008 at 9:34 AM, Milan Milanovic
> wrote:
> > I tried this, but it doesn't set "currentPage" at all.
> >
> > Musachy Barroso wrote: use this instead:
> >
> >
> >
> > musachy
> >
> > On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
> > wrote:
> >> Hi,
> >>
> >> I have currentPage int attribute in my action class and I want when user
> click in my jsp to set currentPage attribute. I tried it like this (pages is
> a list of int values):
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> But, curentPage is not set at all ? I checked in method which is
> response to the "list.action", it is always 0. What is wrong here ?
> >>
> >> --
> >> Thx, Milan
> >>
> >>
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
> >
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
>
>
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187129.ezm (zipped)Either use a more complex object than an int array, or use one of the
examples at http://cwiki.apache.org/WW/iterator.html.
On Mon, Jun 2, 2008 at 12:10 PM, Milan Milanovic <milanmilanovich@(protected)>
wrote:
> O.K. Thanks. But how can I get its value then in param ?
>
> Jim Kiley <jhkiley@(protected)
> "property" fields. You are essentially asking
> for pages.iterator().next().getProperty().
>
> On Mon, Jun 2, 2008 at 12:05 PM, Milan Milanovic
> wrote:
>
> > The real question is following, why this doesn't work in Struts 2, i.e.,
> > value parameter for
> >
> >
> >
> >
> >
> >
> >
> > where "pages" is a simple int [] ?
> >
> > --
> > Thx in advance, Milan
> >
> >
> >
> >
> >
> > Milan Milanovic wrote: I found what is the
> > problem. I tried to set this link in both ways, as:
> >
> >
> >
> >
> >
> >
> > and
> >
> >
> > value of this param is not written at all ? When I manually write
> > here e.g., value="2", then it works!
> >
> > --
> > Thx, Milan
> >
> >
> >
> > Milan Milanovic wrote: I checked now and setCurrentPage method is not
> > called at all ?
> >
> > Musachy Barroso wrote: That means it is not finding a value for that
> > variable, try printing
> > it to the page and see if it has a value.
> >
> > musachy
> >
> > On Mon, Jun 2, 2008 at 9:34 AM, Milan Milanovic
> > wrote:
> > > I tried this, but it doesn't set "currentPage" at all.
> > >
> > > Musachy Barroso wrote: use this instead:
> > >
> > >
> > >
> > > musachy
> > >
> > > On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
> > > wrote:
> > >> Hi,
> > >>
> > >> I have currentPage int attribute in my action class and I want when
> user
> > click in my jsp to set currentPage attribute. I tried it like this (pages
> is
> > a list of int values):
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> But, curentPage is not set at all ? I checked in method which is
> > response to the "list.action", it is always 0. What is wrong here ?
> > >>
> > >> --
> > >> Thx, Milan
> > >>
> > >>
> > >
> > >
> > >
> > > --
> > > "Hey you! Would you help me to carry the stone?" Pink Floyd
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
>
>
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187130.ezm (zipped)The example I've given is from this page, but unfortunately it doesn't works :-(.
Jim Kiley <jhkiley@(protected)
examples at http://cwiki.apache.org/WW/iterator.html.
On Mon, Jun 2, 2008 at 12:10 PM, Milan Milanovic
wrote:
> O.K. Thanks. But how can I get its value then in param ?
>
> Jim Kiley wrote: Because integers don't have
> "property" fields. You are essentially asking
> for pages.iterator().next().getProperty().
>
> On Mon, Jun 2, 2008 at 12:05 PM, Milan Milanovic
> wrote:
>
> > The real question is following, why this doesn't work in Struts 2, i.e.,
> > value parameter for
> >
> >
> >
> >
> >
> >
> >
> > where "pages" is a simple int [] ?
> >
> > --
> > Thx in advance, Milan
> >
> >
> >
> >
> >
> > Milan Milanovic wrote: I found what is the
> > problem. I tried to set this link in both ways, as:
> >
> >
> >
> >
> >
> >
> > and
> >
> >
> > value of this param is not written at all ? When I manually write
> > here e.g., value="2", then it works!
> >
> > --
> > Thx, Milan
> >
> >
> >
> > Milan Milanovic wrote: I checked now and setCurrentPage method is not
> > called at all ?
> >
> > Musachy Barroso wrote: That means it is not finding a value for that
> > variable, try printing
> > it to the page and see if it has a value.
> >
> > musachy
> >
> > On Mon, Jun 2, 2008 at 9:34 AM, Milan Milanovic
> > wrote:
> > > I tried this, but it doesn't set "currentPage" at all.
> > >
> > > Musachy Barroso wrote: use this instead:
> > >
> > >
> > >
> > > musachy
> > >
> > > On Fri, May 30, 2008 at 11:48 AM, Milan Milanovic
> > > wrote:
> > >> Hi,
> > >>
> > >> I have currentPage int attribute in my action class and I want when
> user
> > click in my jsp to set currentPage attribute. I tried it like this (pages
> is
> > a list of int values):
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> But, curentPage is not set at all ? I checked in method which is
> > response to the "list.action", it is always 0. What is wrong here ?
> > >>
> > >> --
> > >> Thx, Milan
> > >>
> > >>
> > >
> > >
> > >
> > > --
> > > "Hey you! Would you help me to carry the stone?" Pink Floyd
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > > For additional commands, e-mail: user-help@(protected)
> > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > "Hey you! Would you help me to carry the stone?" Pink Floyd
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@(protected)
> > For additional commands, e-mail: user-help@(protected)
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
> --
> Jim Kiley
> Technical Consultant | Summa
> [p] 412.258.3346 [m] 412.445.1729
> http://www.summa-tech.com
>
>
>
>
--
Jim Kiley
Technical Consultant | Summa
[p] 412.258.3346 [m] 412.445.1729
http://www.summa-tech.com

Attachment:
user_187131.ezm (zipped)Solution
<s:iterator value="pages" id="id">
<s:url id="url" action="edit" >
<s:param name="currentPage" value="%{id}"/>
</s:url>
<s:a href="%{url}">Edit ${id}</s:a>
</s:iterator>
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187132.ezm (zipped)It works! Thanks very much.
Lukasz Lenart <lukasz.lenart@(protected)
Edit ${id}
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187133.ezm (zipped)Dear Lukasz,
I have a little problem with setting this value now. Regarding this piece of code:
<s:iterator value="pages" id="id">
<s:url id="url" action="edit" >
<s:param name="currentPage" value="%{id}"/>
</s:url>
<s:a href="%{url}">Edit ${id}</s:a>
</s:iterator>
when user clicks on this URL in method edit() output log is this, for
example when value is 2:
currentPage: 0
currentPage: 2
currentPage: 0
?
Lukasz Lenart <lukasz.lenart@(protected)
Edit ${id}
Regards
--
Lukasz
http://www.lenart.org.pl/

Attachment:
user_187121.ezm (zipped)Good morning,
I use the tag <s:select> of struts 2, with a list
<s: select name = "month" list = "# (0: 'January', 1: 'February', 2:
'March', 3: 'April', 4: 'May', 5: 'June', 6: 'July', 7: 'August', 8:
'September', 9: 'October', 10: 'November', 11: 'December') "headerKey =" -1
"headerValue =" - All months - "/>
My page is http-equiv = "Content-Type" content = "text / html; charset =
ISO-8859-1"
On a weblogic on windows is good
or on a Linux server, accents displayed in ^y, and if I met February as it
appears they are c normal since it is a list, but I can not say how the tag
encoded in ISO struts2 -8859-1?
LANG = en_US.ISO-8859-01
Best regards

Attachment:
user_187122.ezm (zipped)I have the following code snippet in my jsp:
<s:url action="goToRegistration" namespace="user" id="registerUrl">
<s:param name="user.cnum" value="<s:property vaue='cnum'/>"/>
</s:url>
<a href="<s:property value='#registerUrl'/>">Register</a>
The page url were the code is rendered is ....localhost:9445/ccol/ticket/newTicketOwnerList.action where "ccol" is the context root. When I click on the link the page goes to the following url ...localhost:9445/ccol/ticket/user/goToRegistration.action which is wrong. I want the url go to the following url:
...localhost:9445/ccol/user/goToRegistration.action, that is to say I want to have user namespace and action appended to the context rool. Any ideas what I am doing wrong.
thanx,
__________________________________________________________________
Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php

Attachment:
user_187123.ezm (zipped)the use namespace="/user" in the url tag
On Mon, Jun 2, 2008 at 11:41 AM, Struts Two <strutstwo@(protected):
> I have the following code snippet in my jsp:
> <s:url action="goToRegistration" namespace="user" id="registerUrl">
> <s:param name="user.cnum" value="<s:property vaue='cnum'/>"/>
> </s:url>
> <a href="<s:property value='#registerUrl'/>">Register</a>
> The page url were the code is rendered is ....localhost:9445/ccol/ticket/newTicketOwnerList.action where "ccol" is the context root. When I click on the link the page goes to the following url ...localhost:9445/ccol/ticket/user/goToRegistration.action which is wrong. I want the url go to the following url:
> ...localhost:9445/ccol/user/goToRegistration.action, that is to say I want to have user namespace and action appended to the context rool. Any ideas what I am doing wrong.
> thanx,
>
>
> __________________________________________________________________
> Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php
--
"Hey you! Would you help me to carry the stone?" Pink Floyd

Attachment:
user_187124.ezm (zipped)I have put namespace="/user" in the url, but it does not work. Here is what I have:
<s:url action="goToRegistration" namespace="/user" id="registerUrl">
<s:param name="user.cnum" value="<s:property vaue='cnum'/>"/>
</s:url>
<a href="<s:property value='#registerUrl'/>">Register</a>
but still when I click on the link, the namespace user is appended to the ticket namespace that is alreay in the url.
----- Original Message ----
From: Musachy Barroso <musachy@(protected)>
To: Struts Users Mailing List <user@(protected)>
Sent: Monday, June 2, 2008 11:47:48 AM
Subject: Re: s:url does not render url properly
the use namespace="/user" in the url tag
On Mon, Jun 2, 2008 at 11:41 AM,
> I have the following code snippet in my jsp:
> <s:url action="goToRegistration" namespace="user" id="registerUrl">
> <s:param name="user.cnum" value="<s:property vaue='cnum'/>"/>
> </s:url>
> <a href="<s:property value='#registerUrl'/>">Register</a>
> The page url were the code is rendered is ....localhost:9445/ccol/ticket/newTicketOwnerList.action where "ccol" is the context root. When I click on the link the page goes to the following url ...localhost:9445/ccol/ticket/user/goToRegistration.action which is wrong. I want the url go to the following url:
> ...localhost:9445/ccol/user/goToRegistration.action, that is to say I want to have user namespace and action appended to the context rool. Any ideas what I am doing wrong.
> thanx,
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/