Dinara Berdysheva wrote:Hello guys! I am trying to display table from database using jsp page. Everything works correctly, apart from the layout. The problem is : the more rows I add to my table, the more space increases between table and navigation bar. Please help!
This is part of my jsp, where i display table:
naval kumar wrote:Dear Sir I want to Know the Use of Entry In Web.xml . why we Use ??
1- <context-param>
<param-name>broadvision.demand.uploadAppName</param-name>
<param-value>comcenter</param-value>
</context-param>
2-<context-param>
<param-name>broadvision.demand.cssName</param-name>
<param-value>FA_CSS</param-value>
<description> Style for Commerce Foundation Application. </description>
</context-param>
3- <filter>
<filter-name>User-Session Validation Filter </filter-name>
<filter-class><!-- com.ireps.common.SessionFilter --></filter-class>
</filter>
4- <filter-mapping>
<filter-name>User-Session Validation Filter</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
5- <init-param>
<param-name>detail</param-name>
<param-value>0</param-value>
</init-param>
6- <mime-mapping>
<extension>asx</extension>
<mime-type>video/x-ms-asf</mime-type>
</mime-mapping>
vani patel wrote:Hi i new to JSTL and am tring one example code is given below demo2.jsp and my server is Tomcat 7 ,your any help would be appriciated, i added below jar files in build path
core-3.1.1.jar
jsp.2.1.jar
jsp-api.jar
jsp-api-2.1.jar
jstl-1.2.jar
servlet-api.jar
and when i run this jsp file i am getting below error, i tried other files without jstl it is working fine
demo2.jsp
`<%@ page contentType="text/html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
Frits Walraven wrote:Hi Sagar Vyas,
<c:set target=""> must point to a real object and not the name of object as it was with <jsp:useBean> action what I understood from this is its like as we are using <jsp:useBean>'s id attribute it is a same thing ?
With <jsp:useBean> you either create (instantiate) a real object or you point to one that is already available in one of the contexts (page, request, session, application).
In other words you can point to a object that has been created or pointed at with a <jsp:useBean>:
Regards,
Frits
Hi Veena,
You didn't use a String literal. Instead you used an EL expression (${PetMap}), which evaluates to the "real thing", the object (in your example the Map petMaps).
The following doesn't work (notice: PetMap is now a String literal):
For the c:set var property a String literal works:
I hope I could help.
cheers
Bob>
Stefan Evans wrote:
Because Integer with a value of 2 is NOT equal to a Long with a value of 2 (different classes are never equal) the value fails to be retrieved from the map.
I don't know of any way in EL to not interpret literal numbers as Long.
Bill Clar wrote:How are you setting the map attribute in the request object (HttpServletRequest)?
Are you using the name "map"?