• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem relaying attributes between customa tag class and jsp

 
Nicolaos Kormara
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to everyone.
I have created a custom tag class that has the following code snippet:



The page variable is a struts action entitled "login.do". That will return a jsp page "login.jsp".

What I wish to achieve is the retrieval of the attribute I have set in the custom tag class in the resulting login.jsp. So far, the aforementioned code has not yielded the results I hoped for. Any help with my problem would be greatly appreciated.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so you:

1) Set a sscoped variable in the page context in which the tag appears

2) Forward to a new page

3) Are surprised that the page-level scoped variable is lost

Think about it for a moment...
 
Nicolaos Kormara
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just had a look again at my code again. I had become so focused on finding a problem where there wasn't that I completely overlooked the obvious. Code is now working, thank you and sorry about the question...
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem. That's how we learn.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!