This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes JSP Processing Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "JSP Processing Error" Watch "JSP Processing Error" New topic
Author

JSP Processing Error

Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

ERROR: /lob/ca/claims/subro/c139_view_status.jsp(45,5) --> JSPG0123E: Unable to locate tag attribute info for tag attribute indexed.

JSP PAGE:



BEAN:


List is present in other class:

I am iterating the list, where each element of the list is of type C139StatusVO(bean).
I am confidant that the is getting populated, but i cannot show that up in JSP.

I am pretty new to JSP. Please help me on this issue.
Struts 2.0 with tiles frame work.

Thanks for the reply.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Are you sure you're using Struts 2? You're using Struts 1 tags.
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

Yes I am sorry to mention struts 2, but i am unable to find the error David
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

So... which version are you using?

I don't recall the <bean:write> tag taking an "indexed" parameter; it's not listed in the bean tag documentation--do you have a link to where "indexed" is listed as a valid attribute?
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

I have edit the JSP page removing the "indexed" parameter.
after executing the page now i cannot find any error message and even the is no output in the jsp page.


David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

I have no way of debugging that.

Tiles is notorious for swallowing errors and giving a blank page: I'd turn up the logging levels and see if there's anything on the console, then start looking for null values and so on.
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

Thank you very much for the quick response Sir
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

I have made the code simple, but i cannot find the output in JSP.
I made few mistakes in earlier code.

But now i can see only

Previous C139


help me with this issue.
Thanks in advance

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

My first assumption would be that the <logic:iterate...> tag contains something incorrect; I'd double-check all of the attributes are set to appropriate values.
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

I have just now checked my action class.

the jsp is not picking up the list from the form.

ACTION CLASS:
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You're creating a new form--Struts doesn't know anything about your new instance.

If the action is configured correctly the "form" parameter is already of the correct type; casting it to your type and setting a property on it is the canonical way to do this.
Harsha Gedala
Ranch Hand

Joined: Jun 04, 2008
Posts: 41

thats the mistake i have done.

I have to type cast the object




Thanks again for the quick response.

I was always checking whether the list is populated in the bean or not, but never checked the action.
Thank you very much Sir
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

No problem :)
 
wood burning stoves
 
subject: JSP Processing Error
 
Similar Threads
Struts 1.2.4 File Upload - Form File is null in action
JSP context problem
Unknown tag and Invalid location errors?
html:link and form
bean value persists on clicking back