• 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

Linking menu item to a JSP in different folder

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
i had a welcome.jsp in /WEB-INF/welcome folder
i had a hello.jsp in WEB-INF/hello folder
i am using struts and tiles. both pages has common header and footer.
header has a menu(written in javascript) which is for navigation between these two pages.
like menu->welcome
->hello
i am currently wrote the js file like this
addmenuitem("welcome","location='../welcome/welcome.do'")
addmenuitem("welcome","location='../hello/hello.do'")
but i am getting errors like welcome/welcome.do webhost not found ...
even i tried location='welcome/welcome.do'...no use
Hope u understand the problem
Please help me how to pass the location!!!
thanks,
Vijaya
[ March 09, 2006: Message edited by: Bear Bibeault ]
 
Sheriff
Posts: 67747
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think no body understood what my problem is :roll: :roll:
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When I'm having trouble getting links to work, I use the fail-safe method of including the web context path with each link:

addmenuitem("welcome","location='<%=request.getContextPath()%>/welcome/welcome.do'")
reply
    Bookmark Topic Watch Topic
  • New Topic