In the portal that i'm building, i'm using attributes to send information from 
the java classes to the jsp files. For example, have a jsp that shows the name 
of the user logged in. 

But, in other use cases, like submit a form, i want to show messages to the 
user like "The registration submitted sucessfully". But this message must 
dissappear if i do another action that follow the submit action. 

I thought to put this variables/attributes in session, but i had a problem. The 
variables remains in session, and in the sequence of the pageflow, it is very 
difficult to remove the attributes in all cases of the pageflow of my portlet. 
My portlet has many pages that use the same portlet, but for different cases.

So, i thought to use renderParameter as a substiture to setAttribute. I thought 
that the renderParameter value dissappeared if i render the same page again.

For example, when i render a page, i set a message with renderParameter.  If i 
re-render the page, the parameter would dissapear.

But, i'm seeing that it's not possible.

So, how can i set values that won't remain in session?

Thanks,
Pedro




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963849#3963849

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963849
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to