jsp-tags Questions
6
Solved
I am currently migrating a Spring MVC Webapp (xml-config to java-config, tomcat to embedded tomcat via spring-boot).
The webapp uses freemarker as templating engine and JSP Taglibs. Now when I cal...
Indiaindiaman asked 17/11, 2015 at 11:37
3
Solved
I just migrated to Tomcat 10. After changing all references of javax.servlet packages to jakarta.servlet I still can't get my app to run.
I have downloaded the JSTL 2.0 class libraries from H...
4
What does ${} means in JSP? For example,
<c:if test="${!empty cookie.lang}">
<fmt:setLocale value="${cookie.lang.value}" />
</c:if>
7
I created a jsp page as follows:
<%@ page contentType="text/css" %>
<html>
<head>
<title>Login page</title>
<link href="/css/loginstyle.css" rel="stylesheet" type...
3
Solved
I've written my JSP custom tag with the following TLD:
<?xml version="1.0" encoding="UTF-8"?>
<taglib
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee web-jsptaglibrary_2_1.xsd"
xm...
1
Solved
I like to create a registration form where user can register his or her data and the given data will be saved on a database. I created a database HospitalM using mysql workbench 8.0. I ran the proj...
Commentator asked 28/11, 2021 at 0:11
4
Solved
I am using Spring boot.
I have a JSP page with the following tag libs:
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec" uri="http://www...
Incorporator asked 17/2, 2015 at 10:54
4
I haven't been able to figure out how to display a java.time.LocalDate value in a JSP.
In my JSP, I have this:
<fmt:formatDate value="${std.datum}" type="date" pattern="dd.MM.yyyy" var="stdDat...
4
Solved
Suppose I have a custom tag that takes a List of Strings:
<%@ attribute name="thelist" type="java.util.List&lt;java.lang.String&gt;"
required="true" %>
How can I create this attri...
17
Solved
I'm a beginner and learning spring and hibernate (utilizing maven in project)and came across this problem and got stuck here. tried finding solution but ended up no where. Please help. thanks a lot...
6
Solved
I have been searching all over google for an answer and it doesn't work.
I am getting this error:
org.apache.jasper.JasperException: /WEB-INF/pages/calendarEntry.jsp (line: 5, column: 46) Accordi...
14
Solved
I'm trying to follow the example of spring JPetStore but I get an error in the JSP pages in the line that references the lib tag spring:
Can not find the tag library descriptor for "http://www.spr...
Belay asked 18/11, 2010 at 20:19
6
Solved
I currently work on a web application based on Spring 3.1.0.M1, annotations based, and I have a problem with resolving property placeholders in one specific place of my application.
Here is the st...
Trask asked 2/3, 2011 at 19:30
5
Solved
I am certain the answer will be 'NO', but I wanted to ask anyway just
incase I have missed something.
Everyone knows that one pass data to a page in an anchor tag by using
the GET method:
What ...
Magocsi asked 6/12, 2011 at 10:55
2
I more or less know the difference between <%! and <%, but I can't seem to find the difference between <%= and <%. I'm trying to avoid a null value error by introducing some logic into ...
2
Solved
Background
I once wrote this method:
private <T> SortedSet<T> createSortedSet() {
return new TreeSet<T>();
}
It's supposed to be called like this:
Set<String> set = cr...
3
Solved
I have a custom tag in a ".tag" file that computes and outputs a value. Because I cannot post the code here, let's assume a simple example.
Content of file mytag.tag:
<@tag dynamic-attributes=...
2
Solved
Is it possible to do this? What I'm trying to accomplish here is the creation of an extensible Struts 2 plugin with customizable screens to avoid code duplication in similar projects.
2
Solved
I'm working on JSPs with Struts2, I have to iterate on two lists, and change the background code of each <tr/> printed.
My JSP snippet:
<s:set var="counter" value="0" scope="page" />...
3
Solved
What methods do I need to add to a custom Java class so that I can iterate over the items in one of its members? I couldn't find any specifications about how the JSTL forEach tag actually wor...
3
Solved
I am using Spring's form:input as below :
<form:input type="number" .....>
in my jsp but when I check the html that is rendered on the browser it shows like :
type="number" type="text"
...
Announcer asked 26/11, 2014 at 4:39
7
Solved
I have a page which uses a tag template.
My web.xml is very basic.
I simply want to run some code in the page.
And no, I'm not interested in tags or other alternative. I want to use the bad-practi...
6
Solved
I want to open a jsp page without accessing my servlete code. i.e. I neither have to input my url in (action="url") my jsp code nor have to access my Servlete code.
<form id="main" method="post...
Abampere asked 7/5, 2014 at 12:31
3
Solved
I am trying to send DTO Object from one jsp to another jsp using jsp:include tag. But it is always treating it as String. I can't able to use DTO in my included jsp file.
Here is a code ..
<c:...
3
Solved
I'm trying to use multiple attributes in my custom tag, e.g.:
<mytaglib:mytag firstname="Thadeus" lastname="Jones" />
How can I access the attributes in the TagHandler code?
Agrarian asked 22/10, 2008 at 6:16
1 Next >
© 2022 - 2024 — McMap. All rights reserved.