This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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: 61084
    
  66

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: 61084
    
  66

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
 
Consider Paul's rocket mass heater.
 
subject: window.location with servlet bean