• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problems with Beans' properties in JSP

 
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear All,
I'm trying to iterate thru' a collection, laying some of the fields of a
bean from the collection in each column of a table. If I use a jsp
expression tag, then I get the required data. But the same thing when used
inside the <html: link> or <bean: write> tag, it does not show
up.
This is my code in a JSP.

Any suggestions?
Thanks and regards,
[ April 22, 2004: Message edited by: Kinjal Sonpal ]
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
That should work .whats is the equivalent code u wrote instaed of that JSP expression ?
is it <bean:write name="poRow" property="subject"/>
 
Kinjal Sonpal
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Yes that's right. I used <bean: write > tag as being equivalent of a jsp
expression here. Infact, this code is absolutely alright and it works like
a charm. It was really silly from my side to have not put a taglib
directive for the struts-bean taglib. However it was extremely surprising
that even if there was no declaration for the bean tablib and the system
simply did not cry about such an ommission. That was the reason why it
never really struck me while debugging this page. Can this happen because
such declarations were already present in the pages loaded prior to this?
Please throw some light on this.
Regards,
Kinjal Sonpal
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

One thing if u dont include the TLDS and try to use them in ur page ,it wont show any error but that will display as it is as text in ur jsp as while at the run time the browser(which contains JVM) will treat that as a text and will simply display as it is ..........
 
reply
    Bookmark Topic Watch Topic
  • New Topic