0% found this document useful (0 votes)
58 views1 page

Java Code

This Java code defines a PreUpdateWarehouse class that extends the Action class. The execute method gets a warehouse ID from an HTTP request, uses a Helper class to retrieve a List of data for that warehouse ID, sets the List as a request attribute, and returns a forward to a "preupdatewarehouse" view.

Uploaded by

Shankar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
58 views1 page

Java Code

This Java code defines a PreUpdateWarehouse class that extends the Action class. The execute method gets a warehouse ID from an HTTP request, uses a Helper class to retrieve a List of data for that warehouse ID, sets the List as a request attribute, and returns a forward to a "preupdatewarehouse" view.

Uploaded by

Shankar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

package org.

actions;

import javax.servlet.http.HttpServletRequest;

import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.*;

import org.helper.*;

import java.util.*;

public class PreUpdateWarehouse extends Action

public ActionForward execute(ActionMapping mapping, ActionForm form,

HttpServletRequest request, HttpServletResponse response)

throws Exception

int whid=Integer.parseInt(request.getParameter("UserID").toString());

Helper hp=new Helper();

List mainlist=(List)hp.preUpdateWarehouse(whid);

request.setAttribute("mainlist",mainlist);

return mapping.findForward("preupdatewarehouse");

You might also like