Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

"/stuts-tag" not found

 
jyotii chavan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am new to struts2.............i get an error while running my jsp page in application
error i got-----HTTP Status 500 - /view/jsp/contactus1.jsp (line: 4, column: 41) File "/struts-tags" not found



here is my sruts.xml





my web.xml




my jsp

 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added code tags to your post. Please use them in the future as they preserve formatting and make your code more readable.
From what I've seen, the most likely cause of your problem is a missing dependency. The Struts distribution has example applications. Have a look at the Blank app and compare the contents of the WEB-INF/lib directory to the one in your application.
 
jyotii chavan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sir i added jar files in WEB-INF/lib.....
i added
commons-logging-1.1.1
freemarker-2.3.8
ognl-2.6.11
struts2-core-2.1.8
xwork-2.0.4


but still i got that error
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you get those files? The Struts jar is version 2.1.8 and the xwork version is 2.0.4. I happen to have Struts 2.1.8.1 handy and the xwork version is 2.1.6, so I think you are mixing dependency versions. I have 6 JAR files and you have 5.
Also, the current version of Struts is 2.3.8.
 
jyotii chavan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell which is the 6th jar file i have to install
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That depends on the version of Struts you are using. My recommendation is to download the latest version and take the JAR files from the blank application.
 
jyotii chavan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you ..... i downloaded the jar suggested by you and it works..........
 
Joe Ess
Bartender
Posts: 9320
10
Linux Mac OS X Windows
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
jyotii chavan
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your suggestion solved my problem but now i am facing same problem with the other jsp page i had created....also i am unable to modify my previous jsp page...i had tried from last night but i am unable to sort out it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic