Are you including the taglib declaration in your JSP?

It should be something like:

<%@ taglib prefix="bean" uri="http://struts.apache.org/tags-bean"; %>
 

-----Original Message-----
From: robin bajaj [mailto:[EMAIL PROTECTED] 
Sent: Friday, 17 November 2006 9:38 a.m.
To: Struts Users Mailing List
Subject: bean:write not displaying the intended values

Hi Folks,

At Struts 1.x level,
I am writing the value of bean's property on a jsp page using
<bean:write name="bean" property="bean-property" scope="request"/>
  tag , but nothing gets displayed on the web page.

Infact the generated HTML (view source in the browser), shows the tag's
code as-is. <bean:write name="bean" property="bean-property" 
scope="request"/>

However,
I can display the value of bean's property using a scriptlet.

<%LoyaltyProfileDto loyaltyProfileDTO =
(LoyaltyProfileDto)request.getAttribute("loyaltyProfileDTO");
out.println(loyaltyProfileDTO.getEMail());
%>

This scriptlet works fine and displays the bean property's value
correctly.

I dont know what's wrong,
Any ideas ?
regards,
- R

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to