• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

New to Struts, where did I go wrong?

 
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,

I absolutely new to Struts. I read a few tutorials and was going through some online examples and tried to create one myself from one such example. I deployed it on JBoss. But when i publish the application... I get an exception. I am using Eclipse to create the applications. The main objective is to take in the name from one JSP and display it on another JSP.

Exception:


Here are my files:
NameAction.java


NameForm.java


web.xml

struts-config.xml


index.jsp (to take in the name):


displayname.jsp (to display the name):


So when i hit the browser with http://localhost:8080/StrutsProject/ I get the above mentioned exception.

I have attached the Eclipse project structuring as well, if it helps, and also just to confirm that i have put all the files in the right places. Thanks in advance.

Eclipse.jpg
[Thumbnail for Eclipse.jpg]
Eclipse Project
 
Somnath Mallick
Ranch Hand
Posts: 483
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its ok... I got it solved myself. It turned my struts-config.xml was hopelessly incorrect!

But anyways just had another question... My application works, but i see an exception in Eclipse in the struts-config.xml. It says..

"Action /Name references to non-existent page index.jsp."
"Forward success of Action /Name path attribute references to non-existent page"
"Forward failure of Action /Name path attribute references to non-existent page"

My config file is:

 
Well THAT's new! Comfort me, reliable tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic