aspose file tools*
The moose likes Struts and the fly likes Help in Debugging Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Help in Debugging" Watch "Help in Debugging" New topic
Author

Help in Debugging

Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Hi All,
Im trying to develop a Struts 2 web app, however when i run the code i get the following error.



Mar 25, 2011 5:48:58 PM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
tag 'select', field 'list', name 'domainBean.domainTypeOid': The requested list key 'dtList' could not be resolved as a collection/array/map/enumeration/iterator type. Example: people or people.{name} - [unknown location]
at org.apache.struts2.components.Component.fieldError(Component.java:231)
at org.apache.struts2.components.Component.findValue(Component.java:293)
at org.apache.struts2.components.ListUIBean.evaluateExtraParams(ListUIBean.java:79)
at org.apache.struts2.components.Select.evaluateExtraParams(Select.java:99)
at org.apache.struts2.components.UIBean.evaluateParams(UIBean.java:780)
at org.apache.struts2.components.UIBean.end(UIBean.java:481)
at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)
at org.apache.jsp.jsp.interface_jsp._jspx_meth_s_005fselect_005f0(interface_jsp.java:376)
at org.apache.jsp.jsp.interface_jsp._jspx_meth_s_005fform_005f0(interface_jsp.java:267)......

The jsp associated with the web - app is placed below.Any pointers on where im going wrong would be very helpful.



Learning and Learning!-- Java all the way!
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

Vic Hood wrote:


Where is Struts supposed to get dtList?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Joe Ess wrote:
Vic Hood wrote:


Where is Struts supposed to get dtList?

Hi Joe,
Thanks for replying .
If im not mistaken as im new to struts programming ,the dtlist is fetched from the action class.
The code for the same is placed below.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8908
    
    8

Do you have a getter method declared for dtList?
Vic Hood
Ranch Hand

Joined: Jan 05, 2011
Posts: 477

Thanks Joe!
Got that solved!It was an error in the html tags in the jsp , not rendering the list .Thanks for helping anyways!
But, I have another error that im facing now , that is being caused by the following fragment in the jsp


Here, I want to get a link that points to the obtainData action with objid being passed as a parameter with the label of 'Edit'.But now i get this --- in place of the link ---=" /Struts2DomMasBAck/obtainData.action?objid=2".. What am i missing here?Please help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help in Debugging