This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts 1.3 tiles not working by using <global-forwards>

 
Priyanshu Chauhan
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I want to use tiles in my search.jsp page.
there is a link to search.jsp in the index.jsp that is not working-->






When i click the link i get 404 error
I have used the global-forward in struts-config.xml





next the action mapping




tiles-defs.xml





The search page works fine with tiles if I don't use global forward and change the link the hyperlink in index.jsp to-->




i.e. I skipped the global-forward part
 
Ravishanker kumar
Ranch Hand
Posts: 53
  • 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Issue is, you are using plain html tag which doesn't understand global forward.

Please use struts tag as below,
 
Priyanshu Chauhan
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you
 
Sidhartha Ray
Greenhorn
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Priyanshu
Try <html:link forward="search">Search</html:link> instead of <a href="search.do">Search</a>
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic