jsdk2.3

S

suman yadav

hello,
i am having problem in compling methods of jsdk2.3
the code is-
import java.io.*;
import java.servlet.*;
import java.servlet.http.*;
public class hello4 extends HttpServlet{
public void doGet(HttpServletRequest req,
HttpServletRequest res)
throws IOException,ServletException{
req.setAttribute("my","you");
RequestDispatcher dis=req.getRequestDispatcher("/servlet/hello5");
dis.forward(req,res);
}
}

i have set class path for jsdk2.3 as c:\jsdk2.3\javax\jsdk2.3.jar
but it is giving error in req.setAttribute
& error in req.getRequestDispatcher() methods
help me
 
T

Tony Morris

suman yadav said:
hello,
i am having problem in compling methods of jsdk2.3
the code is-
import java.io.*;
import java.servlet.*;
import java.servlet.http.*;
public class hello4 extends HttpServlet{
public void doGet(HttpServletRequest req,
HttpServletRequest res)
throws IOException,ServletException{
req.setAttribute("my","you");
RequestDispatcher dis=req.getRequestDispatcher("/servlet/hello5");
dis.forward(req,res);
}
}

i have set class path for jsdk2.3 as c:\jsdk2.3\javax\jsdk2.3.jar
but it is giving error in req.setAttribute
& error in req.getRequestDispatcher() methods
help me

"giving an error" is undiagnosable.
What is the error ?

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
 
A

Adam

suman yadav said:
hello,
i am having problem in compling methods of jsdk2.3

Wow, so how is it in the future?
Why did (or will) they send you to the past?

We still have to work with jsdk1.4
(well 1.5beta is ready)

Adam
 
T

Tor Iver Wilhelmsen

Adam said:
Wow, so how is it in the future?
Why did (or will) they send you to the past?

We still have to work with jsdk1.4
(well 1.5beta is ready)

Er, JSDK = Java Servlet Development Kit, 2.3 is the (current) Servlet
API spec version.
 
T

Tor Iver Wilhelmsen

i have set class path for jsdk2.3 as c:\jsdk2.3\javax\jsdk2.3.jar
but it is giving error in req.setAttribute
& error in req.getRequestDispatcher() methods
help me

Do they still make a JSDK? I thought all development of reference
implementations of the Servlet specs was delegated to the Jakarta
Tomcat project.
 
T

Tony Morris

Tor Iver Wilhelmsen said:
Er, JSDK = Java Servlet Development Kit, 2.3 is the (current) Servlet
API spec version.

2.4 is the current version.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
 
C

Carl Howells

Tony said:
2.4 is the current version.

I so wish that was actually the case... But if it was, wouldn't there
be a DTD for the deployment descriptor version 2.4 *somewhere* on Sun's
site? If I've somehow managed to miss where it is, please let me
know... It would be very nice to be able to validate my web.xml file
AND use the new stuff added by 2.4
 
T

Tony Morris

Carl Howells said:
I so wish that was actually the case... But if it was, wouldn't there
be a DTD for the deployment descriptor version 2.4 *somewhere* on Sun's
site? If I've somehow managed to miss where it is, please let me
know... It would be very nice to be able to validate my web.xml file
AND use the new stuff added by 2.4

Since I don't use the 2.4 spec. extensively, I had to reference the
appropriate material to find out.
The specification suggests that the deployment descriptor hasn't changed and
that the reference to the 2.3 DTD is still valid.

It pays to read documentation.

--
Tony Morris
(BInfTech, Cert 3 I.T., SCJP[1.4], SCJD)
Software Engineer
IBM Australia - Tivoli Security Software
(2003 VTR1000F)
 
C

Carl Howells

Tony said:
Since I don't use the 2.4 spec. extensively, I had to reference the
appropriate material to find out.
The specification suggests that the deployment descriptor hasn't changed and
that the reference to the 2.3 DTD is still valid.

It pays to read documentation.

Umm... Yes, it does. It would help both of us. :)

There is at least one new element in the deployment discriptor, the
jsp-config element. And it's not in the 2.3 dtd anywhere.

And it would help if I read the docs a little closer, too... There
isn't a 2.4 dtd. Because they finally switched to schema. I finally
found that in the docs...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,678
Members
48,796
Latest member
Greg L.

Latest Threads

Top