Eclipse - Struts - Resin - MySQL
hi all, im new to struts... can anyone tell me how to set up the development environment for Eclipse - Struts - Resin - MySQL Thanks a lot... Tscuss :) Seenu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Eclipse - Struts - Resin - MySQL
You must be kidding !!! Is this a quistion? -Original Message- From: Valliappan Ramanathan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 9:54 AM To: Struts Users Mailing List Subject: Eclipse - Struts - Resin - MySQL hi all, im new to struts... can anyone tell me how to set up the development environment for Eclipse - Struts - Resin - MySQL Thanks a lot... Tscuss :) Seenu - 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: Eclipse - Struts - Resin - MySQL
:-) - Original Message - From: Amjad Shahrour [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 9:07 AM Subject: RE: Eclipse - Struts - Resin - MySQL You must be kidding !!! Is this a quistion? -Original Message- From: Valliappan Ramanathan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 9:54 AM To: Struts Users Mailing List Subject: Eclipse - Struts - Resin - MySQL hi all, im new to struts... can anyone tell me how to set up the development environment for Eclipse - Struts - Resin - MySQL Thanks a lot... Tscuss :) Seenu - 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]
RE: Eclipse - Struts - Resin - MySQL
Have a look at :http://www.developer.com/java/ent/article.php/2107401 This might help u start with struts. -Original Message- From: Valliappan Ramanathan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 4:54 PM To: Struts Users Mailing List Subject: Eclipse - Struts - Resin - MySQL hi all, im new to struts... can anyone tell me how to set up the development environment for Eclipse - Struts - Resin - MySQL Thanks a lot... Tscuss :) Seenu - 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: Eclipse - Struts - Resin - MySQL
Thanks... Tschuss :) Seenu - Original Message - From: Panjrath, Charu [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 12:44 PM Subject: RE: Eclipse - Struts - Resin - MySQL Have a look at :http://www.developer.com/java/ent/article.php/2107401 This might help u start with struts. -Original Message- From: Valliappan Ramanathan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 02, 2003 4:54 PM To: Struts Users Mailing List Subject: Eclipse - Struts - Resin - MySQL hi all, im new to struts... can anyone tell me how to set up the development environment for Eclipse - Struts - Resin - MySQL Thanks a lot... Tscuss :) Seenu - 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]
struts + resin error
I just upgrade to struts 1.1 final and have been getting the following error and have no idea wht it means. java.lang.NoClassDefFoundError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:296) at java.lang.Class.newInstance(Class.java:249) at java.beans.Beans.instantiate(Beans.java:204) at java.beans.Beans.instantiate(Beans.java:48) at com.caucho.server.http.Application.instantiateServlet(Application.java:3164) at com.caucho.server.http.Application.createServlet(Application.java:3087) at com.caucho.server.http.Application.loadServlet(Application.java:3048) at com.caucho.server.http.QServletConfig.loadServlet(QServletConfig.java:435) at com.caucho.server.http.Application.getFilterChainServlet(Application.java:2792) at com.caucho.server.http.Application.buildFilterChain(Application.java:2748) at com.caucho.server.http.Invocation.service(Invocation.java:313) at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135) at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246) at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:164) at com.caucho.server.TcpConnection.run(TcpConnection.java:139) at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: struts + resin
Guys, I use Resin-2.1.8 and don't have problems. How are you deploying your application? Could you post here problematic part of your resin.conf file? Instead of configuring my application at resin.conf i put it at webapps folder and configure my application in web.xml according to Servlets and JSP spec. This works for me in all cases. Best regards, Daniel. --- Sander Hofstee [EMAIL PROTECTED] wrote: Sounds like a problem we had with a custom tag, worked fine in tomcat, not in Resin. Resin seems to have problems with custom tags and static parameters, don't know why. This is the how we solved it , seems to work: html:form action=%= /login.do % Matt Redman wrote: Hi, I have created a web app based around the struts framework and successfully deployed and run the application on Tomcat 4.0.4. Our clients have required that this hook into IIS, so we have attempted to port the application over to Resin 2.1.8. When resin renders the html:form action=/login.do /html:form element in the page, instead of the form's action being form name=loginForm action=/ormisweb/login.do it renders as the name of the web app.. (called ormisweb in resin.conf - web-app id='/ormisweb' /) form name=loginForm method=POST action=/ormisweb Anyone had any experience with this issue? Cheers, Matt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop! http://platinum.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts + resin
Hi, I have created a web app based around the struts framework and successfully deployed and run the application on Tomcat 4.0.4. Our clients have required that this hook into IIS, so we have attempted to port the application over to Resin 2.1.8. When resin renders the html:form action=/login.do /html:form element in the page, instead of the form's action being form name=loginForm action=/ormisweb/login.do it renders as the name of the web app.. (called ormisweb in resin.conf - web-app id='/ormisweb' /) form name=loginForm method=POST action=/ormisweb Anyone had any experience with this issue? Cheers, Matt. __ Disclaimer: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the addressee by return email and delete the email. This email transmission is the property of HAS Solutions and any information it contains is legally protected. HAS Solutions has no liability (including liability in negligence) to any person for any loss or damage consequential or otherwise suffered or incurred by that person resulting directly or indirectly from either the use of, or reliance on, the information contained herein. __
Re: struts + resin
Sounds like a problem we had with a custom tag, worked fine in tomcat, not in Resin. Resin seems to have problems with custom tags and static parameters, don't know why. This is the how we solved it , seems to work: html:form action=%= /login.do % Matt Redman wrote: Hi, I have created a web app based around the struts framework and successfully deployed and run the application on Tomcat 4.0.4. Our clients have required that this hook into IIS, so we have attempted to port the application over to Resin 2.1.8. When resin renders the html:form action=/login.do /html:form element in the page, instead of the form's action being form name=loginForm action=/ormisweb/login.do it renders as the name of the web app.. (called ormisweb in resin.conf - web-app id='/ormisweb' /) form name=loginForm method=POST action=/ormisweb Anyone had any experience with this issue? Cheers, Matt. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getPathInfo with Struts/Resin?
Hi, I haven't received any response on this issue. I assume this has not been done or cannot be done with Resin/Struts or with struts and any other container. Or perhaps I should post to a different list altogether? Any feedback will be greatly appreciated!! Thanks, Kevin -Original Message- From: Kevin Tung [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 6:37 PM To: 'Struts Users Mailing List' Subject: getPathInfo with Struts/Resin? Hi, I have searched the archives and the newsgroups but couldn't find an answer that applies to my specific environment, hopefully someone here has done this before. I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6 I want to be able to do the following www.somehost.com/myapp/execute/edit/username/ www.somehost.com/myapp/execute/view/username/ where view and edit will map to different Actions. And within each action, I want to be able to retrieve the username by using getPathInfo(). in my web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/execute/*/url-pattern /servlet-mapping in my struts_config.xml action path=/edit type=com.mycomp.EditAction/ But when I point the browser to www.somehost.com/myapp/execute/edit/username/ I end up with a 400 Invalid path /edit/username/ And www.somehost.com/myapp/execute/edit/ gets me 400 Invalid path / But And www.somehost.com/myapp/execute/edit (without the slash) Works fine, but it's without the path info.. Is this a resin issues? or could this be a struts config issue? Has anyone gotten this scenario to work with Struts and Resin? or even another container? Some config samples would be very helpful!! Thanks, Kevin - 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: getPathInfo with Struts/Resin?
Having never used Resin, I'm in no position to comment on what can or can't be done with it. However, it seems like you're using path info where a request parameter would be a better fit. It sounds like username is actually dynamic, so it might really be jim or bob or jimbob, right? So that you'd have: www.somehost.com/myapp/execute/edit?username=jimbob www.somehost.com/myapp/execute/view?username=jimbob In fact, from a Struts perspective, I'm pretty sure that the additional path info will cause it to fail when it attempts to find a matching path for an action mapping. Quoting Kevin Tung [EMAIL PROTECTED]: Hi, I haven't received any response on this issue. I assume this has not been done or cannot be done with Resin/Struts or with struts and any other container. Or perhaps I should post to a different list altogether? Any feedback will be greatly appreciated!! Thanks, Kevin -Original Message- From: Kevin Tung [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 6:37 PM To: 'Struts Users Mailing List' Subject: getPathInfo with Struts/Resin? Hi, I have searched the archives and the newsgroups but couldn't find an answer that applies to my specific environment, hopefully someone here has done this before. I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6 I want to be able to do the following www.somehost.com/myapp/execute/edit/username/ www.somehost.com/myapp/execute/view/username/ where view and edit will map to different Actions. And within each action, I want to be able to retrieve the username by using getPathInfo(). in my web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/execute/*/url-pattern /servlet-mapping in my struts_config.xml action path=/edit type=com.mycomp.EditAction/ But when I point the browser to www.somehost.com/myapp/execute/edit/username/ I end up with a 400 Invalid path /edit/username/ And www.somehost.com/myapp/execute/edit/ gets me 400 Invalid path / But And www.somehost.com/myapp/execute/edit (without the slash) Works fine, but it's without the path info.. Is this a resin issues? or could this be a struts config issue? Has anyone gotten this scenario to work with Struts and Resin? or even another container? Some config samples would be very helpful!! Thanks, Kevin - 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] -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: getPathInfo with Struts/Resin?
We discovered the limit of the action mapping capability early on with one project I was doing and actually wrote a new mapper that matched based on subsets of the full pathinfo string. We ended up not using struts for that project, but enhancing the action map matching was pretty useful. Our big problem was using something that was not part of the core struts distribution and it was apparent our changes were far too late to make into a possible 1.1 feature. Owen On Mon, 2003-03-10 at 11:57, Kris Schneider wrote: Having never used Resin, I'm in no position to comment on what can or can't be done with it. However, it seems like you're using path info where a request parameter would be a better fit. It sounds like username is actually dynamic, so it might really be jim or bob or jimbob, right? So that you'd have: www.somehost.com/myapp/execute/edit?username=jimbob www.somehost.com/myapp/execute/view?username=jimbob In fact, from a Struts perspective, I'm pretty sure that the additional path info will cause it to fail when it attempts to find a matching path for an action mapping. Quoting Kevin Tung [EMAIL PROTECTED]: Hi, I haven't received any response on this issue. I assume this has not been done or cannot be done with Resin/Struts or with struts and any other container. Or perhaps I should post to a different list altogether? Any feedback will be greatly appreciated!! Thanks, Kevin -Original Message- From: Kevin Tung [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 6:37 PM To: 'Struts Users Mailing List' Subject: getPathInfo with Struts/Resin? Hi, I have searched the archives and the newsgroups but couldn't find an answer that applies to my specific environment, hopefully someone here has done this before. I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6 I want to be able to do the following www.somehost.com/myapp/execute/edit/username/ www.somehost.com/myapp/execute/view/username/ where view and edit will map to different Actions. And within each action, I want to be able to retrieve the username by using getPathInfo(). in my web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/execute/*/url-pattern /servlet-mapping in my struts_config.xml action path=/edit type=com.mycomp.EditAction/ But when I point the browser to www.somehost.com/myapp/execute/edit/username/ I end up with a 400 Invalid path /edit/username/ And www.somehost.com/myapp/execute/edit/ gets me 400 Invalid path / But And www.somehost.com/myapp/execute/edit (without the slash) Works fine, but it's without the path info.. Is this a resin issues? or could this be a struts config issue? Has anyone gotten this scenario to work with Struts and Resin? or even another container? Some config samples would be very helpful!! Thanks, Kevin - 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]
RE: getPathInfo with Struts/Resin?
Hi Kris, The examples I had given are simplified (probably too much so). In practice, we need to allow search engine to be able to index the site correctly. Some of the search engines we work with have issues with ? and query strings in general. Also in our app, the extra path info is used to indicate content. www.somehose.com/myapp/homepagelayout/file1.jsp So it is not really dynamic, in that sense. I see your point about additional path info causing action mapping to fail. Looks like it's just not possible with struts, regardless of container. I suppose I will have to use a filter to pre-process the request. Thanks Kevin -Original Message- From: Kris Schneider [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 11:58 AM To: Struts Users Mailing List Subject: RE: getPathInfo with Struts/Resin? Having never used Resin, I'm in no position to comment on what can or can't be done with it. However, it seems like you're using path info where a request parameter would be a better fit. It sounds like username is actually dynamic, so it might really be jim or bob or jimbob, right? So that you'd have: www.somehost.com/myapp/execute/edit?username=jimbob www.somehost.com/myapp/execute/view?username=jimbob In fact, from a Struts perspective, I'm pretty sure that the additional path info will cause it to fail when it attempts to find a matching path for an action mapping. Quoting Kevin Tung [EMAIL PROTECTED]: Hi, I haven't received any response on this issue. I assume this has not been done or cannot be done with Resin/Struts or with struts and any other container. Or perhaps I should post to a different list altogether? Any feedback will be greatly appreciated!! Thanks, Kevin -Original Message- From: Kevin Tung [mailto:[EMAIL PROTECTED] Sent: Thursday, March 06, 2003 6:37 PM To: 'Struts Users Mailing List' Subject: getPathInfo with Struts/Resin? Hi, I have searched the archives and the newsgroups but couldn't find an answer that applies to my specific environment, hopefully someone here has done this before. I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6 I want to be able to do the following www.somehost.com/myapp/execute/edit/username/ www.somehost.com/myapp/execute/view/username/ where view and edit will map to different Actions. And within each action, I want to be able to retrieve the username by using getPathInfo(). in my web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/execute/*/url-pattern /servlet-mapping in my struts_config.xml action path=/edit type=com.mycomp.EditAction/ But when I point the browser to www.somehost.com/myapp/execute/edit/username/ I end up with a 400 Invalid path /edit/username/ And www.somehost.com/myapp/execute/edit/ gets me 400 Invalid path / But And www.somehost.com/myapp/execute/edit (without the slash) Works fine, but it's without the path info.. Is this a resin issues? or could this be a struts config issue? Has anyone gotten this scenario to work with Struts and Resin? or even another container? Some config samples would be very helpful!! Thanks, Kevin - 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] -- Kris Schneider mailto:[EMAIL PROTECTED] D.O.Tech http://www.dotech.com/ - 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: getPathInfo with Struts/Resin?
Hi Can anybody help me. i have the similar problem i was trying to get the solution for this. i wanted to know is this possible in struts to give the URL like this. in servlets we can have the URL like this. if this not possible in struts is there any other way to achieve this. plz help me... usha Kevin Tung wrote: Hi, I have searched the archives and the newsgroups but couldn't find an answer that applies to my specific environment, hopefully someone here has done this before. I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6 I want to be able to do the following www.somehost.com/myapp/execute/edit/username/ www.somehost.com/myapp/execute/view/username/ where view and edit will map to different Actions. And within each action, I want to be able to retrieve the username by using getPathInfo(). in my web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/execute/*/url-pattern /servlet-mapping in my struts_config.xml action path=/edit type=com.mycomp.EditAction/ But when I point the browser to www.somehost.com/myapp/execute/edit/username/ I end up with a 400 Invalid path /edit/username/ And www.somehost.com/myapp/execute/edit/ gets me 400 Invalid path / But And www.somehost.com/myapp/execute/edit (without the slash) Works fine, but it's without the path info.. Is this a resin issues? or could this be a struts config issue? Has anyone gotten this scenario to work with Struts and Resin? or even another container? Some config samples would be very helpful!! Thanks, Kevin - 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]
getPathInfo with Struts/Resin?
Hi, I have searched the archives and the newsgroups but couldn't find an answer that applies to my specific environment, hopefully someone here has done this before. I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6 I want to be able to do the following www.somehost.com/myapp/execute/edit/username/ www.somehost.com/myapp/execute/view/username/ where view and edit will map to different Actions. And within each action, I want to be able to retrieve the username by using getPathInfo(). in my web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/execute/*/url-pattern /servlet-mapping in my struts_config.xml action path=/edit type=com.mycomp.EditAction/ But when I point the browser to www.somehost.com/myapp/execute/edit/username/ I end up with a 400 Invalid path /edit/username/ And www.somehost.com/myapp/execute/edit/ gets me 400 Invalid path / But And www.somehost.com/myapp/execute/edit (without the slash) Works fine, but it's without the path info.. Is this a resin issues? or could this be a struts config issue? Has anyone gotten this scenario to work with Struts and Resin? or even another container? Some config samples would be very helpful!! Thanks, Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getPathInfo with Struts/Resin?
Hi Kevin I also have similar problem. did you able to found any solution for this. Thanks usha Kevin Tung wrote: Hi, I have searched the archives and the newsgroups but couldn't find an answer that applies to my specific environment, hopefully someone here has done this before. I am running Struts 1.1b3 (didn't work with 1.1b2 either) with Resin 2.1.6 I want to be able to do the following www.somehost.com/myapp/execute/edit/username/ www.somehost.com/myapp/execute/view/username/ where view and edit will map to different Actions. And within each action, I want to be able to retrieve the username by using getPathInfo(). in my web.xml servlet-mapping servlet-nameaction/servlet-name url-pattern/execute/*/url-pattern /servlet-mapping in my struts_config.xml action path=/edit type=com.mycomp.EditAction/ But when I point the browser to www.somehost.com/myapp/execute/edit/username/ I end up with a 400 Invalid path /edit/username/ And www.somehost.com/myapp/execute/edit/ gets me 400 Invalid path / But And www.somehost.com/myapp/execute/edit (without the slash) Works fine, but it's without the path info.. Is this a resin issues? or could this be a struts config issue? Has anyone gotten this scenario to work with Struts and Resin? or even another container? Some config samples would be very helpful!! Thanks, Kevin - 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]