RE: help with html:select andhtml:optionsCollection
This doesn't show how to use optionsCollection, but I this is how I solved a similar problem with html:options. I've got a Patient, who has an address. The Address has a String state. I've got a collection of States, which I want to have be a select, and I want the default one to be the one who's value matches the state field on the Address from my Patient. jsp:useBean id=patient scope=request class=com.mycompany.Patient / jsp:useBean id=states scope=request class=java.util.Collection / bean:define id=address name=patient property=homeAddress type=com.mycompany.Address/ html:select name=address property=state html:options collection=states property=stateId labelProperty=stateName/ /html:select This works for me. Note that 'property=state' and 'property=stateId' match for one of the given beans in the collection. So that one is my default. Hope this helps. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 11:17 AM To: [EMAIL PROTECTED] Subject: help with html:select andhtml:optionsCollection I am completely new to the stuts and i am trying to display values from the database using the html:select tag. I have a method called getItems in a Form bean blah.java that returns a list of the items from the database. Item is a database table that has different fields in it. I am using Torque that generates the om classes for the database tables. I am trying to put the values of a particular field from the database into the html:select. Please help with this... - 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]
html:select
I'm pretty new to the jsp tag stuff, and I need to do something that I would think is pretty common, but I can't seem to do it without resorting to scriptlets. I have an Address, which has a String state on it. I have a Collection of States which have an int id, and String name on them. How can I generate a select list that defaults to the value that matches the state on my Address? Seems like this would be pretty common, but I can't find it anywhere :( Thanks in advance, Jesse
encoded URLs
If I do a mapping.getForward("x"), is the URL that goes to encoded with the session and stuff? Thanks, Jesse
struts.jar
I've know we've been through this before, but can someone refresh me on where it's OK to have struts.jar and where it's not OK? Thanks, Jesse Vitrone
tag libraries
Title: tag libraries Does anyone know if they have tag libs for anything besides HTML? Are there any tig libs for WML or HDML out there? Thanks, Jesse Vitrone
RE: new problem - fixed one, now I've got another
Title: RE: new problem - fixed one, now I've got another Yes, my struts.jar is in my WEB-INF\lib dir. Thanks though, Jesse -Original Message- From: Young, Wayne [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:26 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Is struts.jar in in WEB-INF\lib? (you answered all of Maya's questions except that one) Wayne [EMAIL PROTECTED] -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 7:11 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Ana - here's the soruce of the jsp that's getting the errors. Anything look wrong? %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html:html locale=true head title bean:message key=generic.title/ /title html:base/ /head logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent body bgcolor=white h2centerbean:message key=index.welcome//center/h2 blockquote html:form action=/checkPrice focus=isbn/ bean:message key=index.prompt/ html:text property=isbn size=10 maxlength=10/ html:submit property=submit value=Get Price/ /html:form /blockquote /html:html Thanks in advance, Jesse -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another OK, those are the 2 that I renamed, so I guess that's not my problem. Thanks for you help, I'll keep pluggin' away. Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Yes, you can replace the 2 names (in red color): !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueorg.apache.struts.example.ApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value Jesse Vitrone wrote: That's exacly the setup that I have :)*.tld and my web and config xml files are in my_app/WEB-INFand my 2 jsp's are under my_app/http://localhost/my_app/index.jsp is what's giving me that error.I have Apache with Tomcat, so the :8080 isn't needed.Any other ideas? The config xml and resource properties file can be named what ever I want, right? As long as I refer to them with the right name in my web.xml?Thanks again, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Check a location of all struts-*tld files. They have to be under your_app/WEB-INF (check with your web.xml). struts.jar file has to be under your_app/WEB-INF/lib. Put your first.jsp file under your_app directory and try http://localhost:8080/your_app/first.jsp Jesse Vitrone wrote: Good idea, but it didn't help, I still got the same directory.Thanks anyway, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Try to stop Tomcat. Remove everything under tomcat/work directory and startup Tomcat again. Jesse Vitrone wrote: OK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it starts, I get this error when I try to load my first page. javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp l.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1. java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286
RE: new problem - fixed one, now I've got another
Title: RE: new problem - fixed one, now I've got another The error says this: javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null Wouldn't that imply that there should be a BEAN class in my struts.jar? If not, where is it trying to find it? Thanks again, Jesse -Original Message-From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:30 AMTo: '[EMAIL PROTECTED]'Cc: '[EMAIL PROTECTED]'Subject: RE: new problem - fixed one, now I've got another Yes, my struts.jar is in my WEB-INF\lib dir. Thanks though, Jesse -Original Message- From: Young, Wayne [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:26 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Is struts.jar in in WEB-INF\lib? (you answered all of Maya's questions except that one) Wayne [EMAIL PROTECTED] -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 7:11 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Ana - here's the soruce of the jsp that's getting the errors. Anything look wrong? %@ page language="java" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % %@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" % html:html locale="true" head title bean:message key="generic.title"/ /title html:base/ /head logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application" font color="red" ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent body bgcolor="white" h2centerbean:message key="index.welcome"//center/h2 blockquote html:form action="/checkPrice" focus="isbn"/ bean:message key="index.prompt"/ html:text property="isbn" size="10" maxlength="10"/ html:submit property="submit" value="Get Price"/ /html:form /blockquote /html:html Thanks in advance, Jesse -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another OK, those are the 2 that I renamed, so I guess that's not my problem. Thanks for you help, I'll keep pluggin' away. Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Yes, you can replace the 2 names (in red color): !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueorg.apache.struts.example.ApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value Jesse Vitrone wrote: That's exacly the setup that I have :)*.tld and my web and config xml files are in my_app/WEB-INFand my 2 jsp's are under my_app/http://localhost/my_app/index.jsp is what's giving me that error.I have Apache with Tomcat, so the :8080 isn't needed.Any other ideas? The config xml and resource properties file can be named what ever I want, right? As long as I refer to them with the right name in my web.xml?Thanks again, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Check a location of all struts-*tld files. They have to be under your_app/WEB-INF (check with your web.xml). struts.jar file has to be under your_app/WEB-INF/lib. Put your first.jsp file under your_app directory and try http://localhost:8080/your_app/first.jsp Jesse Vitrone wrote: Good idea, but it didn't help, I still got the same directory.Thanks anyway, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Try to stop Tomcat. Remove everything under tomcat/work directory and startup Tomcat again. Jesse Vitrone wrote: OK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it star
RE: new problem - fixed one, now I've got another
Maya, oooh - good eye, but it didn't help :( Thanks again, Jesse -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:41 AMTo: [EMAIL PROTECTED]Subject: Re: new problem - fixed one, now I've got anotherTry insert one line (see below in red). I am not sure that it will help. Jesse Vitrone wrote: Ana - here's the soruce of the jsp that's getting the errors. Anything look wrong?%@ page language="java" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % %@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %html:html locale="true" head title bean:message key="generic.title"/ /title html:base/ /headlogic:notPresent name="org.apache.struts.action.MESSAGE" scope="application" font color="red" ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresentbody bgcolor="white" h2centerbean:message key="index.welcome"//center/h2blockquote html:form action="/checkPrice" focus="isbn"/ bean:message key="index.prompt"/ html:text property="isbn" size="10" maxlength="10"/ html:submit property="submit" value="Get Price"/ /html:form /blockquote/body/html:htmlThanks in advance, Jesse -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another OK, those are the 2 that I renamed, so I guess that's not my problem.Thanks for you help, I'll keep pluggin' away.Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Yes, you can replace the 2 names (in red color): !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueorg.apache.struts.example.ApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value Jesse Vitrone wrote: That's exacly the setup that I have :)*.tld and my web and config xml files are in my_app/WEB-INFand my 2 jsp's are under my_app/http://localhost/my_app/index.jsp is what's giving me that error.I have Apache with Tomcat, so the :8080 isn't needed.Any other ideas?The config xml and resource properties file can be named what ever I want, right? As long as I refer to them with the right name in my web.xml?Thanks again, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got anotherCheck a location of all struts-*tld files. They have to be under your_app/WEB-INF (check with your web.xml). struts.jar file has to be under your_app/WEB-INF/lib. Put your first.jsp file under your_app directory and try http://localhost:8080/your_app/first.jsp Jesse Vitrone wrote: Good idea, but it didn't help, I still got the same directory.Thanks anyway, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got anotherTry to stop Tomcat. Remove everything under tomcat/work directory and startup Tomcat again. Jesse Vitrone wrote: OK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it starts, I get this error when I try to load my first page. javax.servlet.ServletExc
RE: new problem - fixed one, now I've got another
Maya, Here's my classpath. CLASSPATH=C:\IBMDebug\lib\dertrjrt.jar;C:\IBMVJava\eab\runtime30;C:\IBMVJava\eab\runtime20;.;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;.;.;C:\Xerces\xerces.jar;C:\Xalan\xalan.jar;C:\Xerces\xercesSamples.jar;C:\ApacheGroup\ApacheSOAP\lib\soap.jar;C:\ApacheGroup\ApacheSOAP\samples.jar;z:\unix_dobson\3rdparty\lib;z:\unix_dobson\gbapps;z:\unix_dobson\gbservlets;C:\Jars\servlet.jar;Z:\unix_dobson\gbapps\com\giantbear\soap;Z:\unix_dobson\gbapps\com\giantbear\soap\samples;Z:\unix_dobson\gbapps\com\giantbear\soap\test;c:\JavaMail\mail.jar;c:\JAF\activation.jar;C:\JDBC\jdbc2_0-stdext.jar;C:\ApacheGroup\Ant\lib\ant.jar;C:\ApacheGroup\Ant\lib\jaxp.jar;C:\ApacheGroup\Ant\lib\parser.jar CP is used along with CLASSPATH when I compile. CP=C:\ApacheGroup\Tomcat\lib\jaxp.jar;C:\ApacheGroup\Tomcat\lib\parser.jar;C:\jdk\lib\tools.jar;C:\ApacheGroup\Struts\\lib\struts.jar Yes, I can get the struts-example to run without a problem. I have a bunch of struts.jar's, but they're all the same, and there's only one under my 'my-example' directory. Thanks again for your time and ideas, Jesse -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:43 AMTo: [EMAIL PROTECTED]Subject: Re: new problem - fixed one, now I've got anotherCheck how many struts.jar files you have. Did you try EXAMPLE? What is your CLASSPATH? Jesse Vitrone wrote: The error says this:javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null Wouldn't that imply that there should be a BEAN class in my struts.jar?If not, where is it trying to find it?Thanks again, Jesse -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:30 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Yes, my struts.jar is in my WEB-INF\lib dir. Thanks though, Jesse -Original Message- From: Young, Wayne [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:26 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Is struts.jar in in WEB-INF\lib? (you answered all of Maya's questions except that one) Wayne [EMAIL PROTECTED] -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 7:11 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Ana - here's the soruce of the jsp that's getting the errors. Anything look wrong? %@ page language="java" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % %@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" % html:html locale="true" head title bean:message key="generic.title"/ /title html:base/ /head logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application" font color="red" ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent body bgcolor="white" h2centerbean:message key="index.welcome"//center/h2 blockquote html:form action="/checkPrice" focus="isbn"/ bean:message key="index.prompt"/ html:text property="isbn" size="10" maxlength="10"/ html:submit property="submit" value="Get Price"/ /html:form /blockquote /html:html Thanks in advance, Jesse -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another OK, those are the 2 that I renamed, so I guess that's not my problem. Thanks for you help, I'll keep pluggin' away. Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:25 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Yes, you can replace the 2 names (in red color): !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueorg.apache.struts.example.ApplicationResources/param-value /init-param init-param p
RE: new problem - fixed one, now I've got another
David, It's furthur down in this message already, but here it is again, now with the /body added. %@ page language="java" %%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" % html:html locale="true"headtitlebean:message key="generic.title"//titlehtml:base//head logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application"font color="red"ERROR: Application resources not loaded -- check servlet containerlogs for error messages./font/logic:notPresent body bgcolor="white"!--html:errors/ --h2centerbean:message key="index.welcome"//center/h2 blockquotehtml:form action="/checkPrice" focus="isbn"/bean:message key="index.prompt"/html:text property="isbn" size="10" maxlength="10"/html:submit property="submit" value="Get Price"//html:form/blockquote /body/html:html Thanks for your help, Jesse -Original Message-From: David Waddell [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:51 AMTo: '[EMAIL PROTECTED]'Subject: RE: new problem - fixed one, now I've got another think this is to do with the attributes you have set in some of the struts tags in you jsp code can you send the jsp code for the file that is causing this error ? -Original Message-From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]Sent: 15 March 2001 13:48To: '[EMAIL PROTECTED]'Subject: RE: new problem - fixed one, now I've got another Maya, Here's my classpath. CLASSPATH=C:\IBMDebug\lib\dertrjrt.jar;C:\IBMVJava\eab\runtime30;C:\IBMVJava\eab\runtime20;.;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;.;.;C:\Xerces\xerces.jar;C:\Xalan\xalan.jar;C:\Xerces\xercesSamples.jar;C:\ApacheGroup\ApacheSOAP\lib\soap.jar;C:\ApacheGroup\ApacheSOAP\samples.jar;z:\unix_dobson\3rdparty\lib;z:\unix_dobson\gbapps;z:\unix_dobson\gbservlets;C:\Jars\servlet.jar;Z:\unix_dobson\gbapps\com\giantbear\soap;Z:\unix_dobson\gbapps\com\giantbear\soap\samples;Z:\unix_dobson\gbapps\com\giantbear\soap\test;c:\JavaMail\mail.jar;c:\JAF\activation.jar;C:\JDBC\jdbc2_0-stdext.jar;C:\ApacheGroup\Ant\lib\ant.jar;C:\ApacheGroup\Ant\lib\jaxp.jar;C:\ApacheGroup\Ant\lib\parser.jar CP is used along with CLASSPATH when I compile. CP=C:\ApacheGroup\Tomcat\lib\jaxp.jar;C:\ApacheGroup\Tomcat\lib\parser.jar;C:\jdk\lib\tools.jar;C:\ApacheGroup\Struts\\lib\struts.jar Yes, I can get the struts-example to run without a problem. I have a bunch of struts.jar's, but they're all the same, and there's only one under my 'my-example' directory. Thanks again for your time and ideas, Jesse -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:43 AMTo: [EMAIL PROTECTED]Subject: Re: new problem - fixed one, now I've got anotherCheck how many struts.jar files you have. Did you try EXAMPLE? What is your CLASSPATH? Jesse Vitrone wrote: The error says this:javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null Wouldn't that imply that there should be a BEAN class in my struts.jar?If not, where is it trying to find it?Thanks again, Jesse -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:30 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Yes, my struts.jar is in my WEB-INF\lib dir. Thanks though, Jesse -Original Message- From: Young, Wayne [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:26 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Is struts.jar in in WEB-INF\lib? (you answered all of Maya's questions except that one) Wayne [EMAIL PROTECTED] -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 7:11 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Ana - here's the soruce of the jsp that's getting the errors. Anything look wrong? %@ page language="java" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib uri="/WEB-INF
RE: new problem - fixed one, now I've got another
Title: RE: new problem - fixed one, now I've got another Bingo! I don't think I would've ever seen that! But the errors keep on coming ;) javax.servlet.ServletException: org.apache.struts.util.PropertyMessageResources at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_8._jspService(_0002findex_0002ejspindex_jsp_8.java:350) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Once again, I would like to thank everyone for helping me out with this stuff. Thanks, Jesse -Original Message- From: Jean-Noël Ribette [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 10:04 AM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Hum... I think you shoud have html:form action=... focus=... and not html:form action=... focus=.../. (no / at the end) - Original Message - From: Jesse Vitrone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 1:52 PM Subject: RE: new problem - fixed one, now I've got another David, It's furthur down in this message already, but here it is again, now with the /body added. %@ page language=java % %@ taglib uri=/WEB-INF/struts-bean.tld prefix=bean % %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html:html locale=true head title bean:message key=generic.title/ /title html:base/ /head logic:notPresent name=org.apache.struts.action.MESSAGE scope=application font color=red ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent body bgcolor=white !-- html:errors/ -- h2centerbean:message key=index.welcome//center/h2 blockquote html:form action=/checkPrice focus=isbn/ bean:message key=index.prompt/ html:text property=isbn size=10 maxlength=10/ html:submit property=submit value=Get Price/ /html:form /blockquote /body /html:html Thanks for your help, Jesse -Original Message- From: David Waddell [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:51 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another think this is to do with the attributes you have set in some of the struts tags in you jsp code can you send the jsp code for the file that is causing this error ? -Original Message- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: 15 March 2001 13:48 To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Maya, Here's my classpath. CLASSPATH=C:\IBMDebug\lib\dertrjrt.jar;C:\IBMVJava\eab\runtime30;C:\IBMVJava \eab\runtime20;.;C:\SQLLIB\java\db2java.zip; C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;.;.;C:\Xerces\xerces.jar; C:\Xalan\xalan.jar;C:\Xerces\xercesSamples.j ar;C:\ApacheGroup\ApacheSOAP\lib\soap.jar;C:\ApacheGroup\ApacheSOAP\samples. jar;z:\unix_dobson\3rdparty\lib;z:\unix_dobs on\gbapps;z:\unix_dobson\gbservlets;C:\Jars\servlet.jar;Z:\unix_dobson\gbapp s\com\giantbear\soap;Z:\unix_dobson\gbapps\c om\giantbear\soap\samples;Z:\unix_dobson\gbapps\com\giantbear\soap\test;c:\J avaMail\mail.jar;c:\JAF\activation.jar;C:\JD BC\jdbc2_0-stdext.jar;C:\ApacheGroup\Ant\lib\ant.jar;C:\ApacheGroup\Ant\lib\ jaxp.jar;C:\ApacheGroup\Ant\lib\parser.jar CP is used along with CLASSPATH when I compile. CP=C:\ApacheGroup\Tomcat\lib\jaxp.jar;C:\ApacheGroup\Tomcat\lib\parser.jar;C :\jdk\lib\tools.jar;C:\ApacheGroup\Struts\\lib\struts.jar Yes, I can get the struts-example to run without a problem. I have a bunch of struts.jar's, but they're all the same, and there's only one under my 'my-example' directory. Thanks again for your time and ideas, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8
RE: new problem - fixed one, now I've got another
Maya et al: Changing the html:form ... tag fixed that other problem. And my next problem, the "javax.servlet.ServletException: org.apache.struts.util.PropertyMessageResources" went away when I got rid of my C:\ApacheGroup\Struts\lib\struts.jar Why aren't I allowed to have the above file?! How am I supposed to compile if I dont' have struts.jar somewhere in my classpath? CP is only there at compile time, it's not there at run-time, so I didn't think it would be an issue. Thanks to all for your help - you guys and gals rule!!! Jesse -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:58 AMTo: [EMAIL PROTECTED]Subject: Re: new problem - fixed one, now I've got anotherTake out from CP and CLASSPATH marked with red!!! And remove C:\ApacheGroup\Struts\\lib\struts.jar file. struts.jar file must be ONLY under webapps/WEB-INF/lib for each yours application !!! Jesse Vitrone wrote: Maya, Here's my classpath.CLASSPATH=C:\IBMDebug\lib\dertrjrt.jar;C:\IBMVJava\eab\runtime30;C:\IBMVJava\eab\runtime20;.;C:\SQLLIB\java\db2java.zip; C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;.;.;C:\Xerces\xerces.jar;C:\Xalan\xalan.jar;C:\Xerces\xercesSamples.j ar;C:\ApacheGroup\ApacheSOAP\lib\soap.jar;C:\ApacheGroup\ApacheSOAP\samples.jar;z:\unix_dobson\3rdparty\lib;z:\unix_dobs on\gbapps;z:\unix_dobson\gbservlets;C:\Jars\servlet.jar;Z:\unix_dobson\gbapps\com\giantbear\soap;Z:\unix_dobson\gbapps\c om\giantbear\soap\samples;Z:\unix_dobson\gbapps\com\giantbear\soap\test;c:\JavaMail\mail.jar;c:\JAF\activation.jar;C:\JD BC\jdbc2_0-stdext.jar;C:\ApacheGroup\Ant\lib\ant.jar;C:\ApacheGroup\Ant\lib\jaxp.jar;C:\ApacheGroup\Ant\lib\parser.jar CP is used along with CLASSPATH when I compile.CP=C:\ApacheGroup\Tomcat\lib\jaxp.jar;C:\ApacheGroup\Tomcat\lib\parser.jar;C:\jdk\lib\tools.jar;C:\ApacheGroup\Struts\\lib\struts.jarYes, I can get the struts-example to run without a problem.I have a bunch of struts.jar's, but they're all the same, and there's only one under my 'my-example' directory.Thanks again for your time and ideas, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:43 AM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Check how many struts.jar files you have. Did you try EXAMPLE? What is your CLASSPATH? Jesse Vitrone wrote: The error says this:javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null Wouldn't that imply that there should be a BEAN class in my struts.jar?If not, where is it trying to find it?Thanks again, Jesse -Original Message----- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:30 AM To: '[EMAIL PROTECTED]' Cc: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got anotherYes, my struts.jar is in my WEB-INF\lib dir. Thanks though, Jesse -Original Message- From: Young, Wayne [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 8:26 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Is struts.jar in in WEB-INF\lib? (you answered all of Maya's questions except that one) Wayne [EMAIL PROTECTED] -Original Message----- From: Jesse Vitrone [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 7:11 AM To: '[EMAIL PROTECTED]' Subject: RE: new problem - fixed one, now I've got another Ana - here's the soruce of the jsp that's getting the errors. Anything look wrong? %@ page language="java" % %@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" % %@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" % %@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" % html:html locale="true" head title bean:message key="generic.title"/ /title html:base/ /head logic:notPresent name="org.apache.struts.action.MESSAGE" scope="application" font color="red" ERROR: Application resources not loaded -- check servlet container logs for error messages. /font /logic:notPresent body bgcolor="white" h2centerbean:message key="index.welcome"//center/h2 blockquote html:for
RE: new problem - fixed one, now I've got another
I thought it worked like this: struts-configform-beansform-bean name="priceForm"type="com.giantbear.struts.BNPriceForm"//form-beans action-mappingsaction path="/checkPrice"type="com.giantbear.struts.BNPriceAction"name="priceForm"scope="request"validate="false"forward name="results" path="/results.jsp"//action/action-mappings /struts-config My index.jsp has this: html:form action="/checkPrice" focus="isbn"/bean:message key="index.prompt"/html:text property="isbn" size="10" maxlength="10"/html:submit property="submit" value="Get Price"//html:form Because of the config, doesn't it call BNPriceForm, then BNPriceAction? BNPriceForm does the validation, and BNPriceAction gets the value, creates / sets / adds to the session my BNBook bean, and then moves on to the next page. The next page, then uses that bean to display the info. Am I thinking of that wrong? If I add class="com.giantbear.struts.BNBook" to my html:form, what does that get me? I think I'm a little confused on how things work. Any help clearing things up is greatly appriciated. Thanks, Jesse -Original Message-From: David Waddell [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 9:12 AMTo: '[EMAIL PROTECTED]'Subject: RE: new problem - fixed one, now I've got another html:form action="/checkPrice" focus="isbn"/bean:message key="index.prompt"/html:text property="isbn" size="10" maxlength="10"/html:submit property="submit" value="Get Price"//html:form [David Waddell] shouldn't you specify a bean in the form tag ? the html:text tag is trying to read a property called isbn from a bean, but you haven't supplied one for example html:form action="/checkPrice" name="myItem" class="com.myco.catalogue.Item" where the class would be one you have created ( and is the class of the form bean associated with the action you're submitting to) -Original Message-From: David Waddell [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:51 AMTo: '[EMAIL PROTECTED]'Subject: RE: new problem - fixed one, now I've got another think this is to do with the attributes you have set in some of the struts tags in you jsp code can you send the jsp code for the file that is causing this error ? -Original Message-From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]Sent: 15 March 2001 13:48To: '[EMAIL PROTECTED]'Subject: RE: new problem - fixed one, now I've got another Maya, Here's my classpath. CLASSPATH=C:\IBMDebug\lib\dertrjrt.jar;C:\IBMVJava\eab\runtime30;C:\IBMVJava\eab\runtime20;.;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\SQLLIB\java\sqlj.zip;.;.;C:\Xerces\xerces.jar;C:\Xalan\xalan.jar;C:\Xerces\xercesSamples.jar;C:\ApacheGroup\ApacheSOAP\lib\soap.jar;C:\ApacheGroup\ApacheSOAP\samples.jar;z:\unix_dobson\3rdparty\lib;z:\unix_dobson\gbapps;z:\unix_dobson\gbservlets;C:\Jars\servlet.jar;Z:\unix_dobson\gbapps\com\giantbear\soap;Z:\unix_dobson\gbapps\com\giantbear\soap\samples;Z:\unix_dobson\gbapps\com\giantbear\soap\test;c:\JavaMail\mail.jar;c:\JAF\activation.jar;C:\JDBC\jdbc2_0-stdext.jar;C:\ApacheGroup\Ant\lib\ant.jar;C:\ApacheGroup\Ant\lib\jaxp.jar;C:\ApacheGroup\Ant\lib\parser.jar CP is used along with CLASSPATH when I compile. CP=C:\ApacheGroup\Tomcat\lib\jaxp.jar;C:\ApacheGroup\Tomcat\lib\parser.jar;C:\jdk\lib\tools.jar;C:\ApacheGroup\Struts\\lib\struts.jar Yes, I can get the struts-example to run without a problem. I have a bunch of struts.jar's, but they're all the same, and there's only one under my 'my-example' directory. Thanks again for your time and ideas, Jesse -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 8:43 AMTo: [EMAIL PROTECTED]Subject: Re: new problem - fixed one, now I've got anotherCheck how many struts.jar files you have. Did you try EXAMPLE? What is your CLASSPATH? Jesse Vitrone wrote: The error says this:javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null Wouldn't that imply that there should be a BEAN class in my struts.jar?If not, where is it trying to find it?Thanks again, Jesse -Origina
newbie question
Title: newbie question I'm new to struts and I'm trying to create a little sample app, but I'm getting this error when I try to go my index.jsp javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) What does this mean? I would think that it means that it can't find the properties file, but I've got this in my xml: servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueBNPriceResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/my-example-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet BNPriceResources is in my .../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath. Any help would be greatly appreciated. Thanks, Jesse
RE: newbie question
Title: newbie question I took WEB-INF classes out of my classpath, as well as struts.jar, and restarted Apache and Tomcat, but I still get the same error. It's a problem if struts.jar is in my classpath? How am I expected to compile? Do I need to have my classes and properties in a package? Right now, I didn't put anything in a package, they're just in my classes folder. Thanks, Jesse -Original Message-From: Deadman, Hal [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14, 2001 11:20 AMTo: [EMAIL PROTECTED]Subject: RE: newbie question BNPriceResources is in my .../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath. Don't put WEB-INF/classes in your classpath and don't put struts.jar in your classpath. Any jarfiles in WEB-INF/lib and the WEB-INF/classes directory get added to your webapps classpath. Having them in atheclasspath for the appserver will cause problems. -Original Message-From: Jesse Vitrone [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14, 2001 10:52 AMTo: Struts User Mailing List (E-mail)Subject: newbie question I'm new to struts and I'm trying to create a little sample app, but I'm getting this error when I try to go my index.jsp javax.servlet.ServletException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) What does this mean? I would think that it means that it can't find the properties file, but I've got this in my xml: servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueBNPriceResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/my-example-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param load-on-startup1/load-on-startup /servlet BNPriceResources is in my .../WEB-INF/classes folder and I've got .../WEB-INF/classes in my classpath. Any help would be greatly appreciated. Thanks, Jesse
new problem - fixed one, now I've got another
Title: new problem - fixed one, now I've got another OK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it starts, I get this error when I try to load my first page. javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Does this look familiar to anyone? Thanks in advance, Jesse
newbie problem - fixed one, now there's more
Title: newbie problem - fixed one, now there's more I sent this a few hours ago, but never saw it, so I'm sending again. OK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it starts, I get this error when I try to load my first page. javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Does this look familiar to anyone? Thanks in advance, JesseOK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it starts, I get this error when I try to load my first page. javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Does this look familiar to anyone? Thanks in advance, Jesse
RE: new problem - fixed one, now I've got another
Good idea, but it didn't help, I still got the same directory. Thanks anyway, Jesse -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14, 2001 3:43 PMTo: [EMAIL PROTECTED]Subject: Re: new problem - fixed one, now I've got anotherTry to stop Tomcat. Remove everything under tomcat/work directory and startup Tomcat again. Jesse Vitrone wrote: OK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it starts, I get this error when I try to load my first page. javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Does this look familiar to anyone? Thanks in advance, Jesse
RE: new problem - fixed one, now I've got another
OK, those are the 2 that I renamed, so I guess that's not my problem. Thanks for you help, I'll keep pluggin' away. Jesse -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 14, 2001 5:25 PMTo: [EMAIL PROTECTED]Subject: Re: new problem - fixed one, now I've got anotherYes, you can replace the 2 names (in red color): !-- Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-valueorg.apache.struts.example.ApplicationResources/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value Jesse Vitrone wrote: That's exacly the setup that I have :)*.tld and my web and config xml files are in my_app/WEB-INFand my 2 jsp's are under my_app/http://localhost/my_app/index.jsp is what's giving me that error.I have Apache with Tomcat, so the :8080 isn't needed.Any other ideas?The config xml and resource properties file can be named what ever I want, right? As long as I refer to them with the right name in my web.xml?Thanks again, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Check a location of all struts-*tld files. They have to be under your_app/WEB-INF (check with your web.xml). struts.jar file has to be under your_app/WEB-INF/lib. Put your first.jsp file under your_app directory and try http://localhost:8080/your_app/first.jsp Jesse Vitrone wrote: Good idea, but it didn't help, I still got the same directory.Thanks anyway, Jesse -Original Message- From: Maya Muchnik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 3:43 PM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got anotherTry to stop Tomcat. Remove everything under tomcat/work directory and startup Tomcat again. Jesse Vitrone wrote: OK, I fixed the other properties file problem, it turned out that I had a syntax error in my web.xml and I didn't see Tomcat barf when it loaded. Now that I've fixed that, and Tomcat doesn't give any error when it starts, I get this error when I try to load my first page. javax.servlet.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at _0002findex_0002ejspindex_jsp_1._jspService(_0002findex_0002ejspindex_jsp_1.java:315) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Ajp13ConnectionHandler.java:160) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498) at java.lang.Thread.run(Thread.java:484) Does this look familiar to anyone? Thanks in advance, Jesse