Action class(Struts)


Web tier: servlets, JSP, Web frameworks: Action class(Struts)

  1. Action class(Struts) (1 messages)

    I am setting the values in request.setAttribute(...) from struts action class. When i invoke these values in jsp using request.getAttribute(..), they're coming fine for the first time. If i refresh the page, its becoming null. I tried session also.Getting the same problem. How could it be resolved?

    Thanks in advance.

    Threaded Messages (1)

  2. action class[ Go to top ]


    I am always using the bean:define tag from the struts-bean taglib.
    It works fine when i refresh the site.

    The code my look like:

    <bean:define id="component"
    type="" />

    But don't forget to add the taglib to the jsp:
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>