File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Bean:write Not working Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Bean:write Not working" Watch "Bean:write Not working" New topic

Bean:write Not working


Joined: Aug 13, 2002
Posts: 15

I am using the below struts tag in Application, As you can see i am using script function showMsgPop in which i am using bean:write tag.But this tag is not able to display the message.

Please let me know where i am doing wrong?..

>jsp Page
The form tag
<html:form name="submitOpex" action="" type= "c4.form.UploadOpexForm" method= "post" scope="session" >

<logic:messagesPresent message="true">
<html:messages id="submitCosmessage" message="true">
showMsgPop("OPEX Submission Result", "<bean:write name='submitCosmessage' />");
</logic:messagesPresent >

scope="session" >
<!-- input="subOpex"> -->
<forward contextRelative="true" name ="subOpexPage" path="subOpex" />


Chetan Durg

Thanks<br />chets
sreenath reddy
Ranch Hand

Joined: Sep 21, 2003
Posts: 415

The attributes of struts tags(even custom tags) needs to be wrapped in a double quotes rather than single as u had done..

so u change the script to function("df" ,'<bean:write name=""/>') and single r double quotes doesnt matter for javascript
Jason Menard

Joined: Nov 09, 2000
Posts: 6450

Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
I agree. Here's the link:
subject: Bean:write Not working
It's not a secret anymore!