hi,i get a problem in struts taglib. i test the bean-write.jsp under
struts-excercise-taglib folder, it can work smoothly , if i create a new
application, and test bean-write.jsp, it can't work, after that, i found a
problem, if i add the code below into web.xml of my new web application ,the
bean-write i created before can work smoothly, when i remove that, i can't
work:

web.xml
-------------
......
<init-param>
<param-name>application</param-name>
<param-value></param-value>
</init-param>
---------------------------

my bean-write.jsp
---------------
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<%
pageContext.setAttribute("test1.int", new Integer(123));
pageContext.setAttribute("test1.string", "This is a string");
%>
<bean:write name="test1.int"/>
<bean:write name="test.string"/>
----------------

if i remove <bean:write name="test1.int"/> or change it to
<bean:write name="test1.int" format="" /> it can be work properly too.


could some one help me? should i necessarily add the
configuration above into web.xml it can be work? even then i didn't set any
value of the
application property of servlet?
if i don't add configuration to web.xml, why i add a property 'format=""'
into <bean:write> it also can work?



HTTP Status 500 -

----------------------------------------------------------------------------
----

type Exception report

message

description The server encountered an internal error () that prevented it
from fulfilling this request.

exception

org.apache.jasper.JasperException: Cannot find message resources under key
org.apache.struts.action.MESSAGE
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:256


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

Reply via email to