Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSP Processing Error

 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure you're using Struts 2? You're using Struts 1 tags.
 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I am sorry to mention struts 2, but i am unable to find the error David
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much for the quick response Sir
 
Harsha Gedala
Ranch Hand
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 41
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No problem :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic