java <c:import urlparse="" ></c:import> url能写 后台的地址吗,光访问jsp不跳转后台没数据啊

&style type=&text/css& media=&all&&@import &css/master.css&;&/style&
&style type=&text/css& media=&all&&@import &css/master.css&;&/style&
08-10-01 &
你要问什么????
请登录后再发表评论!为什么在intellij idea 13开发环境中要使用&c:if&标签必须在当前jsp页设置isELIgnored=&true&
作者:用户
浏览:293 次
环境是java1.764win8.1web.xml&?xmlversion="1.0"encoding="UTF-8"?&&web-appxmlns="http://java.sun
问题描述环境是java1.764win8.1web.xml&?xmlversion="1.0"encoding="UTF-8"?&&web-appxmlns="http://java.sun.com/xml/ns/javaee"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://java.sun.com/xml/ns/javaeehttp://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"version="2.5"&JSTL是网上下的1.2.1版本在网上各种搜都没找到答案,哪位能给个正确的解释isELIgnored="true"不是用来设置忽略直接嵌入在html中的EL代码的吗?设置之后${}变量都只能用&c:out&输出,但为什么会影响&c:if&&c:out&&c:set&&c:choose&&c:foreach&都没有问题的还有就是在WEB-INFO目录加不加c.tld都是没有关系的,使用JSTL只要导入jstl包就好使用JSTL的1.2.0、1.2.1、1.2.2版本也是没有关系的如果不加isELIgnored="true"会报错(不加的话默认isELIgnored="false",这样就无法使用&c:if&了,但是其他的标签好像还可以用)HTTPStatus500-/page2/ELTest.jsp(line:21,column:4)AccordingtoTLDorattributedirectiveintagfile,attributevaluedoesnotacceptanyexpressionstypeExceptionreportmessage/page2/ELTest.jsp(line:21,column:4)AccordingtoTLDorattributedirectiveintagfile,attributevaluedoesnotacceptanyexpressionsdescriptionTheserverencounteredaninternalerrorthatpreventeditfromfulfillingthisrequest.exceptionorg.apache.jasper.JasperException:/page2/ELTest.jsp(line:21,column:4)AccordingtoTLDorattributedirectiveintagfile,attributevaluedoesnotacceptanyexpressionsorg.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:42)org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:443)org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:149)org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1240)org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:875)org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1538)org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375)org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2427)org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2433)org.apache.jasper.compiler.Node$Root.accept(Node.java:474)org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2375)org.apache.jasper.compiler.Validator.validateExDirectives(Validator.java:1798)org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:217)org.apache.jasper.compiler.Compiler.compile(Compiler.java:373)org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:646)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)javax.servlet.http.HttpServlet.service(HttpServlet.java:728)org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)解决方案本帖最后由 FWDuo 于
08:44:24 编辑解决方案二:<%@pageisELIgnored="true|false"%>如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000%20}</p>在isELIgnored="true"时输出为${2000%20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。解决方案三:引用1楼huxiweng的回复:<%@pageisELIgnored="true|false"%>如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000%20}</p>在isELIgnored="true"时输出为${2000%20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。您没有看清问题为什么在isELIgnored="false"情况下&c:if&无法使用解决方案四:引用2楼FWDuo的回复:Quote: 引用1楼huxiweng的回复:<%@pageisELIgnored="true|false"%>如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000%20}</p>在isELIgnored="true"时输出为${2000%20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。您没有看清问题为什么在isELIgnored="false"情况下&c:if&无法使用解决方案五:引用3楼huxiweng的回复:Quote: 引用2楼FWDuo的回复:Quote: 引用1楼huxiweng的回复:<%@pageisELIgnored="true|false"%>如果设定为真,那么JSP中的表达式被当成字符串处理。比如下面这个表达式<p>${2000%20}</p>在isELIgnored="true"时输出为${2000%20},而isELIgnored="false"时输出为100。Web容器默认isELIgnored="false"。您没有看清问题为什么在isELIgnored="false"情况下&c:if&无法使用可是为什么在设置为false的时候只有&c:if&不行&c:out&&c:set&&c:choose&&c:foreach&都是可以的&%@taglibprefix="c"uri="http://java.sun.com/jstl/core"%&&%@pagecontentType="text/charset=UTF-8"language="java"isELIgnored="true"%&&html&&head&&title&&/title&&/head&&body&&c:setvar="age"value="20"scope="request"/&&c:iftest="${age&18}"&abc&/c:if&
【云栖快讯】中办国办印发《推进互联网协议第六版(IPv6)规模部署行动计划》加快推进基于 IPv6 的下一代互联网规模部署,计划指出2025年末中国 IPv6 规模要达到世界第一,阿里云也第一时间宣布了将全面提供IPv6服务,那么在全面部署 IPV6 前,你需要了解都在这儿&&
稳定可靠、可弹性伸缩的在线数据库服务,全球最受欢迎的开源数据库之一
6款热门基础云产品6个月免费体验;2款产品1年体验;1款产品2年体验
弹性可伸缩的计算服务,助您降低 IT 成本,提升运维效率
开发者常用软件,超百款实用软件一站式提供URL action The rest of the JSTL core tag library is mainly on the URL. The first of these tags are properly named &c:url& tag, used to generate the URL. In particular, &c:url& provides three functional elements, they are constructed for the J2
JS to get the page URL: (1) The common format is: window.location.href (2), but if you are logged on when the first pop-up a dialog, this dialog box, which is the login page login.jsp, this time in this dialog box if you want to get inside the outerm
1.PHP get the URL address of the previous page &?php echo $_SERVER['HTTP_REFERER']; ?& 2.PHP get the current URL address of the page &?php echo $url = $_SERVER[&SERVER_NAME&].$_SERVER[&REQUEST_URI&]; ?&
Prerequisite: Background are using utf-8 access, URL parameters. Reason: IE6.0 and earlier, through the address bar enter the URL, use the default encoding is gbk IE7.0, IE8 version, enter the URL in the Address bar, use the default encoding is UTF-8
Described the situation: in the project, often in code to directly access a url, target url when there are set BASIC Authorization, the code needs to be coupled with a user name and password to visit, details are as follows: public static String post
java. io. CharConversionException: isHexDigit. make the time pass parameters ajax experience this anomaly, in-line to find a solution that I have not found that errors are caused by escape. Issued the following solution to put Another way to thank th
URL to pass the Chinese garbage treatment issue At 10:12 on May 27, 2009 Method 1: In the background to get some string iso-8859-1 encoding the form of an array, and then use this array of instances of a UTF-8 encoded form of String type String. Url
Optimization SEO-URL: URL length Search engines when they crawl the page, the URL for the page length will be certain restrictions. For more than the length of the URL points to a page, search engines may give up your. The main factors determine the
Today met a very strange question, passing parameters through the url url + &? Name =& + c # + && id =& + &21& to another page, she discovered the value id read out the air, when the name value c + +, the transfer value i
Xiang Jie Javascript in Url encoding / decoding, the form submission URL encoding problem Xiangjie Javascript in Url encoding / decoding URI Abstract targeted codec related problems have been described, on which characters need to Url encoding encodi
2 people are concerned about this news, URL design is often overlooked in Web design stuff, actually URL is very important, not only is the only path to a web page, but also to your site is clean and friendly. This article describes the Web URL of th
&%@page import=&java.net.*,java.io.*&%& &%! public boolean saveUrlAs(String photoUrl, String fileName) { // This method can only be users of the HTTP protocol try { URL url = new URL(photoUrl); HttpURLConnection connection = (HttpURLCon
This carried over http://www.20ju.com/content/V152073.htm URL design is often overlooked in Web design stuff, actually URL is very important, not only is the only path to a web page, but also to your site is clean and friendly. This article describes
Domain Name, the domain can be converted to ip address InetAddress can also use the getAddress () to get the IP address, but its return value is a 4 byte array. Thus, although getAddress () in the IP aspects of access is useful but not suitable for e
1. What is a URI Resources available on each Web - HTML documents, images, video clips, programs, etc. - by a Uniform Resource Identifier by (Universal Resource Identifier, referred to as &URI&) positioning. URI usually consists of three parts:
-------------------------------------------- ---- General Outline ----------------------------- Ralasafe open source for some time, about 2 months. According to community feedback, I intend to focus on Ralasafe best practices, writing a BLOG. General
Can now in a jsp. Sending data through the url and send the contents of msg String urlStr = &http://127.0.0.1:8080/test/test.jsp&; URL url = new URL(urlStr); request.setCharacterEncoding(&UTF-8&); URLConnection conn=url.openConnection(
Wrote Detailed Url in Javascript coding / decoding Abstract This paper focused on issues related to URI encoding and decoding have been described, on which character encoding Url encoding needed, why a detailed description of coding and comparative a
Session, Cookie, jsessionid, and Url Rewriting Fault Description: Personnel management system (A) embedded in the permissions system (B), B system through the Servlet simulated landing, and landing information cached in Session A system has to ensure
php tutorial full url address bar parameters for a number of ways: $ _SERVER [&SERVER_PORT&] / / Get port $ _SERVER ['HTTP_HOST'] / / Get the domain or host address, such as xhxu.cn or http://www.xhxu.cn or 2010.xhxu.cn $ _SERVER ['SERVER_NAME']
In some occasions, like voting, we often required because of the principle of fairness can only cast one vote per person, in a number of WEB development had a similar situation, we usually use this time to achieve COOKIE, such as the following code:
URL redirection, also known as URL redirect or URL redirection, when a user browses to a URL, will he directed to another web site technology. Commonly used in the string of a long website address, turned into a shorter URL. Because when a Web site t
Solve the problem of Chinese garbled Method 1: Page data for a given client encodeURI (data); Server using the String name = new String (oldstr.getBytes (&iso-8859-1&), &utf-8&); Solve the problem of Chinese garbled Method 2: The data
import java.io. *; import java.net .*; import java.util .*; public class URLPost { / ** * @ Param args * / public static void main (String [] args) { String cookies = doService (&http://bbs.macd.cn/logging.php?action=login &&, &POST&quo
URL url = new URL (url); Get the specified resource URL 1, url.getContent (); 2, url.openConnection (). GetInputStream () 3, url.openStream () java.net.URL URL provides a wealth of construction methods, and to access resources through the java.net.UR
&?php /** * CURL Impersonation HTTP request tool , * Supports the following features : * 1: Support ssl connection and proxy Proxy connection * 2: Automatic support for cookie * 3: Simple GET / POST routine operation * 4: Support single file upload m
The so-called &data& type Url format in RFC2397 made, the purpose for some &small& data, can be embedded directly in web pages, rather than from an external file to load. For example, the img Tag, even if the picture is very, very smal
URL encoding in layman's language Copyright Statement: If reproduced requests, please indicate the source: http://blog.csdn.net/yzhz Yang dispute First, the problem: Coding is the process of web development in JAVA beginners often encounter problems,
本文汇总了一些关于php来路伪造,页面抓取等相关技术的资料,非常的全面,非常的详尽,有需要的小伙伴自己从中选取吧. php 来路伪造 第一种:php_curl 开启方法: 1.找到php.ini, 修改extension=php_curl.dll 把前面的分号去掉; 2.把php_curl.dll, php5ts.dll, libeay32.dll, ssleay32.dll 复制到 windows/system32目录下 然后重启php的服务; 3.建test.php测试文件, 插入以下代码:
这个分页函数非常高只能的 看看就知道了 function ppage($total, $page, $e_page = 15, $e_block = 10, $url = '', $color = '') { if(!strpos($url,'?')) $url.='?'; else $url.='&'; if($color&&'') { $color ='&font color='.$color.'&'; $colore = '&/font&'; } $tot
这篇文章主要介绍了Js+Jq获取URL参数的集中方法,需要的朋友可以参考下 JQ取值方法: jquery本身也不存在取得URL参数的方法,但是已经存在插件,可以直接取得URL等参数 插件连接主页:https://github.com/allmarkedup/jQuery-URL-Parser 下载链接:http://download.github.com/allmarkedup-jQuery-URL-Parser-bb2bf37.zip Examples of use Using the cur
获取URL信息的类 使用这个类,你能获得URL的如下信息: - Host - Path - Statuscode (eg. 404,200, ...) - HTTP Version - Server - Content Type - Date - The whole header string of the URL &? /** * Class for getting information about URL's * @author Sven Wagener &[email][email p
asp.net url分页类代码,需要用到分页的朋友可以参考下. using S using System.D using System.C using System.W using System.Web.S using System.Web.UI; using System.Web.UI.HtmlC using System.Web.UI.WebC using System.Web.UI.Web
asp 获取url函数小结,需要的朋友可以参考下. 方法一:简单,得不到参数,只有一个虚拟路径 GetUrl =request(&url&) 例如:http://127.0.0.1/shiyan.asp?dfsdfsf=dsfsdfd&aa=dddd 获取为:shiyan.asp 复制代码 代码如下: &% dim changdu,url,ends,wurl changdu=len(request.ServerVariables(&URL&)) url
解析url,本想用正则表达式处理,但正则表达式速度较慢.用split处理一下就可以了 package RequestP import java.util.HashM import java.util.M public class CRequest { /** * 解析出url请求的路径,包括页面 * @param strURL url地址 * @return url路径 */ public static String UrlPage(String strURL) { S
今天在项目中用到的两个函数,自己写了下,备用,需要的朋友也可以直接使用了,推荐第一个函数为获取,后面为相关的处理参数. 一是PHP获取当前页面的网址: //获得当前的脚本网址 function GetCurUrl() { if(!empty($_SERVER[&REQUEST_URI&])) { $scriptName = $_SERVER[&REQUEST_URI&]; $nowurl = $scriptN } else { $scriptName = $
Asp.NET生成各种网页快捷方式的代码(桌面url快捷方式,收藏夹/开始菜单快捷方式),需要的朋友可以参考下. using S using System.D using System.C using System.C using System.W using System.Web.S using System.Web.UI; using System.Web.UI.WebC using S
function createUrl(){ var url = window.location. // If you include the cut off of refreshCount if ( url.indexOf('refreshCount') != -1 ){ url = url.substr(0, url.indexOf('refreshCount') - 1); } // If you do not have to directly? ? Mosaic if (url.
Paging is also a frequent topic of discussion all, on-line there were a lot of paging method of introduction, but often merely confined to the web layer or data access layer of a page component, for a typical three-tier web applications I have not se
package cn.arthurs. import java.io.BufferedR import java.io.IOE import java.io.InputS import java.io.InputStreamR import java.net.A import java.net.HttpURLC import java.net.MalformedURLE
1. Read network resources, image streaming public static void main (String [] args) ( / / TODO Auto-generated method stub / / Proxy server to connect across the network try ( java.net.InetAddress addr = InetAddress . getByName ( &192.168.0.254&)
import java.io.F import java.net.URL; import org.apache.commons.io.FileU public class DownloadURLFile { /** * @param args */ public static void main(String[] args) { String res = downloadFromUrl(&http://images.17173.com/2010/www/roll/201003/
FreeMarker Overview FreeMarker is a template engine generates text output based on the template a common tool for the preparation of the use of pure Java Template + data model = output FreeMarker is a very good template engine, the template engine ca
import java.io.IOE import java.awt.image.BufferedI import java.net.URL; import java.io.BufferedInputS import java.io.OutputS import java.io.FileOutputS import java.io.F import javax.imageio.ImageIO; public class Im
URL url = new URL(&http://www.baidu.com&); URLConnection urlconnection = url.openConnection(); BufferedReader bufferedreader = new BufferedReader(new InputStreamReader(urlconnection.getInputStream())); int i = 0; while ((str = bufferedreader.rea
A file object is used to a give a filename. Creating the File object doesn't mean that a file exists. It may be that the does not exist. Suppose if the file exists, first of all we need to convert the file object in URL, for this we use a method toUR
Recently been learning Asp.Net MVC, we Du know they can System.Web.Routing to resolve some Url, and then arrive at our Route rules set a Controller, use our Url Url Route will look more friendly and some, such as : Traditional: http://www.taogame.com
First, write a method. def remote_file_exists?(url) url = URI.parse(url) Net::HTTP.start(url.host, url.port) do |http| return http.head(url.request_uri).code == &200& end end Example: puts remote_file_exists? 'http://www.www.www' # =& false p
public class c { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub // // String str = & ,125 ,0 , ,FWD123 , , ,0 ,0 ,0 ,0 , 11:40:42.0, 03:47:44.0,1 ,0 ,0 ,1 ,0 ,1 ,
//========================== Using two methods ================= ===== 1 .------------ way with the flow try ( / / Instantiate url URL url = new URL (imgurl); / / Load image into the input stream java.io.BufferedInputStream bis = new BufferedInputStr
Copyright (C) , All Rights Reserved.
版权所有 闽ICP备号
processed in 0.048 (s). 7 q(s)I have a form with two inputs: one string, one file.
&form:form ...&
&form:input type="text" ....&
&form:input type="file" ....&
&/form:form&
If the validation fails on the string input, the controller routes back to this same view.
When that happens, the string field is preserved but the selected file is lost.
Is there a way to preserve the file selected when the view is re-rendered?
I think the answer is no - and that it is intrinsic to the HTML file input, not the server-side framework.
Asking in case there's something I'm missing.
解决方案 It is true that the file input value cannot be preserved. Thats just as it is implemented in all browsers. As far as i can tell it has to do with potential security risks but i never went deeper.
There is a possibility to achieve something similar though. This is what we did in our project:
Each form with fileupload has a UUID that will not change as long as inputs are invalid.
We used FineUploader to asynchronosly upload files during these edit phase(s) which uploads to a folder with this uuid as foldername
We maintain hidden inputs (text) with references to the current uploads
If there are not bindingresult errors we process the files in a method and oncomplete we remove the upload folder
If there is an error we keep the uuid in place and maintain the input fields so we do not loose the references.
This works stable now and as a nice side effect the controller was somehow easier and in my eyes also cleaner to write since we do not need multipart for these forms anymore and another controller just handling uploads.
- you might want to implement a cronjob to clear abandonned uploads!
本文地址: &
& form:form ...& 我有一个有两个输入的表单:一个字符串,一个文件。 ; & form:input type =“text”....& & form:input type =“file”....& & / form:form&
如果验证在字符串输入上失败,则控制器返回相同的视图。发生这种情况时,字符串字段被保留,但所选文件丢失。
有没有办法在视图重新呈现时保留选中的文件?
I 认为答案是否定的 - 而且它是HTML文件输入的内在,而不是服务器端框架。如果有我缺少的东西。
解决方案 确实无法保存文件输入值。就像它在所有浏览器中实现一样。据我所知,这与潜在的安全风险有关,但我从来没有深入过。
尽管有类似的可能性。这是我们在我们的项目中做的:
每个带有fileupload的表单都有一个UUID,只要输入无效就不会改变。
我们使用FineUploader在这些编辑阶段中异步上传文件,这些文件以uuid作为文件夹名称上传到一个文件夹中。 我们维护隐藏的输入(text)引用当前的上传文件
如果没有bindingresult错误,我们在一个方法中处理这些文件并且完成我们删除上传文件夹>如果出现错误,我们保留uuid,并维护输入字段,所以我们不会丢失引用。
现在这个工作很稳定,而且作为一个很好的副作用,控制器在某种程度上更容易,而且在我眼中也更清洁,因为我们不不再需要这些形式的多部分,而只需要处理上传的另一个控制器。
- 您可能想要实现一个cronjob来清除被放弃的上传!
本文地址: &
扫一扫关注官方微信}

我要回帖

更多关于 css import url 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信