• 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

Passing attributes through HTTP request

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello, I'm relatively new to Struts and JSP and am having some difficulty figuring out my problem here. I am trying to pass attributes to a JSP from an Action Class. I'm following the example of existing code but there must be something that I forgot to change in order to make it work. I keep getting the following error:



Is there something in the struts-config file that needs to indicate that attributes are being passed? Like I said I have one ActionClass and JSP that work and I'm trying to add an additional page. I thought I duplicated all of the essential functionality but obviously I'm missing something.

 
Ryan White
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone have any help on this? Or at least a direction to point me in?
 
Ranch Hand
Posts: 242
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you try to put the line above you have mentioned

<bean efine id="test" value="james"/>

i think you forgot to initilize the variable test

regards
amir

[ February 25, 2008: Message edited by: Amirtharaj Chinnaraj ]

[ February 25, 2008: Message edited by: Amirtharaj Chinnaraj ]
[ February 25, 2008: Message edited by: Amirtharaj Chinnaraj ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic