While I agree that there's quite a lot of ground to cover I think if java/jsp is a serious alternative to other web based technologies then there needs to be a way of introducing new folks to these technologies by getting things up and running and then start to learn stuff.

Post me off the list Nasrin if you need to get up and running. Seeing you've a academic email address I assume you've done some programming perhaps a bit of c or something, make as your build tool and/or familiar with the likes of perl.

If you're running windows then there's an Ant installer for windows users who are generally used to double clicking on stuff without to much cognition mediating the installation process.

Then you'll want to get the sample project in the tomcat documentation built with ant. This will let you put all the classpaths in an xml file and make life much simpler.

I assume you've installed tomcat or another container so I wont mention that. But if i'm wrong then just say so.

Cheers Mark

On 6 Jan 2004, at 15:00, Andrew Hill wrote:

<snip>
I don’t know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.
</snip>


Me thinks you may be starting a little at the deep end in that case. You
would probably do better to get comfortable writing simple applications in
java before you get into the more complex stuff (such as servlets and
frameworks etc...).


An IDE is an "integrated development environment". A very good (& free) one
is Eclipse.
(www.eclipse.org)
If your just starting out with Java then its good to learn to code without
an IDE first to get a feel for whats going on and how all the classpath
stuff works (as your discovering, it can be quite troublesome at times!!!),
but once your past the learning stage and writing real programs you will
find an IDE very helpful and a big time saver.


Which book are you reading?

-----Original Message-----
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, 6 January 2004 20:29
To: 'Struts Users Mailing List'
Subject: RE: error


Thanks for your reply.
I already had servlet.jar in my system variables classpath -(and I'm using
tomcat).


What did you mean by struts-jarS ? I added all the .jar files from struts to
my lib folder of my application. But no change in the errors.


I don’t know what an IDE is - I'm quite new to struts and programming. I am
just using a command prompt to compile - which is what was written in the
book I am following to learn.



-----Original Message----- From: Matthias Wessendorf [mailto:[EMAIL PROTECTED] Sent: 06 January 2004 12:13 To: 'Struts Users Mailing List' Subject: RE: error

hi!

servlet.jar is needed for
stuff like:
javax.servlet.http.HttpServletResponse

it is deliverd with tomcat
in $TOMCAT/common/lib (in case of using tomcat)

or
in j2ee.jar (in $J2EE_HOME/lib)

add this to your classpath
and of course your struts-jarS!

do you use an IDE?



-----Original Message-----
From: Nasrin Hafezparast [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 12:59 PM
To: [EMAIL PROTECTED]
Subject: error


Hi,




I have an error occurring when I try and compile some java files in
struts.



Package org.apache.struts.action does not exist

Import org.apache.struts.action.ActionForm;



Package javax.servlet.http does not exist

Import javax.servlet.http.HttpServletResponse;



There are many more similar errors.



I have included the struts.jar file from the Jakarta-struts/lib folder
in the classpath.

I have added all the .tld files, web.xml and struts-config.xml in the
WEB-INF folder of my application

I have added the struts.jar file to the lib folder in my application

In the classes folder I have put ApplicationResources.properties

Web-inf/classes/com/example contains the java files I want to compile



This is an example from a book I am learning from and I have followed
everything exactly. Can anyone advise me on what I am doing wrong?



Thanks


--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003


--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.544 / Virus Database: 338 - Release Date: 25/11/2003



---------------------------------------------------------------------
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]



Reply via email to