How to place database values in the textarea

399 byte By qasims_1 at 2007-9-26 3:01:00
I am coding in JSP file and trying to get some values from the database ( the values could be any thing , it can be a number or it can be a String ) and then print it into the textarea.I am using the tag the famoues tag <Textarea> of html . Reteriving the value from the database is not a ...

Displaying search result across multiple pages

320 byte By rinkub at 2007-9-26 3:01:01
Hi,After getting resultset say of over 1000 rows.I want to display the resultset over multiple pages just as search engines display results over multiple pages using buttons previous and next.please suggest some sites containing the sample code in jsp. Thanks in advance. ...

JSP :: Please Wait Page

434 byte By rinkub at 2007-9-26 3:01:07
Hi,I have a jsp page which displays over 100 records from the database. While the fetching is done it shows me a blank screen. How can i avoid it? I want to show the user a page which displays a waiting message, while in the background the fecthing of the recodrs is processed. and as soon as ...

Security risks with session attributes

194 byte By adamrau at 2007-9-26 3:01:20
Hi all,I was wondering if there were any security risks that are know while using session attributes.Is there a way for a hacker to read them?THanksAdam

How to pass a JavaBean from servlet to JSP?

1045 byte By yu_hung at 2007-9-26 3:01:54
Hi there,I am working on a project that needs to handle quite a few client requests and I want to use the Front Controller pattern that is described in the J2EE pattern page.The steps described in the front controller pattern is that:1. A servlet (controller) process the client request.2. It ...

Tomcat and Apache JServ

583 byte By rinkub at 2007-9-26 3:02:34
Hi,Wanted to know regarding the performance difference between apache'Jserv and tomcat. I'm using apache with Jserv for JSP and i have an search engine application which fetches values from the database and if multiple users are accessing the site at the same time...the JVM goes 100% and the ...

<%! declaration tag problem to be careful - clarification

1994 byte By mdjavid7 at 2007-9-26 3:02:35
Consider 96 for teh percentage sign in the description below throughout<code><%! int i = 5; %><%int j=5;%><%i++; %><%j++; %><%out.println(" i value " + i); %><%out.println(" j value " + j); %></code>The output of the above program when we run in ...

Null values

1286 byte By raspus at 2007-9-26 3:02:41
Elo,I have an app where a JSP can update database data.The problem is that when I select a row to be updated the JSP (the query is through JDBC in a bean method) displays colums that have null values as 'null'.This is no good because if I want to update the row I have to delete the 'null' ...

Null values

1245 byte By raspus at 2007-9-26 3:02:42
Elo,I have an app where a JSP can update database data.The problem is that when I select a row to be updated the JSP (the query is through JDBC in a bean method) displays colums that have null values as 'null'.This is no good because if I want to update the row I have to delete the 'null' ...

How to subtract dates to get days/hrs/mins/secs when java does not allow su

306 byte By adamrau at 2007-9-26 3:03:13
subtraction like thisjava.util.Date DateOne;java.util.Date DateTwo;String difference = "";difference = DateOne - DateTwo;Does anyone out there have some sample code for this. Seems like its a pretty simple thing, its just taking me for a whirl.Thanks ...

Anyone from Sun: clearing the cache the right way!

267 byte By deandaniel at 2007-9-26 3:03:35
hi there to everyone, i know most of us are having problems clearing the browser's cache. Can anyone from SUN suggest the best way/the right way...using ONLY JSP... i tried a lot of methods but it doesn't work.thanks,daniel

session.putValue("anything", anything) will this work if the user has cooki

110 byte By adamrau at 2007-9-26 3:03:41
WIll session attributes work when a browser has cookies disabled?THanksAdam

Please help how to pass a JavaBean from servlet to jsp?

414 byte By yu_hung at 2007-9-26 3:03:45
Hi there,I have got a dispatch servlet and I want the dispatch servlet to get the data and store it in a JavaBean before dispatching to the appropriate JSP page. However, I don't know how to pass the javabean to the JSP when the servlet forward the request to the JSP. Is ...

http://someplace.com?url=http://somplaceelse.com?one=one&two=two. How can i

271 byte By adamrau at 2007-9-26 3:03:52
GET JUST THIS PART OF THE URL http://somplaceelse.com?one=one&two=tworequest.getQueryString() = url= http://somplaceelse.com?one=one&two=twogetQueryString would be OK if it didnt contain url=ThanksAdam

What is the best way to determine the type of Client requesting a service?

247 byte By kashabm at 2007-9-26 3:03:54
Hello:I would like to know the best way to determine the client type that requests a service from a Servlet. [like micro-browsers, cell phones, web browsers etc. )I would appreciate any leads.ThanksKashabm

disable session timeout

374 byte By Zerg2000 at 2007-9-26 3:04:04
the default session tmeout is 30 minutes. but i do not want this at all.how to disable the session timeout. i want my session object to live inifinitely.that is, how to disable the following. <session-config><session-timeout>60</session-timeout></session-config>Please ...

how to run servlet in Tomcat?

328 byte By bpchia at 2007-9-26 3:04:42
i was installed Tomcat in my NT server,and there is no problem to run JSP files.but when i try to compile java servlet,error occurs:"package javax.servlet does not exist"i already installed JDK1.3.1 and J2EE1.3,is there any setting I need to set?Please Help! ...

Compile JSP

206 byte By smallsun at 2007-9-26 3:05:07
I know the JSP will be compiled in the first time the page is called. Is there a way to pre-compile the JSP so that the user doesn't have to wait in the first time the page is used?Thx

sending an email through jsp

75 byte By dhiraja at 2007-9-26 3:05:08
is there any facility to send an email to persons through jsp

sending an email through jsp

75 byte By dhiraja at 2007-9-26 3:05:09
is there any facility to send an email to persons through jsp

How to display the selected item after onchange is occurred.

1660 byte By christine_csh at 2007-9-26 3:05:19
<form name="form1" method="post"> <p><strong>Product Name: <select name="productBrand" onChange="javascript:form1.submit();"> <option value="" selected>- Product Name -</option><% for(int i = 0; i < Product.size(); i++) {String id = ...

problems with if clause

1963 byte By pumpindave at 2007-9-26 3:05:36
hi,im trying to put a very simple if clause on my jsp. but tomcat will not compile this page. im sure that the syntax of the if clause is correct. plz help me to solve this - thxpumpindavehere is the alert:org.apache.jasper.JasperException: Unable to compile class for ...

Help Needed !!!!

1236 byte By iwishtolearn at 2007-9-26 3:06:02
Hi ,I have strange doubt.. Please clarify me ..Let us say there are 2 Prgms. 1)Loading.java ( Servlet ) 2)Monitor.java (Pure Java)Loading.java :==========public class Loading extends HttpSerlvet{Monitor mon = null; public void init(ServletConfig SC) throws ...

Convert String

227 byte By mariaduong at 2007-9-26 3:06:04
Hello,I'd like to convert a String with white space to an encode expression whitout with space, in order to post it to an http request. I 'd like to do it in JSP.Thanks for your answer,Maria

form variables in an if clause

397 byte By pumpindave at 2007-9-26 3:06:12
hi again,how can i use form variables in an if clause?if i just want to display the variable i write:<%= request.getParameter("variable") %>but how can i use this in my if clause. lets say in this if clause:<% if ( variable < 50 ) { %>blabla<% } %>plz give me the syntax for ...

I want to know some details about servlet

136 byte By javalearnerB at 2007-9-26 3:06:29
what is the difference between GET(doGet method) & POST(doPost method) requests?which of the 2 is advantageous?

Is it possible to create a bean that will generate (fill up) applet paramet

408 byte By jshamann at 2007-9-26 3:06:32
Hi all,As a newbie I was asking myself is it possible to create a bean that will fill up applet parameter or directly generate the applet ?And I can I create it ? I mean : Having a jsp page that make reference to the bean, the bean shall generatehtml applet parameter values. Some samples will ...

help in jsp:forward

319 byte By k_swamy at 2007-9-26 3:07:00
HiI am forwarding a request from my Servlet to a Jsp using Requestdispatcher class.From that Jsp i want to forward the request to some other servlet on Clicking a Button. I dont want to put it in form action.I want to again forward the request to some other servlet.Help in this.Thanx ...

activate a servlet in jsp

289 byte By greatchivi at 2007-9-26 3:07:03
hi,i have a servlet for my database connection and i have specified the url ,username,password in the web.xml file .when i try to activate the servlet using jsp forward it does not get activated.i am not connected to the database.can anybody help in this.thanks

How to print jsp generated html page without using browser print option?

238 byte By sharadag at 2007-9-26 3:07:14
Hi,We are using jsp to generate the dynamic output on browser, now we want to print the current page (exactly) to printer without using Browser print page option. Can we do this?Thanks in advance--Sharad

Are beans

319 byte By rajbhaskar at 2007-9-26 3:07:41
Hi folks,Just a quick question. When a bean gets created by a JSP using the <jsp:useBean> tag, is this bean specific to the thread that created it? So if another visitor hit the page simultaneously, would another bean of the same class be created to service that thread?TIA,Raj. ...

about sessions

205 byte By keerthikanth at 2007-9-26 3:07:50
Will the session id be deleated and new session id created. When I invalidate the session by session.invalidate().It is not happening in jrun server.Is it server problem or happens like that.

Escaping Wildcards in a Like Clause

863 byte By parkerdv at 2007-9-26 3:07:56
Hello,This might be more of an Oracle question than a JSP question, but I'm going to give it a shot anyway.I have a field in an Oracle database that I'm trying to do a select statement on from a JSP page. Here's some sample data:PRO_TestTestingTest 3PROTOCOLPROFILE_TestingAnother ValueNow ...

Servlet

3364 byte By steveEbersole at 2007-9-26 3:08:05
In a nutshell I am trying to create a single-signon environment which will encompass mutiple intra-net sites. Each site uses its own security model, but all use session cookies to "maintain state".I have tried to implement this using HttpURLConnection calls. I have the user authenticate against ...

Keep track of pages visited

324 byte By arnoldfire at 2007-9-26 3:08:49
HiHow do I get keep track of the jsp pages being visited between when someone logs into an application andlogs out.Do I have to write something at very page to track thisWould I able to persist this information into the database and retrieve this laterThanksArn ...

Regarding JSP

320 byte By vidhyass at 2007-9-26 3:09:09
I am new to JSP & Servlet technology. while forwarding request to next page using "forward action" or using response.sendRedirect(URL) method of servlet, destination page's URL address is not displayed in the address line of the browser. how can i get it displayed in the address line of ...

helpppppppppppppppppppppppppp

613 byte By siv-viv at 2007-9-26 3:09:14
hello,i have a bean in my jsp page which gets the users name and password using two methods called getuser()and setuser() what i have got struck is that i should get this values into a class which has a method like this Geninfo("user" , "pass") ; actually the values which i get from the bean ...

More Efficient to Create New Bean or Use Existing Ones

698 byte By bryanwclark at 2007-9-26 3:09:15
I have two beans, lets say HomeBean and OfficeBean which are related to each other by a user_id which comes from a database.When users do a search for something I want only parts from each bean like HomeBean.city and OfficeBean.city and a few other fields from each. I'm wondering if it is more ...

Problem with added carrige returns in download of fixed length records.

2983 byte By bryonbean at 2007-9-26 3:09:38
Hi,I'm hoping that someone can help me, I'm at a complete loss.I am downloading fixed length text records from our extranet via JSP. The problem is that 8 addtional carrige returns are being added to the records somewhere during this process, rendering the files useless. The following is the ...

jsp classes

1285 byte By skywalker421421 at 2007-9-26 3:10:02
I have a complicated problem (don't we all). I started with a simple 3 page web project: html submission form and two jsp pages (one jsp is just a db connect helper class included in the main jsp page). The application worked fine unless you entered the incorrect info on the login page because ...

JSP Sitechecker?- Do they exist?

220 byte By spinister at 2007-9-26 3:10:13
Hey- I need to check all of the links in my over 2000 product inventory on my JSP- based site.None of the link-checkers I know of will check JSP.Anybody know where I can get one?Thanks!

accessing database

176 byte By salarje at 2007-9-26 3:10:45
I have a .jsp page which calls a bean to query a record from the database. I need to populate the jsp form with the values from the database.....how do I do this?

Help me get started

883 byte By cliff76 at 2007-9-26 3:10:47
I'm trying to write a basic web-database application and I'm going about it all wrong. Can somebody help me get started? I need to know what book is good for the programmer who has a lot of web experience and a solid understanding of Java. I don't want anything too wordy. I may want to get ...

I subtract two dates and have total seconds. How to convert seconds to.....

181 byte By adamrau at 2007-9-26 3:10:58
days/hours/minutes/seconds.Does anyone know how to convert a # that equals total seconds to days/hours/minutes/seconds?Thanks as alwaysAdam

Why I got the error "setMaxInactiveInterval(int) not found in HttpSession?

1035 byte By aidshiv98 at 2007-9-26 3:11:00
I just add two lines code in my jsp file:<%long lasttime = session.getLastAccessedTime();session.setMaxInactiveInterval(100);...%>First line works fine and the second line give the error at the end of this page.How the session has the getLastAccessedTime method but not the ...

what's different between a bean with session scope and a session object?

283 byte By liberticide at 2007-9-26 3:11:02
I have been wrting jsp for couple months and I am new to java bean. I hope someone can answer my question. I am just curious about different between a session object and a bean object.tell me even I am actually asking a silly questionthx in advance

HTTP getURLName

263 byte By tilusio at 2007-9-26 3:11:47
I am trying to find a way in java to accept an HTTP post method and get the URL name from the method. I have had no luck finding any params that fit this need. If anyone has any ideas of how to grab that info from a request please respond. Thank you

Urgent Help - SQL Statement..

560 byte By koel78 at 2007-9-26 3:12:09
hai everybody,i need ur help in writing a SQL statement..i have 2 tables sayCATEGORYcat_idcat_nameB001ITB002AccountsB003ClerkSUB CATEGORYsub_cat_idsub_cat_namecat_idS001 programmingB001S002 Admin B001,B002S003 HRB001,B002,B003 i want to display one as liek ...

Difference betwen Web & Application server.

28 byte By javalearnerb at 2007-9-26 3:12:27
with examples.

IIS either serve ASP or JSP at one time.......

433 byte By kenni81 at 2007-9-26 3:12:32
Hi, After i tied Tomcat with IIS, i can only run either JSP or ASP at a time, which by right should not be the correct case. When tying tomcat with IIS, we need to add a jakarta filter to the ISAPI filter at the IIS management console.After adding, JSP can work and ASP cannot be served..but if ...