Questions tagged [jstl-functions]
39 questions
2
votes
1 answer
getting value from an object in jstl, getting property name from a list
I am new to JSTL, I understand that to get field value we can use the following code:
I have a…

user3305063
- 461
- 1
- 5
- 15
2
votes
2 answers
jstl functions not rendering in spring boot web application when war deployed in tomcat
when spring boot web application deployed in tomcat jstl functions not rendering.kindly help me on this issue.
what changes should be done while deploying war in tomcat
Added dependency:
…

sakthivignesh
- 21
- 3
2
votes
2 answers
JSTL timezone (KST) implementation error found
While I practicing JSTL timeZone tag, I tried to run these two actions:

Park JongBum
- 1,245
- 1
- 16
- 27
2
votes
0 answers
1
vote
1 answer
How to write a generic JSP Template for Dropdowns etc.?
I want to create JSP templates, i. e. JSP files that contain e.g. a dropdown or input field, to keep the styling of the elements in one place.
Now these templates should be used in different UseCases. For this I would like to pass the corresponding…

Kleinstein11
- 95
- 2
- 9
1
vote
0 answers
How can i change the value of param 'items'to replace the way of sorting
I have such snippet of code, I would like to change the way of sorting (now is sortByTime) but for instance i want to change for sortByTitle or sortById how can i do this?
Exist class with my methods of sorting enity (omitting for brevity some…

Semkov Stanislav
- 13
- 4
1
vote
0 answers
JSP page with if else conditions
I have a jsp form page where created a dropdown field. Based on one of the value chosen I need to show the upload button option which is in different jsp. I tried the below code. Can someone please assist me what am missing here as the code is not…

TTT
- 37
- 8
1
vote
1 answer
How to split a string from another string in JSTL
I am new to JSTL and figuring out a way to split a string using another string. For example supppose my string is
s= "Hello! Good Morning",
and the
t = "Good ",
then I should have str[0] = 'Hello! ' and str[1] = 'Morning'.
However if I put…

Goutam Singh
- 11
- 2
1
vote
0 answers
set dynamic variable name in jstl while using MAP
I need to set the dynamic value for the var in jstl,
My code is
and want the expected out put like this
var = value
value = key
var…

SaviNuclear
- 886
- 1
- 7
- 19
0
votes
1 answer
How to iterate through JSON Array or JSON object in JSP using JSTL
I'm having this json:
{
"maxAgentAmt": 66,
"minComAmt": 3,
"maxTxn": 7,
"maxAmt": 99,
"minAmt": 3,
"maxComAmt": 99
}
and I also have to get values from json array having multiple json objects:
[{
"comType": "V",
"comValue": 5757,
…

Akhilesh Dhiman
- 15
- 7
0
votes
0 answers
How to access the values in nested hashmap in JSP
Java class:
class start {
Map main;
}
class node {
String a;
Map d;
}
"main": {
"0": {
"a": null,
"d": {
"0": {
"a": "ID1",
…
0
votes
0 answers
Uncaught SyntaxError: Invalid Unicode escape sequence \u
I have a JSP which is used to display location in UI form where JSTL code is been used,
function setLocation() {
var fullPath = "${fn:escapeXml(folderPath)}";
updateFolderPath(fullPath);
}
the folderPath value is…

Ram Somani
- 231
- 3
- 12
0
votes
1 answer
Right way to write a JSTL expression plus a string
Hy guys, I apologize if this is a stupid question, but I couldn't find any examples on how to do this.
My expression is currently ${fn:substringBefore(var1, \"@\")}@domain.com.
I've been trying multiple ways of adding the '@domain' string at the…

Gabe
- 23
- 5
0
votes
1 answer
Unable to import taglibs using JSTL on Java 11 Spring Boot project
First of all I would like to say I found threads on SO talking about this problem (even 2020 comments) and none of them helped me fix this problem.
I am migrating project from java 8 (Oracle SDK) to java 11 (AdoptOpenJDK, last version of java 11).
I…

Johnczek
- 532
- 9
- 30
0
votes
1 answer
JSTL fmt:formatDate with locale dependent pattern
In a JSP page I have to display some dates, but none of the available date formats (short, medium or long) suits me.

rslemos
- 2,454
- 22
- 32