You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Arunkumar Balasubramanian <ar...@hotmail.com> on 2007/10/06 09:20:54 UTC

Error on Action, Form and on org.apache.struts names while changing .classpath file

 
Hi
 
 I was updating .classspath file as compatible to source code which I have inserted inside workspace. The reason for doing this is to make .classpath file compile java files and put in classes folder as specified. I was running in to issues like if I update .classpath file, then I am getting errors on Action, Form on names like Action, Form, request, response (guess the struts names are throwing errors here).
 
 Here is .classpath file which I have changed.
 
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/servlet-api.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/jasper.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/jsp-api.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/el-api.jar"/>
<classpathentry kind="var" path="TOMCAT_HOME/lib/annotations-api.jar"/>
<classpathentry kind="src" path="WEB-INF/src"/> - tried to change this path (but automatic compilation of code doesn't 
                                                                     occur here if I moved src out of WEB-INF
<classpathentry kind="src" output="work" path="work"/>
<classpathentry kind="output" path="WEB-INF/classes"/>
</classpath>
 
 I was trying some thing like not changing the .classpath file, rather arrange directories according to the file. But when I have Action or Form inside WEB_INF/src, error message appears on 
import org.apache.struts.action.*;
 
and on all other struts names like Action, request, response, etc...
 
  If any one could identify what the problem is and which one would be a solution for these kind of problems, that would be great.
 
 Thanks
 
 
 
 
_________________________________________________________________
Help yourself to FREE treats served up daily at the Messenger Café. Stop by today.
http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline

[OT] Re: Error on Action, Form and on org.apache.struts names while changing .classpath file

Posted by Dave Newton <ne...@yahoo.com>.
--- Arunkumar Balasubramanian wrote:
>  I was updating .classspath file 

If you need to change these settings it's generally
better to do it from within the Eclipse UI by
right-clicking on the project and choosing
"Properties" from the context menu, then selecting
"Java Build Path" and defining what source folders are
to be used and where to put the compiled classes
(which can be set for all source folders or on an
individual basis).

The *best* solution is to ask questions like this on
an Eclipse and / or MyEclipse forum, though.

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org