dear all i have diff. JSP, they are also want to share a common variable, is it a efficient way to code that? i don't want to use a method that using GET method transferring from one page to another page. thanks yan
I want to pass a database connection string to JSP file ,from where i put my connection String and how can a jsp file get this string ? I want to make my code generic to change connection string repeatedly.
I have written a jsp file that checks for the username and password of a user and then logs them on to a database. When I include pictures or sound using normal html code such as <bgsound src=blahblaf> I get the following error 404, what is the cause of this error and how can I correct ...
349 byte By
BRoberto at 2007-9-26 4:09:05
I have a linux system. I would want to use Apache as web server ( for HTML file ) and Tomcat as application server ( for JSP file ). I have my sites in dir /var/www/... and I have configurated Apache to "read" these sites... but when I insert a JSP file in these directories Tomcat doesn't work ...
82 byte By
ctssdc at 2007-9-26 4:09:35
Any one having idea abt Server Side Push and how is it implemented .
639 byte By
lizmarc at 2007-9-26 4:09:50
I have a jsp page with some images. I forward to get from a servlet. No matter what I do, Tomcat cannot find the images even though the images are in the same directory as the jsp page. I get a 404 error. My servlet code is pretty simple:RequestDispatcher dispatcher ...
336 byte By
obersong at 2007-9-26 4:09:51
Hi!I need FREE servlet / jsp hosting.I searched the net, but I didn't found a provider that hosts ~10Mb of servlets, jsp and mysql database.I realy need it to earn money. Can anyone help me?the provider has to give me access to a 10 Mb mysql database, and 5 jsp pages.Thanks in advance. ...
1177 byte By
teka at 2007-9-26 4:10:11
Hello,How can I redirect to a servlet from a jsp without hardcoding any directory/parts of the url?I am using tomcat v.3.2.1.The webapp is behind a proxy server and that address can change so when the real url to a jsp called myjsp.jsp would be something like "www.host.com/webapp/myjsp.jsp", it ...
hi !i want to know is it possible to access COM components say MS Outlook using JSP.I have learnt that it could be done thru JavaBean Bridge for ActiveX/COM.Can any one tell me how to go about this.pawan
653 byte By
im_cwk at 2007-9-26 4:10:14
I'm now using jswdk-1.0.1. I need to create an object from a static class(SystemLogger) to create a log file when server is started, so that when later the program run, it can refer to that object to print log message inside the log file. Now, when I add "start java InitSystemLogger" inside ...
403 byte By
qasims_1 at 2007-9-26 4:10:19
Hi,I am trying to do some work if the ResultSet is null . The Sample Code is if (rs != null) {While(rs.next()){Get The values from the database} } else if(rs == null) { <jsp:forward page="XYZ.jsp" /> }The seems to be very simple. but not working.Any Sugetions about this ...
Hi there,Is there an equivalent to the above ASP statement for JSP. I ma trying to include a header page in al my pages that does authentication based on a session var.e.g. <jsp:include file="header.jsp" flush="true" /><body>...where header.jsp is something like<% if (var == ...
hello,there is problem in Mysql database connectivity.when i connect JSP program to Mysql database it gives error : Server configuration denied access to data sourceplease help me asapkuldip jainkuldipjain@rediffmail.com
538 byte By
jonesro at 2007-9-26 4:10:56
I've put my classes that support my servlets in the servlet classpath, this way the classes are reloaded the same way servlets are when changed and you don't have to reboot the webserver. My problem is my JSP's also use some of these classes and I'm getting the old 'ClassNotFound' ...
Do not get me wrong: I love Java technology, and I think that the web area of it has definitely progressed much over the last decade (so this is NOT a flame-post for those looking to pick a fight).I realize that there is an initiative under way currently to create a standard tag library that ...
215 byte By
mbethala at 2007-9-26 4:12:21
from the html form when I try submit buuton i am getting tomcat.log error of No apps in webapps/. if anybody can guide in what to do will be greatly appreciated.Thanks in advancembethala
215 byte By
mbethala at 2007-9-26 4:12:22
from the html form when I try submit buuton i am getting tomcat.log error of No apps in webapps/. if anybody can guide in what to do will be greatly appreciated.Thanks in advancembethala
is there anyway that i can generate a tree dynamically.If i have a part no(1) then i want a sub assembly so i select a part no(2) and it should be added as a leaf .if i select another partno(3) it should be added to the partno(2) thus populating the treecan anybody help me out in thisThanks ...
505 byte By
bx1 at 2007-9-26 4:12:51
It's very urgent,i want to parse an input stream send by an http post request through a form(with the enctype multipart/form-data),but i don't know how,some people told me to use OOpMime parser but it's not free so i can't, and they talked to me about JSPamart and i don't find it on ...
I need to display a page which will display processing data please wait .... till i get the data from the database. How do i implement this in jsp ?
608 byte By
CHEERS at 2007-9-26 4:13:35
Has anyone had any experience in adding a confirmation dialog to their JSP before doing a submit of information to the database?I would like to create some added functionality to my application where once the user inputs all information in the JSP I have, they can then press the Add to Database ...
Ihave just created an applet and servlet. i want the servlet to send some data back to the applet so i can read it and just check to see whether the servlet has done the required job.here is part of the applet and servlet code.applet:url = ...
163 byte By
adamrau at 2007-9-26 4:13:40
I want to encrpyt -> save in my databasethenget value from database --> and then unencryptThanks for your timeAdam
555 byte By
wmacey at 2007-9-26 4:13:45
I have heard of a technique that allows a bean to update the static HTML through something called "pushlets" and am not really sure how they would work.If anybody has some info on this please post ASAP.I require to reload all or part of a page currently to get the desired update, just wondering ...
458 byte By
wmacey at 2007-9-26 4:13:51
I have a sessionListener than when a session is created, a DB connection is started. When the session is destroyed, the DB connection is closed gracefully.....Works great so far.What happens in between is that other worker beans get the connectionWorker.db = Listener.db;and when the session is ...
1030 byte By
stottd at 2007-9-26 4:15:00
My apologies in advance if this topic has already been covered. Here is the behavior I've come across and can't resolve:When a user with an IE browser visits my site (i.e. http://www.mysite.com), the default page is loaded - no problems. With Netscape, the user is prompted to download. ...
I just started reading Core Servlets and JSP. I must have missed something. The author explains the use of init files, but what is the purpose of giving values to variables in a seperate file? In the example in the book he sets a string and an integer in an init file. I can understand that you ...
372 byte By
janusz_s at 2007-9-26 4:15:32
Hello. I have project where I need to write the VB client that talks to Tomcat on the back. Yes unfortunately my employer does not want the HTML client. I've come accross Spidertop's Bali (www.spidertop.com) that allows Swing interfaces to be delivered via JSP's. Unfortunately they dont have ...
714 byte By
dhatz at 2007-9-26 4:15:35
I know I might be going out on a limb here, but I have a client that would like us to build a HTML Select tag that would act like the ListBox in Windows. For example, if I have a Select list of Last Names + First Names. If the user starts to type in "SMI" the select box will go to the "SMITHS". ...
368 byte By
bpatil at 2007-9-26 4:15:52
Why do statements in init() of servlet get executed multiple times. Is there a way to avoid.for ex: If I put System.out.println("hello); this gets executed 4-5 times ( i am testing in Tomcat).How to avoid it.? I want to do socket connection. I don't want this init() to call socket connect 5 ...
hi,everyoneI am a beginner to session listener.Can you give some samples?Thank you.best regards,zhongboqing
1220 byte By
almilli at 2007-9-26 4:15:57
To my understanding a war file is supposed to be dropped in. It's isn't intended to be unzipped by the person installing the webapp. Inside my web app I have some xml files I access to get configuration information for how the servlet works. This xml file is intended to be edited by the ...
892 byte By
rgarton at 2007-9-26 4:15:58
I'd like to do the following w/the Pet Store Reference Implementation :1) Process the resultant <J2EE:ITEMS> so that they are displayed in a grid fashion, instead of 1/row in the resultant .jsp table.2) Further allow the configuration of the <J2EE:ITEMS> in a 'grid' via ...
I write the same code for jsp and servlet .When I test with Microsoft web application stress,I get better performance of jsp. Why? The result is showing as:servletRequests/Sec2.7TTFB Avg239.08Network Traffic KB/s330.50+0.96Number of threads2*3 jspRequests/Sec2.84TTFB Avg424.88Network Traffic ...
883 byte By
calibis at 2007-9-26 4:16:10
Hi,I've been trying to get a simple JSP page to work on Win2k Server. The JSP uses simple JDBC ODBC-Bridge to query the "pubs" database on SQL Server, setup as a DSN in ODBC control panel. The JSP page has nothing wrong with it since it works on a friends Win2K professional environment.The ...
Hello Friends!I want JSObject class for my applet to communicate with javascript.Can anyone gimme the exact url to download the package. ThanxGovindarajangovind_rajan@yahoo.com
1026 byte By
myneni_r at 2007-9-26 4:16:21
i want to upload file from browser to server.using file object in html i am able to navigate, and also it is working fine when i run server from the same machine and also browse from the same machine.but when i access the page from some other machine, i am getting file not found exception. this ...
572 byte By
HongX at 2007-9-26 4:16:36
In my Jsp site I make a search database(oracle) page, and I use a connetion bean(include the method of close datasea). When I used the page to search database, I opened Oracle DBA Stadio and found it has set up a session. Then I search database again and again. I found the session build again ...
Recently, I just installed SQL Server 7.0 with the advice from my boss. But, I have encountered a problem as I am not familiar with the SQL Server's connectivity with the JSP and JDBC. Previously, I was using MySQL to connect and it works fine.Anybody can give me any idea or hints ? Thank you ...
563 byte By
rda2 at 2007-9-26 4:16:55
Can somebody tell me the difference between loading a Driver by using for example: "Class.forName("oracle.jdbc.driver.OracleDriver())"or typing:"DriverManager.registerDriver(new oacle.jdbc.driver.OracleDriver()); "In the Book "Core Servlets and JavaServerPages" from Marty Hall is written:"To ...
hi proffesionals i attend on problum with arrangment,for that what i am doing is i am fetching datas from database and printing in a row vertically.it is not looking good.i want to print it horizontaly likeae00023as3333a6556a457864a6576ae00025as3336a6556 a457866a6578i wrote the coding ...
388 byte By
Greebo at 2007-9-26 4:18:04
Is it possible to send an email to 2 addresses when using the import: sun.net.smtp.SmtpClient?I've got a form which sends the input to an email address - no problems there.But I want it to send to 2 addresses - I've searched various sites but not found how to do this.I tried ...
519 byte By
capr1ce at 2007-9-26 4:18:13
Hello.I'm writing a web application in JSP/servlets.Users can log into my appliction. When they've logged in, their user name is added to a vector in a UsersOnline class. When they log out, their name is removed. The idea is to be able to print out a list of users online.So my question is: If ...
Hi all,I'm new to JSP. I need to implement a application in JSP for that I need to have an authentication script. So, If anybody have the script please send me. I'm using MySQL on Linux. No problem with the database it's using. I'll modify.Please mail to me praveensmart@yahoo.comThanx ...
310 byte By
geetuR at 2007-9-26 4:18:49
Hi All,When a user enters double quotes in a textfield, it enters it correctly into the database. But, when I try to display the data,again, it messes it up. I think it is because of the way HTML handles double quotes. Is there some way by which this can be handled ?Thanks everyone ...
725 byte By
9615415 at 2007-9-26 4:18:53
I am a Final year Computers student and have completed a Project using Java Servlets to connect to Database and dynamically generate HTML response pages I constructed and tested this Using the Develepment environment available on this site However i now have to host the site on the internet I ...
263 byte By
ge_orge at 2007-9-26 4:18:54
Is there a way to access a servlet using VBA. To post data onto the servlet and retrieve data from the servlet.With no access to the servlets' source code.All access to the servlet is from a clients point, through an internet browser.
174 byte By
cofensen at 2007-9-26 4:18:56
I am trying to combine Servlet + JNIbut the big problem is "DLL is loaded, but server can't find the method of DLL's"so strange... help~~
871 byte By
CHEERS at 2007-9-26 4:19:13
My problem is that I have a JSP page that I do not want the user being able to access without first going through the login process. I do not want them to be able to bookmark the page and then get back there without logging in by clicking on the bookmarked page.I want to be able to do this by ...
749 byte By
millens at 2007-9-26 4:19:29
hello! Did somene had experience some problems with adding new options in select object (combo box) in javascript? I can change text or value property, delete option by setting it to null, but when I want to add new, there is a problem!?why this code doesn't work?<script>...ref = ...