Using mailto:myname@dot.com is there a way to automatically send the email

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 ...

Problem with if statement...

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") { ...

500 Error

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

remote address and and display the correct link

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 ...

Error 500 ParseException

861 byte By carlosaviani at 2007-9-26 2:00:29
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 ...

HELP!How to get a text file from a web server and save it on local machine.

652 byte By huangjjing at 2007-9-26 2:00:30
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, ...

redirecting a servlet response to a file

381 byte By jaywright00 at 2007-9-26 2:00:36
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. ...

to verify a resultset

503 byte By vishvesh_obla at 2007-9-26 2:00:58
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 ...

Using Forte 3.0 to deploy web app to iPlanet Web Server

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

Display Options?

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.

JSP and Applet

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

Downloading multiple files at once

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 ...

Tracking number of JSPs a user visits in a session

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 ...

Syntax in select statement

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 ...

JDBC Driver Classpath

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 ...

Internet Explorer quick click problem

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 ...

Suggestions

348 byte By XcaliburKnight at 2007-9-26 2:03:31
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 ...

timestamp

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!

JSP editor

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?

Dynamic page content update.

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.

Cannot display PDF in IE !!

510 byte By EricMacau at 2007-9-26 2:03:56
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 ...

checking

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?

about JSP pre-compile!!! Help!!!

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 ...

Silly Query

84 byte By javashish at 2007-9-26 2:04:33
Hi All,What are the advantages of Servlet over JSP?Thanx

Reading

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 ...

Problem using HTML bookmarks with jsp and <BASE> tag

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 ...

Retrieving the client system's IP address

792 byte By filtertipped at 2007-9-26 2:05:16
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 ...

New to JSP-How to run a .jsp file

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 ...

Current value from drop-down list?

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) ...

How to push back a message to browser using JSP or Servlet?

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

Unable to pass a vector from a Jsp to a Servlet

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.

Cannot invoke jsp from JWS

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 ...

How can I have a default servlet and an index.html?

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 ...

error when starting tomcat in win2000 pro

663 byte By cmitulescu at 2007-9-26 2:06:43
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 ...

what is the difference between

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 ...

error when starting tomcat in win2000 pro

663 byte By cmitulescu at 2007-9-26 2:06:45
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 ...

Problems with the JNDI in Websphere App Server for Linux .

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 ...

HELP! How to save resultset (NOT file) from server databse on local machine

1655 byte By huangjjing at 2007-9-26 2:07:11
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 ...

do I must use EJB if I put a web application on NT+IIS+JRun

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 ...

why "JRun Closed Connection"

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 ...

exporting data from a jsp to a text file...

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 to change (document.Check.validate.value) to integer from string

386 byte By moined_mogul at 2007-9-26 2:07:44
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 ...

JSP throws exception if the FormData contains %

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

Referencing Exception subclasses in error.jsp?

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.

here is my error and code.

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 ...

How resolve the problem - Warning: Page has Expired

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 ...

Apache + Tomcat in Windows

176 byte By johnyoung at 2007-9-26 2:09:34
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

how can i show some HTML code on a page

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

2-Dimesional array :urgent

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

optimizing java code related to beans and jdbc

1400 byte By stephensutherland at 2007-9-26 2:09:55
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 ...