File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
environment variable problem
Unable to compile class for JSP
Unable to compile class for JSP
Compile failed; see the compiler error output for details.
Error using else token in jsp