Web application porting from tomcat to was

Source: Internet
Author: User

For convenience, the demonstration center project has been developed in the Tomcat 4.1 + MySQL 4.0 environment. The running environment proposed by the customer will be was 5.1 + DB2 8.0, and the existingProgramThere are two problems.

1. In tomcat, it is similar to edit. do? For a URL like service, you can use request. getparameter ("service") to obtain a non-null value, but get a null value under was. You must use Edit. do? Service = 1.

2. There were some irregular tag writing methods, such as the following:

 <  BEAN: Define  ID  = "Todel"  Name  = "Client"  Property  = "Name"  Type  = "String"  />                              <  HTML: Link  Action  = "/Delete"  Paramid  = "Code"  Paramname  = "Client"  Paramproperty  = "Code"  Onclick  = "<% ="  Return confirmdelete ('"+ Todel +"'); "%  >  ">  < HTML: img  Page  = "/../Images/btn_del.gif"  Width  = "41"  Height  = "16"  Border  = "0"  />   </  HTML: Link  >  

It is normal in Tomcat-when the user clicks "delete", the system prompts "are you sure you want to delete XXX ?", But in was, thisCodeThe page cannot be compiled. Only the xxx following the prompt content can be removed. I think the built-in tag library of struts has limited operations on strings.

no incompatibility is found. What I don't understand is that since Tomcat is the reference implementation of servlet 2.3, it should be the most "standard". Why is this still the case that tomcat has its own extensions, or are there deficiencies in was implementation?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.