RE: Form with a Form
I have a suggestion. You can add a HIDDEN field, write a java script on click of multiple buttons Like ADD, DELETE, EDIT, RENAME buttons. What the java script will do is update HIDDEN variable and submit. I have not come across form within a form in HTML. Regards Ajay Kalidindi -Original Message- From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] Sent: Monday, December 08, 2003 10:17 AM To: [EMAIL PROTECTED] Subject: Form with a Form Hi, Can we define a form within a form...if so can you guide me . Actually in my jsp I wanted to perform two different action with respect to button pressed.so If I define global form I can only submit the global action defined in that form but I wanted to submit different action with respect to different button clicked so in that case I'm going for two different formplz set me if I'm wrong.. possible pls provide me how can I achieve the same. Tnx in advance, Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
connection pooling issue
Hi The issue is: 1. I restart tomcat, everything works good with tomcat, struts, connection pool ... I monitered the catalina.out log and all looks good connecting/releasing etc. 2. After few hours I get the following error : java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream I have already tried changing autocommit to true in struts-config.xml. Any suggestions are welcome. Env Info : Redhat 9, Tomcat 4.1.29, struts 1.1, jdk 1.3 ... Regards Ajay Kalidindi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Re: connection pooling issue
Hi Vic, data-sources data-source key=contact set-property property=autoCommit value=true/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=com.mysql.jdbc.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=2/ set-property property=password value=password/ set-property property=url value=jdbc:mysql://localhost:3306/db/ set-property property=user value=user/ /data-source /data-sources above section in struts-config.xml is provided as part of struts to enable DB connection pooling. Also it works perfect for few hours. I forgot to mention my database, it is mysql. Regards Ajay Kalidindi -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 3:04 PM To: [EMAIL PROTECTED] Subject: OT:Re: connection pooling issue This is not a Struts question IMO. here is a FAQ for Wiki: #1. No one should use connection pool, if you want for some (I can't think of a good one myself) do low level JDBC, you should use data source. You can look up the data source via JNDI. Things like (low level) RowSet take a data source as argument... don't worry about connections, you will mess them up, unless you a double nested finnaly block. #2. If you use Struts... you should also use a DAO, such as iBatis.com. So use a data source (not connections) via JNDI and... don't use data source, use a DAO. .V Ajay Kalidindi wrote: Hi The issue is: 1. I restart tomcat, everything works good with tomcat, struts, connection pool ... I monitered the catalina.out log and all looks good connecting/releasing etc. 2. After few hours I get the following error : java.sql.SQLException: Communication link failure: java.io.IOException, underlying cause: Unexpected end of input stream I have already tried changing autocommit to true in struts-config.xml. Any suggestions are welcome. Env Info : Redhat 9, Tomcat 4.1.29, struts 1.1, jdk 1.3 ... Regards Ajay Kalidindi - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4.1.29 Struts
Hi Mukund, To start a new project you can use the struts-blank.war. Move the above war file to myproject.war and put it in tomcat/webapps directory From your browser point to http://yourhost:8080/myproject I assume, you have not changed anything in tomcat/conf/server.xml (default is auto deploy wars). Hope this helps Regards Ajay Kalidindi -Original Message- From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 4:06 PM To: 'Struts Users Mailing List' Subject: Tomcat 4.1.29 Struts Is anyone working with Struts on Tomcat 4.1.29? If yes, can you provide me some inputs on the installation. I'm getting org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE, when executing bean:message key=index.title/ in the jsp. Thanks Mukund -Original Message- From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 9:00 AM To: 'Struts Users Mailing List' Subject: RE: org.apache.struts.action.MESSAGE My attachment got denied. I'm enclosing it here. Thanks - Mukund - struts-config.xml ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC http://jakarta.apache.org/struts/dtds/struts-config_1.0.dtd; struts-config message-resources parameter=ApplicationResources key=org.apache.struts.action.MESSAGE null=false / /struts-config - web.xml ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app SYSTEM http://java.sun.com/dtd/web-app_2_3.dtd; web-app servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameapplication/param-name param-value/param-value /init-param init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param init-param param-namedebug/param-name param-value2/param-value /init-param init-param param-namedetail/param-name param-value2/param-value /init-param init-param param-namevalidate/param-name param-valuetrue/param-value /init-param init-param param-nameapplication/param-name param-value/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern/do/*/url-pattern /servlet-mapping servlet-mapping servlet-nameinvoker/servlet-name url-pattern/servlet/*/url-pattern /servlet-mapping !-- The Welcome File List -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileindex.html/welcome-file /welcome-file-list !-- Struts Tag Library Descriptor -- taglib taglib-uri /WEB-INF/struts-bean.tld /taglib-uri taglib-location /WEB-INF/struts-bean.tld /taglib-location /taglib taglib taglib-uri /WEB-INF/struts-html.tld /taglib-uri taglib-location /WEB-INF/struts-html.tld /taglib-location /taglib taglib taglib-uri /WEB-INF/struts-logic.tld /taglib-uri taglib-location /WEB-INF/struts-logic.tld /taglib-location /taglib taglib taglib-uri /WEB-INF/struts-template.tld /taglib-uri taglib-location /WEB-INF/struts-template.tld /taglib-location /taglib /web-app - -Original Message- From: Mukund Ramadoss [mailto:[EMAIL PROTECTED] Sent: Thursday, December 04, 2003 8:55 AM To: 'Struts Users Mailing List' Subject: org.apache.struts.action.MESSAGE Hi, I'm setting up Struts to work with Tomcat 4.1.29. When I tried to run a jsp (BookView.jsp) from a tutorial, I get the following exception : org.apache.jasper.JasperException: Cannot find message resources under key org.apache.struts.action.MESSAGE at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) I'm attaching struts-config.xml, web.xml, and BookView.jsp for your reference. I've tried copying ApplicationResources.properties from classes to WEB-INF folder. But the result is same. Any suggestions? Thanks Mukund - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
action-mappings, action not working
Hi I am using : Redhat 9 Apache 2.0.48 Tomcat 4.1.29 Struts 1.1 For some reason I am not getting any errors and control is not getting forwarded to respective success forward from DummyAction. Any help is appreciated. Regards Ajay Kalidindi config and source follows: struts-config.xml entry: action-mappings action path=/Menutype=com.kalidindis.home.DummyAction forward name=success path=/common/menu.jsp/ /action /action-mappings DummyAction.java : package com.kalidindis.home; import java.io.IOException; import javax.servlet.RequestDispatcher; import javax.servlet.*; import org.apache.struts.action.*; import org.apache.struts.util.*; /** * Implementation of strongAction/strong that lists contacts of Ajay Kalidindi. */ public final class DummyAction extends Action { public ActionForward perform(ActionServlet servlet, ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { return (mapping.findForward(success)); } }
MySql NoClassDefFoundError
Hi below are the 4 entries that I tried seperately and every time I got : java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource What I am using? Redhat 9 Apache 2.0.48 Tomcat 4.1.29 mysql 3.23.58 Please help me thru this. Regards Ajay Kalidindi struts-config.xml segments that I tried follow: struts-config data-sources data-source type=org.apache.commons.dbcp.BasicDataSource set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=org.gjt.mm.mysql.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config struts-config data-sources data-source type=org.apache.commons.dbcp.BasicDataSource set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=com.mysql.jdbc.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config struts-config data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=org.gjt.mm.mysql.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config struts-config data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=com.mysql.jdbc.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config
RE: MySql NoClassDefFoundError
Hi Frank, I downloaded the legacy.jar and there is no problem now. Tomorrow night I am going to test the connectivity itself. Thanks Regards Ajay Kalidindi -Original Message- From: Otto, Frank [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 2:20 AM To: 'Struts Users Mailing List' Subject: AW: MySql NoClassDefFoundError Hi, You need the struts-legacy.jar. Regards, Frank -Ursprüngliche Nachricht- Von: Ajay Kalidindi [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 12. November 2003 11:16 An: [EMAIL PROTECTED] Betreff: MySql NoClassDefFoundError Hi below are the 4 entries that I tried seperately and every time I got : java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource What I am using? Redhat 9 Apache 2.0.48 Tomcat 4.1.29 mysql 3.23.58 Please help me thru this. Regards Ajay Kalidindi struts-config.xml segments that I tried follow: struts-config data-sources data-source type=org.apache.commons.dbcp.BasicDataSource set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=org.gjt.mm.mysql.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config struts-config data-sources data-source type=org.apache.commons.dbcp.BasicDataSource set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=com.mysql.jdbc.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config struts-config data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=org.gjt.mm.mysql.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config struts-config data-sources data-source set-property property=autoCommit value=false/ set-property property=description value=Mysql Contacts/ set-property property=driverClass value=com.mysql.jdbc.Driver/ set-property property=maxCount value=5/ set-property property=minCount value=1/ set-property property=password value=sel123/ set-property property=url value=jdbc:mysql://localhost:3306/contacts/ set-property property=user value=seluser/ /data-source /data-sources /struts-config - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]