*
The moose likes Struts and the fly likes window.location with servlet bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "window.location with servlet bean" Watch "window.location with servlet bean" New topic
Author

window.location with servlet bean

lynn ng
Greenhorn

Joined: Aug 07, 2007
Posts: 6
Hello,
I have javascript which is window.location='/fpp/brand.do'.
The "brand.do" is a bean defined in the servlet.xml.
When it is clicked it will be linked to the brand.jsp file.
I was wondering how is liked to the JSP file?

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60758
    
  65

Are you using Struts? Typically, URLs that end in .do are Struts URLs.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
lynn ng
Greenhorn

Joined: Aug 07, 2007
Posts: 6
I don't know but there is a file called struts-config.xml.
But I don't see anything related to the jsp file in that xml file

thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60758
    
  65

Struts is a world unto itself. I've moved this to the Struts forum for further discussion.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Look for an entry similar to this:

In Struts, this associates a JSP with an Action class.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: window.location with servlet bean
 
Similar Threads
How to redirect to a new page using JSP?
using window.location ????
including jsp
handler for onclick
Conditional Redirecting using JSP