Hi guys, i'm new here from Singapore.... i'm currently doing a project on JBoss and struts... Can i know how am i going to intergrate struts into JBoss? i'm a noobie in training here... please forgive me should i made some mistakes regards Jimmy
dont now if i understand your question ? but if you want to use struts in your webb-app, just add the struts.jar files in your war lib directory and sett upp the struts front controller servlet listing in the web.xml file. read this http://jakarta.apache.org/struts/userGuide/
Joined: Feb 16, 2004
Hi guys, i got this error when i tried to run my upload.jsp on my JBoss 3.2.3: Generated servlet error: [javac] Compiling 1 source file [javac] C:\jboss\server\default\work\MainEngine\localhost\coleman\upload_jsp.java:9: package org.apache.struts.webapp.upload does not exist [javac] import org.apache.struts.webapp.upload.UploadForm; [javac] ^ [javac] C:\jboss\server\default\work\MainEngine\localhost\coleman\upload_jsp.java:100: cannot resolve symbol [javac] symbol : variable UploadForm [javac] location: class org.apache.jsp.upload_jsp [javac] Iterator iterator = errors.get(UploadForm.ERROR_PROPERTY_MAX_LENGTH_EXCEEDED); [javac] ^ [javac] Note: C:\jboss\server\default\work\MainEngine\localhost\coleman\upload_jsp.java uses or overrides a deprecated API. [javac] Note: Recompile with -deprecation for details. [javac] 2 errors i have put my .jar files in my WEB-INF/lib and my struts.*.tld files into WEB-INF folder here's my web.xml: ---
You are not really integrating with JBOSS, you would be deploying your Struts web application on Jetty (which sits in JBOSS). So you would need to create a .war file containing all your JSPs, with a WEB-INF directory containing a lib directory, which must contain all your struts libraries. That's what seems to be missing from the error you are getting.
We used Struts and JBoss in an application we developed two years ago. They integrated very well, because Struts appears to JBoss just another one web application. We were used to call our EJBs from Struts Action classes, using two separate VMs (the first one running Tomcat and the other one running JBoss). There's nothing too complex on it... keep trying.