This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Error assigning bean value to jsp variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Error assigning bean value to jsp variable" Watch "Error assigning bean value to jsp variable" New topic
Author

Error assigning bean value to jsp variable

m nevetha
Greenhorn

Joined: Apr 24, 2009
Posts: 3
Hi All,

Am using the Struts bean:define tag to get a value of a variable and assign it using scriplets in jsp. But this throws a traceback. This is my code




The traceback is:



Can anyone help me out.. thanks in advance
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

This is just a guess, but perhaps the variable is being defined in the context of the try block, hence not available elsewhere.

In any case, this is very inappropriate JSP code--nothing should ever be written like this, and there's absolutely no reason to do so. Put the Java code in the action--that's where Java belongs.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error assigning bean value to jsp variable
 
Similar Threads
Error using else token in jsp
environment variable problem
Compile failed; see the compiler error output for details.
Unable to compile class for JSP
Unable to compile class for JSP