All Questions
72
questions
1
vote
0
answers
1k
views
JSP - Fatal Error :1:1: Content is not allowed in prolog
I am working with JSP for a j2e app and I have an issue trying to work with xml jstl library.
When I try to parse the file I have this error : [Fatal Error] jstl::1:1: Content is not allowed in prolog
...
-1
votes
1
answer
56
views
I am trying this JSP program but i am getting HTML 500 error(page not found) [duplicate]
Here is my program files.
when i divide 20 by 5 i get answer 4 Okay. Correct!
But when i divide 20 by 0 i doesn't get Aspected Output.
Instead i get Page cannot be displayed error HTML 500 Internal ...
-1
votes
1
answer
48
views
pom.xml error in maven project using eclipse
I am making a maven project in eclipse for CRUD operations and whenever I am adding jstl dependency version 1.2 the pom.xml is showing error even though the jstl dependency get downloaded and also the ...
0
votes
1
answer
375
views
ERROR: 'Premature end of file.' on jsp page
The following piece of code throws an error:
<c:set var="product" value='<%= request.getAttribute("jaxbString")%>'></c:set><c:import var="xsl" url="<%= ConstantManager....
1
vote
1
answer
296
views
How to get JSTL Tag like ${Some} in jsp page but Some is not a value
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%><%@ page contentType="text/xml" %><%@ page isELIgnored="false" %><c:out value='<?xml version="1.0" encoding="UTF-...
0
votes
1
answer
43
views
How to get attributes from xml?
How to get attributes from inside the tag of an xml with jstl in a jsp file?
for example:
< tag1 att1="value1" > hello world < / tag1 >
I want this string: att1="value1"
actually I can show ...
0
votes
1
answer
611
views
Importing XML file into JSP project from totally different JSP project
I have created a JSP project named 'JSTL XML 2'. I have another JSP project named '39-JSTL_XML' in the same workspace. I have added one XML file called 'UsersXML.xml' in web-content folder of '39-...
0
votes
1
answer
429
views
javax.el.PropertyNotFoundException: Property 'genero' not found on type model.RankingResult
I'm getting the error above while trying to populate a xml file with info from a simple ArrayList of the class RankingResult. After searching around I found out that most people with this error made ...
1
vote
1
answer
492
views
Java 8 JSTL and saxParseException
I am running Java 1.8.0_131, also tried with 121, with Tomcat 7 and 8 (tried both).
The application uses jstl and the jstl jar is included in tomcat_home/lib directory.
When the application starts it ...
1
vote
0
answers
88
views
Heroku xpath NoSuchMethodError: org.jaxen.dom.DocumentNavigator.getInstance()
I am using jspx in tomcat on Heroku and am having an issue with the below code. The odd thing is that sometimes it will work so I am reasonably confident that the issue is related to the classloader ...
0
votes
0
answers
143
views
Unable to deploy cyclos
I'm having http:// 500 error when trying to deploy cyclos4.7 on apache-tomcat-8.5.8, can anyone help me figure out the problem???
java.io.FileNotFoundException: The requested resource (/content/index)...
0
votes
0
answers
196
views
JSTL is not printing my values to the screen, rather it is printing the code itself
Is there anything wrong with this code? This is a JSP snippet.
<c:set var="components" value="${fn:split('IMS,NRF,CAV,NES',',')}"/>
<div style="float:left;width:25%">
<table ...
0
votes
1
answer
120
views
XML format date with JSTL
my XML look like this
<test>
<dateOfTest>2010-05-01T11:12:55</dateOfTest>
</test>
I retrive the date using x:parse then i use formatDate to format the date.
<fmt:...
0
votes
1
answer
586
views
jstl parse error: javax.servlet.jsp.JspTagException: Unrecognized object supplied as 'xml' attribute to parse
I have a valid string of xml on a jsp(portlet version 1) project.
I am trying to use jstl tags to parse through it.
Included tag libs:
<%@ page import="javax.portlet.*"%>
<%@ taglib ...
1
vote
2
answers
743
views
Apache Tiles 2.2.2 Pass value from tiles-config.xml to JSP
I have a common header in all the pages except for some pages where the right hand side of header which has some options. For eg, right hand side of my header will have option like : Block, Compose, ...