关于Dynamic Web Module Version版本的问题

【问题解决记录】

创建Dynamic Web Project时候,按照默认直接创建了Module Version为3.0的项目。
基本架构和功能搭建好,Servlet基本功能写好以后,发布到阿里云服务器上进行测试,发现没法访问到。一直报的错误是404,cannot found。但是放在根目录的静态文件是可以读取到的。
这个服务器是项目测试服务器,之前发布了好几个项目在上面,现在也还在,试了一下,发现原来的项目没问题。

后来搜索了好久知道了原因。
Module Version 3.0的系统,创建Servlet时候,是直接在Servelt类名上方写标注
WebServlet{}

而Module Version 2.5系统,创建Servlet时,是在web.xml文件中自动生成Servlet对应的标签
servletservlet-mapping

然后问题就出在这里——阿里云服务器上安装的tomcat版本是6.0版本,不支持Servlet标注**WebServlet{}**的方式,只有tomcat7以上的才会支持这种方式。

我们也可以把Servlet的标签手动写入到web.xml中去,但是我们更希望它能够自动生成,这样更方便。

问题找到了,怎么解决呢? 我们找到了把3.0版本改成2.5的办法。
[原文链接] https://blog.csdn.net/adsl624153/article/details/71598879
作者:loetca

方法操作步骤:
(1)Eclipse中的Pacakge Explorer项目栏中,选中要修改的项目。

(2)Pacakge Explorer的右上角,单击【右上角有一个向下的箭头 (View Menu)】 → 单击【下拉选项中的 Filters】 → 选中【.*resources】 → 取消勾选【下拉选项中的 .*resources】.

(3)看到项目中有了一个【.settings文件夹】 → 打开选择里头的【org.eclipse.wst.common.project.facet.core.xml】→
双击打开 → 将
中的 3.0改为2.5即可。

下面是操作说明图,可以照着图来操作,来源也是作者loetca的原文

在这里插入图片描述

  • 2
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Create visually appealing and feature-rich applications by using Qt 5 and the C++ language Qt 5, the latest version of Qt, enables you to develop applications with complex user interfaces for multiple targets. It provides you with faster and smarter ways to create modern UIs and applications for multiple platforms. This book will teach you to design and build graphical user interfaces that are functional, appealing, and user-friendly. In the initial part of the book, you will learn what Qt 5 is and what you can do with it. You will explore the Qt Designer, discover the different types of widgets generally used in Qt 5, and then connect your application to the database to perform dynamic operations. Next, you will be introduced to Qt 5 chart which allows you to easily render different types of graphs and charts and incorporate List View Widgets in your application. You will also work with various Qt modules, like QtLocation, QtWebEngine, and the networking module through the course of the book. Finally, we will focus on cross-platform development with QT 5 that enables you to code once and run it everywhere, including mobile platforms. By the end of this book, you will have successfully learned about high-end GUI applications and will be capable of building many more powerful, cross-platform applications. What You Will Learn Implement tools provided by Qt 5 to design a beautiful GUI Understand different types of graphs and charts supported by Qt 5 Create a web browser using the Qt 5 WebEngine module and web view widget Connect to the MySQL database and display data obtained from it onto the Qt 5 GUI Incorporate the Qt 5 multimedia and networking module in your application Develop Google Map-like applications using Qt 5’s location module Discover cross-platform development by exporting the Qt 5 application to different platforms Uncover the secrets behind debugging Qt 5 and C++ applications
Contents WEB DYNPRO ABAP: DEVELOPMENT IN DETAIL .............................................................. 1 1 BASICS............................................................................................................................. 1 1.1 Component................................................................................................................ 2 1.2 Web Dynpro View ..................................................................................................... 3 1.2.1 UI Elements of the View ................................................................................. 5 1.2.2 Structure of the View Context......................................................................... 7 1.2.3 Data Binding ................................................................................................... 8 1.2.4 UI Element Actions....................................................................................... 10 1.2.5 Action Event Handlers.................................................................................. 12 1.3 Component Controller ............................................................................................. 15 1.3.1 Context Mapping .......................................................................................... 16 1.4 Programming Controller Methods ........................................................................... 18 1.4.1 Reference Variable WD_CONTEXT ............................................................ 19 1.4.2 Reference Variable WD_THIS and Local Controller Interface..................... 19 1.4.3 Methods of the Local Controller Interface .................................................... 20 1.4.4 Web Dynpro Runtime APIs .......................................................................... 32 1.4.5 Filling the Context......................................................................................... 34 1.4.6 Phase Model................................................................................................. 35 1.4.7 Client Implementation................................................................................... 39 1.5 Web Dynpro Window .............................................................................................. 40 1.5.1 Navigation Between Two Views................................................................... 41 1.6 Web Dynpro Application.......................................................................................... 44 1.7 URL of a Web Dynpro Application .......................................................................... 45 1.7.1 Fully Qualified Domain Names (FQDN) ....................................................... 48 1.7.2 URLs and Namespaces ............................................................................... 53 1.8 Calling a Web Dynpro Application Using Parameters ............................................ 55 2 CROSS-COMPONENT PROGRAMMING....................................................................... 55 2.1 Controllers of a Web Dynpro Component............................................................... 56 2.2 Component Usages ................................................................................................ 58 2.2.1 Component Usage without Controller Access.............................................. 59 2.2.2 Component Usage with Controller Access................................................... 62 2.2.3 Navigation Through Window Plugs .............................................................. 63 2.2.4 Cross-Component Context Mapping............................................................ 64 2.3 Working with Web Dynpro Component Interfaces.................................................. 68 2.3.1 Creating a Web Dynpro Component Interface Definition............................. 70 2.3.2 Implementing a Web Dynpro Interface Definition......................................... 71 2.3.3 Example for the Implementation of an Interface Definition .......................... 71 2.4 Working With Faceless Components...................................................................... 74 3 DYNAMIC PROGRAMMING ........................................................................................... 74 3.1 Dynamic Layout Manipulation................................................................................. 75 3.1.1 Working Dynamically with Parameter Mappings.......................................... 77 3.2 Dynamic Context Manipulation ............................................................................... 79 3.3 Working Dynamically with Component Usages ...................................................... 80 3.3.1 Dynamically Creating Component Usages .................................................. 81 3.3.2 Dynamically Embedding an Interface View.................................................. 83 3.3.3 Method Call in a Dynamically Created Component Usage.......................... 85 3.3.4 Dynamically Registering an Event Handler to an Event............................... 86 4 ADVANCED CONCEPTS................................................................................................ 86 4.1 Working with the Assistance Class ......................................................................... 87 4.2 Service Calls in a Web Dynpro Application............................................................. 88 4.2.1 Creating a Service Call................................................................................. 88 4.2.2 Using a Service Call ..................................................................................... 89 4.3 Working with Dialog Boxes ..................................................................................... 90 4.3.1 Calling Dialog Boxes of the Same Component ............................................ 91 4.3.2 Calling Dialog Boxes of a Used Component................................................ 93 4.3.3 Calling a Confirmation Dialog Box................................................................ 94 4.4 Data Binding Concepts ........................................................................................... 95 4.4.1 Data Binding of User Interface Element Properties ..................................... 95 4.4.2 Data Binding Using Index and Key............................................................... 97 4.4.3 Fixed Values of Attributes ............................................................................ 98 4.4.4 Context Change Log (Recording User Entries).......................................... 100 4.5 Input Help .............................................................................................................. 102 4.5.1 ABAP Dictionary Search Help .................................................................... 102 4.5.2 OVS Input Help........................................................................................... 104 4.5.3 Freely Programmed Input Help .................................................................. 106 4.6 Messages.............................................................................................................. 107 4.6.1 Integration of Messages in the Message Log ............................................ 110 4.7 Handling Web Icons .............................................................................................. 112 4.8 File Export ............................................................................................................. 114 4.9 Portal Integration................................................................................................... 116 4.9.1 Binding to Portal: Prerequisites .................................................................. 117 4.9.2 Integrating an Application in the Portal....................................................... 117 4.9.3 Portal Events .............................................................................................. 120 4.9.4 Portal Navigation ........................................................................................ 123 4.9.5 Work Protect Mode..................................................................................... 131 4.10 Example ................................................................................................................ 133 4.11 Integrating Forms .................................................................................................. 133 4.11.1 Integrating a PDF Form in a Web Dynpro Application ............................... 134 4.11.2 Supported Elements of the Adobe Library ................................................. 136 4.11.3 Interactive Form Use .................................................................................. 137 4.11.4 Forms with Function Module-Based Interface............................................ 137 4.12 Personalization and Configuration ........................................................................ 138 4.12.1 Component Configuration .......................................................................... 139 4.12.2 Application Configuration ........................................................................... 141 4.12.3 Personalization........................................................................................... 143 4.12.4 Delta Handling in Customization and Personalization ............................... 144 4.12.5 Notes on Working with Adjustment Data.................................................... 146 4.12.6 Configuration of an Included ALV Component........................................... 147 4.13 Modification-Free Enhancements ......................................................................... 148 4.13.1 Implementing Enhancements in a View ..................................................... 149 4.13.2 Implementing Enhancements in the Controller .......................................... 150 4.13.3 Implementing Enhancements in a Window ................................................ 151 4.14 Integration of Web Dynpro ABAP Applications in GUI Applications ..................... 151 4.15 Accessibility of a Web Dynpro Application............................................................ 153 4.16 Internationalization and Translation ...................................................................... 156 4.17 SAP List Viewer in Web Dynpro for ABAP............................................................ 158 4.17.1 Integration of the ALV in Your Application ................................................. 158 4.17.2 Managing ALV Output Areas...................................................................... 166 4.17.3 Appearance of ALV Output ........................................................................ 182 4.17.4 Predefining Standard ALV Functions ......................................................... 190 4.17.5 Functions, Interactions, and Events ........................................................... 205 4.17.6 Methods and Events of the Interface Controller......................................... 219 4.18 Screen Design Time Conversion .......................................................................... 231 4.18.1 Restrictions................................................................................................. 232 4.18.2 Transformation Rules ................................................................................. 233 4.19 Version Comparisons in Web Dynpro for ABAP................................................... 247 4.20 Quality Assurance ................................................................................................. 248 4.20.1 Web Dynpro Trace Tool ............................................................................. 248 4.20.2 ICM Tracing ................................................................................................ 250 4.20.3 HTTP Browser Tracing............................................................................... 252 4.21 System Logon ....................................................................................................... 258 4.21.1 Prerequisites............................................................................................... 261 4.21.2 Configuration Settings ................................................................................ 262 4.21.3 Password Logon Scenarios........................................................................ 265 4.21.4 User-specific Changes ............................................................................... 268 4.21.5 URL Generation in an AS-ABAP - Web Dispatcher Configuration ............ 271 4.21.6 Examples of the Logon Screen .................................................................. 280

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值