Session, Application, Static Persistence

560 byte By wmacey at 2007-9-26 5:02:04
Here is what I want to do, can someone tell me if it can be done? When I install/deploy my application and it is set up, I wish for something to run and store some resources, DB connections, arrays of users, etc that will be used by all users that may log in to my application.Also, if one user ...

Deceptively simple mysql question

456 byte By mikesab at 2007-9-26 5:02:06
I've set up a database with mysql and have created a primitive database explorer. Each row is a client record. I can access each row individually with displayRow.jsp, which simply spits out the contents of that row onto a webpage. Now, I'd like to access the next or the previous record (row) ...

JSP compiler error when invoking a JSP file?

741 byte By zhangha at 2007-9-26 5:02:08
I have a jsp file using java bean. The java bean class file is uploaded into the server and also the directory to this java bean .class file is included in the Unix environment CLASSPATH. This .jsp file is registered and should be compiled and excecuted automatically. WHen I try to invoke this ...

java server page compiler can not find a class defined in a java bean file

754 byte By zhangha at 2007-9-26 5:02:10
I have a jsp file using java bean. The java bean class file is uploaded into the server and also the directory to this java bean .class file is included in the Unix environment CLASSPATH. This .jsp file is registered and should be compiled and excecuted automatically.WHen I try to invoke this ...

Problem with odbc sqlserver 2000

1058 byte By condorator14 at 2007-9-26 5:02:24
hi everybody, actually i develop an aplication that must connect to a sql server db, i was using the jnetdirect driver and all works fine, but i need a free one in my application, i use preparedStatement, and the problem rise in the ODBC driver when i assign a boolean value to the prepared ...

Frames and where HTML/JSP's open

865 byte By CMooney at 2007-9-26 5:02:29
I've written a little 'intelligent agent' to parse web pages viewed by a user and extract keywords for improved searching. The set up is a two row frame in the browser, with my application's features running in the top row and the user's prefered search engine running under this. For ...

when execute the jsp file, the code in which section get executed first?

294 byte By zhangha at 2007-9-26 5:02:31
when execute the jsp file, the code in which section get executed first?I saw a jsp file. There are some java code in HTML header section , some in the section after the header, some code in the HTML body section. What is the order as far as which code get executed first?

Passin values from drop down list into session

757 byte By arnoldfire at 2007-9-26 5:02:59
Hi I amtrying to pass value that has been selected from a dynamic drop down list , to a servlet.When I submit the form and do a session.getValue(invoicenum) or request.getParameter in the servlet , i dont get the value that has been selected.How do i put the value from the drop down list into ...

JSP - File Attachment

530 byte By ramankoduri at 2007-9-26 5:03:10
Hi Friends,My name is Raman. I am from Hyderabad. I have a question about File Attachment. If any body having solution please mail to me. my mail id is ramankoduri@indya.com or ramankoduri@yahoo.comMy question is:When some body registered in my site. I have to send his details to his mail id ...

jsp deploy

214 byte By plnr at 2007-9-26 5:03:38
hello , i have developed a jsp application, i have finished all type of work in the project. now i want to give it to client, how can i present that project to them,please help me

Urgent!!!!

94 byte By bapi2 at 2007-9-26 5:03:44
HayI just want my jsp web page should not be allowed to save in hard disk

update mutliple records from resultset

294 byte By arnoldfire at 2007-9-26 5:04:21
HiI execute a query which results in multiple records .I update a few checkboxes which come out with the records. I need to update these records into tables for which I call a servlet.How will I pass the record sets into the servlet to update ThanksArn

JSP security, and html templates - related questions

708 byte By davis51T at 2007-9-26 5:04:49
Hi,My web hosting company allows me to create and use servlets, but not JSPs. They say that there are security issues related to JSP. First question: Is it true? I've heard that there are such issues on Windows implementations, but not on Solaris (which is what my server's running.)Regardless ...

question on post form authentication

292 byte By bertra_b at 2007-9-26 5:04:52
Hello,I am using a form authentication (with j_security_check) on, for example, MyServlet.When the user is logged and the program is in the doGet methods, I would like to know the user's name (j_username).Is there a way to know this ?Benoit Bertrand

Where does tomcat store the classes and .java files generated from JSP?

235 byte By thunderBolt at 2007-9-26 5:05:07
Where does tomcat store the classes and .java files generated from JSP?I edited some of the .jsp file, stop and restart the tomcat, but it still loads the old jsp. I am using linux + tomcat3.2 + mysql

Identifying Cookie disabling

144 byte By ssivu at 2007-9-26 5:05:13
Hi ,How do I identify if a client browser has disabled cookies using JSP ? Is there a single command to do so ?Thanx

JWSDK

160 byte By slsl71 at 2007-9-26 5:05:32
I have downloaded Tomcat 2.3but my system is Win98 2th editionCan I run Tomcat on it? If can, how to config it.Thanks.

User Authentication using Servlet and JSp

796 byte By kushM at 2007-9-26 5:05:36
Hi, I am developing a web app where i need to implement user Authentication to allow members to view and upload files on a certain directory say /data For this i am using a servlet as a controller which then forwads request to other jsps/servlets based on user response. I tried using servlet ...

JSP, charset problem

1299 byte By phivos at 2007-9-26 5:06:40
I have some JSP pages where I try to dynamically present some drop-down menus for the users to select values. I use a simple bean to manage it. The problem is that those values are in non-iso8859-1 charset and I only get ? rendered in the select box. I define an array (inline in the JSP page ...

How to run this servlet? Please help!

1095 byte By Omnigunk at 2007-9-26 5:06:52
http://wrox.com/Books/Book_down.asp?section=11_4&isbn=1861002777&subject=&subject_id=Chapter 13 Source Code I can't seem to compile this WebMail.java file. I have TomCat and servlets.jar is in my classpath too running but to no avail! Do u manage to compile and run it? Can u guys ...

Apache virtual hosting: how to delegate *all* requests to Tomcat/servlet?

5430 byte By avbentem at 2007-9-26 5:06:56
Allow me to repeat something I posted in news:alt.apache.configuration, as I do not know where else to ask for help... Hints for better places to ask these questions are appeciated!I want to create a kind of filtering proxy. So, I have set up Apache to work with Tomcat 3.2.3 (mod_jk) and pass ...

How to avoid seeing the absolute path when user plays with the url

500 byte By adamrau at 2007-9-26 5:07:06
i.e.I have a page called login.jspSOmeone plays with the URL and types in login1.jspTHis is what the webpage looks likeRequest URI:/pages/General/AlFeatured.jspException:javax.servlet.ServletException: java.io.FileNotFoundException: /Apache/htdocs/pages/login1.jsp (No such file or directory) ...

Dynamic database content on home page

995 byte By tibbster at 2007-9-26 5:07:11
I'm new to the jsp world and would appreciate some help!! I'm trying to create a site that has dynamic database content on the first page of the site - the home page. For example, i'd like to display a table of the last 5 or so records that have been inserted into a particular database ...

How to display an image on the browser

192 byte By peter_z at 2007-9-26 5:07:22
Hi, every one,I storied an image file in mysql as blob data type.Any one can tell me how to display the data on the browser with jsp?Thanks in advance.Peter.

Need Help with declaration element syntax

1244 byte By javapadma at 2007-9-26 5:07:29
Hi, I am using ultradev 4.0 for developing my JSP pages.I am trying to retrive and format the date from a column. Ultradev automatically adds the code as<pre><%!public String DoDateTime(java.lang.Object aObject,int nNamedFormat,java.util.Locale aLocale) throws Exception{if ((aObject != ...

how to use Callable statements.

436 byte By sentiments at 2007-9-26 5:07:40
Hi.I'm just new in using JSP. I just want to ask how to call stored procedures (ex. from SQL Server) using the Callable statements. A sample code will be very helpful......Ex. I have these parameters for my stored proc:name = "sentiments"; //value will always varyadd= "NJ";//value will always ...

css and RequestDispatcher problem

1167 byte By verdi96 at 2007-9-26 5:07:47
I'm using JBoss + embedded Tomcat (not using apacheyet in development).I have problem with JSP and css. My JSP includes csswith this tag:<link rel="stylesheet" href="style.css" type="text/css"> If I access the JSP directly from web-browser --IE5--to ...

session getting lost

479 byte By payal_sharma at 2007-9-26 5:07:50
Now issue related to session I am using tomcat 3.1In my login page my session value get lost frequently.I am usingsession.setAttribute("logon.isDone", name); in servlets and In every jsp's I am checking as <% ...

session getting lost

479 byte By payal_sharma at 2007-9-26 5:07:51
Now issue related to session I am using tomcat 3.1In my login page my session value get lost frequently.I am usingsession.setAttribute("logon.isDone", name); in servlets and In every jsp's I am checking as <% ...

How to install a servlet package

247 byte By Dragonwui at 2007-9-26 5:07:52
dear all,i have a problem, I cannot compiled my code because javax.servlet package not found, now, i have already load the package but i dont know where and how to put the package.ok thanksregardsDragonwui

Help on JSP Include

609 byte By sunzes at 2007-9-26 5:08:02
I feel confused with JSP include using <@ include and <jsp: include.....What is the different of themFrom their definition, i saw1. ><%@ include file= releative URL %>-Include files at the time the JSP pages is translated into Servlet2. <jsp:include page="relative URL" ...

Iterator Tag problem

533 byte By ambisoft2 at 2007-9-26 5:08:38
Hello!Using the JSP Tag Extension, I created a new tag, that was supposed to be an iterator tag. The Java implementation of the tag is a class that extends TagSupport. The doStartTag method returns EVAL_BODY_INCLUDE, yet, doAfterBody never gets invoked, instead, execution jumps immediately to ...

Notifying User Agents to Update

584 byte By metali at 2007-9-26 5:08:57
Hi,I am writing a 2 player game using Servlets. I have a main servlet called GameServer to which 2 players login to with their web browsers. The game sets up and sends the game screen to both browsers via the response object.My problem is that I need to then make player 2 wait whilst player 1 ...

Move file from a pc to another

347 byte By kenni81 at 2007-9-26 5:09:07
Hi,My JSP is residing in a pc (10.12.23.231). Another PC (10.21.12.44) has this pic file in its C drive (C:\laugh.gif ).How do i make a copy of this pic file and save it in my pc in a folder(D:\pics ). ? All through the use of JSP and Java BeansThanks in advanceRgds,Ken ...

Really basic question

182 byte By mmariab at 2007-9-26 5:09:09
Hi,I am completely new in jsp, studying on my own. Do I have to install Tomcat to run them? Or with the JSDK server I am able to run it?ThanksMaria

hey, experienced users, here is a question about older browser JSP support.

474 byte By igarn at 2007-9-26 5:09:35
Does anybody know the oldest versions of Netscape and IE, with which one can use JSP ? I mean, does somebody has experience, can somebody tell this for sure ?I have heard of such a problem - the older browsers don't know how to handle the .jsp extension. And they obviously give it precedence ...

session object overwritten by different browser window

1244 byte By a_walther at 2007-9-26 5:09:40
Hi everybody,I've been reading this forum for some hours now but am still unsatisfied with the solutions given. The problem has already been described in many forms:In my servlet based web application a user can login and from then on the session is used to store application objects. Now if ...

servlet and jsp page

461 byte By lahatch at 2007-9-26 5:09:58
hii've a very simple question for you :do you know how to create a jsp page with a servletit means, i've this code for example : <%! int i = 5 %> value = <%= i %>what i want :when i click on a button (in a html page), it launches a servlet which create a jsp page anddisplay it in ...

How to send back cookies to a server?

484 byte By RIVASD at 2007-9-26 5:10:01
Hi,I'am working on a Spider which needs sometimes to retrieve pages needing to store a cookie. I have no problem to store the cookies, but once they are stored, how to include them in the request headers of my HttpURLConnection or URLConnection ?Another important question : if I connect to a ...

Session and context in jsp and servlet

689 byte By neerav at 2007-9-26 5:10:18
I have some jsps which are running in one context c1 and a servlet in another c2. One jsp (say jsp1) in c1 calls the servlet in c2 and the servlet redirects the response to another jsp (say jsp2) in c1 again obtaining a new Context from the ServletContext and then a RequestDispatcher from the ...

JSP and XML

181 byte By pbfeio at 2007-9-26 5:10:40
Does anyone knows how can I write a DOM Tree to a file?I already have the document object in memory. How do I write it to a file?thanks,Pedro Feio

variable.equals vs =

173 byte By hyrum14 at 2007-9-26 5:11:04
Coming from other languages, this part is a little confusing for me. When do we use .equals as opposed to = and what is the syntax for not qual to? .notequal ?

Session Timeout

406 byte By dbhagat at 2007-9-26 5:11:07
I am setting up the user information when user loggs in as a session variable. I am able to access it in the next page, but from their onwards, I am not able to access my session variable and I get NullPointerException, when trying to get it. And, also when I try session.getID() I am getting ...

Application and Session Scope Beans

252 byte By wmacey at 2007-9-26 5:11:12
If I have a bean with application scope that will store some variables and methods.....Do I need the UseBean tag on everypage to maintain it, or just on the pages that use it? And how about session scope, same question

Applet --> Servlet --> Database

372 byte By reddyumamaheswar at 2007-9-26 5:11:19
Hi,I wanted to submit some data into the database using Applet-Servlet communication. As I am new to this topic I would like any one to help me with some source code(simple one will do enough). with 2 textfields in an Applet and a "send" button. which will connect to the servlet and from ...

getSession and getCookies vs getWriter

317 byte By rbahhour at 2007-9-26 5:11:25
Does one have to use the getSession and getCookies from the HttpServletRequest object before retrieving the Writer object from the HttpServletResponse's getWriter function? Or does the order not matter? Some books and online information provide conflicting information on the order of these. ...

Serlets and Tomcat

490 byte By tomcat_III at 2007-9-26 5:11:26
I am writting an application that can be used to access and edit a database. I have already written the servlet using Oracle JDeveloper. I have compiled the servlet and put the resulting class file under the following directories: - [tomcat]\webapps\Project\Web-Inf\classes. The file is called ...

Printing from JSP

157 byte By satishs at 2007-9-26 5:11:46
I need to print a HTML file generated from JSP. I want to insert page breaks at appropriate places. Is there any way of generating page breaks?

JSP and JavaScript

244 byte By Rjstest at 2007-9-26 5:11:48
Hello,I have radio button otptions and if one of them is selected I want to call JSP files. I woulkd like to know how can I call a JSP file in a Java Script function. Thanks for allyour responsesRjstest

Issue with Cookie expiring at end of session

776 byte By garrison76 at 2007-9-26 5:11:53
Howdy,I'm having some problems with the below cookie code in trying to figure out why it's expiring at the end of the session, instead of having the set age that I defined.Could someone please help me, I'm afraid it may be a small detail and it's driving me kooky.<%@ page import = ...