This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

unable to fetch values in jsp using stripes

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My action bean is

@HandlesEvent("getExcessesWidget")
public Resolution getExcessesWidget(){
primaryCO ="situser5";
excessList = excessManagementUiService.**getExcessesWidget**(primaryCO);
return new ForwardResolution("/WEB-INF/jsp/excessManagement/inbox.jsp");
}
GetExcessesWidget method --

public FilteredUIExcessList getExcessesWidget(String primaryCO){
if(primaryCO != null && !primaryCO.trim().equals("")){
List<CrExcessMaster> crExcessMasterList = getExcessDbService().getExcessesWidget(primaryCO);
return UIBeanFormatter.formatWidgetBean(crExcessMasterList);
}
return null;
}
My UIBeanFormatter.formatWidgetBean method is

public static FilteredUIExcessList formatWidgetBean(List<CrExcessMaster> crExcessMasterList){
if(crExcessMasterList != null){

FilteredUIExcessList filteredUIExcessList = new FilteredUIExcessList();

List<CustomerExcessUIBean> widgetList = new ArrayList<CustomerExcessUIBean>();

for(CrExcessMaster crExcessMaster : crExcessMasterList){

ExcessUIBean excessUIBean = new ExcessUIBean();
excessUIBean.setExcessId(crExcessMaster.getExcessId().toString());
excessUIBean.setOpenDate(sdf.format(crExcessMaster.getOpenDate()));
excessUIBean.setExcessAmount(crExcessMaster.getMaxExcessAmount().toString());
excessUIBean.setDaValueForUser(Integer.parseInt(excessDbService.getDaLevelForUser("situser5")));

CustomerExcessUIBean customerExcessUIBean = new CustomerExcessUIBean();
customerExcessUIBean.setClientName(getClientName(crExcessMaster.getCif()));
customerExcessUIBean.setUltimateParent(getParentEntity(crExcessMaster.getCif()));

if (widgetList.contains(customerExcessUIBean)){
widgetList.get(widgetList.indexOf(customerExcessUIBean)).getExcessList().add(excessUIBean);
}
else{
customerExcessUIBean.getExcessList().add(excessUIBean);
widgetList.add(customerExcessUIBean);
}
}
filteredUIExcessList.setWidgetList(widgetList);
return filteredUIExcessList;
}
return null;
}
My values display correctly in action bean class but i am unable to fetch it in jsp file My jsp is

<s:form method="POST" action="/excessList.htm?getExcessesWidget=true"
id="form">
<table border="2px" bordercolor="black" width="100%" height="100%">
<tr>Excesses to be actioned
</tr>
<tr>
<th>Excess ID</th>
<th>Date</th>
<th>Client</th>
<th>Product</th>
<th>Amount</th>
<th>DA</th>
</tr>
<tbody>
<c:forEach items="${actionBean.excessList}" var="excess">
<c:forEach items="${excess.widgetList}" var="customerExcess">
<tr>
<td><c:out value="${customerExcess.excessId }"></c:out></td>
<td><c:out value="${customerExcess.openDate }"></c:out></td>
<td><c:out value="${customerExcess.excessAmount }"></c:out></td>
<td><c:out value="${customerExcess.daValueForUser }"></c:out></td>
</tr>
</c:forEach>
</c:forEach>
</tbody>
</table>
</s:form>
Unable to find my mistake....any help is most appreciated. Thanks in advance..
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!