• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Junilu Lacar
  • Martin Vashko
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Scott Selikoff
  • salvin francis
  • Piet Souris

Migrating from struts 2.0.11 to struts 2.5.20

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am Srinivas and very new to struts 2 frame work.

I am migrating an application from struts 2.0.11 to 2.5.20.

My home URL is having at the end as   /welcome.jsp.

But when I migrate, this URL is not working.

Could you please let us know how it works the direct home URL having .jsp in struts 2.5.20


Thanks
Srinivas

 
Bartender
Posts: 9589
13
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I just tried an example application and I was able to display a URL that ended with "/welcome.jsp".  
What does your web.xml look like?  
Do you get any errors when you deploy?  Are you able to use other features of the application?
 
Srinivas Alladi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Joe,
Thanks for the information. Could you please provide me your example source code.
I have tried with examples on eclipse. But I could not get and always the error is coming.

I have used the struts-core 2.5.20 jar file and all its dependent files. Basically I am getting the following error message once I have logged into the application URL having ending with .JSP

"An Error has occurred in this application. The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location] at org.apache.struts2.views.jsp.TagUtils.getStack(TagUtils.java:53) at org.apache.struts2.views.jsp.StrutsBodyTagSupport.getStack(StrutsBodyTagSupport.java:40) at org.apache.struts2.views.jsp.ComponentTagSupport.doStartTag(ComponentTagSupport.java:45)"

Thanks
Srinivas
 
Joe Ess
Bartender
Posts: 9589
13
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Srinivas Alladi wrote: This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. s



It sounds like your welcome.jsp has Struts tags in it.  You either need to remove those tags or set your welcome-file in web.xml to be a Struts action.
 
Just the other day, I was thinking ... about this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!