Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Linking menu item to a JSP in different folder

 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • 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 ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
vijaya bacina
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think no body understood what my problem is :roll: :roll:
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • 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'")
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic