I just started to learn about JSP. Recently I saw the section "standard flag Library", but there are still a lot of problems. I posted my questions on CSDN, and only one person replied. Dizzy.
Now let's talk about these two questions:
My environment is Eclipse 3.1 + jdk1.5 + tomcat 5
1. xmlbuddy_2.0.56 cannot be installed.
In the same development environment as in the enterprise and home (I promise the same, I use the same installer), I will be successful in the enterprise. It never succeeds at home.
Depressed. I thought the version of xmlbuddy_2.0.56 was incorrect. If I changed N versions, I still cannot.
2. with The standard flag Library, The problem JSP Parsing Error: The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web. xml or the jar files deployed with this application. the same two JSP files sometimes have no such problem as some of the foreign site said, this is the TOMCAT servlet-api.jar there and... There is a conflict (like this file). In fact, I don't think it is. Let me show you two examples:
<! Doctype html public "-// W3C // dtd html 4.0 Transitional // EN">
<% @ Page contentType = "text/html; charset = gb2312" language = "java" %>
<% @ Taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<Jsp: useBean id = "cal" class = "jstlTest. CalendarBean"/>
<Html>
<Head>
<Title> test webpage </title>
</Head>
<Body>
The time is currently: <br>
<C: out value = "$ {cal. date}"/>
<C: set var = "hour" value = "$ {cal. hour}" scope = "request"/>
<C: choose>
<C: when test = "$ {hour> 0 & hour <= 11}">
Good Morning!
</C: when>
<C: when test = "$ {hour >=12 & hour <= 17}">
Good Afternoon!
</C: when>
<C: otherwise>
Good Evening!
</C: otherwise>
</C: choose>
</Body>
</Html>
This file has no problems. But let's take a look at the following:
<! Doctype html public "-// W3C // dtd html 4.0 Transitional // EN">
<% @ Page contentType = "text/html; charset = gb2312" language = "java" %>
<% @ Taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<% @ Taglib uri = "http://java.sun.com/jsp/jstl/fmt" prefix = "fmt" %>
<Fmt: setLocale value = "en_US"/>
<Jsp: useBean id = "cal" class = "jstlTest. CalendarBean"/>
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.