Character set encoding in IPlanet

638 byte By jzulu2000 at 2007-9-26 3:23:45
When I use <a href="co.com.XServlet?Parameter1==&Parameter2=455">List</a>to call the servlet XServlet in IPlanet, the doGet method tries to get the parameter called Parameter1 using String par = request.getParameter("Parameter1"), but it does not contain the "=" symbol, but if I ...

about the error "null pointer exception"

173 byte By justforfree at 2007-9-26 3:23:50
when i run some jsp author's jsp example~~the error "null pointer exception " ocurrs!!is it because the server or the code?what i can do?

Calling doStartTag from another tag library?

341 byte By mila at 2007-9-26 3:23:53
Hi,Is it possible to call tag's doStartTag() etc. methodsfrom another library's tag code?I should make some kind of "wrapper tag library" which would use another tag library.Is this genrally possible/accpeted way to handle this kind of needs or how should it be done ...Brmila ...

Secure Forms

483 byte By Greebo at 2007-9-26 3:24:30
I have been tasked with creating a secure email form for a company that sells various items - it will have the option to include credit card details.I have never done something like this before so have little idea where to start - so I would welcome any suggestions as to how to go about this?I ...

Get parameters in jsp page

279 byte By sgaye at 2007-9-26 3:24:34
Hello !Is it possible to get parameters in jsp pages ?I.e., when launching a jsp page form an htmlpage or servlet, is it possible to put some parameter, so that the jsp page can recover ? Thanks you very much for your help !

passing checkbox values between jsps

1186 byte By CchrisN at 2007-9-26 3:25:02
I have a problem passing checkbox values from one jsp to the next.This bit works for the first jsp - The piece of code below creates a check box and populates it with the value "uiaddress" from the database, this is a boolean field. I wish to check or uncheck this value according to whether the ...

URGENT....PLEASE HELP!!!!

580 byte By CHEERS at 2007-9-26 3:25:33
In one of my JSP's, I have the user enter a string that will be added to the table in my database. My problem is that if the user puts quotes as in "" around the string they enter, my bean method only gets a null instead of what was typed within the quotes.For example, if the user enters this ...

Multiple Result Sets

480 byte By blue8173 at 2007-9-26 3:25:39
Hi, I'm a new Java programmer.Right now, I'm working with databases in JSP. Is it possible to include different ResultSets within each other?For example:ResultSet set1 = stmt.executeQuery(query1);while(set1.next()){ ResultSet set2 = stmt.executeQuery(query2);while(set2.next()){ //....code ...

How can I prevent someone from entering in the character " in my JSP?

136 byte By CHEERS at 2007-9-26 3:25:44
How can I prevent someone from entering in the character " in my JSP input text box?PLEASE HELP!!!!URGENT!!!

WEB-INF\lib in Tomcat

372 byte By SPasmofiT at 2007-9-26 3:26:15
Hello! Here's my problem:I made a class called "test" and put it in:\ROOT\WEB-INF\lib\com\theK\test.javaand then added "package com.theK;" to it's source and recompilled.In a JSP in \ROOT\ I tried Class.forName("com.theK.test"); and it didn't worked.Any ideas? Tomcat should add the ...

getProtocol() return http for client site even though client uses https://

259 byte By sushmitar at 2007-9-26 3:26:23
HiIn my JSP page using the HttpServletRequest.getProtocol()returns "http" even though client is running site on "https://".Did anyone face something similar?IS there something we are missing.Thanks for ur help.

mailto or JavaMail in stand-alone application?

1085 byte By DarrickWhite at 2007-9-26 3:26:28
Here is what I'm trying to do:I wrote a small invitation application that asks for userinput. I have an 'RSVP' button that is supposed toemail the response back to my email address. I've tried the following:1) Runtime.getRuntime().exec("cmd /C mailto:name@what.com)*This didn't work. I ...

User Interference in JSP pages

705 byte By cakgun at 2007-9-26 3:27:12
Hi, I am new in java. I just wrote a sample code to retrieve data from database. In Parameter.jsp, I am getting retrieval argumants and passing these to Report.jsp. In Report.jsp, I am calling an EJB to get the result set and displaying in jsp. It is working fine.Now I am trying to give user ...

JSP & Session object

647 byte By jimscott at 2007-9-26 3:27:33
I have the problem that several others have had, and that is my JSP pages won't access the same HttpSession object that my servlets do.I am using Apache server with jserv, Oracle 8.1.7 version. My JSP's even have @page session="true". (I have tried several things). Still, my session is empty ...

some session attributes lost

304 byte By sasbab1 at 2007-9-26 3:27:45
hitraversing between different jsp pages,I find that three of the session attributes are lost.While it is set, I can print it and verify that it exists in the session.Is there any limit on the #, or is it something else.thanks in advancebabu ...

help on applet/jsp communication!

518 byte By evelynwang at 2007-9-26 3:27:46
Hi all,I have an applet embedded in a JSP page using the <jsp:plugin> tag. I want to have the applet return a string (using url connection and outputstream) to the same JSP page when it's done loading but it's not working. The applet starts with no problem but after it's done loading ...

connect MsSQL?

106 byte By bpchia at 2007-9-26 3:28:11
how to connect MsSQL database?do i need to download any Jdbc driver?Thank you.

can't access connection bean . please help!!

713 byte By psagarn at 2007-9-26 3:28:16
hi all ! i've been working on servlets and ASP for an year now and have recently started JSP.my problem is that JSWDK, which i'm using for development purpose , can not find any of the beans that i use in my pages.i have set the classpath to the directory in which my bean i.e. .class file ...

problemmmmmmmmmmmmmmmmmmmmmmmm! with cookie.!!! pls help

289 byte By sabufeb at 2007-9-26 3:28:34
HiI have a servlet that uses session .But first I want to check whether the browser supports cookie. I want to check it using my servlet .Please help me how can i do this.could you please include a sample code thanks for listeningsabu

POSTing to jsp

438 byte By klaka at 2007-9-26 3:28:48
I can't read data, that were sent via POST method to jsp page, with jsp's request variable.Is there a difference between jsp's request variable and servlet's one?...InputStream in = request.getInputStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(in)); String line ...

urgent:nullpointer Exception

1455 byte By cruk at 2007-9-26 3:28:54
Hi friends, I want to share bean object with session scope between my JSP and Servlet and vice versa. 1. from my JSP, I use <useBean> tag to instantiate a bean with session scope, then invoke a servlet. 2. within the servlet, I want to retrieve the bean that is created in step(1), do ...

JSP redirect loses session

276 byte By janquetil at 2007-9-26 3:29:25
I'm using,response.sendRedirect(encodedUrl);to redirect to another JSP but it trashes my session. I'm using a bean with a scope of session but after the redirect the session is always lost.Anybody got any ideas?Many ThanksJ-P

How to?

495 byte By paichow at 2007-9-26 3:29:34
Im a newbie in java,So Im a student, my project need a specification of installing TOMCAT and APACHE in the same machine or separate but later on I have to manage the work of servlet is done by Tomcat and the Apache will handle the html stuff.So I do not know how I gonna a start....By the way I ...

tomcat config file web.xml

622 byte By gentyt at 2007-9-26 3:29:49
Hi,I want to use parameter in web.xml config file but I've a problem : there's many web.xml files in tomcat directories and modify all of them but I can't still get them, is the following syntax ok/sufficient or should I put the web.xml in a special dir?<web-app>... ...

Why using Beans?

349 byte By ddani2000 at 2007-9-26 3:29:54
Hello,Now, at the very beginning I'm asking what are the advantages of using beans instead on working directly with java classes (using import for example). I have an application which will use a lot of forms to access an Oracle database and I have to choose between using or not Beans. Any ...

how to split a string?

447 byte By joycetu at 2007-9-26 3:30:04
Hi! EveryoneI'm a new JSP programer,and have some questions.there is a string like "a,b,b,c,f,g"how can you split that by "," ?and how can you check if there are any characters repeated?and how can you print as follow?"a" appear one time"b" appear two times"c" appear one time"f" appear one ...

Servlets and Beans

258 byte By janquetil at 2007-9-26 3:30:23
I am developing a website using JSP, beans and servlets.The thing I need to know is can you access the variables stored in a session wide bean (those stored using set/get methods) from within a servlet? Many ThanksJ-P

URGENT ! TOMCAT LOAD ON STARTUP PROBLEM

878 byte By davidod at 2007-9-26 3:30:26
Hi all,I have a problem when trying to load servlets when tomcat is going up.The problem is that the load on startup is working. But the init is again called when the first client is connection to the servlet ?My web.xml is the ...

Code not being executed

253 byte By alunjones at 2007-9-26 3:30:29
Am using a session varible to test an if statement, if true then statement is executed, else nothing. The session variable appears to be false but the statement is still being executed, any suggestions. Possibly a browser specific problem?

How to check whether the browser supports cookie using servlet

251 byte By sabufeb at 2007-9-26 3:30:33
HiI have a servlet that uses session.I want to check whether the browser supports cookie.Please help me how can i detect this using servlet.could you please include a sample code thanks sabu

TOMCAT INSTALL

226 byte By v_senthilraja at 2007-9-26 3:30:49
Hi all.which installation is good. either rpm install or binary installation.please can any one tell me the procedures for installing and configuring tomcat in linux box.ThanksSenthil.

JSP using a bean to do output?

946 byte By sprior913 at 2007-9-26 3:30:51
One thing I haven't seen much mention of is the possibility of using a Java Bean todo some output for a JSP. I'm porting a page I wrote a while back that uses aJHTML page to call a servlet which is just a thin wrapper around a bean whichactually writes the HTML output (the bean is actually a ...

Reading of string with quotes around it - PROBLEM - PLEASE HELP?

1499 byte By CHEERS at 2007-9-26 3:30:54
I have a JSP where the user enters a string that is then placed within a column of a table of a database using a JDBC connection. I have found that the user can enter a string with quotes around it and it enters the table fine. I can then query that column fine and place all the values of the ...

how to upload file from a html page

125 byte By srajendrakumar at 2007-9-26 3:31:09
i have a problem in uploading a file from a browser to a servercan u please help me in thisthanks

Download Servlet problem with IE

1271 byte By sukuc at 2007-9-26 3:31:21
Hi JAVA gurus,I am facing a problem with a download servlet. The servlet is working fine with Netscape but with IE the behaviour is funny, although the file is getting properly downloaded in proper location, but the cursor remains in hourglass mode and icon keeps on rotating unless I stop it. ...

HELP! I need to get rid of my headache.

1176 byte By huangjjing at 2007-9-26 3:31:22
My JSP program works in this way:1. It is runing in Server A and will import a text file from Server B.--I make this part work by using java.net.URL. I import the file and save it on the hard drive of Server A.2. After obtaining the file from server B, my JSP program should be able to create a ...

Concatenation in Stringsurgent!!!

503 byte By smitaunni at 2007-9-26 3:31:41
I have a function name in my jsp which isconcatenation of a stringString sBody=sName+Body();the function name should be sName+Bodyfor egif sName="pprops";then function name isppropsBody() the first part of the functionname can vary ...i.e. sName valueCan anybody help me out from this..if I ...

Relative paths in WebSphere

393 byte By rgunder3 at 2007-9-26 3:31:43
HiI have written & deployed a JSP in WebSphere 4 but if I try to reference another file, it always uses the <install-dir>\bin directory as the root. This is crazy, because in any other app server, it would be relative to the J2EE app root.Does anyone know what is causing this? It has ...

App Server and Web server

496 byte By foreverjava at 2007-9-26 3:31:57
Hi AllI know my questions may be simple/stupid for some but they have been playing up in my mind for awhile. My questions are what is an app server and what is a web server? For example, why do I always hear people installing Tomcat and Apache together for development? Isn't it enough just to ...

Urgent - Embedding visual java beans in JSP

311 byte By whitematter at 2007-9-26 3:32:12
I have a custom TextBox .I want to embed that into my JSP, and want the JSP to be able to read the value / set the value of this text box as and when manipulated.How do I go about it?Should I usr <jsp:useBean> for viaula components or <jsp:plugin>Thank you. ...

New to JSP, and this is probable a stupid question

3456 byte By PAULSC at 2007-9-26 3:32:30
My PC is currently running W2K with IIS. This is because most of the consultancy work I do is with NT and Visual Studio.Anyway for reasons too complicated to go into I need to implement a website using JSP and HTML. Now I've downloaded Tomcat got that working with IIS and I've downloaded the ...

desparate-farward problem

7914 byte By ddavidda at 2007-9-26 3:32:37
hello everybody iam having the problem in my application, i can't able to farward the messgae iam developing this code for my project.... i am suffering seriousely with this prolem can any one help me out. Here is my code:<html><HEAD><META http-equiv="expires" ...

class cast exception

196 byte By nalani at 2007-9-26 3:32:41
When I recompile a class giving ClassCastExceptionused by my JSP or Servlet,(beans) the JVM continues to use the old class that has already been loaded. so how to control this

Tomcat Start on System Start

465 byte By statusquo at 2007-9-26 3:33:02
Hi,I was wondering if anyone has had any experience getting Tomcat to start when a computer is rebooted. I would really really like this so I don't have to turn on tomcat every time I turn on my computer.I'm running Linux (Red Hat) and I have httpd and postgre starting when I start the ...

Callable Statements

106 byte By vasvoruganti at 2007-9-26 3:33:04
In JSP how to call a Store Procedure and how to pass the parameters to the Stored Procedure.

text color

8257 byte By tadi at 2007-9-26 3:33:12
design of the background and text colors forHTML pages. Provides an easy interface for selecting the colors andto In my HTML document . so i can't able to getting text colors...please help me import java.awt.*;class Selector extends Panel{ColorChooser app; Label laCol = new Label();Scrollbar ...

dynamic code completion in forte

281 byte By mnguyen24 at 2007-9-26 3:33:17
How do I keep the code completion feature updated in forte with the codes in VisualAge. That is the current methods and fields in VisualAge should show up in forte when I pause for the pop up screen to provide me with the methods and fields available.Thank you

loading data one page at a time

438 byte By sjsda at 2007-9-26 3:33:19
I have 200 records to load in a java server page. I felt loading all these records will affect performance. So I wanted to load 15 records on each pass. However, on the second pass I obtained a nullpointerException(ResultSet -JDBC). Any suggestion on how to do it? my other option is to dump ...

sendRedirect and 404 Page not found

613 byte By joepriv1 at 2007-9-26 3:33:20
I was wondering if there is a way to first determine if the page exists in a response.sendRedirect(strURL);first. If the page does not exist then display another page stating why the page does not exist.Example. Page not found, please try again when processing has completed. I tried using this ...

HTML problem ..YOUR IDEAS PLEASE.

486 byte By pramod_vvs at 2007-9-26 3:33:29
Hi,I have the following problem.In my HTML form, I need to display a text file as an attachment. Users should be able to copy and paste this text file as a whole. One of the fields in my form is this text file. THe user can click on this and it opens its content in a separate window. But this ...