385 byte By
adamrau at 2007-9-26 1:59:41
without popping up the email onto the screen.I want the user to enter some fields on a foem. They fields consist of subject and body.I want the user to click submit and send the email.I really want to know if this can be done using mailto since i have the website that I am talking about doesnt ...
1059 byte By
hyrum14 at 2007-9-26 1:59:49
I have a form with a hidden field named fsearch On the next page I use: String search = (String) request.getParameter("fsearch"); The value if search coming through is "location". Now I have this if but it never enters the loop...why? if (search == "location") { ...
212 byte By
katalex at 2007-9-26 2:00:17
I installed Java2SDK and JSWDK and tryed to look at examples from JSWDK but all the time I receive a message about "500 error"I've set PATH and CLASSPATHPlease help!!!Thank you
521 byte By
sarumii at 2007-9-26 2:00:20
Hi I use a dynamic include for my top "header" (by header, I mean many urls that pertain to either internal or external users) of my web page, and I use String agent = request.getRemoteAddr(); ......to get either a intranet header or internet header dynamaically,but, if inside the body I have a ...
Hi, I'm new to JSP.Here is the JSP page that causes the error<% String n = request.getParameter("name"); String s = request.getParameter("surname"); if(n.equals("xxxx") && s.equals("yyyyy")) {%><jsp:forward page="myhome.jsp"><jsp:param name="name" value="<%=n ...
Our under-developent web system is global. Our clients should be able to search data from the server-side database and then after get the resultset, they also should be able to save these data as a text file on their local machine by just a click. Of course, before they click the OK button, ...
Is there a way to redirect the response objects output buffer to a file instead of to the client (browser)? I am using the jsp to process a set of jsp templates (using the RequestDispatcher's include method) and I would like to send the resulting html to a file, NOT to the client. Any ideas. ...
Hi, I want to know if a query is yielding a resultset. Say for examplers = stmt.executeQuery("Select first_name, last_name , home_branch, full_time, reg_schedule_hrs , part_time from employee_details where employee_id = '"+emp_id+"' ");I want to know how to code if it doesn't return records ...
279 byte By
walaloo at 2007-9-26 2:01:08
Is anyone familiar with using Forte 3.0 to develop/deploy a web application to an iPlanet Server? All I need is a simple walkthrough to create/deploy a "Hello World" app (it could be just a JSP) or a link to some document that covers this topic.Thanks
264 byte By
wmacey at 2007-9-26 2:01:16
I really want to put a scrollable JList or JTable into my JSP page.I have heard comments that this is impossible and would like some input on other JSP compliant options I have.Any input is welcome, as long as it is constructive.
158 byte By
wmacey at 2007-9-26 2:01:36
I have information in my JSP, obtained through some bean, and need to pass allthat info to an applet I want to run. Is it possible
525 byte By
jerkyboy at 2007-9-26 2:01:37
I need to make a servlet that allows the user to download multiple files at once. I was thinking the save as prompt would be necessary for each file. So my ideal system would be the user clicks a link that would bring up a save as prompt when they click save, another comes up with another file ...
913 byte By
met209 at 2007-9-26 2:01:58
Hi everyone:My coworkers and I need to track the number of pages a user visits while visiting our site.We set a cookie in the login servlet. If they're not logged in and they visit 5 pages, we want to redirect their request for a 6th JSP to "pleaseLogIn.jsp." Here's the problem:1 -- We want ...
563 byte By
marinaR at 2007-9-26 2:02:02
Could you please explain me where is the difference between passing integer to "where" clause and string.if I use like this:("select * from table_name where id=" + id)-return to me everything what i need exactly,but in case when I use("select * from table_name where name = " + myname)-get error ...
931 byte By
dUb at 2007-9-26 2:03:11
I am constantly getting the error that "Couldn't load database driver: oracle.jdbc.driver.OracleDriver " Now I believe this is due to the fact that something is screwed up with my classpath. However I have the driver in my enviromental classpath and I believe that it needs to go in the ...
594 byte By
calbear at 2007-9-26 2:03:20
Hello everyone,I have a web page that gets messed up when a user double clicks a submit button in MS Internet explorer (causing the user to submit the form twice). I remember a former company of mine having this problem, but I wasn't the one who worked on the solution so I don't know how they ...
Hello PeopleI need suggestions and input on a news publishing APP.it's hosted on MyCGIServer. http://www.mycgiserver.com/~rehanmalik/news.jsp(Main News Page). http://www.mycgiserver.com/~rehanmalik/news/(Login Page)Username: adminPassword: adminI'm ready to get flamed =P ...
124 byte By
des_xu at 2007-9-26 2:03:32
Hi, does anyone know how to write a timestamp codes for JSP page so tat my JSP page wont be cached?thx!
143 byte By
des_xu at 2007-9-26 2:03:35
Hi, is there any software tat can write JSP codes and debug it, functioning the same as what microsoft interdev is doing for ASP?
207 byte By
macitoma at 2007-9-26 2:03:41
Is it possible to do that without reloading the whole page?Can someone give me any ideas how to update, let?s say table content, once user clicks a button.Thanks,TM.
Hi,I tried to display PDF file with Servlet in IE but failed.I used response.setContentType("application/pdf") to set the content type. And then write the pdf stream to the OutputStream. It can successfully display PDF in Netscape with Acrobar Reader plugin. But failed in IE, in IE, it just ...
126 byte By
des_xu at 2007-9-26 2:03:57
Hi, I want to check if a given string contains numbers or alphabets, is there anyway to go this using JSP codes?
364 byte By
mafubo at 2007-9-26 2:04:18
Environment : JSP+TOMCAT(3.2.3)+WINNT(4.0 SERVER)Problem : As we know , there will be compiling when wevisit a jsp-page which didn't be visited before. So it willbe slow when we first visit a new website ! My question: Is there a way to compile my all jsp-pages of new website before i start ...
Hi All,What are the advantages of Servlet over JSP?Thanx
351 byte By
ravish.k at 2007-9-26 2:05:11
Hi, I am trying to read a properties file in a java class which will be used as a bean for a JSP page . But I can not read properties file and it is saying "File Not Found" . I am able to read the file if I give fullpath or if I keep that file in tomcat/bin/ . Is there any other solution ...
717 byte By
SridharM at 2007-9-26 2:05:14
Hi, I have a JSP (abc.jsp) that has a <BASE href = " http://www.xyz.com" >. It also uses a html bookmark "abc.jsp#top" to provide a "Top" link for the user to go to the top of the page. This page is viewed for the first time through a Request dispatcher's forward method from a Servlet. It ...
Hi,In my application, (am using JSP), i am using the 'request.getRemoteAddr()' method to retrieve the IP of the client who hits my web page. My prob is that this method does not give me the IP of the actual client, instead it returns the IP of the gateway (in case it is there), or if the ...
454 byte By
swetav at 2007-9-26 2:05:30
I Have just begin to learn JSP. I downloaded the JSP developer kit from java.sun.com. However I dont know how to proceed. I have seen references to'the container'. what is it and how do I start it? and the same for the server which I have in the form a batch file. How do I configure the ...
332 byte By
fagane at 2007-9-26 2:05:51
I have a form that allows a user to update their details. The form displays the current details. One of my input fields is a drop down list. How can I get the drop down list to display the current value for this field (i.e. the value the user entered the first time the submitted their details) ...
221 byte By
wisec at 2007-9-26 2:06:02
Hi,I am coding some JSP and Servlet codes, and want to push back a mssage to browser and don't let browser first send a request to server like chat. Who can help me for that?Thanks,Wise
234 byte By
taruns2 at 2007-9-26 2:06:09
I am unable to pass a vector from a Jsp to a Servlet. I have tried request.setAttribute and req.getAttribute in Jsp and Servlet respectively. Even session.setAttribute and session.getAttribute doesnt seem to work.
329 byte By
Abhi325 at 2007-9-26 2:06:33
Hi!I am not able to open jsp files from the Java Web Server2.0. I place the jsp files in the public_html folder, the java and class files in the classes folder. I have also downloaded a few sample files which seem to work fine, so there is no problem with the server. Can someone help me out ...
886 byte By
daffin at 2007-9-26 2:06:36
Hi,I writing a small webapp to test/understand the 2.2 Servlet Spec. I am deploying this as a WAR to Orion, Tomcat and Silverstream.The app's name is: "myapp"My application has an index.html, which is listed as the sole welcome-file in the welcome-file-list element in the app's web.xml.The ...
I have set up the required variables in order to run the startup.bat file and I get the following error when attempting to start it:java org.apache.tomcat.startup.TomcatException in thread "main" java.lang.NoClassDefFoundError: org/apache/tomcat/startup/TomcatI have modified my Startup.bat file ...
5884 byte By
pengyl at 2007-9-26 2:06:44
Hi guys i am having problem with the Web Application: I wrote a program in Jsp+JavaBean, Microsoft Access Database, this program runs smoothly in Windows 98/Me+Apache+JRun developer version, but when I put it on the ISP's Server, it always (not every time) cause "Jrun Closed Connection" , i ...
I have set up the required variables in order to run the startup.bat file and I get the following error when attempting to start it:java org.apache.tomcat.startup.TomcatException in thread "main" java.lang.NoClassDefFoundError: org/apache/tomcat/startup/TomcatI have modified my Startup.bat file ...
1087 byte By
br0nx at 2007-9-26 2:07:01
I'm working with EJBs and I have tested mine with WTE in VAJ. The problem is when I try to access them on a remote client. What I have done so far:1:export the bean group to a Jar Filefor the administration "Web page"2:add an application by selecting the good Jar file3:I set the JNDI ...
Our JSP web system allows our clients to be able to search data from the server-side database and then after get the resultset, they also should be able to save these data as a text file on their local machine by just a click. Of course, before they click the OK button, they should navigate the ...
636 byte By
pengyl at 2007-9-26 2:07:13
I wrote a web application(JSP+JavaBean+Microsoft Access Database), it runs well on windows98/me+Apache+JRun developer version(net work). but when I put it on the internet by using ISP's Server(NT 5.0+ IIS+JRun), It does not work well. when click on a link or a buttton to get another jsp page ...
5868 byte By
pengyl at 2007-9-26 2:07:30
Hi guys i am having problem with the Web Application: I wrote a program in Jsp+JavaBean, Microsoft Access Database, this program runs smoothly in Windows 98/Me+Apache+JRun developer version, but when I put it on the ISP's Server, it always (not every time) cause "Jrun Closed Connection" , i ...
290 byte By
rohit29 at 2007-9-26 2:07:37
Hi all...I have a jsp page which displays a table with a list of results...What my client wants is that i should include a button on the page on clicking which the entire results of the table isexported ona text file...how to do this...can anyone help....
How is it that you can change within javascript in a JSP a value you get using something like this:document.Check.validate.valueFrom a string to an integer. I have tried using the Integer.parseInt(document...)This gives me a runtime error stating that Integer is not defined in the javascript I ...
217 byte By
svchundu at 2007-9-26 2:08:41
Hello Everyone,I am getting an exception while reading the Get/Post data in a JSP page if the data contains % char. Can you please help me how to fix this problem.Thanks,Satya
283 byte By
pafoege at 2007-9-26 2:09:17
Is it possible to reference Exception subclasses in the error.jsp page?If I throw a new exception called testException from a bean, how do I get access to it in my error.jsp page? It seems like I can only get access to Exception, not testException.
6389 byte By
ljava123 at 2007-9-26 2:09:26
java.lang.NullPointerException at pagecompile.jsp._Company._jspService(_Company.java:207) at com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87) at javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at ...
745 byte By
alexwork at 2007-9-26 2:09:28
After upload file on server using submit form with enctype="multipart/form-data", I return page with link. If user clicks on link and then clicks back, IE5.5 return page with<<Warning: Page has Expired The page you requested was created using information you submitted in a form. This page ...
Anybody know of a good tutorial/site that walks you through setting up Apache and Tomcat to work together in a Windows NT or Windows 2000 enviroment?thanks
269 byte By
JavaDen at 2007-9-26 2:09:36
hi how can i show some HTML code on a page without the browser converting it to htmlFor example<INPUT TYPE="text" SIZE="15" MAXLENGTH="128" NAME=qt> I would like this to be displayed as code not as an Input box TIA
130 byte By
Priyam at 2007-9-26 2:09:54
Hi,How to pass java 2-Dimensional array to javascript 2-dimensional Array ? Thanks,-priya
HI,I have a question about optimizing Database Hits from a Bean.I have a java bean that is currently in request scope. All methods in the bean returns Vector which contains the contents of different JDBC queries - Several Select Statements.After the bean is instantiated all the methods are ...