简体   繁体   English

WSO2开发人员工作室创建Web应用程序

[英]WSO2 developer studio creating a web application

I am following developer studio tutorial to create my first web application but it is not working as described. 我正在遵循Developer Studio教程来创建我的第一个Web应用程序,但是它不能按所述方式工作。 I am using eclipse-jee-juno. 我正在使用eclipse-jee-juno。 On creating web application, there will be another input form to enter other informations, but in the tutorial 'choosing target runtime', 'dynamic web module version', 'configuration' or other things are not explained. 创建Web应用程序时,将有另一种输入形式来输入其他信息,但是在教程“选择目标运行时”中,没有解释“动态Web模块版本”,“配置”或其他内容。

When I finish. 当我完成的时候。 I didnt get JSP file. 我没有得到JSP文件。 but as per tutorial, it will be created and opened. 但根据教程,将创建并打开它。 Do guide me regarding this. 请为此指导我。

I was confusing to follow the same procedure of "Creating web application" by developer studio version 3.1.0 and other latest version eg 3.2.0. 我困惑遵循开发人员Studio版本3.1.0和其他最新版本(例如3.2.0)的“创建Web应用程序”相同的步骤。

[1] http://docs.wso2.org/display/DVS310/Creating+a+Web+Application [1] http://docs.wso2.org/display/DVS310/Creating+a+Web+Application

[2] http://docs.wso2.org/display/DVS320/Creating+a+Web+Application [2] http://docs.wso2.org/display/DVS320/Creating+a+Web+Application

in the first one, JSP file is automatically created. 在第一个中,将自动创建JSP文件。 After finish, "you will see a Web Application being created in the workspace and index.jsp file being opened for you." 完成后,“您将看到在工作空间中正在创建一个Web应用程序,并且正在为您打开index.jsp文件。”

But, in the [2], none of the JSP file is created. 但是,在[2]中,没有创建任何JSP文件。 Why?? 为什么??

Please use Oracle JDK 1.7 with Developer Studio 3.2.0. 请在Developer Studio 3.2.0中使用Oracle JDK 1.7。

http://docs.wso2.org/display/DVS320/Installation http://docs.wso2.org/display/DVS320/安装

If you need to create a JSP file you can do it manually after creating the web app. 如果需要创建JSP文件,则可以在创建Web应用程序后手动进行操作。

From eclipse help, 在日食帮助下,

In the Project Explorer, expand your project and right click on your WebContent folder or on a subfolder under WebContent. 在项目资源管理器中,展开项目,然后右键单击WebContent文件夹或WebContent下的子文件夹。 Note that if you choose any other folder in which to create the JSP, then it will not be included in the WAR file that is deployed to the server. 请注意,如果选择在其中创建JSP的任何其他文件夹,则它将不会包含在部署到服务器的WAR文件中。 In addition, link validation will not encompass files that are not under the WebContent folder. 此外,链接验证将不包含不在WebContent文件夹下的文件。

From the context menu, select New > JSP. 从上下文菜单中,选择“新建”>“ JSP”。 The New Java Server Page window appears with your folder selected 出现“新建Java服务器页面”窗口,并选择了您的文件夹

Type a file name into the File name field, making sure you include the jsp extension (jsp, jsv, jtpl, or jspx) in the file name. 在“文件名”字段中输入文件名,确保在文件名中包含jsp扩展名(jsp,jsv,jtpl或jspx)。

You have several options for proceeding: 您可以选择几种方法进行操作:

  • To accept the defaults associated with a new JSP file, select Finish. 要接受与新JSP文件关联的默认值,请选择“完成”。
  • To link to a file in the file system and specify path variables, select Advanced and then make your selections using the Browse and Variables buttons. 要链接到文件系统中的文件并指定路径变量,请选择“高级”,然后使用“浏览”和“变量”按钮进行选择。
  • To use a template file for the initial content of your JSP page, select Next. 要将模板文件用于JSP页面的初始内容,请选择“下一步”。 The Select JSP Template window appears. 出现“选择JSP模板”窗口。 Select the Use JSP Template check box, and then select one of the sample templates. 选中“使用JSP模板”复选框,然后选择一个示例模板。 You can also select the JSP Templates link to add or remove JSP templates to your list of templates. 您还可以选择“ JSP模板”链接以将JSP模板添加或删除到模板列表中。

You can use one of the templates to quickly create a JSP file. 您可以使用模板之一来快速创建JSP文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 WSO2在Helios中安装Developer Studio问题 - WSO2 installing developer studio problems in helios 用于光子 Eclipse 的 WSO2 开发人员工作室 - WSO2 Developer Studio for photon Eclipse WSO2 Developer Studio AS 3.8.0 / Developer Studio EI 1.1.0-混淆 - WSO2 Developer studio AS 3.8.0 / Developer Studio EI 1.1.0 - Confused WSO2 Developer Studio-何时发布下一版本的Eclipse? - WSO2 Developer Studio - when is the next version of Eclipse to be released? WSO2 Developer Studio无法打开代理向导 - WSO2 Developer Studio cannot open Proxy wizard 有什么方法可以将 .CAR 文件 (WSO2) 导入 Eclipse Developer Studio? - Is there any way to import a .CAR file (WSO2) to Eclipse Developer Studio? WSO2 Developer Studio 2.1.0(以前为Carbon Studio)插件导致Eclipse挂起 - WSO2 Developer Studio 2.1.0 (previously Carbon Studio) plug-in causes Eclipse load to hang 使用Eclipse Developer Studio启动wso2 esb服务器时出现无效的初始堆大小错误 - Invalid initial heap size errors while starting wso2 esb server with eclipse developer studio WSO2 ESB-使用Developer Studio开发服务以及在远程服务器上部署和调试服务的配置 - WSO2 ESB - Configuration to Develop Services with Developer Studio and Deploy and Debug them on Remote Server 为JSON Web服务创建WSO2 BPEL项目 - Creating WSO2 BPEL project for JSON webservices
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM