Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] the autocompleter tag - the href value

Dariusz Wojtas

2006-12-14

Replies:

I have found possible other problem:
To show it I have created 3 similar autocompletes, differing only in href.
They all should load data from action '/listy/kontrahenci.action'
and the '/esu' application prefix. That should result in link to:
'/esu/listy/kontrahenci.action'

sample a) works this way (correctly), but both b) and c) produce
'/esu/esu/listy/kontrahenci.action'
which means that the app prefix is added twice and the action cannot
be found by the tag.

a)
<s:autocompleter theme="ajax" href="/listy/kontrahenci.action" />

b)  
<s:url id="linkA" namespace="/listy" action="kontrahenci" />
<s:autocompleter theme="ajax" href="%{linkA}" />

c)  
<s:url id="linkB" value="/listy/kontrahenci.action" />
<s:autocompleter theme="ajax" href="%{linkB}"/>

Am I doing something wrong in b) and c) ?

Dariusz Wojtas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.