Questions tagged [jstl-functions]
39 questions
0
votes
0 answers
How to pass a param tag dynamically to JSTL query?
I'm using the JSTL query tag to do the mysql query as following:
SELECT distinct combined.alt_tm FROM (
SELECT distinct sal_tm as alt_tm FROM sales WHERE sal_snum=?…

Brett
- 1
- 1
0
votes
0 answers
Why JSTL(1.0) functions taglib do not work in jsp
Functions taglib is not working for jstl comparison.
uri : <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
i have included the jstl.jar in my lib folder and in order to check its version i extracted the jar and the MANIFEST.MF…

CodeBRKR
- 116
- 1
- 7
0
votes
1 answer
Replacing a word with trademark in JSP
I am displaying data from my oracle database onto my JSP page. Requirement is to locate “PEFC” text, remove PEFC and replace with: PEFC™
I am able to replace the word in JSTL but don't know how to put TM at the end. Here is what I have done so far…

Adeel
- 413
- 1
- 7
- 22
0
votes
0 answers
How to iterate in a foreach in jsp using JSTL
I have a hashmap: HashMap> Map = new Hashmap<>() ;
Its keys and entries are filled as following.
University,
I want to iterate over the map in a JSP. Get the values individually.
How do I do that??

Daniel James
- 3
- 3
0
votes
1 answer
using dateParam for JSTL query
I'm trying to get a simple query returned on a JSP with very limited data, say about 20-25 rows max being returned.
I am somewhat new to using JSTL but I was wondering in the JSP with the tags, does something like var="{time_req_date}" replace the…

Barry P
- 91
- 1
- 10
0
votes
1 answer
Special Chars like  not escaping from JSTL while triggering Email
I know this might have asked 1000 times, but I dont see a proper answer to this issue. I am trying to email a list of products in my IBM wbsphere commerce application.
I am not able to escape the product names with speical chars through jstl. for…

user10192769
- 119
- 2
- 3
- 12
0
votes
1 answer
jstl c:set is not working on js code in jsp file
I have a JSON from a service. I am appending a html block by JSON value and I have to check some values for appropriate display.
I am trying to set discountValue variable but it not working with js variable. How can I solve it?
if (data!="")
…

user2400092
- 97
- 2
- 9
0
votes
0 answers
JSTL tag replacement for bean:define
I am unable to find replacement for bean:define tag in JSTL.
and
can anyone…

Varun
- 196
- 1
- 20
0
votes
0 answers
How to handle xss attack on search input field in jsp?
How to add c:out for input search box ?
Now if the user enters some invalid string(">) in the text box, the html renders it and impacting the UI
I tried adding,

Sankar C
- 41
- 1
- 3
0
votes
1 answer
How to read form parameter data using JSP without using scriptlet
I want to read the form parameter data using scriptlet in #jsp. But i do not want to use any java code in JSP. Then do i need Expression Language or #JSTL or what?

ALTAF
- 41
- 11
0
votes
0 answers
JSTL in dynamic table creation
I am new to Spring framework. I want to build a form where user needs to choose some values from select list. I have write down the code in body part of jsp page. This works fine.
0
votes
1 answer
Try to do something similar to @Adjust in jsp
I am trying to determine whether the date is within 60 days (compare to today's date).
If the service date is within 60 days, the column will show "Yes", on the other hand, if the date is over 60 days, the column will show "No".
I know if in lotus…

Learner
- 727
- 4
- 13
0
votes
1 answer
JSTL - add parameters to call
I have the following code in JSTL that retrieve student picture in j2ee site
','

JavaSheriff
- 7,074
- 20
- 89
- 159
0
votes
0 answers
Using JSTL enable/disable button based on text entry in text area
I am new to JSTL, I know it's quite straight forward in JavaScript/jQuery but wanted to know how I will be able to achieve the result using JSTL on a JSP page.
Actually I have a form with a text area in it with a Confirm and Cancel buttons…

rac3b3nn0n
- 861
- 2
- 12
- 26
0
votes
1 answer
Check multiple list sizes in JSTL
How do I chain multple length checks?
I tried these ways to no effect:
and

Blawless
- 1,229
- 2
- 16
- 26