How to use the LinkTag?
Hi, I've a problem with the LinkTag. I uesed it with the the "page" attribute and with the "forward" attribute and it worked. But how can I use the "name" and the "property" attributes ? Where can I find any examples for the LinkTag ? Thx hunkpapa
Re: can other servlet have reload function
I think what I need to do. Do not bother. Maya Muchnik wrote: Hi, I would like to have a business servlet (similar as database servlet in struts-example) to reload its configuration files. Is it possible? What minimum I need to implement? Can I use struts-config.xml file to add some action as: actionpath="/admin/reloadLocal" type="packageName.ReloadAction"/ Thanks in advance. Maya
Re: Unable to open taglibrary /WEB-INF/tlds/struts-bean.tld : null
We are using javacvs for Unix. It is GUI similar Wincvs, you can select "binary file" option. Damien Joldersma wrote: hahahah isn't that just the way these really annoying problems are? After working on this problem for like 2 days, and finally getting frustrated enough to write a letter, I solved it about 20 min after I wrote the letter. So just incase anyone else out there runs in to this problem be advised: "cvs add -kb" is WAY cooler for binary files than just "cvs add"! The problem was that the struts.jar file was checked into cvs on a linux box with out the -kb flag, then checked out with wincvs on the windows box, thus windows replaced all the newlines with carragie returns/line feed garbage and corrupted the file. So! Be warned, becareful when putting binary files into CVS! -Damien Joldersma -Original Message- From: Damien Joldersma [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 14, 2001 3:58 PM To: [EMAIL PROTECTED] Subject: Unable to open taglibrary /WEB-INF/tlds/struts-bean.tld : null Hello, We just started writing an application with tomcat and struts. Our developers are developing on both windows and linux. We're running into a problem on the windows side of things with the taglibrary jazz. The problem is namely that tomcat is upset and is throwing an exception when we make a call to loading the taglib: %@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean" % This line throws the following exception: org.apache.jasper.compiler.CompileException: path snipped/globals.jsp(5,0) Unable to open taglibrary /WEB-INF/tlds/struts-bean.tld : null at org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve ntListener.java, Compiled Code) at org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList ener.java:116) at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java, Compiled Code) at org.apache.jasper.compiler.Parser.parse(Parser.java, Compiled Code) at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) at org.apache.jasper.compiler.Compiler.compile(Compiler.java, Compiled Code) at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe rvlet.java:152) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja va:164) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java, Compiled Code) 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:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java:210) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java:479) We are using tomcat 3.2 and Struts 1.0. The same code and war file work fine under linux. It looks like there is some problem with the windows configuration. I've gone over the web.xml and have been unable to locate any problems (obviously!). Here is the relavent bit from web.xml web-app servlet servelt-mapping welcome-file-list taglib taglib-uri/WEB-INF/tlds/struts-bean.tld/taglib-uri taglib-location/WEB-INF/tlds/struts-bean.tld/taglib-location /taglib /web-app If I move the file out of the way, the error changes properly to one where the system cannot find the file specified, so I know it's finding the file. I thought it may have been like a case where newline/carrage return corruption and replaced it with a fresh tld from the struts zip file distribution, no luck. Does anyone know where the error is being thrown? Where can I track down what error is supposed to being thrown? Has anyone run into a null error while trying to open a taglib? Thanks in advance for any help! -Damien Joldersma
RE: How to use the LinkTag?
FYI, this does work. I use this in a few pages. Wayne [EMAIL PROTECTED] -Original Message- From: Jean-Nol Ribette [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 5:39 AM To: [EMAIL PROTECTED] Subject: Re: How to use the LinkTag? Looking at the LingTag source code, the "name" and "property" attributes can be used to add query parameters to the link. "name" and "property" should give access to a map whose keys will be the parameter names and values the parameter values. Exemple: if you have in a jsp: % // this could be in the perform method of an action. Hashtable hastable = new Hashtable(); hashtable.put("attribute1", "value1"); hahstable.put("attribute2", "value2"); session.putAttribute("parameters", hashtable); % ... html:link href="page.jsp" name="parameters" scope="session" ... you should get something like a href="page.jsp?attribute1=value1attribute2=value2" Jean-Noel - Original Message - From: hunkpapa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 9:27 AM Subject: How to use the LinkTag? Hi, I've a problem with the LinkTag. I uesed it with the the "page" attribute and with the "forward" attribute and it worked. But how can I use the "name" and the "property" attributes ? Where can I find any examples for the LinkTag ? Thx hunkpapa
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) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743) at
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) at
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 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
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.ServletException: Cannot find bean org.apache.struts.taglib.html.BEAN in scope null at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)
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 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
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/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
Re: new problem - fixed one, now I've got another
Take 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 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"> h2>center>bean: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-name>action/servlet-name> servlet-class>org.apache.struts.action.ActionServlet/servlet-class> init-param> param-name>application/param-name> param-value>org.apache.struts.example.ApplicationResources/param-value> /init-param> init-param> param-name>config/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
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: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] 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] 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] 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
RE: new problem - fixed one, now I've got another
Good eye Jean-Nol!!! Wayne [EMAIL PROTECTED] -Original Message- From: Jean-Nol Ribette [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 9: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: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] 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] 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] 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
cannot load servlet name action
Hi everyone, Sorry but i'm a kind of rookie newbie I have got this message when i start tomcat (actually i have jboss_with_tomcat 3.2b7): cannot load servlet name: action. I have try evrything and i'm going crazy... Anyone can help?? Thank u Belou
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
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:form action="/checkPrice" focus="isbn"/ bean:message key="index.prompt"/ html:text property="isbn" size="10"
Re: new problem - fixed one, now I've got another
You can keep struts.jar in CPat compiler time, not run-time. But point to your_app/WEB-INF/lib dir. Jesse Vitrone wrote: 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 AM To: [EMAIL PROTECTED] Subject: Re: new problem - fixed one, now I've got another Take 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 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"> h2>center>bean: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,
Future of Enumerate tag
Is the org.apache.struts.taglib.Enumerate tag going to go away with the other 0.5 tags ? We currently have data structures that use the enumerate interface. Is there any chance this could be migrated into the struts 1.0 taglib ? -Rob
reload configuration and transaction
Hi, If you remember we can use /admin/reload action to reload all configuration files and beans, actions and so on. What happens if some users are doing their transactions in the same time? Is the ActionServlet is checking anything or not? Maybe a user will get an error "Server unavailable" in the middle of a transaction? Maybe "reload" option can be used only in a debug stage? Thanks a lot for your patient, Maya
Deactivate URL-rewriting in logoff action.
Logoff action usually invalidates session and sends browser to a index or welcome page, so it is not necesary to rewrite the URL. ActionServlet must have a session, so if there isn't a valid session it creates one. Question is: Is there a way to say to ActionServlet not to create a new session ? Thanks -- This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Sema Group. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. --
Re: how to use Automatic Form Validation in this case ?
I do not know an answer to your question. But a lot of examples and answers in this email archive. Try to search for "iteration" or "iterate". Here is a link: http://www.mail-archive.com/struts-user@jakarta.apache.org/ "YOUSFI, Zahi" wrote: Hi all, I have an Action that create in the request scope a javabean. the action mapping for this action is a forward to a jsp. The javabean contains a vector of string and it is used in the jsp to create a select element in a form. When the ActionForm validate method is called the javabean is not any more valid. If there are errors the controller servlet will forward control back to the jsp. The jsp will not find the javabean to display the form properly. the first idea is to put the javabean in the session scope. Some one have an other idea? thx for help, Cordialement, Zahi YOUSFI Structis (GIE Informatique Bouygues Construction) Tl : 01 30 60 41 89 - Fax : 01 30 12 11 14 [EMAIL PROTECTED]
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 -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 --
Re: ActionForm (DataObject) generator?
Kyle See jRelationalFramework at www.sourceforge.com. I find this an outstanding framework, and I've been very successful combining it with Struts. -- Tom Miller Miller Associates, Inc. [EMAIL PROTECTED] 641.469.3535 Phone 413.581.6326 FAX Kyle Robinson wrote: We are using Struts with an Oracle database as the backend. We don't really feel like handwriting 100's of java files (one for each table). Does anyone know of a good db table - java object generator? Preferably open source?ThanksKyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111
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 -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
Success with Struts
We've only got a few replies so far. Surely there must be other interesting projects using Struts ? Please let us know, thanks. -- Nick Kyle Robinson writes: Does anyone have any stories of great success with Struts? I'm trying to convince management that Struts is a good thing and applications can be developed efficiently and solidly with it. If so please email me directly as I think this may be slightly off-topic. Nick Afshartous writes: I don't think its off-topic. As a matter of fact I'm also trying to sell my management and would also like to here about success stories. If people could post to the list I'd be happy to collect the responses for inclusion in the Struts site. Suggested format for responses: Company name, URL of site using Struts Contact person (optional) Description of application using Struts Number of users plus any performance metrics Server environment: Describe Web/App server being used, and database config (DataSource ?).
Re: new problem - fixed one, now I've got another
- Original Message - From: Jesse Vitrone [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 4:15 PM Subject: RE: new problem - fixed one, now I've got another I thought it worked like this: struts-config form-beans form-bean name="priceForm" type="com.giantbear.struts.BNPriceForm"/ /form-beans action-mappings action 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? No, you're right. One more thing you need to know is that if you forward to your jsp and there is already a BNPriceForm in the context, it will be used to set the initial values of the form. If there isn't, a new one will be created for you by Struts. This is why the html:text, checkbox etc. need to be in the form field, to have access to this bean. That is why you got the error closing the tag (html:form .../ html:text .../...). The text tags didn't find the Form bean. If I add class="com.giantbear.struts.BNBook" to my html:form, what does that get me? There are no class attribute for the form tag. However there is a type attribute that I think can be used if there are no config parameters in struts-config. I think I'm a little confused on how things work. Any help clearing things up is greatly appriciated. Thanks, Jesse Jean-Noel
WebSphere problem
Hello list, I'm trying to install struts in a websphere servlet container. I have followed all the steps required figuring in the installation notes (on the jakarta site). WebSphere throws errors of parsing on struts-config.xml (during the init pass of the action servlet). Any hint ? Bernard.
Re: cannot load servlet name action
Start from beginning. Stop Tomcat - Apache. Remove old struts-example directory. Copy struts-example.war under tomcat/webapps directory. Remove tomcat/work/* files. Remove struts.jar from CLASSPATH. Remove all other struts.jar files, not under webapps/someapp/WEB-INF/lib. Startup Tomcat. You will see a lot of messages at a console. From a browser run http://localhost:8080/struts-example. Is this start successful? Marc Antoine Garrigue wrote: i have check and it is in it.The fact is that even the example dosn't work...so.. - Original Message - From: Maya Muchnik To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 2:13 PM Subject: Re: cannot load servlet name action This is ActionServlet that in struts.jar file. Do you try to start some struts example? Check where this file is. It has to be under your_web_app/WEB-INF/lib. Marc Antoine Garrigue wrote: Hi everyone,Sorry but i'm a kind of rookie newbieI have got this message when i start tomcat (actually i have jboss_with_tomcat 3.2b7): cannot load servlet name: action.I have try evrything and i'm going crazy...Anyone can help??Thank uBelou
RE: new problem - fixed one, now I've got another
On Thu, 15 Mar 2001, David Waddell wrote: 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" Recent nightly builds can deduce the bean name (and class) by using the value you specify for action ("/checkPrice") and looking it up. Have you got a form bean identified for this action in "struts-config.xml"? By the way, the bean name "org.apache.struts.taglib.html.BEAN" is where the html:form tag stores the current form bean (in page scope) so that the inner tags can find it. Craig
Re: how to use Automatic Form Validation in this case ?
On Thu, 15 Mar 2001, YOUSFI, Zahi wrote: Hi all, I have an Action that create in the request scope a javabean. the action mapping for this action is a forward to a jsp. The javabean contains a vector of string and it is used in the jsp to create a select element in a form. When the ActionForm validate method is called the javabean is not any more valid. If there are errors the controller servlet will forward control back to the jsp. The jsp will not find the javabean to display the form properly. the first idea is to put the javabean in the session scope. That's a good idea, if the set of options are specific to this user. If the set of options for this select box are global to everyone, you might want to create a servlet context attribute (in JSP terms, an "application scope bean") when the application starts up. Then you would not have to look up the options every time. Some one have an other idea? thx for help, Cordialement, Zahi YOUSFI Craig
Re: Future of Enumerate tag
On Thu, 15 Mar 2001, Rob Leland wrote: Is the org.apache.struts.taglib.Enumerate tag going to go away with the other 0.5 tags ? We currently have data structures that use the enumerate interface. Is there any chance this could be migrated into the struts 1.0 taglib ? As far as I know, the logic:iterate tag can loop over anything that the old enumerate tag can loop over. Therefore, it didn't seem necessary to have two looping tags (one a superset of the other) in 1.0. Is this not the case? -Rob Craig
Re: cannot load servlet name action
Try to find emails in our archives about JBoss and Tomcat... Maybe somebody using JBoss will email to you... Marc Antoine Garrigue wrote: the truth is i haven't a tomcat-apache but a tomcat-jboss server.so i can' t start it stand alone...I have also tryed it as a stand alone server and it works fine: i have a lot of things on my console and the application works fine...The probleme is when i use embeded tomcat with jbossThank u - Original Message - From: Maya Muchnik To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 5:52 PM Subject: Re: cannot load servlet name action Start from beginning. Stop Tomcat - Apache. Remove old struts-example directory. Copy struts-example.war under tomcat/webapps directory. Remove tomcat/work/* files. Remove struts.jar from CLASSPATH. Remove all other struts.jar files, not under webapps/someapp/WEB-INF/lib. Startup Tomcat. You will see a lot of messages at a console. From a browser run http://localhost:8080/struts-example. Is this start successful? Marc Antoine Garrigue wrote: i have check and it is in it.The fact is that even the example dosn't work...so.. - Original Message - From: Maya Muchnik To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 2:13 PM Subject: Re: cannot load servlet name action This is ActionServlet that in struts.jar file. Do you try to start some struts example? Check where this file is. It has to be under your_web_app/WEB-INF/lib. Marc Antoine Garrigue wrote: Hi everyone,Sorry but i'm a kind of rookie newbieI have got this message when i start tomcat (actually i have jboss_with_tomcat 3.2b7): cannot load servlet name: action.I have try evrything and i'm going crazy...Anyone can help??Thank uBelou
logic:equal and nesting
Here's a piece of code that I want to do. However it gives a nested tag error as the closing /logic:equal tag ends up inside the html:form.I basically want the form to do different actions based on the property "title". Anyone know of a better way of doing the same thing? logic:equal name="supplierSearchBean" property="title" scope="request" value="Contractor" html:form action="contractorSearch.do"/logic:equallogic:equal name="supplierSearchBean" property="title" scope="request" value="Supplier" html:form action="supplierSearch.do"/logic:equal Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111
Re: Deactivate URL-rewriting in logoff action.
On Thu, 15 Mar 2001, Ana Narvaez Vila wrote: Logoff action usually invalidates session and sends browser to a index or welcome page, so it is not necesary to rewrite the URL. ActionServlet must have a session, so if there isn't a valid session it creates one. Question is: Is there a way to say to ActionServlet not to create a new session ? It's not just the controller servlet that creates sessions -- JSP pages do as well, unless you tell them not to with a page directive: %@ page session="false" % However, trying to run Struts based apps completely without sessions is going to cause you some grief in the following areas: - Internationalized message lookups in the bean:message tag depend on a Locale object stored in the user's session, which indicates this user's current Locale preference. - The html:errors mechanism for displaying validation errors relies on the same thing, so you cannot use this. My advice would be to go ahead and let the sessions be created, and minimize the memory occupancy by using request scope (rather than session scope) for all your application's form beans. We're talking tens of bytes per simultaneous user for the session itself (and the associated Locale), so the memory requirements are not onerous -- even if it took 100 bytes per user, 10,000 simultaneous users is still only a megabyte. And you are pretty much certain to run into other resource limits (CPU, database, network) before you reach that many users anyway. Craig
Re: logic:equal and nesting
On Thu, 15 Mar 2001, Kyle Robinson wrote: Here's a piece of code that I want to do. However it gives a nested tag error as the closing /logic:equal tag ends up inside the html:form. I basically want the form to do different actions based on the property "title". Anyone know of a better way of doing the same thing? logic:equal name="supplierSearchBean" property="title" scope="request" value="Contractor" html:form action="contractorSearch.do" /logic:equal logic:equal name="supplierSearchBean" property="title" scope="request" value="Supplier" html:form action="supplierSearch.do" /logic:equal As the error message tells you, this is invalid nesting of tags. In order to change the destination of the submit, you will need to create some JavaScript that does so on the client side, perhaps when the submit button is presed. (If you do this, be sure you use the same form bean on all of the actions, or Struts is likely to get confused.) Alternatively, you could have the html:form tag submit to a single action, (say, "/commonSearch.do") which could then look at the title property itself and then forward to either "/contractorSearch.do" or "/supplierSearch.do" appropriately. Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111 Craig
Re: logic:equal and nesting
Do you need or not to have a statement /html:form> ? Kyle Robinson wrote: Here's a piece of code that I want to do. However it gives a nested tag error as the closing /logic:equal> tag ends up inside the html:form>. I basically want the form to do different actions based on the property "title". Anyone know of a better way of doing the same thing?logic:equal name="supplierSearchBean" property="title" scope="request" value="Contractor"> html:form action="contractorSearch.do"> /logic:equal> logic:equal name="supplierSearchBean" property="title" scope="request" value="Supplier"> html:form action="supplierSearch.do"> /logic:equal> Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111
html:select multiple=true problem
Got another problem. I have on a form a select that allows multiple selections. However, I am getting a populate error when the multiple values are stuck into my object. It is declared as an ArrayList. Anyone have a code snippet they can provide to show how this is done? Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111
Re: cannot load servlet name action
thank you very much - Original Message - From: Maya Muchnik To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 6:15 PM Subject: Re: cannot load servlet name action Try to find emails in our archives about JBoss and Tomcat... Maybe somebody using JBoss will email to you... Marc Antoine Garrigue wrote: the truth is i haven't a tomcat-apache but a tomcat-jboss server.so i can' t start it stand alone...I have also tryed it as a stand alone server and it works fine: i have a lot of things on my console and the application works fine...The probleme is when i use embeded tomcat with jbossThank u - Original Message - From: Maya Muchnik To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 5:52 PM Subject: Re: cannot load servlet name actionStart from beginning. Stop Tomcat - Apache. Remove old struts-example directory. Copy struts-example.war under tomcat/webapps directory. Remove tomcat/work/* files. Remove struts.jar from CLASSPATH. Remove all other struts.jar files, not under webapps/someapp/WEB-INF/lib. Startup Tomcat. You will see a lot of messages at a console. From a browser run http://localhost:8080/struts-example. Is this start successful? Marc Antoine Garrigue wrote: i have check and it is in it.The fact is that even the example dosn't work...so.. - Original Message - From: Maya Muchnik To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 2:13 PM Subject: Re: cannot load servlet name actionThis is ActionServlet that in struts.jar file. Do you try to start some struts example? Check where this file is. It has to be under your_web_app/WEB-INF/lib. Marc Antoine Garrigue wrote: Hi everyone,Sorry but i'm a kind of rookie newbieI have got this message when i start tomcat (actually i have jboss_with_tomcat 3.2b7): cannot load servlet name: action.I have try evrything and i'm going crazy...Anyone can help??Thank uBelou
Re: Future of Enumerate tag
As far as I know, the logic:iterate tag can loop over anything that the old enumerate tag can loop over. Is this not the case? Unless I am using the tag wrong. I looked at org.apache.struts.taglib.logic.IterateTag.java and don't find 'Enumeration' anywhere in the source code, so I assume it doesn't support 'Enumeration'. -Rob -Rob Craig
Re: logic:equal and nesting
I run into this kind of thing a lot. It's a constant reminder that the tag syntax is not a substitute for the control structures we're used to in programming languages... It's ugly, but I would probably handle this with scripting vars: % String theAction = null; % logic:equal name="supplierSearchBean" property="title" scope="request" value="Contractor"% theAction="contractorSearch.do"; % /logic:equal logic:equal name="supplierSearchBean" property="title" scope="request" value="Supplier"% theAction="contractorSearch.do"; % /logic:equal html:form action="%= theAction %" Kyle Robinson wrote: Here's a piece of code that I want to do. However it gives a nested tag error as the closing /logic:equal tag ends up inside the html:form. I basically want the form to do different actions based on the property "title". Anyone know of a better way of doing the same thing?logic:equal name="supplierSearchBean" property="title" scope="request" value="Contractor" html:form action="contractorSearch.do" /logic:equal logic:equal name="supplierSearchBean" property="title" scope="request" value="Supplier" html:form action="supplierSearch.do" /logic:equal Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111
Re: html:select multiple=true problem
Several examples are in email archives (I have remembered that). Kyle Robinson wrote: Got another problem. I have on a form a select that allows multiple selections. However, I am getting a populate error when the multiple values are stuck into my object. It is declared as an ArrayList. Anyone have a code snippet they can provide to show how this is done?Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111
RE: logic:equal and nesting
Thanks. I went with option number two. It's more correct for what I want to do. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 10:28 To: '[EMAIL PROTECTED]' Subject: Re: logic:equal and nesting On Thu, 15 Mar 2001, Kyle Robinson wrote: Here's a piece of code that I want to do. However it gives a nested tag error as the closing /logic:equal tag ends up inside the html:form. I basically want the form to do different actions based on the property "title". Anyone know of a better way of doing the same thing? logic:equal name="supplierSearchBean" property="title" scope="request" value="Contractor" html:form action="contractorSearch.do" /logic:equal logic:equal name="supplierSearchBean" property="title" scope="request" value="Supplier" html:form action="supplierSearch.do" /logic:equal As the error message tells you, this is invalid nesting of tags. In order to change the destination of the submit, you will need to create some JavaScript that does so on the client side, perhaps when the submit button is presed. (If you do this, be sure you use the same form bean on all of the actions, or Struts is likely to get confused.) Alternatively, you could have the html:form tag submit to a single action, (say, "/commonSearch.do") which could then look at the title property itself and then forward to either "/contractorSearch.do" or "/supplierSearch.do" appropriately. Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111 Craig
Re: Success with Struts
Nick, I have been using Struts to develop our companies bread and butter application on the web. Personally, I have found the product extremely sound and well thought out from a design perspective. The biggest plus is that it is standards based. We currently run Tomcat 3.2.1 but that is only for convience. We have talked about having an outside service host the application therefore standards based is a big plus for us. I hope this helps you. Mark Balster CIO Expressdata - Original Message - From: "Nick Afshartous" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 15, 2001 11:19 AM Subject: Success with Struts We've only got a few replies so far. Surely there must be other interesting projects using Struts ? Please let us know, thanks. -- Nick Kyle Robinson writes: Does anyone have any stories of great success with Struts? I'm trying to convince management that Struts is a good thing and applications can be developed efficiently and solidly with it. If so please email me directly as I think this may be slightly off-topic. Nick Afshartous writes: I don't think its off-topic. As a matter of fact I'm also trying to sell my management and would also like to here about success stories. If people could post to the list I'd be happy to collect the responses for inclusion in the Struts site. Suggested format for responses: Company name, URL of site using Struts Contact person (optional) Description of application using Struts Number of users plus any performance metrics Server environment: Describe Web/App server being used, and database config (DataSource ?).
RE: html:select multiple=true problem
I looked and now I have the code. It still won't populate. Basically all I want to do is pick a couple items from a multiple select and display the picked items on the next page. -Original Message-From: Maya Muchnik [mailto:[EMAIL PROTECTED]]Sent: Thursday, March 15, 2001 10:49To: [EMAIL PROTECTED]Subject: Re: html:select multiple="true" problemSeveral examples are in email archives (I have remembered that). Kyle Robinson wrote: Got another problem. I have on a form a select that allows multiple selections. However, I am getting a populate error when the multiple values are stuck into my object. It is declared as an ArrayList. Anyone have a code snippet they can provide to show how this is done?Kyle Robinson Systems Consultant Pangaea Systems Inc. (250) 360-0111
Re: [OT] Zip code dealer locator in Java?
Try http://members.home.com/skhandwa . Ben Soedjono Delphi Consultants LLC Nathan Eric Probst wrote: Just a quick query to those in the know...Struts users! ;-) Does anyone know of a Servlet-based zip-locator solution, preferably free/open? I need to provide nearest-store-finder functionality to a client, and would like to (for the sake of speed) pull it off the shelf. If it doesn't exist in a Java incarnation, I'll write one myself. Thanks, Nathan Probst
Struts not recognizing AddHandler .do
I don't know what's wrong. There are 2 problems that I'm having. The index.jsp loads for the struts-example application, but I get a 503 Error (Location: /struts-example/tour.do) when I try to follow the "walking tour" or the "register" link. The server is not recognizing the files with extension *.do The struts-example also gives me the error (in red font at the top of the index page) "ERROR: User database not loaded -- check servlet container logs for error messages." In reference to this, I've noticed in the servlet.log file, the following lines: Context log path="/struts-example" :database: init Context log path="/struts-example" :database: Initializing database servlet Context log path="/struts-example" :database: Loading database from '/WEB-INF/database.xml' Context log path="/struts-example" :database: Database load exception Here's how I set up struts: I've just unpacked the latest nightly download of struts (jakarta-struts-20010315.zip). I copied the struts-documentation and struts-example WAR files into the tomcat/webapps directory. I rebooted tomcat. I made the necessary adjustments to the tomcat-apache.conf file (including the new "Alias" statements and Directory and Location tags, and the "AddHandler jserv-servlet .do", just as I'm told in the INSTALL file) and saved it in the apache/conf folder. I referenced that file in the httpd.conf file at the end like this ... Include "C:\Apache\conf\tomcat-apache.conf". I also added the "index.jsp" to "DirectoryIndex index.html index.jsp" in the httpd.conf file. I added the following to the CLASSPATH set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-documentation\Web-inf\cla sses set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-documentation\Web-inf\lib \struts.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-example\Web-inf\classes set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-example\Web-inf\lib\strut s.jar And still I get the error! The application can't bring up the database, and can't display *.do files! HELP!!! Any assistance is greatly appreciated.
Re: Struts not recognizing AddHandler .do
On Thu, 15 Mar 2001, Kaleta, Philip (EDU) wrote: I don't know what's wrong. There are 2 problems that I'm having. The index.jsp loads for the struts-example application, but I get a 503 Error (Location: /struts-example/tour.do) when I try to follow the "walking tour" or the "register" link. The server is not recognizing the files with extension *.do The struts-example also gives me the error (in red font at the top of the index page) "ERROR: User database not loaded -- check servlet container logs for error messages." In reference to this, I've noticed in the servlet.log file, the following lines: Context log path="/struts-example" :database: init Context log path="/struts-example" :database: Initializing database servlet Context log path="/struts-example" :database: Loading database from '/WEB-INF/database.xml' Context log path="/struts-example" :database: Database load exception This one means something bad happened. There should also be a stack trace or some more details about what went wrong. Here's how I set up struts: I've just unpacked the latest nightly download of struts (jakarta-struts-20010315.zip). I copied the struts-documentation and struts-example WAR files into the tomcat/webapps directory. I rebooted tomcat. By the way, what version of Tomcat are you using? Tomcat 3.1 has lots of bugs and is not a suitable platform for Struts applications -- you need to use at least Tomcat 3.2. I made the necessary adjustments to the tomcat-apache.conf file (including the new "Alias" statements and Directory and Location tags, and the "AddHandler jserv-servlet .do", just as I'm told in the INSTALL file) and saved it in the apache/conf folder. I referenced that file in the httpd.conf file at the end like this ... Include "C:\Apache\conf\tomcat-apache.conf". I also added the "index.jsp" to "DirectoryIndex index.html index.jsp" in the httpd.conf file. I added the following to the CLASSPATH set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-documentation\Web-inf\cla sses set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-documentation\Web-inf\lib \struts.jar set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-example\Web-inf\classes set CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\webapps\struts-example\Web-inf\lib\strut s.jar And still I get the error! The application can't bring up the database, and can't display *.do files! You should absolutely not be doing this. The servlet container already deals with making resources from /WEB-INF/classes and /WEB-INF/lib available. HELP!!! Any assistance is greatly appreciated. Craig
integer field
Title: integer field Does anyone know how to get rid of default value of 0 from integer input field? I would like to see empty field instead of 0 inside. Any help will be appreciated . Thanks --Michael
populating a Form from a DB?
What's the process to dynamically populate a form? For example, say I click on a link w/ a URL something like: user.jsp?userid=34 How would I code the user.jsp (and/or the accompanying classes) to fill in the form in user.jsp with user# 34's data in a struts-centric way? (If there's documentation somewhere on how to do this, please let me know, thanks) Thanks, Rich Richard M. Yumul Polexis, Inc. Direct: 619-542-7209 Fax: 619-542-8675 http://www.polexis.com transforming data into knowledge
Re: integer field
There isn't any way to this because the int will always have some display value. You would need to have the field setup as a String and then convert it to an integer later. Also, you will probably want to perform validation on the field to make sure it is an integer. David --- Michael Wang [EMAIL PROTECTED] wrote: Does anyone know how to get rid of default value of 0 from integer input field? I would like to see empty field instead of 0 inside. Any help will be appreciated . Thanks --Michael __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
Re: integer field
The simplest way is to have this field as a String, and making a conversion to String / Integer at ActionForm class. Michael Wang wrote: Does anyone know how to get rid of default value of 0 from integer input field? I would like to see empty field instead of 0 inside. Any help will be appreciated . Thanks --Michael
Re: populating a Form from a DB?
I normally do something like: user.do?action=getInfouserid=34 Then based on the action, you can populate the bean with the info you want and forward it the jsp page. David --- Richard Yumul [EMAIL PROTECTED] wrote: What's the process to dynamically populate a form? For example, say I click on a link w/ a URL something like: user.jsp?userid=34 How would I code the user.jsp (and/or the accompanying classes) to fill in the form in user.jsp with user# 34's data in a struts-centric way? (If there's documentation somewhere on how to do this, please let me know, thanks) Thanks, Rich Richard M. Yumul Polexis, Inc. Direct: 619-542-7209 Fax: 619-542-8675 http://www.polexis.com transforming data into knowledge __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: [OT] Zip code dealer locator in Java?
there is also an article here that explain how to do it if you need to: http://www.webdevelopersjournal.com/articles/dealer_locator.html -Original Message- Nathan Eric Probst wrote: Just a quick query to those in the know...Struts users! ;-) Does anyone know of a Servlet-based zip-locator solution, preferably free/open? I need to provide nearest-store-finder functionality to a client, and would like to (for the sake of speed) pull it off the shelf. If it doesn't exist in a Java incarnation, I'll write one myself. Thanks, Nathan Probst
Re: integer field
On Thu, 15 Mar 2001, Michael Wang wrote: Does anyone know how to get rid of default value of 0 from integer input field? I would like to see empty field instead of 0 inside. The best way to do this is to use a String property in your ActionForm bean, rather than an int property. That way, you can initialize the visual appearance however you like (a null string will be displayed as an empty field), and the error-redisplay logic will work correctly. In your validate() method, one of the things you will want to check is whether the conversion from String to integer was OK or not. Any help will be appreciated . Thanks --Michael Craig McClanahan
Re: populating a Form from a DB?
On Thu, 15 Mar 2001, Richard Yumul wrote: What's the process to dynamically populate a form? For example, say I click on a link w/ a URL something like: user.jsp?userid=34 How would I code the user.jsp (and/or the accompanying classes) to fill in the form in user.jsp with user# 34's data in a struts-centric way? (If there's documentation somewhere on how to do this, please let me know, thanks) The Struts example application does exactly this sort of trick. On the registration.jsp page, do a View Source and look at the links in the table of subscriptions down at the bottom -- specifically the edit links. You will see that they link back to an action (/editSubscription.do) rather than directly to a page. Which subscription is being referenced is passed as query parameters. The /editSubscription action looks up the existing subscription, prepopulates the ActionForm bean, and forwards to the subscription.jsp page for display. When you submit the updated subscription, it goes to a different action (/saveSubscription) to be stored in the database. Thanks, Rich Craig McClanahan
Another newbie question
Hi, I am having troubles running the hello-world app from the struts trail map at http://developer.bluestone.com. The basic directory setup is this hello-world \WEB-INF\ lib \ classes \ helloworld hello.jsp struts-bean.tld struts.jar HelloWorldResources.p. web.xml where HelloWorldResources.p = properties (just fitting on one line) I have one jsp, hello.jsp which just uses a bean:message to display a line from the properties file. Anyway, when ran in tomcat 3.2.1, I get the error 'cannot load servlet name: action'. This corresponds to my web.xml, which is just a normal descriptor. This error does not effect this simple example, but I think it is what is stuffing up my others. Any help on the cause/remedy of this? When running a sample logon app, I get errors such as could not find ActionBean and ActionForward etc All the example apps distributed with struts work fine. Any help appreciated. Thanks, Joel.
Please help: Class loading problem using Struts 1.0b-1
Hi, I am developing a web application using Struts 1.0-b1. The application runs well on WinNT machine, however after it was moved to Windows 2000 platform, exceptions were thrown because ActionForm and Action instances can not be instantiated successfully. The following is the detail from servlet.log: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.lang.Exception.init(Exception.java, Compiled Code) at java.lang.ClassNotFoundException.init(ClassNotFoundException.java, Compiled Code) at java.net.URLClassLoader$1.run(URLClassLoader.java, Compiled Code) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java, Compiled Code) at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java, Compiled Code) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java, Compiled Code) at org.apache.struts.action.ActionServlet.processActionCreate(ActionServlet.jav a:1575) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1526) ... The version of the JVM we are using is 1.2.2. I don't understand why Struts can not load those classes, since I can instantiate the same classes from a JSP file by using Class.forName(classname). Any thought why this happen? You help is highly appreciated ! Thanks, - Guang
Re: Another newbie question
If all struts distributed examples work fine you do not need to worry. The Bluestone site can use old distribution. Take care about only struts examples. Understand how they work. JOEL VOGT wrote: Hi, I am having troubles running the hello-world app from the struts trail map at http://developer.bluestone.com. The basic directory setup is this hello-world \WEB-INF\ lib \ classes \ helloworld hello.jsp struts-bean.tld struts.jar HelloWorldResources.p. web.xml where HelloWorldResources.p = properties (just fitting on one line) I have one jsp, hello.jsp which just uses a bean:message to display a line from the properties file. Anyway, when ran in tomcat 3.2.1, I get the error 'cannot load servlet name: action'. This corresponds to my web.xml, which is just a normal descriptor. This error does not effect this simple example, but I think it is what is stuffing up my others. Any help on the cause/remedy of this? When running a sample logon app, I get errors such as could not find ActionBean and ActionForward etc All the example apps distributed with struts work fine. Any help appreciated. Thanks, Joel.
Re: Another newbie question
It's hard to tell from your message: is struts.jar in /WEB-INF/lib ? JOEL VOGT wrote: Hi, I am having troubles running the hello-world app from the struts trail map at http://developer.bluestone.com. The basic directory setup is this hello-world \WEB-INF\ lib \ classes \ helloworld hello.jsp struts-bean.tld struts.jar HelloWorldResources.p. web.xml where HelloWorldResources.p = properties (just fitting on one line) I have one jsp, hello.jsp which just uses a bean:message to display a line from the properties file. Anyway, when ran in tomcat 3.2.1, I get the error 'cannot load servlet name: action'. This corresponds to my web.xml, which is just a normal descriptor. This error does not effect this simple example, but I think it is what is stuffing up my others. Any help on the cause/remedy of this? When running a sample logon app, I get errors such as could not find ActionBean and ActionForward etc All the example apps distributed with struts work fine. Any help appreciated. Thanks, Joel.
parse exception parsing struts-config.xml
I can't get the struts-test or struts-blank to work.. I get parse exception on struts-config.xml. can anyone help? thanks.
Still wishing someone would comment on this design issue (ActionForm defaults)
Reposted from earlier as I think this is an important design issue and I never got any comments on it -- I am working wth ActionForms, one of which contains some list boxes and some checkboxes. In building my ActionForm class, I am noticing in the docs (under "Form Construction Tags") warnings like the following: WARNING: In order to correctly recognize unchecked checkboxes, the ActionForm bean associated with this form must include a statement setting the corresponding boolean property to false in the reset() method. WARNING: In order to correctly recognize cases where no selection at all is made, the ActionForm bean associated with this form must include a statement resetting the scalar property to a default value (if multiple is not set), or the array property to zero length (if multiple is set) in the reset() method. So, in my reset() method, I am putting default values for these properties, as recommended. However, I am noticing that in the "first pass" of loading a JSP page (before any Action has occured), my ActionForm bean's reset() method is not being called; only it's constructor is being called. So, the logic I put into the "reset" method, I copied into my default constructor as well. It seems to me that one of the following should happen: 1. The default constructor should call the reset() method. 2. The docs should be updated to indicate that, if you are going to put default values in your ActionForm, you better set them from your default constructor as well as from your reset() method. What I have done for each my my ActionForm beans is create a method called "setDefaults()", and I call it from within the constructor as well as from within the reset() method. It is here that I set default selections for my listboxes, checkboxes, default text for the text fields, etc. Comments? Bryan
ActionForm for multiple page forms (wizard style)
I'm doing a multi-page form (like the user's guide suggests) When the the action servlet populates the form bean, it calls reset before it calls all the getter/setter properties. Thus, I'm losing all the data from the previous page. Is the only way around this using html:hidden to put all the data from the first page on the second page form? This seems to be very inefficient. Thanks! Also, in struts-config the action mapping attribute "input" specifies what page to go to when there is a validation problem. What if the validation problem happened on a 2nd page in this multipage form. Will it go to the correct (second) form page?
Re: j_security_check form authentication controlled in WAR context?
On Thu, 15 Mar 2001, Richard Yumul wrote: Is there a way to define the authenticating class within the WAR context? I like the way SimpleRealm JDBCRealm work, automatically protecting every resource matching a regex. However if I need a custom realm, I'd really prefer to have it be deployable in the war (would work across servlet containers) not have to customize tomcat. If not, how are other people getting around this, other than putting a custom tag (or something) on every jsp page? There is no portable API in the servlet spec defining how a container should talk to the authentication realm. This was considered in the process leading up to the 2.3 (proposed final draft) spec, but we didn't have time to settle on a standardized interface :-(. Thus, you are stuck having to conform to the APIs that each container provides for this purpose (for example, in Tomcat you would build your own Realm implementation). However, your apps themselves would all be portable. TIA, Rich Craig McClanahan
j_security_check form authentication controlled in WAR context?
Is there a way to define the authenticating class within the WAR context? I like the way SimpleRealm JDBCRealm work, automatically protecting every resource matching a regex. However if I need a custom realm, I'd really prefer to have it be deployable in the war (would work across servlet containers) not have to customize tomcat. If not, how are other people getting around this, other than putting a custom tag (or something) on every jsp page? TIA, Rich Richard M. Yumul Polexis, Inc. Direct: 619-542-7209 Fax: 619-542-8675 http://www.polexis.com transforming data into knowledge
findDataSource not found
When I compile LogonAction.java - a bastardized version of the example apps LogonAction.java - I get the following. Any Ideas out there???... LogonAction.java:50: Method findDataSource() not found in class org.apache.struts.action.ActionServl et. ds = servlet.findDataSource(); ^ LogonAction.java:88: No method matching getSession() found in interface javax.servlet.http.HttpServl etRequest. HttpSession session = request.getSession(); ^ LogonAction.java:89: Method setAttribute(java.lang.String, logon.User) not found in interface javax. servlet.http.HttpSession. session.setAttribute(Constants.USER_KEY, user); ^ LogonAction.java:101: Method removeAttribute(java.lang.String) not found in interface javax.servlet. http.HttpServletRequest. request.removeAttribute(mapping.getAttribute()); ^ LogonAction.java:103: Method removeAttribute(java.lang.String) not found in interface javax.servlet. http.HttpSession. session.removeAttribute(mapping.getAttribute()); ^ 5 errors __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/
RE: WebSphere problem
Can anyone provide a stack trace? We're about to move to 3.5.3 from a working 3.5.2, so I'd appreciate a head start. As the author of the 3.5.2 instructions, I'd like to know that you changed the ActionServlet class and stored it in the servlet directory of your web app. -- dIon Gillard, Multitask Consulting Work: http://www.multitask.com.au NetRexx: http://www.multitask.com.au/NetRexx.nsf - Forwarded by dIon Gillard/Multitask Consulting/AU on 16/03/2001 01:13 PM - RE: WebSphere problem I have had the exact same problem with WebSphere App Server Advanced Edition V3.5.3!! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 15, 2001 9:31 AM To: [EMAIL PROTECTED] Subject: WebSphere problem Hello list, I'm trying to install struts in a websphere servlet container. I have followed all the steps required figuring in the installation notes (on the jakarta site). WebSphere throws errors of parsing on struts-config.xml (during the init pass of the action servlet). Any hint ? Bernard. Previous Document (Embe (Embe Next Document dded dded image image moved moved to to file: file: pic00 pic18 041.p 467.p cx) cx) Return to View (Embedded image moved to file: pic06334.pcx) pic00041.pcx pic18467.pcx pic06334.pcx
Re: newbie question
hi most probably u need a ApplicationResources.properties file in the WEB-INF/classes/mypackage-dir directory.. Try pasting the ApplicationResources.properties file in the directory and restart.. I think the problem should go away.. Hope this helps Anand On Wed, Mar 14, 2001 at 10:51:34AM -0500, Jesse Vitrone wrote: 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(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) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79 7) 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: Auto-generating form classes from xml file?
Generating form beans from an XML definition is something that is on the Struts 1.1 TODO list, and for which I have signed up. I'm working on it, but progress has been very slow over the last month or so. (The work that I get paid for, and some work for Struts 1.0, are taking precedence.) I would be interested, though, in hearing what features you would like to see in such a tool. -- Martin Cooper - Original Message - From: "Mindaugas Idzelis" [EMAIL PROTECTED] To: "struts" [EMAIL PROTECTED] Sent: Wednesday, March 14, 2001 10:39 AM Subject: Auto-generating form classes from xml file? Does anyone know of a way to automatically generate java source for forms from the form jsp file, or from the struts-config.xml file (like the documentation aludes to?) This would be most helpful.
Re: actionform reset()
The reset() method is called immediately before the bean is populated with the parameters from a request. For multi-page forms, you typically do not want your reset() method to zap everything. In this case, you will most likely use a hidden field to identify the page being submitted, and base your reset() implementation on the value of that hidden field. Hope this helps. -- Martin Cooper - Original Message - From: "Sean Giles" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, March 09, 2001 12:43 PM Subject: actionform reset() I'm very confused by the behavior of the reset() method. We populate a page from an action form with request scope which works fine, however unless a property is actually used on the form it does not get repopulated after the reset() method. for example: If I don't use html:text property="address1"/ or html:hidden property="address"/ the reset() sets this property to null it will not be re-populated. System.out shows the property has a value right before the reset method? Is this by design or am I doing something in correctly? If it is by design how are multi-page forms supposed to be handled that only display a subset of an actionform object? Thanks Sean