In jsp, how does one write the public String systemURL of the config. java file?

Source: Internet
Author: User

I have downloaded the source code of a jsp (preferred for SUN Enterprise Applications) website. In the above Code, only config. java and config can be modified. jsp (preferred for SUN Enterprise Applications) can be run.

I can't do it a few times. Let's take a look.

Config. java source file:

Package myshop;

Public class config {
// --- About database settings ---
Public String DBdriver = "org. gjt. mm. MySQL (the best combination with PHP). Driver ";
Public String DBname = "503 room ";
Public String DBuser = "503 room ";
Public String DBpwd = "503 room ";
Public String DBurl = "jdbc: MySQL (the best combination with PHP): // localhost: 3306/" + DBname + "? User = "+ DBuser +" & password = "+ DBpwd;

Public String systemURL = "http: // localhost: 8080/myshop ";
Public String systemFolder = "/myshop /";
}

Running error prompt:

Description The server encountered an internal error () that prevented it from fulfilling this request.

Exception

Org. apache (the most popular WEB server platform on Unix ). jasper. jasperException: Unable to compile class for jsp (preferred for SUN Enterprise Applications) An error occurred at line: 64 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 106: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (SystemURL); ^ An error occurred at line: 68 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 112: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (SystemURL); ^ An error occurred at line: 68 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 114: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (SystemURL); ^ An error occurred at line: 73 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 121: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (SystemURL); ^ An error occurred at line: 75 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 125: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (SystemURL); ^ An error occurred at line: 76 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 128: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (SystemURL); ^ An error occurred at line: 77 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 131: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (SystemURL); ^ An error occurred at line: 78 in the jsp (preferred for SUN Enterprise Applications) file:/myshop/head. jsp (preferred for SUN Enterprise Applications) Generated servlet error: C: apache (the most popular WEB server platform on Unix) Software Foundationomcat (a very useful JSP running platform) 5.0workCatalinalocalhost \ _ orgapache (the most popular WEB server platform on Unix) jsp (the preferred choice for SUN Enterprise Applications) myshophead_jsp (the preferred choice for SUN Enterprise applications ). java: 134: cannot resolve symbolsymbol: variable SystemURL location: class org. apache (the most popular WEB server platform on Unix ). jsp (the first choice for SUN Enterprise applications ). myshop. head_jsp (preferred for SUN Enterprise Applications) out. print (System

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.