struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukasz Lenart <lukaszlen...@apache.org>
Subject Re: Upgrading Struts 2.2.3 to 2.3.34
Date Fri, 27 Oct 2017 13:47:54 GMT
2017-10-27 14:34 GMT+02:00 Ej Magdaluyo <ejmagdaluyo@gmail.com>:
> This is the java code:
> public String viewMyRequest() throws Exception {
> SearchCriteriaVO searchCriteriaVO= constructSearchCriteria();
> MyRequestDelegate myRequestDelegate = new MyRequestDelegate();
> ViewReqDetails = myRequestDelegate.getRequestViewDetails(searchCriteriaVO);
> ViewReqDetails.setEditApprover(false);
> String searchEnabled=request.getParameter("searchEnabled");
> if(searchEnabled!=null&&searchEnabled.equalsIgnoreCase("true")){
> ViewReqDetails.setSearchEnabled(true);
> }
> setViewReqDetails(ViewReqDetails);
> request.setAttribute("ViewReqDetails", ViewReqDetails);
> return  SUCCESS;
> }
>
>
> If we try to run tests within this java file, we are able to get the values
> without any issues. It is just when we try to call this attribute where the
> problem begins.

Now I'm confused ... you have this code in your action but still
transferring it over request to a scriplet?

How defintion of SUCCESS result looks like?


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message