• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

struts2 path problem

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
http://localhost:8080/<proje name>/<action>/execute_loginprocess.do
i have to path my image tags src attributes relative path is not useful on local
because
site.com/<action>/execute_loginprocess.do

i think i solved my problem but i miss something
1
< image src= using OGNL
<img src="${pageContext.request.contextPath}/layout/images/gore.jpg"" alt="J banner" width="765" height="154">
no problem.
but in struts tags its not working


<s:url namespace="/" value="/layout/images/" var="ab"></s:url>
<s:textfield cssClass="txtf"
cssStyle="background : rgb(233, 248, 255) url(%{ab}username.png) no-repeat scroll left top;" name="userName" id="userName"></s:textfield >

ab parameter coming with when i request the page first time

url(/newproje/layout/images/;jsessionid=4310AB96E11BE618489A6081C2A258BEemail.png)
jssession id is coming wth ab
and i refresh the its fiexed
how can i solve this problem
regards
 
nobeltr ozgur
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i can remove jsessionid value following on this link
http://randomcoder.com/articles/jsessionid-considered-harmful
 
A teeny tiny vulgar attempt to get you to buy our stuff
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic