438 byte By
vidhyass at 2007-9-26 4:47:46
I use JSP and HTML form. I like to post form data to server and check whether already exist in a database. If already exist in a database I have to prompt the user to enter some other values and display the same form again with the data. I like to know how to display the form again with the ...
Hi all, I am using Tomcat 4 b7. In my project I am using two servlets admin and siteEditor. However, when I run Tomcat I get this error: Element "web-app" does not allow "servlet" here. Which seems to suggest a problem with my web.xml file for this app. (I have copied it below). Can anyone help ...
Hi,Here I'm again with another question .Can anyone show me how i can get applet to comunicate with the servletContext.I have have tried the search but with no luck.In advanceMany ThanksPhenoracle
276 byte By
adamrau at 2007-9-26 4:48:51
Does anyone have an Example of encrypting a string B4 saving to database that actually works?I have been trying relentlessly and no luck. SOme of you out there have posted some examples but none of them work.PLease help me!!Thanks in advance
273 byte By
e_moon77 at 2007-9-26 4:48:55
I am a beginner of JSP and JavaBean, now I have a problem. When I use a javabean in jsp, a error occur once in a while just like this: Internal Servlet Error, the description is " Cannot create bean of class". Please tell me the possible cause, thanks a lot!
2162 byte By
Jackhg at 2007-9-26 4:49:11
I have installed Jdk 1.3.1 and j2sdkee 1.2.1 on win2000Adavnced Server.And, I also have set the environment viables as:J2EE_HOME=f:\j2sdkee1.2.1JAVA_HOME=f:\jdk1.3.1 The output on the DOS-mode window I got was:c:\>j2eeJ2EE server Listen Port: = 1049Redirecting the output and error streams ...
I have a JSP page that generate HTML based on what's in the HTTP session and/or data pass to it. I am trying to find a way to get the executed JSP content(eg. generated HTML) in Java, so that I could send it as an email / attachment.I've try to open a URLConnection to read the JSP, but only ...
749 byte By
mava43 at 2007-9-26 4:49:37
Hi Java GurusI will explain the current setup:* I've uploaded couple of files to a Server's web folder. for example : http://myserver:8181/userFiles/files.ext* i've to allow the users of my application to download those files. I need to give them the url for the files in the server upon ...
51 byte By
eebeth at 2007-9-26 4:50:00
How to Handle multimedia files in JSP
51 byte By
nemar at 2007-9-26 4:50:02
How to get client IP address from JSP
311 byte By
kenni81 at 2007-9-26 4:50:16
Hi, How do i in my jsp, get the user ip address or any other kind of identification via JSP.. issit something like this... <% request.getRemoteUser() ; %> this jsp will be accessed when the remote user clicks a link from a normal web page... ...
Hi,Any one can explain step by step procedure of bean managed persistance Entity Bean using oracle database and jdbcodbc driverThank u in advance
64 byte By
sghandi at 2007-9-26 4:50:31
how to access a javasript string variable in java
415 byte By
caiyun01 at 2007-9-26 4:50:32
Hi everyone,I using jsp to run my wml code. I using nokia simulator to test. When i run the jsp code. It said that "Root element not declared. (Download/alternative DTD failed?)" and when i open the tomcat, it said "IOException in: R< /wap + /CheckPassword + null > Connection aborted by ...
165 byte By
wury2001 at 2007-9-26 4:50:35
hi all:i need display the file(word ,execl,pdf,) content in the browser, and the user can not direct access the file.regardbill wu
Hi.how can i input image into MySQL and also retrieve it through jsp ?i need to store one full image of type ".gif" or ."jpg"and not url of the image..........please can anyone help me.RegardsSenthil
Hi,I am using IIS 4.0 with servlet exec isapi to run my site. It was all running smooth. all of a sudden today morning we are getting this error. My machine is having 300 MB free space with virtual memory set to 600 MB!If i refresh the page, i am getting the error. But when i click on any link ...
In a page included with jsp:include I am re-using a request scope bean of the parent page.The bean is initialized at creation in the parent using the pageContext, and from this the bean gets the out of the parent page, to create some output.If I generate output using the bean in the child page, ...
I have created a set of servlets which seem to have been working finebut it has now come to light that each servlet can only be used by 1 person at any one time.I feel there can be only 3 reasons for this1. My servlets are coded incorrectly.2. The server is not set up correctly.3. Servlets ...
572 byte By
minhhoa at 2007-9-26 4:51:04
I develop a site using JSP running on Jrun 3.0. The problem happens when using frames. I divide pages into 3 frames: Header frame, Main frame, Footer frame. The first page (index.jsp) is used for user to login and when user submits name and password, it call the second page (login.jsp) is used ...
Hi,Can you please help in setting idle time for a session using jsp.Thanks,Srini.
159 byte By
samoj at 2007-9-26 4:51:40
I am trying to use the method Runtime.getRuntime().exec in a servlet.I am getting "IO exception".I have given path related to the servlet.
I am getting the following error while compiling a demo code in Javamail Api:Exception in thread "main" java.lang.NoClassDefFoundError: javax/activation/DataSourceat msgsend.<init>(msgsend.java:139)at msgsend.main(msgsend.java:52)where can i find the above class ? which jar file should i ...
Hi friends...i am running a BMP EB on Weblogic5.1 sp9 i am able to create a bean i mean to fetch to database..and to populate the bean....but as i try to use setter or getter on any bean populated after finding by Primary Key...i get javax.transaction.TransactionRolledbackException in ...
Hello I'am new to EJB. When creating a entity bean-managed persistence and you need to specify the jdbc url with user nameand password to establish a connection object, how does one specify that in the deploymenttool?Heres an example of what has in the J2EE tutorial has in AccountEJB to get an ...
624 byte By
nick156e at 2007-9-26 4:52:25
I have a html form and when i submit() a want to send the parametr to a child frame. This frame is a jsp. I can't send the parametr to "sus.jsp"<head><title>Problem </title></head><frameset rows="27%,*"> <frame name="top" src="sus.jsp" scrolling="no"> ...
When I start my client app with runclient, I get the login dialog. I sign in and everything is fine.In the main of my app, if I make a call to Context.lookup("java:comp/env/ejb/MyEJB") I get the home interface without problem.But after that I open a JFrame and call the same method when the user ...
414 byte By
khoa01 at 2007-9-26 4:53:03
I was wondering if there was an easy way to have references to jars that is contained in one ear in another ear. The main question is that if we have some EJBs that are commonly used in multiple ears then is there a way to have those common EJBs in a single ear and have the other ears that need ...
Hello! I'm writing a class that has a method wich writes something using print and println function calls.I want this method to work writing to JSP out object and to a file (giving it the filename as a parameter).What's the best way to implement it?I've trying to find out, but JspWriter and ...
hi,the scenario is,a user logs in and selects certain fields based on which a query is generated and the result is shown.now the user closes everything restarts tomcat and logs in again at that time i want to display a list based on the previous query generated by the user.Can anybody help me ...
I want to know when a session is unbound after timeoutcan we still access the session parameters/variables in the class implementing the HttpSessionBindingListener.I have been trying to retrieve the values from the session in valueUnbound() method but it is always giving me null.Am I making a ...
587 byte By
pptemp5 at 2007-9-26 4:53:26
HiAt the moment any time we make a change to a properties file, we have to restart tomcat for the changes to take effect.I'm trying to set up a jsp page which will call the function in the bean which loads the properties file. This is the codes we're using:in = ...
240 byte By
ottox at 2007-9-26 4:53:27
Hello.I would like to get your opinion about what application server is "better" (in terms of performance, scalability, bla, bla).... The competitors would be: Jonas, JBoss, and Free version of Orion.Otto Cordero
596 byte By
jsaraiya at 2007-9-26 4:53:37
hi We are making our jsp to generate xml document which would get parsed on client side with xslt. Has any one worked on this before or aware of any efficiency issues ?This is a good idea if we expect differemt types of client like PDA and web browser accessing the same server side application. ...
Hi all,I am using request.getRequestURI() to get the url of the calling page.But, Can anyone let me know how do i get the complete url.eg: if http://localhost:8080/servlet/abc.jsp?abc=12324&xyz=5830 is the url of the page.when i use request.getRequestURI() I get only ...
Hello! Can someone help me with this error:java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state I'm running MS SQL Server 7.0 and I'm accessing it thru JDBC-ODBC.The code is quite regular (took straight from an example). Does it matter that I'm making this connection ...
463 byte By
susieM at 2007-9-26 4:54:07
HelloI am trying to redirect to a asp page on a different server.I have added all the information to the querystring that I need, but the url is being added to my current locationString url = "http//otherserver/dev/page.asp?rd=20";response.sendRedirect (response.encodeRedirectUrl(url));but the ...
4919 byte By
maggiexu at 2007-9-26 4:54:11
I am learning JSP and tried out a simple jsp and javabean program on Tomcat, but it didn't work. Could anyone please tell me what did I do wrong?Counter.jsp:<%@ page import="com.jguru.CounterBean" %><jsp:useBean id="session_counter" class="com.jguru.CounterBean" scope="session" ...
1628 byte By
redi1012 at 2007-9-26 4:54:17
Hi,I have n number of check boxex, which are getting created dynamically. Once I created , after i select some of them I will hit button.As soon as I click on button I need to grab the vaues of selected check boxes.Ex:lets say Dynamically I got 4 check boxes<form ...
305 byte By
ck0012 at 2007-9-26 4:54:33
I have a drop down list box which contains the values "Y" and "N". When the list box is displayed I want to show the value which is currently in the database. I receive the current value of the field from a Bean. Does anyone have an example of assigning selected to a value in the list box? ...
Howdy,I am presently having good success with the jsp:plugin tag starting my applet.But, I can not seem to give the applet an ID or NAME in the <object> or <embed> tag.This is needed, as I am attempting to access the applet from javascript in the html page.my jsp:plugin tag looks ...
734 byte By
adamrau at 2007-9-26 4:54:38
I have a database with lets say 100 items. I want to show 5 at a time which is no problem. BUT every four hours I want to grab another 5 items. I guess you would call it rotating. Keep in mind that I dont want to do random. I first want to show the first 5. Four hours later I want to show the ...
348 byte By
hyrum14 at 2007-9-26 4:54:40
I have a search page used to search over resumes. There is multiple search criteria.A user can select the location (city) or the option ANY.They can also choose a category to search under.An experience range can also be selected.What would be the best way to handle this in my query to the ...
1234 byte By
rokar at 2007-9-26 4:55:02
Hi alll iam just reading image from url .I cant able ... can any one help me import java.awt.*;import java.awt.image.*;import java.util.*;import java.io.*;import java.net.*;Public class Tb{private static Hashtable urlImagesCache = new Hashtable(); public static Image getImage(URL url){try{Image ...
145 byte By
rizvik at 2007-9-26 4:55:07
Hi friends iam using J2EEwhich directory of the j2sdkee1.3 do I store my jsp files..any one having idea abt this.....
219 byte By
ingee at 2007-9-26 4:55:13
I'm using a hardware server that already runs IIS as the Web server. I'd like to run a Web application that I developed that uses servlets. Can I use IIS? Will I need to run an additional servlet engine?
Hi Everyone.i'm using Java beans, JSP, Oracle db.I'm using classes that work on other projects. has anyone seen this error before ? Error Message: Fail to convert to internal representationStack Trace: java.sql.SQLException: Fail to convert to internal representationat ...
467 byte By
uma_var at 2007-9-26 4:55:25
Tomcat and the sever shipped with the old JSWDK somehow don't work on my windows ME PC. However, I am usng JRun. How do I get my JSP files onto my intranet? I am a newbie and will be very grateful for pointers.Thanks.I have a form JSP, database loader bean(.java program), and 2 other JSPs to ...
Hi, anyone out there know how to send secure email using Java Mail? Greately appreciated.
87 byte By
jdrums at 2007-9-26 4:55:33
hello How can i stop JSp execution in middle of execution process.