I have the plugin, and created the project with maven using command line,
then imported my project into eclipse..



pinky88 wrote:
> 
> Hi Trent, 
> 
> Thanks for the reply,
> 
> I've tries using those dependencies but still getting the errors.. however
> I'm only editing my pom.xml in eclipse, as this is where i'm receiving the
> errors, maybe I have to edit it from the command line for the project? I'm
> very new to this..
> 
> Thanks,
> 
> Pinky 
> 
> 
> 
> Trent Rosenbaum-2 wrote:
>> 
>> I would suggest that you use the following to develop servlets and jsp
>> functionality.
>> 
>> If you are using tomcat 6.0.13 then the following specs are implemented
>> 
>> Servlet 2.5 and JavaServer Pages 2.1
>> 
>> </dependencies>
>> ...
>> <dependency>
>> <groupId>javax.servlet</groupId>
>> <artifactId>servlet-api</artifactId>
>> <version>2.5</version>
>> <scope>provided</scope>
>> </dependency>
>> 
>> <dependency>
>> <groupId>javax.servlet.jsp</groupId>
>> <artifactId>jsp-api</artifactId>
>> <version>2.1</version>
>> <scope>provided</scope>
>> </dependency>
>> ...
>> </dependencies>
>> 
>> If you are using tomcat 5.5.23 then the following specs are implemented
>> 
>> Servlet 2.4 and JavaServer Pages 2.0
>> 
>> </dependencies>
>> ...
>> <dependency>
>> <groupId>javax.servlet</groupId>
>> <artifactId>servlet-api</artifactId>
>> <version>2.4</version>
>> <scope>provided</scope>
>> </dependency>
>> 
>> <dependency>
>> <groupId>javax.servlet.jsp</groupId>
>> <artifactId>jsp-api</artifactId>
>> <version>2.0</version>
>> <scope>provided</scope>
>> </dependency>
>> ...
>> </dependencies>
>> 
>> The difference of these xml samples with the previous is the groupId
>> for the jsp-api artifact.  The previous example suggests using
>> 'javax.servlet' and yes there is an artifact there for version 2.0 of
>> the jsp spec.  The example above suggests using the
>> 'javax.servlet.jsp' because the JSP interfaces are implemented under
>> the same package structure.  Also under this groupId you can find both
>> versions 2.0 and 2.1.
>> 
>> http://repo1.maven.org/maven2/javax/servlet/jsp/jsp-api/
>> 
>> I have not had any problems using the artifacts under these groupId
>> locations.
>> 
>> Trent
>> 
>> 
>> On 11/07/07, pinky88 <[EMAIL PROTECTED]> wrote:
>>>
>>> does that mean I don;t need to use any of the other dependencies??
>>> someone
>>> else had tol me to use the others :S
>>>
>>> Thanks,
>>>
>>> Pinky :)
>>>
>>>
>>>
>>> Antonio Petrelli-3 wrote:
>>> >
>>> > 2007/7/11, pinky88 <[EMAIL PROTECTED]>:
>>> >
>>> > Oh, dear. The page that I sent was for finding your Tomcat version
>>> and,
>>> > then, the corresponding jsp-api and servlet-api
>>> > So, if you are using Tomcat 5.5.23, you have to use ONLY:
>>> >
>>> >       <dependency>
>>> >          <groupId>javax.servlet</groupId>
>>> >          <artifactId>servlet-api</artifactId>
>>> >          <version>2.4</version>
>>> >          <scope>provided</scope>
>>> >       </dependency>
>>> >       <dependency>
>>> >          <groupId>javax.servlet</groupId>
>>> >          <artifactId>jsp-api</artifactId>
>>> >          <version>2.0</version>
>>> >          <scope>provided</scope>
>>> >       </dependency>
>>> >
>>> > Antonio
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/servlet-API-and-jsp-API-versions-vfor-dependencies----------please-help%21%21-tf4061757s177.html#a11540150
>>> Sent from the Maven - Users mailing list archive at Nabble.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]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/servlet-API-and-jsp-API-versions-vfor-dependencies----------please-help%21%21-tf4061757s177.html#a11540916
Sent from the Maven - Users mailing list archive at Nabble.com.


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

Reply via email to