Michał Letyński wrote:
Hi.
<s:submit type="image" name="submit" src="/buttons/save.gif"/>

In my generated html path looks like this:

<input type="image" alt="save" src="/buttons/save.gif"

When i use html:submit

<input type="image" name="submit" src="/project_name/some/directory/here/buttons/save.gif"

Is it posible to get the real path as it is in html tag ?

Use s:url to build the image url, something like (untested):

  <s:url id="image" value="/buttons/save.gif"/>
  <s:submit type="image" src="%{#image}" ...

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to