开发者

Can't find jsp on eclipse

I am using the last version of Eclipse 3.7. I am working with the Google app engine and need to create some JSP, but on a new project. I can't find开发者_StackOverflow社区 JSP. I don't have Tomcat. Can I just do new->file and then just end it with .jsp, like filename.jsp?

Will it be okay?


I'm not familiar with Google App Engine, but to have ability to run project with JSP files you should create a web project.

I don't know which plugin in eclise you're using, but this tutorial looks easy, try it:

  1. Select the File menu > New > Web Application Project
  2. The "Create a Web Application Project" wizard opens. For "Project name," enter a name for your project,
  3. If you're not using Google Web Toolkit, uncheck "Use Google Web Toolkit." Verify that "Use Google App Engine" is checked.
  4. If you installed the App Engine SDK using Software Update, the plugin is already configured to use the SDKs that were installed. If you would like to use a separate installation of the App Engine SDK, click Configure SDKs..., and follow the prompts to add a configuration with your SDK's appengine-java-sdk/ directory.
  5. Click Finish to create the project.


Create a file with a .jsp extension in your war directory (or a non-WEB-INF/ subdirectory). Works fine. (I'm using Eclipse 3.6 with SDK 1.5.4.)


To use JSP, you need to download the J2EE SDK from Oracle and the Eclipse IDE For EE Developers in order to access JSP pages from Eclipse. See Eclipse Docs, Eclipse Web Tools, and this forum post. There's a wealth of information out there.

To develop and test locally, you will need a web server, such as Apache's Tomcat or JBOSS, both of which are available for free. Otherwise, you'd have to upload the file to Google App Engine, look at it, debug it, take it down, and repeat the process until you're done development.


I had to install Eclipse Web Developer Tools (3.15) and the jsp file type was visible. Just open the Eclipse Marketplace from Eclipse and find this extension.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜