jstl

JSTL fmt tag does not work in IE?

IE seems to ignore the fmt tag in JSTL. I've tried with fmt:formatNumber and fmt:formatDate, and neither work in IE but they work in all other browsers. (I'm using IE8 and JSTL 1.1) Is this a known problem? Here's an example of code that doesn't work: <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> <fmt:formatNumber ...

How can I produce a select tag using JSTL or Standard Actions in a JSP

I want to make a select tag in a JSP, where the options are an Enumeration (for example, all US States). Is their a tag in JSTL or a standard tag that can do this, without manually iterating through the list? ...

oc4j jstl db connectivity problem

I have OAS version 10.1.3.3 and the applciation that uses jstl 1.1. in tomcat (where it works fine) does nto work fine in OAS. To use jstl 1.2 requires jsp 2.1 and servlet 2.5. Does OAS 10.1.3.3 support this? I tried to find online for this compatibility but could not confirm it. ...

Can I access the values of an enum class from a JSP using EL?

I have an enum class USState. I would like to iterate through the states in a JSP. Is it possible to access a list of USStates without first setting such a list as an attribute? It seems that something as static as an enum should always be available, but I can't figure out how to do it. Here's what I'm looking for: (except working) ...

Comparing strings with JSTL

Hi, I have two strings that i need to compare, but even if they have the same values or different , it always enters the statement... <c:when test="#{bean.name1 != bean.name2}"> fields that are supposed to appear _only_ when name1 is different from name2 </c:when> ...

How to pass an object from Spring 3.0 controller to JSP view and test with JSTL

First I have a Spring 3.0 controller with a method similar to the following. I'm passing the view an object named "message" and hoping to print that message via the view if it has been set by the "doStuff" method. @RequestMapping("/index") public ModelAndView doStuff() { ModelAndView mav = new ModelAndView(); Map<String, String...

How to make fmt:setLocale work on fmt:formatNumber with only language code in JSP?

Hello, I'm trying to localize currency on my JSP web application, problem is when I ask for locale, I only get language code ("en") instead of full language and country code ("en_US"). Problem with this is, formatNumber doesnt work when setLocale's value doesn't contain language and country code. I can solve it by checking for locale la...

where can i find schema definitions for jsf?

where can i find schema definitions for xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core" ? ...

how to identify the radio button in javascript

I am creating a dynamic table in which each row has a group of radio buttons placed in different columns. I want to change the cell background color when a radio button is clicked.I am constructing the table using the code snippet below. How to identify the radio button in javascript, so that I can set the cell with an appropriate backgr...

How to get a random number in JSTL?

I would like to get something like the next code generated in JSTL <c:choose> <c:when test="${random number is even}"> <div class="redlogo"> </c:when> <c:otherwise> <div class="greenlogo"> </c:otherwise> </c:choose> Thanks in advanced ...

Include JSTL dependency with Maven

I am using maven2, how do I add a dependency to JSTL (The JSP Standard Tag Library) ? ...

Selecting a background color for cell selection

I am creating a dynamic table in which each row has a group of radio buttons placed in different columns. In that i want to change the column background color in different rows when radio button is clicked. (i.e Each row is a radio button group and if someone selects a cell then the background color needs to be set for the cell and unse...

JSTL: I need to access hashtable using a key.

I know this works: <c:out value="${model.testhash['A']}"/> but I need something like: <c:out value="${model.testhash[${model.testkey}]}"/> Is this possible? ...

How to check if external URL content loads correctly into an <IFRAME> in JSP page using HTTP response code

I am looking into a solution that would allow to load an external URL content into an <iframe> element in a JSP page. However, before displaying any content, JSP code would first check for HTTP response of included in iframe's src URL and if 200/OK returned then display it otherwise a custom message or another page is displayed instead. ...

Browser Compatiblity problem with Firefox

Hi, I have used a tag in struts1. with first value as "Select dealer". Other options im populating from a list. In IE it works fine. But in Mozila Firefox the initial value is empty. The all the options are there in the dropdown. Same code in other scenario works well even with Firefox. Have anyone Come accross this? ...

Internationalization in a JSP web application?

In my current project, we are looking at phasing out our old presentation layer and replacing it with something more modern and more well-known. For various reasons, JSP was chosen as the technology. Possibly in conjunction with Apache Tiles. I should perhaps mention that we are using Spring in the back, if that matters at all. Internat...

Where do I put jstl.jar and standard.jar so that Netbeans don't give errors/warnings?

Where do I put jstl.jar and standard.jar so that Netbeans don't give errors/warnings anymore about the taglib. ...

What java view technology is this?

It seems velocity and freemarker look fairly similiar, at least for basic usage. Anyhow, what is the "built in" or standard view framework called? It looks like: <c:if test="${someobject.property != null}"> ...

Using Dreamweaver with JSP/JSTL (Scriptlet vs JSTL)

I am considering whether using JSTL is better than Scriptlets on a JSP page and one consideration is the tool that the web designers will be using to generate the JSP pages. Since Dreamweaver seems to be the industry standard product, I am using that as a reference point. I can't find any up-to-date information about Dreamweaver suppor...

How to use JSTL in a GWT project?

i am building a GWT project, with GWT-2.0.3 and eclipse plugin. well, first i tried, JSTL1.2 and servlet 2.5, i do add jstl-1.2.jar to war/WEB-INF/lib in web.xml, i use: <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5...