Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

window.location with servlet bean

 
lynn ng
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using Struts? Typically, URLs that end in .do are Struts URLs.
 
lynn ng
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64692
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts is a world unto itself. I've moved this to the Struts forum for further discussion.
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look for an entry similar to this:

In Struts, this associates a JSP with an Action class.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic