jspx

Escape HTML entities in JSP / JSPX: no solution for problem that should not even exist?

坚强是说给别人听的谎言 提交于 2019-12-30 16:50:53
问题 We use jspx as template engine. We have dozen of screens with hundreds of el expressions like ${user.firstName} or "${mail.subject}" And all this HTML code is not escaped by default. If there would be something with < or " in field -- screen will fail. We can always use fn:escapeXml but doing so in all places really boring. 1) Does there is a way to do escape by default? The only way I know is to hack JSP compiler (like jasper for tomcat). But it is not a way to go. 2) Why somebody may ever

Should I be doing JSPX instead of JSP? [closed]

我的未来我决定 提交于 2019-12-20 08:47:20
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . Using JDeveloper, I started developing a set of web pages for a project at work. Since I didn't know much about JDev at the time, I ran over to Oracle to follow some tutorials. The JDev tutorials recommended doing JSPX instead of JSP, but didn't really explain why. Are you

metadata tag not working in jsf

别说谁变了你拦得住时间么 提交于 2019-12-20 05:48:10
问题 I am trying to set a variable with viewparam but I can't seem to get the code to compile in eclipse. It seems like it's not finding the tags. I have the mojarra 2.2 used and I am inlcuding jsf-api-2.2.4 and impl also. <?xml version="1.0" encoding="UTF-8" ?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" version="2.0"> <jsp:directive.page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"

Including JS files (JQuery) in JSPX files

家住魔仙堡 提交于 2019-12-19 05:55:05
问题 I'm creating a dynamic web project in Eclipse (almost from scratch) and I created a JSPX file where I put <head>... <script type="text/javascript" src="route/to/scripts/jquery.js"></script> <script type="text/javascript" src="route/to/scripts/jquery.ui.js"></script> <script type="text/javascript" src="route/to/scripts/something.js"></script> </head> I intend to use Jquery UI sortable and I found out that using JSPX, only the first script loads in Firefox and IE (while in opera it works...).

Including JS files (JQuery) in JSPX files

元气小坏坏 提交于 2019-12-19 05:54:04
问题 I'm creating a dynamic web project in Eclipse (almost from scratch) and I created a JSPX file where I put <head>... <script type="text/javascript" src="route/to/scripts/jquery.js"></script> <script type="text/javascript" src="route/to/scripts/jquery.ui.js"></script> <script type="text/javascript" src="route/to/scripts/something.js"></script> </head> I intend to use Jquery UI sortable and I found out that using JSPX, only the first script loads in Firefox and IE (while in opera it works...).

Support both jsp and jspx in spring 3.0

柔情痞子 提交于 2019-12-19 03:58:52
问题 i've set up a roo application. The default view resolver built-in in roo is for jspx files. Is it possible to support also jsp files?. I tried configuring two viewResolvers but it seems that no urlBasedViewResolvers can coexist, its either one or the other. Changing the order does not affect the behaviour. If I set order =1 to the jspx then if i search for any .jsp file it gives me 404. The same if I search for jspx but jsp viewResolver is set with order =1. Is there anyway to do this? Thanks

Keep JSPX from creating self closing tags (<div></div> != <div/>)

假如想象 提交于 2019-12-18 12:38:33
问题 JSPX has the lovely side effect of turning: <div class="magic"></div> Into: <div class="magic" /> For many browsers this causes pandemonium and mayhem with layout even though it is valid XHTML. Consequently I have resorted to using a groovy script to find all possible bad HTML with the following regex: def m = html =~ /<(\w+)[^>]*?><\/(\w+)>/ def bad = m.findAll { it[1] == it[2] }; Is there way to have the JSPX XML processor not to self close tags? 回答1: AFAIK, there is no elegant solution to

How to produce valid HTML with JSPX? (not XHTML)

馋奶兔 提交于 2019-12-17 15:58:19
问题 When trying to create a HTML page with JSPX you will face the following difficulties: JSPX minimizes tags we don't want it to, for example <div class="foo"></div> becomes <div class="foo"/> which is interpreted differently by browsers JSPX tags must be closed, while some HTML tags should remain unclosed, for example <script...> . Self-closed <script.../> tag is not recognized by IE and Firefox. Specifying HTML5 doctype ( <!DOCTYPE html> ) Inline JavaScript This question is a response to a few

Google map in jsp document

爱⌒轻易说出口 提交于 2019-12-13 05:36:53
问题 I am trying to implement google map api into one of my web page which is generated by jsp document, and I am having trouble getting it work. I found some jsp taglibrary by www.lamatek.com/GoogleMaps, but it doesn't seem to work.(I mean even examples on their web site don't work) Has anyone done work on google map in jsp document? I can really use some help or advice.(It seems like jsp docuemnt and javascript just don't get along) p.s I can get static google map work, but that's not my client

SpringRoo placing <script> and <link> on load-scripts.tagx from view.xml

丶灬走出姿态 提交于 2019-12-12 03:54:50
问题 A best practice of web development is to place the <styles> and <scripts> on a particular page in .css and .js file respectively. This question might be a duplicate from this question and the answer from @java1337 get it working. From his answer file management can be an issue since for every definition of a view (.jspx) it is required to add another .jspx file containing all <link href> and <scripts src> . One possible solution I'm working on is adding in the view.xml the URL/link of all