Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

JSP Question

Options
  • 21-01-2004 12:21pm
    #1
    Registered Users Posts: 1,455 ✭✭✭


    Hey,

    Having some trivial problems with JSP but being new to this crap it's bugging me and I need some help.
    How can I use the <jsp:forward .... /> directive within a scriptlet?
    I need to do this because I only want to forward to the certain jsp if a condition is true.

    Also can I use the <jsp:setProperty..../> for a java bean within a scriptlet?I know I can treat the java bean just as an object and say something like

    <%@ import golfsys.UserBean; %>
    <% UserBean myBean = new Userbean(); %>

    myBean.setName(name);
    myBean.setSecurityLevel(securityLevel);

    But if I use this will I be able to pick these java bean values up in the next jsp?


Comments

Advertisement