jsp

Single Thread model

If a servlet implements Single thread model interference ,How servlet container ensure that servlets handle only one request at a time ? Even single thread model interface has no methods too.Thanks. ...

Tag library?

What is the purpose of having tag library? Though we have the basic tags available which makes our work very simple, what is the reason to have a struts-html.tld. Though we can call and use the bean easily through usebean, setProperty and getProperty tags why we have struts-bean.tld. I am a newbie, so kindly clarify my doubts.. Thanks i...

hiding address bar and status bar in jsp page

hi all, I need to hide the address bar and status bar of a jsp page , "demo.jsp" my code is <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Welcome</title> </head> <frameset cols="10%,90%"> <frame src="actions.jsp" name="page1"></frame> <frame src="default.jsp" na...

struts-tiles

I have developed a simple struts application which retrieves and manipulates customer data from the database. Now I want to include an image at the top of all the pages. I know tiles is the best way to do it. Since I'm a newbie can anyone help me to include an image in my existing project using tiles. Thanks in advance ...

Struts & bean

I have two questions : 1) Where do we call a bean in struts (what is the exact line through which we call the bean and from which file) and how the getter and setter methods are called? 2) Also we are fixing the scope as request or session or something else, I can understand that the values will be stored in the request object or ses...

preventing page from being displayed.

hi all, i have a jsp page login.jsp, which checks for username and password and when submitted forwards to another page display.jsp . All i need to do is when i hit the backspace key or back button in browser i should display the same display.jsp instead of going back to login.jsp. please help me with any ideas and code snippets. ...

SQL Server/T-SQL via JSP: "The multi-part identifier XX.YY could not be bound"

I'm getting the error: the multi-part identifier "IC.industry" could not be bound when making this SQL query from a JSP page via JDBC: select C.company, C.shname, C.fullname, count(d_to_c.designer) from companies C left join ind_to_c IC on C.company = IC.company left join d_to_c on C.company= d_to_c.company where IC.indust...

JSTL <c:out> where the element name contains a space character...

I have an array of values being made available, but unfortunately some of the variable names include a space. I cannot work out how to simply output these in the page. I know I'm not explaining this well (I'm the JSP designer, not the Java coder) so hopefully this example will illustrate what I'm trying to do: <c:out value="${x}"/> ...

What happens when a JSP finishes execution?

Hi, When a JSP finishes execution, will all variables declared in the JSP page be put up for garbage collection? If I declare a number of memory intensive Hashtables in the JSP, and I let the JSP finish execution without setting the variables to null beforehand, will the object stay in memory even after the JSP has finished executing? ...

Purpose of DynaValidatorForm

What is the use of DynaValidationForm in struts? I have read an article that it reduces the lines of code and complexity. Can anyone tell how it is so. Thanks in advance ...

Java Graphing Libraries for Web Applicattions?

I've been asked to enhance a JSP Application with (And I quote) "Some Sexy Graphs" I did a quick search on SO and came up with this question which mentions several graphing solutions, however given that this is a Web application I was wondering if there were any good graphing libraries that can render the graphs client side using JQuery ...

How to include a file depending on a request attribute using the include directive

I would like to include a file depending on a request attribute value. ${theme} -> themeA To sum up. I would like something like this: <%@ include file="../themes/${theme}/jsp/content/welcome.jsp"%> Any easy workaround? ...

How to get Eclipse tools working nicely with JSP?

How do you get Eclipse to work properly with JSP files as it does with Java files? Specifically: Eclipse "Find references" (Right click on method, references, workspace) doesn't find references in JSP files. Eclipse refactoring (Right click on method, refactor, rename) doesn't rename references in JSP files. We're using Eclipse 3.2...

Web Charting, serverside or client side?

I'm trying to establish whether we are better off rendering charts serverside and pushing them to the browser as images or using a javascript charting library to draw the charts clientside. I'm looking at the JFreeChart and Dojo Charting libraries, my target is an existing JSP site that runs in JBoss. Does anyone have any experience wi...

Learning Trail for Java Web Development?

I've Inheritted a large Java Web project which I've got to make some modifications to, I'm a fairly competent Java Programmer when it comes the the basics but I've never done any JSP programming or EJB programming before. I remember vauguely doing some servlet programming 5 or so years ago in university, but I'm assuming that everything...

Objects of session and request

In struts, where does the session object created & which class or method creates it? Likewise where does the request object created & which class or method invokes it? Thanks in advance ...

implementing a "window manager" for HTML in a JSP custom tag

I have a problem: I need to build a custom tag, which can take its child tags (each of which will render as an HTML widget of some sort) and render them into the page in some intelligent manner. It's a fairly open ended question, so I have thought of many different ways to solve it. What I need is some input on how: others have done ...

Action tag not executes in Struts 2

Hi, I have a problem invoking actions from my jsp pages with tag in struts2. I have the login.jsp file: <s:action name="headerMenu" executeResult="true" namespace="/menu"</s:action> <s:form action="executeLogin"> <s:textfield name="username" label="Username"></s:textfield> <s:password name="password" label="Password"></s:pass...

Last few html tags not rendering?

An interesting issue which I've googled and can find absolutely no reference too, perhaps because I'm too vague on the cause myself. I have a simple jsp page that is run from a struts 2 action. It' fairly javascript heavy, but its an internal app on my company's intranet so thats not a great problem. All seems normal so far, right? but...

jetty diplays the code of jsp files

Hi all, I am trying to deploy my web application with jetty, but jetty diplays the code of jsp files at the adress: http://localhost:8080/index.jsp has this a relation to my browser?or is it a problem of jetty? Could someone help me! thanks ...