Campbell Ritchie wrote:Please show us the location of those Struts .jars and the CLASSPATH you are using.
Pramod Kumar Pandey wrote:
At some sites I found they say should not add extra jars if you are not using, Are they correct ?
Campbell Ritchie wrote:Is that a system classpath or a classpath local to your current app? You should only use specific classpaths, not a system classpath.
That classpath is also obviously wrong, so you cannot load that particular .jar. Look at this FAQ about classpaths.
Pramod Kumar Pandey wrote: Should I set classpath in environment variable , by providing all jar's name separated by commas .
In J2EE development, you should generally not modify the CLASSPATH or put application jars (except JDBC drivers) in the lib directories of your application server or jre/lib/ext. Doing so may introduce odd dependencies between your web applications and set you up for classloader problems.
Joe Ess wrote:
Pramod Kumar Pandey wrote: Should I set classpath in environment variable , by providing all jar's name separated by commas .
Absolutely not. It is hard to parse out in the link Campbell gave you, but it states:
In J2EE development, you should generally not modify the CLASSPATH or put application jars (except JDBC drivers) in the lib directories of your application server or jre/lib/ext. Doing so may introduce odd dependencies between your web applications and set you up for classloader problems.
We should deal solely with the contents of WEB-INF/lib. Again, what JAR files have you placed there?
Joe Ess wrote:Note that the namespace in the form (line 1) and the namespace in struts.xml (line 4) do not match.
You need to declare the namespace in your package declaration.
Joe Ess wrote:Note that the namespace in the form (line 1) and the namespace in struts.xml (line 4) do not match.
You need to declare the namespace in your package declaration.
Pramod Kumar Pandey wrote:
Joe Sir if we are not using namespace then what is the need of declare namespace .
Pramod Kumar Pandey wrote:
By the way I declared namespace attribute in form tag with the same
literal value as namespace have in package tag. but it is still showing that HTTP Status 404 - There is no Action mapped for namespace / and action name user.
Pramod Kumar Pandey wrote:
error is in code or IDE ? SIR.
Don't get me started about those stupid light bulbs. |