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
75 byte By
dhiraja at 2007-9-26 3:05:08
is there any facility to send an email to persons 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
<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 = ...
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 ...
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?
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 ...
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
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 ...
what is the difference between GET(doGet method) & POST(doPost method) requests?which of the 2 is advantageous?
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 ...
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 ...
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
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
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. ...
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.
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 ...
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 ...
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
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?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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!
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?
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 ...
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 ...
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 ...
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
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 ...
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
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 ...
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
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!
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 ...
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.
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 ...
with examples.
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 ...
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 ...
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 ...
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 ...
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 : ...
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 ...
jsp has appeared, but someone still use servlet.Those reason is that servlet can make application higher security. Is it true?