aspose file tools*
The moose likes JSP and the fly likes Accessing Variable Declarations W/ Struts Tags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Accessing Variable Declarations W/ Struts Tags" Watch "Accessing Variable Declarations W/ Struts Tags" New topic
Author

Accessing Variable Declarations W/ Struts Tags

Alex Cano
Greenhorn

Joined: Oct 06, 2003
Posts: 11
Does anyone know how I can access variables declared as

in jsp's using struts tags? I have a variable declared as such and I'm trying to do

but am getting the following exception:
Cannot find bean list in any scope javax.servlet.ServletException: Cannot find bean list in any scope at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
even though I can access it with scriplet code. I know that the variable gets put in the compiled servlet so that it can be accessed anywhere in the class using scriplet code but I'm wondering if there's any way struts tags can access these as well as it's obviously not in any of the standard scopes.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Hi Alex, welcome to the Ranch!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
Thanks!
bear
JSP Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Moving to the Struts forum.
bear
[ October 06, 2003: Message edited by: Bear Bibeault ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing Variable Declarations W/ Struts Tags