• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP tag stops struts learning

 
Mohammed Sardar.
Ranch Hand
Posts: 33
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have implemented a simple login concept using Struts in Netbeans. login.jsp is the login view page. I follow the below Tutorial from Netbeans Getting started Netbeans Struts. When we run this I get below error from Web browser. I follow from the tutorial and struck here. I investigated and the tag seems to be fine. Anyting wrong here. Please give me a helping hand.

org.apache.jasper.JasperException: An exception occurred processing JSP page /login.jsp at line 24



[/size]

Thank you
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36007
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You created the ActionForm class, right?
 
Joe Ess
Bartender
Posts: 9370
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use Struts 1 if you can at all avoid it: It's dead. There are much better and easier to use frameworks out there.
That said, I tried going through the tutorial you linked to and it appears to work for me.  If you don't see anything obvious rereading the tutorial, post your source code and the complete stack trace of the error you are seeing.
 
Mohammed Sardar.
Ranch Hand
Posts: 33
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"There are much better and easier to use frameworks out there."

When you say shall I start learning Spring MVC or Struts 2.x ? Would that worth ? Guidance needed please. Thank you for your time and effort....
 
Joe Ess
Bartender
Posts: 9370
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ideally, you would make that decision by examining your requirements and choosing the framework that best matches them.  Alternatively, you could search and see what the internet says.  Looking at activity the Code Ranch, it appears Spring MVC is the most popular Java web framework at this time. 
 
Paul Clapham
Sheriff
Posts: 21969
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe, did you mean "Spring MVC"? I don't see Swing as being a web framework at all.
 
Tim Holloway
Bartender
Posts: 18469
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe, I think you meant Spring MVC. Swing is a desktop GUI, not a web GUI.

Struts 2 just had a severe security alert issued, so it's a good idea to make sure that you have the latest security fixes. Then again, the security of any J2EE webapp that implements a user-defined login process is about equal to that of a wet Kleenex even for advanced users.

I really wish that web framework textbooks would stop using user-defined logins as examples. J2EE has a perfectly good (and much) more secure login system of its own. 
 
Joe Ess
Bartender
Posts: 9370
11
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul Clapham wrote:Joe, did you mean "Spring MVC"? I don't see Swing as being a web framework at all.


Yes, corrected.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!