All Questions
75
questions
0
votes
1
answer
34
views
java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.BodyTagSupport
I have the following code in a JSP file for the tags which is included in all of my JSP files at the top:
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
&...
-2
votes
1
answer
326
views
How to change code of struts tag into spring or jstl tag?
<bean:define id="user" name="form" property="user2" type="document.result" />
This is the example of my code.
I was trying to convert my struts code ...
1
vote
2
answers
109
views
org.apache.jasper.JasperException: "equal symbol expected" when using JSTL c:out as value of Struts1 html:checkbox
I am using JSTL and Struts1 and I am getting
org.apache.jasper.JasperException: "equal symbol expected"
on the line with <html:checkbox>:
<%@ taglib prefix="c" uri="...
-1
votes
2
answers
2k
views
Struts 1.x taglibs compatibility issues with jstl tags
I decided to post this question after 3,5 weeks of blocking and i'm really in need of someone's help.
The problem is with the compatibility and coherence of different taglibs, for budget reason we ...
-1
votes
1
answer
1k
views
logic:messagesPresent property attribute; What is the c:if equivalent?
Currently in my JSP I have the following logic tag:
<logic:messagesPresent property="eve">
<span class="form-error">
</logic:...
1
vote
2
answers
2k
views
DIsplay attribute of an object in jsp with Struts
So I have those classes :
public class DeviceDto {
private long number;
private long blob;
//getters setters
}
public class PageDto {
private DeviceDto pda;
private DeviceDto tab;
...
0
votes
1
answer
211
views
Persistent authentication filter logging in; not propagating to JSP
I've been working on a "Remember Me?"-style persistent authentication system, but after successfully authenticating and logging in the user, my JSPs do not reflect that the user is logged in until the ...
3
votes
2
answers
1k
views
Accessing bean value through c if
I'm stumped. I have a property set in my bean, that I can access through a form on my jsp:
<p> <b class="textBold">Is Locked </span>:</b>
<html:text maxlength="11" ...
0
votes
2
answers
3k
views
How to check a JSTL Variable in jQuery
In my JSP, I use JSTL to set a certain variable:
<c:set var="myVar" value="true" scope="request" />
Then in jQuery, in $(document).ready(function() {..}), I need to check the value of "myVar".
...
2
votes
1
answer
32
views
Re-assign value tag after first form submission?
Assume I have the following class
public class Account {
private Long id;
private String username;
private String password;
// getters + constructor
}
The following action class
public ...
0
votes
0
answers
196
views
null pointer exception from DispatchAction
I am trying to insert records into MySQL from UI but I am getting nullpointerexception in JSP page. Below are my files.
Struts File
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE ...
-1
votes
1
answer
479
views
Value of list attribute of radio button from scriplet in Struts 2
I want to read a key and value of list from a loop.
Below is the code snippet that I tried but it's not working.
<c:forEach items="${mylist}" var="title">
<c:set var="id" value="${title....
2
votes
2
answers
1k
views
How to convert <html:select> dropdown in Struts 2
What are the possible ways to convert below Struts 1 code to migrate in Struts 2. I know <s:select> tag but how to integrate <c:foreach> JSTL in that?
<html:select property="acti&...
2
votes
1
answer
1k
views
Generate name and value attribute dynamically in Struts 2
I am migrating the code from Struts1 to Struts2
Struts1 code
<input type="text" value="<c:out value="${serviceVO.notifList}"/>" name="ServicesNotifList-<c:out value="${serviceVO.globalId}...
0
votes
2
answers
1k
views
fn:length cannot be found: org.apache.taglibs.standard.functions.Functions
I have included tag library in jsp as mentioned below:
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
And I am trying to use it in this code:
<c:when test="${fn:...