RedirectResolution has a constructor that takes an event name.

    /**
     * Constructs a RedirectResolution that will redirect to the URL 
appropriate for
     * the ActionBean supplied.  This constructor should be preferred when 
redirecting
     * to an ActionBean as it will ensure the correct URL is always used.
     *
     * @param beanType the Class object representing the ActionBean to redirect 
to
     * @param event the event that should be triggered on the redirect
     */
    public RedirectResolution(Class<? extends ActionBean> beanType, String 
event) {
        super(beanType, event);
    }

=)

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Savoy, Melinda
Sent: Monday, May 12, 2008 2:53 PM
To: Stripes Users List
Subject: [Stripes-users] Question on RedirectResolution


In the following event in one ActionBean I am needing to do a 
RedirectResolution to a specific event in another actionBean in my project, 
however I cannot find a way to access the event in the other actionBean 
(StockStocklessActionBean).

Here is the current actionBean:

public Resolution create() {
        if (log.isDebugEnabled())
                log.info(user.getUserId() + ": Creating 
StockStocklessRequisition or StockStockless Credit Requisition at entity " + 
user.getCurrentEntity());

        user.getSubsystem().getSecurity().setRequisition(stockReq);
        if (user.getSubsystem().getSecurity().isModReq()) {
                this.reqNum = stockService.create(user, stockReq);
                stockService.createApv(user.getUserId(), stockReq);
        }
        context.addMessage("Requsition " + stockReq.getReqNum() + " has been 
created.");
        return new 
RedirectResolution(StockRequisitionActionBean.class).addParameter(reqNum, 
stockReq.getReqNum()).addParameter(entityCode, stockReq.getReqNum());

}

Any help or direction would be greatly appreciated.

Melinda Savoy
Sr. Programmer Analyst
Financial Applications - Enterprise Systems

The information contained in this message and any attachments is intended only 
for the use of the individual or entity to which it is addressed, and may 
contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from 
disclosure under applicable law. If you are not the intended recipient, you are 
prohibited from copying, distributing, or using the information. Please contact 
the sender immediately by return e-mail and delete the original message from 
your system.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to