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 ...
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) ...
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 ...
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 ...
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 ...
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 ...
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?
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 ...
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 ...
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
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
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
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 ...
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?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
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
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.
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 ...
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 ...
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 ...
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 ...
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) ...
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 ...
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.
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 != ...
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 ...
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 ...
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 <% ...
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 <% ...
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
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" ...
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 ...
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 ...
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 ...
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
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 ...
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 ...
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 ...
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 ...
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 ...
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
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 ?
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 ...
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
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 ...
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. ...
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 ...
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?
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
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 = ...