If you want to disable the field, you must set the "disabled" property
to true in JavaScript, but this taht is in the Html4 especs.(I don't
know in earlier versions), only works in IE5 (I don't know in earlier
versions). Other way colud be that before the client browser send the
data, your
Yes, you can capture onkeypress event and then get the key code form
the envent object that you must have as a parameter in your JS function
(Navigator) or in the general event object (in Explorer), you can use
its method "which" to get it.
If you don't understand, tell me
Bye, Dani
-
hi all,
sorry if it is a little off-topic
but how can i call a servlet(residing in another web-server) from my servlet
(running on my web-server)??
for example:
my servlet is running under WLS at http://localhost:7001
i want to access the servlet beta running on Apache on another machine
Hi,
Try using this.
input type="text" name="first"
onFocus=3D"this.blur();my_form.next.focus();"
where first is the first text field name ,
next is the second text field name ,
my_form is the form name
Happy coding!!!
Bye,
SJ
Hi,
Every vendor has its own Drivers like Oracle has given the implementation of
JDBC in order to access Oracle as native driver. This implementation works
on every platform.
go to Oracle site and download JDBC driver acc to the database version u
have.
Similarly Different Companies have
hi,
i have a question on preparedstatement.
i get the parameter values from the form submitted
String[] stud_no = request.getParameterValues("stud_no");
and the question is how do i set the values into the preparedstatement, for i dont
know how many stud_no is the user going to submit.
select
Hi...
Check this out. It works both on netscape and IE
script
function handleKey(event, form) {
var keycode = document.all ? event.keyCode : event.which;
if (keycode == 13) {
form.submit()
pls delete the 3D that came after onFocus and try out the code.
Hi,
Try using this.
input type="text" name="first" onFocus="this.blur();my_form.next.focus();"
where first is the first text field name ,
next is the second text field name ,
my_form is the form name
Happy coding!!!
Bye,
SJ
Hi
DISABLED only works with IE. For netscape, I use onFocus = 'this.blur()' as
work around. At least, the user cannot still edit the text field.
cheers...
Jerson
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On
Hi,
I am using Java Mail API for sending mail. Is there any method or something
to send a email with an attachment?
Please refer some site name.
Thanks,
Bhuvana
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
you have to make a multi-part message and set the second part of it as
the file. construct the rest of the message as normal(from, to, etc.):
MimeMessage msg = new MimeMessage(session);
MimeBodyPart mimepart1 = new MimeBodyPart();
mbp1.setText(msgText1);
MimeBodyPart mimepart2 = new
Initialize values as "?" and the add ",?" to it for each of the count in the
array.
eg:
String values="?";
if (stud_no==1)value="?";
else
for(int i=1;istud_no;i++){
values=values+",?";
}
select name, age from student where stud_no in ("+values+")";
Hope this helps,
Bye,
SJ
- Original
check dis link
http://www.jguru.com/jguru/faq/view.jsp?EID=30251
they hav a sample code for sending a mail with an attach using javamail
api's
- Original Message -
From: Bhuvaneswari Palanivel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 4:33 AM
Subject: Is
http://www.jguru.com/jguru/faq/faqindex.jsp?title=Entries+In+Java%3AAPI%3AJa
vaMail%3AAttachmentstopic=110904
'n for reading
http://www.jguru.com/jguru/faq/view.jsp?EID=26996
- Original Message -
From: Bhuvaneswari Palanivel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday,
reply from venky
to begin with you may use the tiny tutorial which sun
provides in "javasoft.com" site
you may search in google goto for "jsp"
--- Constantinos Antzakas [EMAIL PROTECTED]
wrote: in pretty new to jsp and im looking for a
good
online tutorial to get
started.
any ideas ?
hi
could you suggest any materials to read on sessions in
jsp
thank you
--- Clemente Dani [EMAIL PROTECTED] wrote:
What are you doing?, You aren't accessing the same
bean, you first get
a bean using Usebean and save it in "faq" id, but
you next get another
instance from the request object,
Hi!
How do I make my NES or IIS server to accept ftps protocol..
Regards,
Nagendra
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
Hi again,
You can see in the Java tutorial from javasoft:
http://www.javasoft.com/docs/books/tutorial/servlets/client-
state/session-tracking.html
In Jsp it's similar because they are compiled into Servlets. In Jsp you
already have an instance of the object HttpSession Is: session.
But the
hi all,
thanks for your reply. :)
can i use a PreparedStatement to do executeQuery??
from the javadoc, i can only see that they use for executeUpdate?
thanks for any help :)
ced
Synu Jacob Vengal wrote:
Initialize values as "?" and the add ",?" to it for each of the count in the
array.
u need no insert values if its not a primary key or a notnull field in the
database...u can just insert into other fields when u specify which field ur
entering the values to
rekha
Hi
I think u have to insert NULL values in case u are not inserting all the
values
in the database of a particular
Matt Maher,
Thanks for taking interest and replying to my query.
U r right but I wonder how these chat programs who use socket
connections to tramsfer message between the two parties are able to locate
the exact m/c on the network(thru proxy).
Do u have any idea then how Napster can
u can just use (request.getParameter("buttonname"))!=null to see if the
button is pressed and carry on..this works fine with both...
rekha
Hi All ,
I have a simple login form with two textboxes :
Login , Password and a submit button .
When the user has finished entering the password and
Hey All Jsp Guru's
I am a bit new to this java world, can you guys please explain me a bit
about when to use a java bean and when to use the servelet, or in the
otherway what is the difference between then, and when should i preffer bean
and when servelet.
Or if somebody know the site where
hmm,
ResultSet executeQuery():
Executes the SQL query in this PreparedStatement object and returns the
result set generated by the query.
taken from Java 2 V 1.3.0. PreparedStatement - Interface
maybe take a look again: Interface PreparedStatement, package java.sql
greetings
MD
--
Greetings JSP Community
I am interested in using Tomcat in the same capacity (read: replace) as
Microsoft's Personal Web Server, such that I may replace ASP with JSP. Is it
possible to set up a simple Tomcat configuration on a Win95 machine to
respond to intranet http requests, or will I have to
hi,
i think the question is: should u use jsp or servlet tech. with both u can
use beans, which are reusable, selfwritten classes. beans are used to
separate your logic from presentation.
maybe check out tutorials at java.sun.com regarding jsp, servlet:
Of course you can
Tomcat is a Servlet and JSP engine and also a Web Server!
So, when he's running, you can get it at http://machineaddress:8080
this is the limit of Tomcat (but I think you can configure it to use port
80).
Before installing it, you have to install a Java2
Hi all.
Does anybody know why if I try to use FasJavac to compile a class without
Forte I obtain errors because it doesn't find classes on imports?
Error:
Package java.util. not found in import.
.
Thanks for your help
Hi,
I have installed mySQL on Windows NT and also am using Java Web
Server2.0 to execute the JSP file.Now im trying to connect to the
database in mySQL ...but it is giving me an error as follows:
java.sql.SQLException: Cannot connect to MySQL server on zeus:3360. Is
there a MySQL server running
Hi...
I've just done the very thing that you're asking about. And this is my first
ever foray into JSP/Java world, and it wasn't at all difficult. In fact, it
was easier to install and setup than Microsofts own PWS :)
/jase
-Original Message-
From: Scott Evans [SMTP:[EMAIL
Hi,
How could I get the user ID value that was entered in
authorization popup in to a JSP?
(authorization popup flashes if a web page is protected.)
Any help is appreciated.
Thanks in Advance
Shiv
===
To
Andrew:
I am interested in this thread. Can you expand on what you exactly mean?
I have the feeling we are facing the same problem and conceivably rolling
our own solution(we are designing an Win Explorer-like interface using
javascript).
Patrice
-Original Message-
From: Andy
in IE use the .disabled attribute. No equivalent in NS until rev 6. which
will implement DOM1.
P.
-Original Message-
From: Lorena Carlo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 7:14 PM
To: [EMAIL PROTECTED]
Subject: Javascript: How can I enable or disable a field in
Yes as a matter of fat you can, I'm using it that way right now, and yes you
can change the default port to use port 80
Find the server.xml file under the conf directory, find this:
Connector className="org.apache.tomcat.service.SimpleTcpConnector"
Parameter name="handler"
The standard port for DB's is 3306 not 3360
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Chetna Bhatt
Sent: Wednesday, November 08, 2000 11:23 AM
To: [EMAIL PROTECTED]
Subject: HELP
Hi,
I have
check number of port: 3306 or 3360
In your post you are reffering to 3306,
and in code is 3360
Default is 3306
Try using win client to connect
when it succeds, you know parameters
Regards
- Original Message -
From: "Chetna Bhatt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent:
Is there away to get the clients encryption value using either JavaScript or
a Servlet.
Thanks
- Larry
- Original Message -
From: "Darko Cokor" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 08, 2000 12:48 PM
Subject: Re: HELP
check number of port: 3306 or
It seems that custom tags that take object attributes and have both open and
close tags causes the following error:
"no corresponding open tag for tag extension close: "
Here are the relevant snips from some sample parts:
Tag library:
tag
namecode/name
Operative buzz-phrase is web client programming.
For baisc web client stuff using standard java libraries:
* Try the java man page for URLConnection() (I think, sorry if error,
away from office)
* http://www.innovation.ch/java/HTTPClient/ - nice class library
*
Never mind, I found the answer at
http://java.sun.com/products/jsp/tutorial/TagLibraries16.html
I just needed to put quotes around the %=v% part.
-Original Message-
From: Cancro Dan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 11:07 AM
To: [EMAIL PROTECTED]
Subject:
Hello,
I am doing something similar and I wrote a dataserver that runs as a java
application on the machine that contains the database. I also wrote a client that
connects via sockets to this dataserver. I subclass the client
and describe my request and the client sends the request to the
Nothing wrong with Javascript except:
1) lack of consistent support by browsers
2) changing standard
3) complex voluminous code
4) lack of standard code libraries
Building anything significant with Javascript ?
"Y O U ' l l B E S O R R Y .."
(remember the adage ?)
-Original
I haven't tried odbc, but for oracle jdbc connection, the url would be
url = "jdbc:oracle:thin:@hpcad145:1521:fe_d";
so for the odbc, it could be protocol followed by subprotocol followed by
@machinename:port:dbname as well.
-Original Message-
From: Brad Webb [mailto:[EMAIL
Actually you can even specify what columns you are inserting.
like.
sql ="INSERT INTO test(userid,username) VALUES(?,?)";
regards
-Original Message-
From: Synu Jacob Vengal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 07, 2000 9:03 PM
To: [EMAIL PROTECTED]
Subject: prepared
Has anybody had any problem using the JDK1.2.2 with RedHat Linux 7.0??? I
get a 'Segmentation fault (core dumped)' error. Is that a compatibility
problem?? Should I have any problem with JDK1.3??
thanks!
Luis Javier
===
To
-Original Message-
From: Sicaud Patrice
To: [EMAIL PROTECTED]
Sent: 11/8/00 9:19 AM
Subject: Re: where to learn about JSP based dynamic web applications?
Andrew:
I am interested in this thread. Can you expand on what you exactly mean?
What is not exact about:
"things that look and act
Hi,
I got this problem when I tried to run jvm(1.2.2) with green-thread support. As
jdk1.3 doesnot have green-threads I havenot encountered this problem.
- Venkatesh
===
To unsubscribe: mailto [EMAIL PROTECTED] with
Hello,
I am new to this list. I ahve checked the archives and haven't found an
answer to this question. Can we include a file using script tag in jsp?
Nothing seems to work for me other than %@ include...%. The reason I am
trying to include using script is following.
I have a jsp page which
As long as you only need the include for display and not for the data
structures it contains...
jsp:include page="someFileToInclude" flush="true" /
At 11/8/2000 03:21 PM, you wrote:
Hello,
I am new to this list. I ahve checked the archives and haven't found an
answer to this question. Can we
Thanks for pointing it out. That portion of the code I got from a book example so
i have no idea why the author did it and wonder if it ever worked actually.I
was under the impression that this was an object assignment when I overwrite the
faq id, but of course it is not.
Thanks again for
Very informative(Score: 5) and very helpful. Thanks a lot.
It's worth checking out the free version of IBM VisualAge. You can run
Apache Tomcat within the IDE and debug servlets and JSPs. You can even
modify running code.
See
Hello.
I am using jakarta-tomcat now, and I met "Too many open files" error
message.
Would you tell me the why and how to fix this problem ?
The error message is :
java.net.SocketException: Too many open files
at java.net.PlainSocketImpl.socketAccept(Native Method)
at
Hi,
How can I set the init parameter to all servlets of web app? My web
server is Tomcat3.1.
Thanks
Guohong Xing
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on
Hi,
How could I get the user ID value that was entered in
authorization popup in to a JSP?
(authorization popup flashes if a web page is protected.)
Any help is appreciated.
Thanks in Advance
Shiv
=
|\
Hey, I can't argue with you on those points.
However, Netscape 6 is another can-of-wormswith a unique set-up that is
different than the
existing 4.7 as well as different from IE 5.
All HTML/script developers are growning about this "additional" browser that
must be handled.
The number of
you may check out Java_To_JavaScript tool:
http://coldjava.hypermart.net/servlets/j2j.htm
It is a development tool lets you to integrate Java classes and JavaScript
within your HTML pages. The main idea behind this product
is how to call methods of Java classes right from JavaScript functions.
Hi all,
I am a new subscriber to this mailing list.
I was doing some researchs on how to create a Portal using JSPs. I am not
finding a lot of resources or code examples on that subject.
can anybody help me to have a good start.
Thanks
Hi,
If your machine run under Windows- modify config.sys file with this
statement :
shell=[path]command.com /p /e:32000. It would cure your problem.
Hope this help.
ThuLV,
===
To unsubscribe: mailto [EMAIL PROTECTED] with
Hi,
Yes, You can. Tomcat can run as Web server without Apache. Please refer to
Tomcat FAQ to how to make Tomcat deal with *.jsp file while PWS deal with
*.asp.
Hope this help.
ThuLV,
===
To unsubscribe: mailto [EMAIL
hi
what u r expecting i don't know.. now a days may portals are running
in jsps. ours websits www.schoolnetindia.com also have many applicaion
developed in jsps.
and one more www.brainbench.com
subu
_
Get Your Private,
Syntax is: %@ include file="..." %
works for me
on jserve+gnujsp and tomcat
Regards
- Original Message -
From: "Sangita Gupta" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, November 09, 2000 12:21 AM
Subject: Include a file
Hello,
I am new to this list. I ahve checked the
61 matches
Mail list logo