aspose file tools*
The moose likes Struts and the fly likes Linking menu item to a JSP in different folder Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Linking menu item to a JSP in different folder" Watch "Linking menu item to a JSP in different folder" New topic
Author

Linking menu item to a JSP in different folder

vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
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

Joined: Jan 10, 2002
Posts: 61241
    
  66

Moved to the Struts forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
vijaya bacina
Ranch Hand

Joined: Aug 23, 2005
Posts: 155
I think no body understood what my problem is :roll: :roll:
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
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'")


Merrill
Consultant, Sima Solutions
 
 
subject: Linking menu item to a JSP in different folder