This is a weekly informative posting to the jsp-interest list.
Before asking questions of a general nature, please check out the
resources available online to see if your question already has an
answer. The best place to start
Hi all,
Following jGuru's "Introduction to JavaServer Pages Technology", I have
come across the following code:
%@ page import="CounterBean" %
jsp:useBean id="sessionCounter" class="CounterBean" scope="session" /
jsp:useBean id="applicationCounter" scope="application" class="CounterBean"/
%
.
-Original Message-
From: paramjit singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Thursday, April 05, 2001 11:21 AM
Subject: JAVASCRIPT PROBLEM
Hello..
I am opening new Pop up internet explorer window when user clicks next
button
of current window by using
guys,
i have made an alternate id for the mailing list...how do i unsubscribe from this
email id of mine...
amit.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto
And that's important? How 'bout reading the sun/listserv page??
http://archives.java.sun.com/cgi-bin/wa
.
M
--
From: Amit Mahale[SMTP:[EMAIL PROTECTED]]
Reply To: A mailing list about Java Server Pages specification and
reference
Sent: Thursday, April 05,
hi i have a table generated by servlet like this
table
tbody
!--row 1
trtdinput type=button value="Add row"/td/tr
!--row 2-
tr
tdinput type=text name=data/td
/tr
! --
/tdoby
/table
now i want to add new row at the comment
u can use server side scripting instead of javascript.
Use a hidden field variable indicating the current number of rows.
on clicking the ad row button resubmit the page .
the code is like this
%
int Namecount =0;
String[] values = new String[100];
if (request.getParameter("Namecount") ==
Hi, Have you ever used O'really ' s MultipartRequest?
I'm uploading images ok, but
How can I upload a file to a directory which is defined like a
parameter in the same form where is defined the image I am uploading?
So, If I have to declare my
Hi,
I tried to call a javascript function on clicking a link.
The validation is being performed,but the cursor style is always busy,
when the validation returns false.
Why is it so??
The code fragment is shown below.
a href="javascript:gotoAdd();"img src="/images/addmore.gif" alt="Add
thats good but my data is very big and its take to much time to add a single
row in table
and a user hasto wait
have u any example of client side script to add a row in table?
- Original Message -
From: "OK Prakasan" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, April 05, 2001
hi
one of the methods in the MultipartRequest class takes the directiory
into which the files are to be uploaded as a parameter.i think u can enter
the path into the form and send it as a parameter to the method.
hope u understood.
cheers
Divakar.
-Original Message-
From: A mailing
I think you mean "any time you want to work pessimistically"
This is an outstanding issue I have also been wrestling with the same
thing for a while now and it seems, for now, that the kludgy timestamp
method is about the only solution I saw some more discussion on this
issue
Have you posted this to the EJB list?
I know this was discussed on EJB quite a while ago, I just don't
remember the outcome. However, you might want to move the question
there and see what those list members have to say on the mattter -
- Original Message -
From: Keith Kwiatek [EMAIL
Correct me if I'm wrong, but isn't there an HTTP header or something that allows you
to tell the browser what value to use before timing out the page? I have a
long-running (but not super-long-
running) JSP that is just over IE'e limit, but it looks just fine in Opera. I'm
thinking that if the
Hello,
I have a jsp which filled a bean with 3 variables : a name, an address email
and an age.
This is a part of my JSP :
%@ page import="test_tbe" errorPage="error.jsp" %
jsp:useBean id ="test" scope="page" class="test_tbe" /
jsp:setProperty name="test" property="name" param="p_name"/
Hey Stanley.. things who's scope are "application" are shared by all of the
users using the webapp at the same time. So if you and I are both running
that page, there's a chance that we'll try to access that bean at the exact
same time. Because of that, it has to be synchronized, so that only
u can easily write a javascript to check whether what u entered is an
numeral or alphabet. There's no need to let an exception be thrown in
first place.
John
BERWART Thierry [EMAIL PROTECTED]@java.sun.com on
04/05/2001 07:36:32 PM
Please respond to A mailing list about Java Server Pages
The only time you can close a window without the alert dialogues is if your
script has opened the window. If you try to close a parent window or an
unrelated window with a script, it will always present the dialogue. It's a
security thing.
Michael
At 11:49 PM 4/4/01 -0600, you wrote:
Hello..
I
Hi,
Actually I want to store the state of a JSP page into one JavaBean using
getter and setter methods. So if JSP needs to be reloaded, the state
information can be got from getter methods. I am able to do it
successfully with TextBoxes as the string information can be used in
setter methods.
Remember that when the form is submitted, it always sends data as a string
in any case, no matter what the user enters. You have to use
Integer.parseInt(request.getParameter('paramName') to make the value an int
anyway. You might also want to check the form input with some javascript to
make sure
Hi all:
When i run a JSP and in an img has a source from another server
(i.e. http:\\www.geocities.com\somepage\someimage.jpg) it doesnt
display the image, but if the image is local (i.e.
src="/images/someimage.jpg")
it does work.
Whats keeping the jsp from displaying them?
because the source
Hi,
You can use JavaScript and check the fields on submit. Using something like:
var check = pareseInt(document.form.field);
if (isNaN(check)) {alert("Enter a number! ");}
or with JSP
try {
int age = Interger.parseInt(request.getParameter("age"));
bean.setAge(age);
}
ctach
unscribe
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
Hi,
But Micheal if u use setProperty the conversion from string to int
would be automatically done if the value entered is a numeral. I think
this is one of the intospection features. pls correct me if i am
wrong.
John
Michael Sweeney [EMAIL PROTECTED]@java.sun.com on 04/05/2001
10:22:14 PM
I am also having similar problem, what I need to do is convert a String(of
over 4000 characters) to a Clob and insert the value in Oracle's Clob
column.
I can read the data from that column using resultset.getClob() method, but I
can't insert/update that column. Has anybody did something like
At 10:32 PM 4/5/01 +0530, you wrote:
Hi,
But Micheal if u use setProperty the conversion from string to int
would be automatically done if the value entered is a numeral. I think
this is one of the intospection features. pls correct me if i am
wrong.
John
It's more likely that I am wrong (or at
Can someone tell me what this error is and how to fix it
Exception in thread "main" java.lang.InternalError: Can't connect to X11
window server using 'localhost:0.0' as the value of the DISPLAY variable.
at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
at
You can't get rid off that error..cause you are trying to close the
"parent"
windowmaybe an "onerror" will squash the error box--not sure.
If you find a solution, let us know.
-Original Message-
From: A mailing list about Java Server Pages specification and reference
I'm new to JSP and want to know how can I write code for JSP to communicate
with MicroSoft Access DataBase97. If possible, could someone show me some
code or direct me in the right direction. Thanks.
Sebastian
===
To
Hi all,
I want to generate the excel file based on the data retrived from database
in jsp.How can i do that?
help me please.
Thanks
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest:
This message bounced back to me, maybe because of the way I had sent it,
but if someone could send me some info I would appreciate it:
I'm new to JSP and want to know how can I write code for JSP to communicate
with MicroSoft Access DataBase97. If possible, could someone show me some
code or
Hello!
i'm working jsp with GNUJSP 0.9.10 compiler and i don't know how i can
define session variables and how to read them from other pages.
i was trying to define them with "session.putValue("variable_name",
variable_value);" but because of the GNUJSP 0.9.10 it appears as not
defined. how can
Hi,
try
session.setAttribute("variable_name", variable_value);
session.getAttribute("variable_name");
/Nils
From: "Diana Luz Buitrago B." [EMAIL PROTECTED]
Reply-To: A mailing list about Java Server Pages specification and
reference [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject:
Hi,
How about using bean-managed transaction in a stateful session bean?
(check up chapter 11 in EJB1.1 specs).
- JT -
On Thursday, April 5, 2001, at 11:37 PM, Keith Kwiatek wrote:
I think you mean "any time you want to work pessimistically"
This is an outstanding issue I have
i have a jspDestroy method on my jsp but its not working. any ideas?
ÿÿü: ¢æ ÿügÊ«~·ÿ¡¢Ü¢fv·¬±«a¶Úÿÿù _òj
(ýÊ
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
35 matches
Mail list logo