jspx

jspx script element on GlassFish v3

浪尽此生 提交于 2019-11-30 09:42:54
问题 The .war is served from GlassFish v3. I am trying to include a javascript file from my jspx. <script type="text/javascript" src="/base/interface/Service.js"></script> I get the following in my http response <script src="/base/interface/Service.js" type="text/javascript" /> The problem is that it should include the </script> tag. I believe this is why it works on Chrome, but not on Firefox or IE. Any idea how to force <script></script> Update: Not sure if any of this is pertinent, but here is

Jspx files and conditional comments

亡梦爱人 提交于 2019-11-29 21:30:20
问题 I'd like to create a web application using Spring and .jspx web pages. My question is how can I put conditional commentaries for IE in jspx? They seem to be not interpreted. <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="css/style.css" /> <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> Also I would like my web pages to be HTML5 compliants. I've tried some methods but I got incompatibilty issues in IE9 (seems to not recognize header and

jspx script element on GlassFish v3

南楼画角 提交于 2019-11-29 16:15:52
The .war is served from GlassFish v3. I am trying to include a javascript file from my jspx. <script type="text/javascript" src="/base/interface/Service.js"></script> I get the following in my http response <script src="/base/interface/Service.js" type="text/javascript" /> The problem is that it should include the </script> tag. I believe this is why it works on Chrome, but not on Firefox or IE. Any idea how to force <script></script> Update: Not sure if any of this is pertinent, but here is the beginning of my jspx file <jsp:root version="2.0" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c=

JSPX Trinidad messageDetailNotInRange for validateDateTimeRange not working

可紊 提交于 2019-11-29 15:44:05
I am trying to override the default validateDateTimeRange message using messageDetailNotInRange as per the documentation. Despite my code, the validator produces the default error message: "The date is outside the valid range." Can anyone see something wrong here? <tr:inputDate required="true" inlineStyle="color:rgb(0,58,117); font-weight:bold;" value="#{processScope.benefit.serviceDate}" immediate="false" onchange="submit();" label="#{mb_ResourceBean.res['claim.serviceDate.label']}"> <tr:convertDateTime pattern="yyyy/MM/dd" secondaryPattern="yyyyMMdd" type="date"/> <tr:validateDateTimeRange

JSP Document/JSPX: what determines how tabs/space/linebreaks are removed in the output?

喜夏-厌秋 提交于 2019-11-29 02:24:58
I've got a "JSP Document" ("JSP in XML") nicely formatted and when the webpage is generated and sent to the user, some linebreaks are removed. Now the really weird part: apparently the "main" .jsp always gets all its linebreak removed but for any subsequent .jsp included from the main .jsp, linebreaks seems to be randomly removed (some are there, others aren't). For example, if I'm looking at the webpage served from Firefox and ask to "view source" , I get to see what is generated. So, what determines when/how linebreaks are kept/removed? This is just an example I made up... Can you force a

JSPX Trinidad messageDetailNotInRange for validateDateTimeRange not working

余生颓废 提交于 2019-11-28 09:57:28
问题 I am trying to override the default validateDateTimeRange message using messageDetailNotInRange as per the documentation. Despite my code, the validator produces the default error message: "The date is outside the valid range." Can anyone see something wrong here? <tr:inputDate required="true" inlineStyle="color:rgb(0,58,117); font-weight:bold;" value="#{processScope.benefit.serviceDate}" immediate="false" onchange="submit();" label="#{mb_ResourceBean.res['claim.serviceDate.label']}"> <tr

JSP Document/JSPX: what determines how tabs/space/linebreaks are removed in the output?

自古美人都是妖i 提交于 2019-11-27 16:47:36
问题 I've got a "JSP Document" ("JSP in XML") nicely formatted and when the webpage is generated and sent to the user, some linebreaks are removed. Now the really weird part: apparently the "main" .jsp always gets all its linebreak removed but for any subsequent .jsp included from the main .jsp, linebreaks seems to be randomly removed (some are there, others aren't). For example, if I'm looking at the webpage served from Firefox and ask to "view source" , I get to see what is generated. So, what

Script tags not rendered in JSP page (using Spring + Tiles + JSPX)

本小妞迷上赌 提交于 2019-11-27 07:06:57
问题 Everyone, I am facing a strange problem including script tags in a jsp page. Of the three script I include only the first one gets endered in the final page. Here is how I have defined the layouts <?xml version="1.0" encoding="UTF-8"?> <!--$Id$ --> <!DOCTYPE tiles-definitions PUBLIC "-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" "http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> <tiles-definitions> <definition name="default" template="/WEB-INF/layouts/default.jspx"> <put

How to get value of bean property when property name itself is a dynamic variable

一曲冷凌霜 提交于 2019-11-26 07:49:46
问题 I\'m trying to write a custom JSPX tag that reads the value of a given bean property from each object in a given list, with the name of that property passed to the tag as a JSP attribute. The tag would look something like this: <jsp:root xmlns:c=\"http://java.sun.com/jsp/jstl/core\" xmlns:jsp=\"http://java.sun.com/JSP/Page\" version=\"2.0\"> <jsp:output omit-xml-declaration=\"yes\"/> <jsp:directive.attribute name=\"items\" type=\"java.lang.Iterable\" required=\"true\" description=\"The items