page « Tag « JSP-Servlet Q&A





1. Is it possible to get calling page name inside a jsp 2.0 custom tag?    stackoverflow.com

I'm writing a custom JSP tag using the JSP 2 tag files. Inside my tag I would like to know which page called the tag in order to construct URLs. Is ...

2. passing valus to one jsp page to another jsp page    stackoverflow.com

I'm retrieving values from database to table in jsp.(to a column) I want to insert that value into another table in database. To do that i'm using another jsp table to insert ...

3. org.apache.jasper.JasperException .... Unterminated <%@ page tag    stackoverflow.com

I get

org.apache.jasper.JasperException: /index.jsp(2,1) Unterminated <%@ page tag
The page tags look like this:
<%@ page import="java.util.*" %>
<%@ page import="au.edu.uwa.peb.autoextractor.model.ScanResultItem"; %> 
This seems to indicate to me that a < does ...

4. Problem including jsp page with unclosed tags    stackoverflow.com

Hi all I have problem including jsp pages. I have one JSP page where I must have not closed tags because in including page I continue filling them and close them. Page beeing ...

5. how to use onClick() or onSelect() on option tag in jsp page    stackoverflow.com

How to use onClick() or onSelect() on option tag .Below is my code in which i want to use Onclick() or OnSelect() in option tag. Note: where listCustomer domain ...

6. creating the welcome page    stackoverflow.com

why is the user name not desplayed on the web page using the following code?

String custId = (String) session.getAttribute("customerId");
String emailId = (String) session.getAttribute("emailId");
String phoneNumber = (String) session.getAttribute("phoneNumber");
<body>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<table width="70%" align="center" border="1">
<tr>
<td align="center">Welcome ...

7. pending bills page    stackoverflow.com

why is the information that is required not displayed except the tagline?

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)           ...

8. Countdown timer through multiple jsp pages    stackoverflow.com

Hey, I'm developing an online test using servlets/jsps and was wondering how to create a timer that counts down from 6 minutes in which the test will end once it hits ...

9.     stackoverflow.com

Remote.jsp code:

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Remote Value</title>
</head>
<body>
<% 
     File remote = new File("D:\\test.txt");
 ...





10. Multiple tags in the jsp page    stackoverflow.com

I have jsp page, that include multiple jsp pages. And in result i have multiple <head> <body> tags in the main jsp page. Everything is working, but I've read that multiple ...

11. Can a JSP tag access the JSP page instance that contains it?    stackoverflow.com

If a page contains JSP-tag, can the tag access the instance of the JSP class that it is being used in? Assume we have the following JSP:

<%
    String someVariable;
%>

 ...

12. use a simple tag in jsp page?    stackoverflow.com

In my a.jsp file:

 <html>
 <body>
 <%
           out.print("<my:login error=\"${Error}\"/>"); // It doesn't work :(

 %>
       ...

13. How to include only once tag on the page    stackoverflow.com

I have implemented some component. I used jsp custom tags. But I've implemented 2 tags which make hard to use this in the future by others programmers. How can I improve ...

14. Hiding of anchor tags before the page load    stackoverflow.com

I have a list of permission URLs which are links to certain pages and this list comes from the database. Now, there are jsp pages all across the application and they ...

15. Display Tag Library only show First Page in Pagination    stackoverflow.com

I am trying to do a pagination with Display Tag Library but on click Next or any other page all the grid data is disappeared. Here is the code for :

<display:table ...

16. How to include page from custom tags    coderanch.com

(I'm repharsing my last problem) How to include a jsp page/servlet mapping from a custom tag? I have tried requestdispatcher.include(request, response), and the page's output does not display on the correct position on the HTML page. I've tried pageContext.include("servletmapping"); and I got an exception thrown. Something about illegal to flush from within a Custom Tag. Chu





17. 2 custom tags in 1 page:Problem    coderanch.com

i have 2 tags in one page to use.However, only one is getting executed... I get following error: Error: URI=null Line=5: Root element type is "taglib", but was declared to be "web-app". What could be the problem? <%@ page errorPage="errorpage.jsp" %> <%@ taglib uri="WEB-INF/jsp/mytaglib.tld" prefix="San"%> <%out.println("After the first");%>

18. Error page tag    coderanch.com

On the error page you have access to the exception that caused the error. In the dev environment, you can use this to show a stack trace on the error page (or as an invisible HTML comment that you can see with 'view source', if you wish). In many of my apps, I've captured the exception information in a hidden field ...

19. Page tag for File include    coderanch.com

22. using tags in jsp page    coderanch.com

23. error-page tag    coderanch.com

25. Problem in error-page tag    coderanch.com

Hi this is Arun, I am having a problem in tag of my web.xml. In my web.xml file I added the follwing snippet between and . 404 /file.jsp I am having my file.jsp in the root directory of my web application. When I request abc.jsp which is not deployed in my webapplication My browser renders the following:- ...

27. Body of tag always written to JSP page?    coderanch.com

28. How to run jsp page has custom tags    coderanch.com

Hi All how do we can run a jsp page with a custome tag. I'm sure we need to creat jar file that include the class and web-inf to include the decriptor file .. is someone has an example oe steps how to do just small and very simple example to run a jsp page with a very simple custom tag,please ...

29. problem displaying contents containing HTML tags as it is in a JSP page    coderanch.com

Given below is the JSP code

30. page attribute tag for session?    coderanch.com

32. s:iterator tag in jsp page    coderanch.com

33.  tag doesn't work    coderanch.com

34. include tag in middle of page    coderanch.com

35. Process Custom tag based on the given input from html (same page)    coderanch.com

If you want use javascript I know that is possible. You will create an event that will change the value. You will have to create an input hidden, and at the input text you will use an event that calls a javascript function. This javascript function will change the hidden attribute value, and you set this hidden value to the tag. ...

38. Error in ZK JSP Tags in JSP Pages    zkoss.org

39. want to read tags in jsp page    forums.oracle.com