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

How to master good design with EJB and JSP?

295 byte By dragon_east at 2007-9-26 3:05:37
I use JSP to calling EJB. But the .jsp file is complex and it's difficult to maintain...I just want to work higher efficent with EJB,JSP and JavaBean. I want to know is there a good design with EJB and JSP? and is there any good material about MVC for EJB,JSP and JavaBean?

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

Parsing...

259 byte By sumanth_kumar at 2007-9-26 3:08:12
Hi, I am new to XML and want to know how to parse if I have something like this "<ROW ACC_NO="10802001" REFR_NO="0443310043" TRAN_TYP="TR" TRD_PX=".00000" > </ROW>" in my input xml file. Urgent .. PlSumanth

Java SDK1.3 Enterprise Edition Vs. Standard Edition

240 byte By thunderBolt at 2007-9-26 3:08:32
What's the difference between the two? I am currently using the standard edition. I just started learning how to develop enterprise java beans. Would it be better if I use the Enterprise edition instead?

CMP EJB in 1.1/1.2..., mapping problems

1090 byte By jpilgrim at 2007-9-26 3:08:48
Hello,I'm a little bit confused by all these different EJB specifications and products...I want to use CMP EJB, because as far as I understand this topic, the container should do a lot of work for me (transaction management, connection pooling) and all tutorials tell me to prefer CMP ;-)Now ...

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

PageNotFound when using servlets as clients for EJB

2098 byte By jtmolecule at 2007-9-26 3:09:21
Can anyone help me? I have a container managed EJB. I'm using servlets as my client. I placed my EJB's in a jar file and my servlets and html pages in a WAR file. I deployed them using J2EE's deploytool. I can access my html files but not my servlet files. It always says file not found or a ...

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

Attaching a file from client to server java mail program

471 byte By manian97 at 2007-9-26 3:10:50
Hi all,You may come across this problem earlier. My mail program running in server and when clients try to upload a file from their local(client) and when trying to send mail , my server not able to find the file. Is it required to use file uploader thing to load the file from client to server ...

SAX?

381 byte By mikaelkuisma at 2007-9-26 3:10:53
TestXML.java:78: cannot access org.xml.sax.InputSourcefile org\xml\sax\InputSource.class not foundDocument doc = builder.build(new File(filename));^1 errorSo where can I get this package.BTW, i have created my own kindof serialization program using JDOM and reflection. I was about to test it ...

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

How Can I find the deployment descriptor in my Linux?

388 byte By georba at 2007-9-26 3:11:29
I need to see the field "ejb-name" of an EJB for processing in a method but because of I need to tract it using the apache xerces API for XML files, first I need to Know where is allocated the deployment descriptor of my EJBs. What is the call I need to perform to get the real path of my ...

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

How to create a mailbox like INBOX

191 byte By metalcure at 2007-9-26 3:12:01
Hi all!I want to cennect to my mail server and create other mailboxs like INBOX with java mail API.But I don't know how to start.Your help will be grateful appreciated!

Problem in receiving e-mail (Javamail)

1148 byte By isam_hk at 2007-9-26 3:12:04
Please help I found the error of "no provider for pop3" when I run the following program in my office (using proxy to internet but the pop3 a/c is work for my outlook to rcv e-mail). However, that's no error prompt out when running at home but nothing to display even there are two msgs in my ...

DTD Creation using Java from XMLSchema

265 byte By rkumarraj at 2007-9-26 3:12:07
Dear FriendsCan anybody solve my problem.See friends i have the Schema With the help of that schema i want to create DTD Using Java .If u peoples have any solution please forward me sample code or tell me where i can get the information.

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

help me out about servlets

541 byte By gnanesh2 at 2007-9-26 3:12:46
hii am developing one web based application which consists of Html & Servlets...as i have already downloaded JSDK2.1 and its working fine...my question is once u compile a servlet.java file..where u will place in JSDK2.1 directory...and where to place a Html file in the JSDK2.1 directory ...

Sending Parameter and Data via POST to Servlet

5543 byte By FrankSch at 2007-9-26 3:13:04
Hi,I want two things done. I want to contact a servlet via HttpUrlConnection and send both Parameters and XML data.The XML data sending just works fine with getOutputStream on the HttpURLConnection. I can receive the data in the servlet with request.getInputStream.But what is to be done to set ...

find and send solution urgent

1299 byte By dumpala at 2007-9-26 3:13:06
I have encountered the following exception when I run thefollowing program using runtime.exec() in solaris. If you havesome idea about it, please let me know.Thanks.========= Exception Information ======java.io.IOException: Too many open filesat java.lang.UNIXProcess.forkAndExec(Native ...

Problem in getiing From Id while receiving mail

453 byte By achintya77 at 2007-9-26 3:13:13
I am trying to receive mails from my IMAP server, I can get Message subject, message body but I can not get the From ID i.e. E-mail address of person who has sent me the mail. I am useing message.getFrom(), to read the IDI get answer something like this : ...

weblogic ejbc error (very urgent)

464 byte By amtanoli at 2007-9-26 3:13:17
hi,i am trying to deploy an entity bean, but after compiling the source code weblogic ejbc gives an error message "In EJB beanManaged, references to javax.ejb.EJBContext, javax.ejb.SessionContext, or javax.ejb.EntityContext must not be transient."while everything goes fine with the example code ...

Is application developed by servlet more secure than jsp?

148 byte By green_grass123 at 2007-9-26 3:13:32
jsp has appeared, but someone still use servlet.Those reason is that servlet can make application higher security. Is it true?