struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty (JIRA)" <>
Subject [jira] Created: (WW-2695) <bean:define tag does not accept id name and value
Date Tue, 24 Jun 2008 15:26:05 GMT
<bean:define tag does not accept id name and value

                 Key: WW-2695
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Tags
    Affects Versions:
         Environment: TC 5.5.17 Struts-2.0.11
            Reporter: Martin Gainty
            Priority: Minor


/WEB-INF/struts-config.xml contains the following message-resources definition
    <message-resources parameter="ApplicationResources"/>

<%@ taglib uri="" prefix="html"%>
<%@ taglib uri="" prefix="bean"%>
<bean:define id="curDate" name="curDate" value="01-01-1970"/>
<!-- jsp:useBean id="currentDate" class="java.lang.String" / -->
<div id="Search">
   <p class="Time">
       <bean:message key="prompt.Greece" />
       <bean:write name="curDate" format="HH:mm:ss zz" />
   <form action="#">
        <label for="SearchSelect"><bean:message key=""/>:</label>
           <select name="SearchSelect" id="SearchSelect">
               <option selected="selected">Select...</option>
           <input type="text" name="SearchInput" id="SearchInput" class="Text" />
           <input type="submit" name="SearchBTN" id="SearchBTN" class="SearchBTN" value="Search"
           <html:link action="prepareAdvancedSearch">
               <bean:message key="" />
           <a href="#">Advanced Search</a>

produces error
org.apache.jasper.JasperException: Define tag can contain only one of name attribute, value
attribute, or body content for bean with id: curDate

changing bean:define to 
<bean:define id="curDate" value="01-01-1970"/>
bean:define now cleanly renders page

originally reported by
MCG 24 June 2008

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message