Skip to Content
0
Former Member
Mar 15, 2007 at 05:49 AM

JSP in NWDS

96 Views

hi

i want to do a JSP application in NWDS

but there is some problem occurring

i will just brief u with the steps i have performed first

Click File->New->Project.

Select Portal Application from left side select Create a Portal Applicatoin Project from the right side,

click Next.

Name you project.

Click Finish.

If not already in the java perspective, click the little icon on the toolbar on the left hand side which has a "J" in it.

You should see your project in the package explorer.

Open the tree structure, you should see src.api, other stuff and a folder called dist. Open dist.

You should see all kinds of folders.

See the portalapp.xml file, this will be important later.

Put you .JSP files in the Pagelet folder and your images under the images folder.

No go back to the top. Uner the src.api folder, create a package.

Right-click > New > Package, name it(com.yourcompany.test).

Now right click the package and create your classes.

Rightclick -> New --> Other, select Portal Application on left and "Create a new Portal Application Object on right.

Click next, hightlight your project,

click next.

Open the Portal Component Node, select JSPDynpage,

Click next, Name the files...select API for location and click Finish.

after doing all this i m getting 2 errors stating

1> This compilation unit indirectly references the missing type javax.servlet.http.HttpServletRequest

(typically some required class file is referencing a type outside the classpath)

2> The project was not built since its classpath is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the classpath then try rebuilding this project.

how can i rectify these errors

useful answers will be rewarded

Regards

JM