All Questions
Tagged with jstl javascript
451
questions
0
votes
1
answer
68
views
How to access <sql:query> result set of jsp inside <script>
I am trying to use FullCalendar library to design an interactive calendar where user can click on a date to see the corresponding course schedule/ event. For this I need to populate the events in this ...
0
votes
0
answers
28
views
Retrieve selected value from dropdown [duplicate]
Struggling with what should be some basic JavaScript.
A basic dropdown selector which correctly shows the selected value in a field -
<select id="State" onchange="getstate()">...
0
votes
1
answer
448
views
How to disable a delete button after it has been pressed?
I have small table which has the following code for the delete button.
When I click on the delete button all the delete buttons in the row are disabled. I only want one button to be disabled ...
0
votes
1
answer
476
views
How to write JSP Code inside a Javascript if-statement?
I hope everyone is doing well!
I was wondering if there was a way to write JSP code inside a Javascript if-statement?
For instance, the testVoid() method from the funStuff.java class changes a certain ...
0
votes
1
answer
433
views
<select multiple> </select> set more values with val() method in jsp page
My jsp page
<script type="application/javascript">
<c:forEach var="bs" items="${subjectOfBookList}">
$("#bSubjectU").val(${bs.subjects.id}...
1
vote
1
answer
705
views
Difference between jsp redirect url tag and response.sendRedirect() method
I have the following code to redirect to a new page from a jsp.
//response.sendRedirect("someJspPage.jsp");
%>
<c:redirect url="someJspPage.jsp" />
<% ...
1
vote
1
answer
227
views
How can I compare to a JavaScript variable in an EL expression?
In .jsp file:
<script>
String id = "S";
</script>
<c:choose>
<c:when test="${detail.status==id}">
</c:when>
<c:otherwise>
...
-1
votes
1
answer
219
views
Search Filter Logic on Select Tag in HTML
This is how my screen looks like.
I want to use the Search text field to search across the list. I am unable to develop any logic for the same as the list is in the form of a select. Please let me ...
2
votes
1
answer
1k
views
JSP/Spring MVC - How to populate list dynamically with elements added to model (javascript/jQuery)
First my apologies if the question is not clear enough. I will edit it if convenient to see if this can help someone else in the future.
I have a form in a JSP binded to a Spring MVC model which would ...
0
votes
2
answers
380
views
How to access forEach tag values of JSP in Script Tag of Javascript Dynamically.?
I am trying to fetch all the details of each track of album from controller(servlet) to jsp page using forEach tag.The values are getting fetched perfectly.For combining play/pause button and audio ...
0
votes
2
answers
491
views
On AEM JSP page pass value of <script type="text/javascript"> to <script type="application/ld+json">
I am working on an AEM component head.jsp component.
What I need is to grab the value I got in <script type="text/javascript"> to display in <script type="application/ld+json&...
0
votes
1
answer
427
views
How to get multiple values using JSTL tags?
I have this button:
<button type="button" class="btn btn-danger" id="deleteuserbtn" value="${usr.idUser}" onclick="deleteUser(this.value)">...
0
votes
2
answers
86
views
How to associate the same function in javascript to multilpy button of a <c: forEach>?
I have a problem with opening modal when the 'Modifica' button is clicked. Only the first button works and I understand that I don't have to assign an id to the button. How can I open the modal (which ...
1
vote
0
answers
183
views
custom formatting display column tag
Guys I am using display tag in my jsp page and I am trying to use a format option in display column tag but it's not working, How can I format column tag?. For more info please check out the code ...
0
votes
1
answer
361
views
Show/hide table jsp jstl with Hashmap
I'm stuck!
I'll try to explain my problem:
i've to loop an hashmap, select one of the key's and "explode" details. The hashmap is HashMap<String, List<Object>>. I thinked about a onClick ...