File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OGNL and dinamic s:url

 
Moli molina
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi at all!

Hi have a question about how to use s:url and s:property.
My question : I need to use s:url to get the url of my image.



This works , but the Url are inapropiate, because it do not include the aplication name...
on other images of the page I use this code
and It works.

How I get a correct s:url including a s:property?

Many Thanks
Jose






 
Moli molina
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found the solution.
I use

By mistake I was trying with <img src='<s:url value="/img/app/{%icon}.png"/>'/>.....

Thanks
 
Ankit Garg
Sheriff
Posts: 9497
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This can also be made to work if you use this
${pageContext.request.contextPath} will add the "application name" or the context path to the image location...
 
Moli molina
Greenhorn
Posts: 19
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I'll try with your solution.

Many Thanks Ankit,
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic