code « JSTL « JSP-Servlet Q&A

1. Possible to comment-out JSTL code?

If you want to temporarily comment-out a piece of JSTL code that you may re-enable later, is this possible? Would this work?

<!--<c:out value="${someVar}"/>-->

2. jstl code issue

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
<%@ taglib uri="" prefix="form"%>
<%@ taglib uri="" prefix="c"%>
<%@ taglib uri="" prefix="fn"%>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
.even {
 background-color: silver;
<title>Registration Page</title>

<form:form action="add.htm" commandName="user">
   <td>User ...

3. JSP can't find stylesheet

WEB-INF/styles I link stylesheet in my JSP file, which is located in WEB-INF/jsp:

 <link rel="stylesheet" type="text/css" href="../styles/reset.css" />
But it doesn't work! When i open my application there is no styles, ...

5. Can we combine java code with JSTL

Hello, I am pretty new to JSTL, and we are trying to change the existing application which is using java code snippets in the jsp file to use JSTL. We are trying to change it in parts, not all at a time. Currently we have some valiables declared in java code snippets, and i want to use those same variables in ...

6. jstl code problem

7. How can I consolidate some duplicate JSTL code in my JSP?

Hi. Wow. I haven't been here in ages. It's good to be using Java again (last job was almost all C for a few years) and it's good to be on JavaRanch again. Anyhow, I've just started using JSP's/Struts, and have a JSP page with some duplicate JSTL code in it. How can I encapsulate that code to avoid duplication? I ...

8. Source code for JSTL

9. Creating ToolTips in JSTL code?

I'd like to use the browser's ability to display tooltips using the built-in 'title=' syntax:

The problem is that this type of tool tip display doesn't work (or at least I can't get it to work) with a JSTL variable using "${someVariable}". The ...

10. JSTL equivalent of jsp code

11. equivalent code for JSTL

14. code required

15. All JSP expert / Is there JSP code for calling & sending messages? please help me

My teacher asked me to implement a dynamic pages using JSP or any other language (I prefer JSP) that allow a system user to make call by clicking on a specific customer name that is displayed in a JSP page from a database. When clicking on a specific customer, JSP code brings his telephone number from the database to make calling. ...

16. sms gateway with code

hi Peppem actualy i am working with the application of sending message. Message application have some options like write message, inbox, sent message etc. i want to connect sms gateway when i write message and click send button. its a web application and i am using this sms gateway code into servlet. i am using following code.... {code} var NowSMSServerAddress = ...

17. Server returned HTTP response code: 500

first sorry for the same title for this topic but , i really can't get an answer for my case as follows : when , i run my jsp application in debug mode ,i can get the page i want . But , when i run this application in release mode , i get "Server returned HTTP response code: 500" instead ...

18. Hi code needed for JCA adaptor

19. code for binary tree in jsp

21. browser compatibility..CSS code is working in Mozilla but not in IE

Hi, Im facing some browser compatibility issues. My CSS Styles are working in Mozilla but not in IE7. CSS code: .MyCSS{ FONT-SIZE: 15px; COLOR: #006699; FONT-WEIGHT: BOLD; } jsp code :

Some Text Here
Text should come in some blue color with bold but its not happening in Internet Explorer . Can anyone help me . Thanks in ...

22. my first jsp code

23. Imbedding java code in a jsp

Thanks for the reply, I'll try your method as soon as I can. I did try deleting all the whitespace and then used the jsp include to point to the code but it still failed. I will try setting up the servlet as well. Thanks! I'll let you all know how it goes

24. Jsp code help

25. Whats wrong with my jsp code?

27. Lucene indexing ans searching code needed