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
Hallo all,
I've problem in JSP file.
the simple code is :
...
...
...
% while (rset.next()) {
if (rset.getRow() == 5 )
break;
%
rset.getString(1);
Hi,
I want to use javascript in my Presentation.jsp. How can i use the
java bean variables in a javascript method.
As of now i am declaring a hidden text field and then setting the
value using %= .%. Then i am accessing the hidden text field value
in my javascript method. It becomes a
Hi.
Here is the problem. I have a dispatcher servlet, who handles request for
some sites. The servlet is the same, but it dispatches requests for two kind
of sites :
- some that have their own domain name (www.realname.com) (1)
- some that lie under a generic domain (www.domain.com/realname) (2)
My approch is:
- open a URLConnection to a servlet (send sessionId, data, ...)
- the servlet sets the data in the sessionBean
- use RequestDispatcher to forward to the jsp side.
__
Der Austausch von Nachrichten mit Software
Thank you very much Hans, and also Sushma. Your explanations have made my ideas really
clearer on the subject. It is always a pleasure to see that many people can take time
to share their knowledge and abilities with other programmers. It is a very nice
attitude and I admire that behaviour.
Perhaps Bea Weblogic5.0 or IBM Webphere.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
Java bean variables are limited to only usage in the Server while
Javascript is mean to for the client. SO it is unlikely that you can use
the variable directly.
The only tow ways of doing it would be:
One is your way of using hidden fields.
The other is assigning the avlues to javascript
dear all
i have a problem about jsp. follow is my code:
##
//there are some other lines ,but haven't using the "Out" object.
if (flag) {
out.println("ok");
response.sendRedirect("club/register_club_success.htm");
}else{
Absolutely, just insert the values directly in the JS.
script language="JavaScript1.2" type="text/javascript" defer
!--
var myDynamicValue = %= myBean.getMyValue() %;
function init()
{
alert("myDynamicValue: " + myDynamicValue );
}
//--
/script
:: pal :: : : .
Send redirect is done via sending an error code and an error message, you
can't send an error code AND an HTML response.
You have two options, forget the ok message. Or build a complete response
that uses either a javascript of a meta tag to perform the redirection
-Original Message-
How do I remove myself from this mailing list ?
Regards
Paul.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
Hello
I want to hide the dispatcher servlet name in the browser's location bar. It
would be great to only show the jsp name, without the query string, for
example
I'm afraid that it is directly handled by the browser (but there might be
another way), so I tried to do that with javascript,
Hi All,
I have a doubt...
When you need to use JSP as well as Servlets + Beans then often you use a
combination
Of lets say Apache server with Tomcat or NES with NAS..
Why do we do this...??
We use JRUN with IIS coz IIS has no support for JSP so JRUN acts provides a
servlet engine
But some
It is written right at the end of this mail!
Paul Grant
Paul.Grant@BRISTTo: [EMAIL PROTECTED]
OL.AC.UKcc:
Sent by: A Subject: Removal
mailing list
Hi Vinod,
I tried the other way, but was not successful. Can we assign bean values
directly to variables in a javascript method.
If someone has been successful in this. please send me a sample code.
Thanx Regards,
Sreenivas R.V.
"[Vinod Govindan]" wrote:
Java bean variables are
Hi Pal,
I tried your solution, but it is giving javascript syntax error for the below
line
var myDynamicValue = %= myBean.getMyValue() %;
Can someone give the reason for this.
Thanx,
Sreenivas R.V.
Pal Brattberg wrote:
Absolutely, just insert the values directly in the JS.
Well cobinations are used either because certain functionality is
unavailable in one component or because the combination provides the best
performance for large applications. Though JRUN can run on it's own IIS5 is
used so that along with IIS5 the JRUN functionality is also usable. so JRUN
is
Maybe,
If your JS value is supposed to be a String then you need to add quotes.
var myDynamicValue = "%= myBean.getValue() %";
Scott Evans
SII Training Development
46833 (Ramat Gan)
-Original Message-
From: Sreenivasa R V [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000
I would recommend you to take a look a javamail, it might be the base you're
looking for.
http://java.sun.com/products/javamail/
:: pål :: : : .
___s_p_r_a_y_
Pål Brattberg | [EMAIL PROTECTED]
Mob: (+46) 0704 566299 | Tel: (+46) 08 52790122
Här börjar internet |
Which is best for JSP purpose over NT Server (excluding IIS)??
-Original Message-
From: [Vinod Govindan] [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 4:41 PM
To: [EMAIL PROTECTED]
Subject:Re: Why do we use combinations??
Well it will depend on what you want to do with the combinations. And what
versions of technology implementations you are doing. The answer cannot be
in an e-mail. You will have todo your own tech evaluation.
For eg some servers support A different version of Servlet API and Some a
different
Hello There...
for correctly count the number of Users of yr web site and a person leaves
with out log out . U have to define time out in DD for that Session Bean so
that after time out the Bean instance will be removed automaticaly...
best of luck
vikram
- Original Message -
From:
Basically your best bet would be to stuff your ResultSet into and
HTTPSession object. Then, you could rs.next() 20 times, then the user cuold
click next, and you would still have the recordset around, and the process
could repeat itself.
N
-Original Message-
From: A mailing list about
You could also use the pager taglib which can be found at
http://jsptags.com/tags
This taglib gives you next, prev and page links. Although, it is a more
involved solution but it comes with very good examples of how to use it.
Kent
- Original Message -
From: Nathan Hoover [EMAIL
I would never use that approach ;-)
If you store the ResultSet in a session you also need to store the
Connection in that session.
Since, when you close the connection, the ResultSet is closed as well.
The only way to close that ResultSet and Connection is by implementing the
Hi,
we are using tomcat3.1 on apache1.3.11 for our
application development.
We are facing a problem that the servlet class after
the changes do not get reload.
We have set "reloadable=true" for the context in
server.xml file.
Urgent help is required. Any clues will be extremely
helpful.
regards
Nathan,
IF you are using JDBC you can set the Rowset and use the Result's
next() method. Another option is use CachedRowSet and page through the
results.
For more information go to Sun's web site
http://java.sun.com/products/jdbc
-Original Message-
From: Nathan Hoover
Wahaha..Problem solved !
I reinstll J-Run and then choose JSP 1.0 (I guess I choose JSP 0.92 before )
and anything is ok now !
In the install step , it said user also can change which JSP version you
wanna use after installing . But I can't find where to change the value ,
then I just re-install
To use the re-direct method, no information is allowed to be passed out to
the client/buffer, i.e. out.println("ok"), remove this and all should be
well...
Krister
Analyst Programmer
http://www.akqa.com
mailto:[EMAIL
Hello all
i have the following problem:
i input some data let's say the character 4 in a text field in a jsp page. I
press SUBMIT, ok i see the value 4.
now,
if i go back to the original page (with the back button) and i replace 4
with 5, and I submit , i can see the value 5
BUT
if i go
Hi,
I'm very new to Java and JSP. I am having problems running JSP pages with
the Tomcat Webserver. (I hope somebody is familiar with this) When I set
up Tomcat in NT and go to one of the example JSP pages it comes up with an
Error 500 in Netscape and a bunch of errors on the console. I'm
Im running Jrun 2.3.3 build 153 on Redhat Linux 6.1.
Iam not able to shutdown Jrun. When i execute the
stopjsm.sh from the jrun/jsm-default directory Im
getting a message saying could not shutdown jrun.
have your guys experienced this problem
thanks for your time
Sanjay
Hi,
it depends on wht OS u use..
Tomcat is popular on apache
JRun can be used independtly, or can be used with IIS on NT. it supports ejb
too
if u r looking for Ejb u can go for Weblogic, websphere, or may be Orion..
rgds,
ishwar
-Original Message-
From: Kulkarni Sudhir [mailto:[EMAIL
Why not just limit the records in Oracle? If you have Oracle 8.1.5 or
better, you can do it.
Chris E
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Geert Van Damme
Sent: Thursday, May 11, 2000 9:43 AM
Are there 3rd party JSP/java toolkits available on the software market that
support prev/next for large records?...
Do they support parent/child access for large records?...(e.g.: we query
database, select one order, go to detail of this record by submitting
another query, etc...)
TIA
Jacek
Has anyone yet integrated tomcat build 3.1 into Visual Age for Java?
Does the process differ from
http://www7.software.ibm.com/vad.nsf/data/document2389
( Well, I actually tried to follow this protocoll, but have some problems.
Maybe someone can provide a quick howto.)
Yours
Toyin
Hello Toyin,
yes, I did and the process differs at some points from the 3.0-Howto.
Sheldon Wosnick published the tomcat3.1-VAfJ-Howto on an other Website:
http://sheldonwosnick.tripod.com/Tomcat/Tomcat31Release.html
This should help.
Regards
C. Storck
-Ursprüngliche Nachricht-
Von:
Has anyone on this list used ebpcs.net for servlet hosting?
I'd like to get some feedback from a current client of
theirs before I mail a 6 month check (~$250) to Vietnam.
Their web site looks very interesting, but I'm leery of
sending my money off to another country (I'm in the US).
I'm hoping
is is possible to run JSP w/PW server on win95 platform?.
%=Joseph Longo%
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
Dear Webmasters and Internet Users,
Is your Intranet living up to your expectations? Is your Webmaster
overloaded with converting and publishing critical information? Do you think
you will never quite catch up?
openshare from Infosquare is a new Web-based information sharing application
that
Great topic! As a plug, check our second JSP talk at JavaOne:
http://jsp.java.sun.com/javaone/javaone2000/event.jsp?eventId=1545trackId=3eventType=TS
It is hard to say "thou shall do this" and "this is best", but we will
try to present and discuss all the useful variations on the models that
i wrote a webapp that uses jsp for the user interface and sends that data
to a servlet. but when i try to submit the data to the servlet using either
post or get method, i get:
HTTP method POST is not supported by this URL
but i have another application that follows the same architecture and
Hi:
I want to have an efficient solution to handle file select with JSP
applying HTML4.0 spec: we implemented the file select function below
input type=file id=file name=file
How can I get the selected file name? from which param?
Thanks
Larry
I don't know... I am not all that knowledgeable. It certainly seems like any
major db vendor's JDBC driver should support those methods on a ResultSet.
You would just need two resultsets to get your order details.
N
-Original Message-
From: A mailing list about Java Server Pages
You can use 2.2 container, supports WAR files.
ServletShop: java server side programming
http://coldjava.hypermart.net
Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
Sylvain Roche wrote:
Hello
I want to hide the dispatcher servlet name in the browser's location bar. It
would be great to only show the jsp name, without the query string, for
example
I'm afraid that it is directly handled by the browser (but there might be
another way), so I tried to do
Hello,
I am a perl guy, who is interested in trying some JSP scripting. I have
installed the JSWDK and it is running on my localhost here for me to play
with. They have a example at www.javasoft.com/jsp/tutorial, example 1 about
the duck where we read in a simple html page, but of course I am
check out http://coldjava.hypermart.net/servlets/j2j.htm
==
Hello,
is it possible to send form-data to java server pages from Java applets?
I have the following constraints:
1. JSP is running in a https server
2. I can't use java 1.2 plugin
I
Rather than a list, just stick with Orion app server, or Resin.
www.orionserver.com
www.caucho.com
Orion is a full J2EE compliant application server with web server,
servlet/jsp container, ejb container, and a whole lot more.
Resin is a bit less, but is easier to work with. Resin is a full web
hey Scott.
where did you find instructions on building
your JSP box?..
what kind of system is it?..
any help would be appreciated.
%=Joseph Longo%
-Original Message-
From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 1:21 PM
To: [EMAIL PROTECTED]
Subject:
Thanks for that post, Eduardo. I have been trying to figure out which of these models
to use,
as we
move toward storing all content in XML. Your model letter B is the one I'm leaning
toward
now, and was happy to see the tag example that Ryan Shriver sent around (the XSL tag
that you
wrap
HI:
Any one know how to handle file select with JSP
Form
input type=file id=file name=files
/FORM
How can we retrieve the selected file name?
Thanks
Larry
===
To unsubscribe: mailto [EMAIL PROTECTED] with
Couldn't agree more with Craig. Unfortanately, the only thing that is
difficult is posting a big message that explains the site is a web
application. I don't think most of our users even know what a web site is!
;) This is especially difficult for b2b sites because they want to maintain
a level
I found the following site to be helpful:
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/Servlet-Tutorial-JSP.html
-Original Message-
From: Longo, Joseph [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 11:06 AM
To: [EMAIL PROTECTED]
Subject: Re: Rookie Starter Question
hey
Dear Folks ,
Which web server is the best for JSP corporate level Application..Any
comments.. and if possible ,It should also support EJB but which is not
must..
Cheers,
Sudhir
The name Matters !!
===
To
Never Mind again. I got it.
jsp:setProperty name="sample" property="mess" param="name" /
Thanks all,
Sri
-Original Message-
From: Sri V. Rachakonda
Sent: Thursday, May 11, 2000 3:31 PM
To: 'A mailing list about Java Server Pages specification and reference'
Subject: FW: Parameter
This is a bit off topic, but I thought enough people would be interested in this
problem to post to the list.
http://www.irt.org did an excellent treatment of this problem in the
JavaScript-Frames section of their site. It turns out to be a rather complicated
problem and there are three
[EMAIL PROTECTED] on 05/01/2000 04:00:55 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Lucio Dinoto)
Subject: Re: JSP Web Hosting
Does anyone know of Web Hosting
companys that support JSP and JDBC?
Phil
Hello, I have the a question about the application scope of JSP.
I have two jsp pages. in jsp1, I declared sth like:
jsp:useBean id="foo" scope="application" class="test.ReportHandler" /
..
..
foo.setDomain(mydomain);
..
in jsp2 I tried to retrieve the "domain" property set by jsp1. Because the
lookup www.digex.com there in silicon valley but are orginally out of
Maryland. they're national and have a NASA style command center to monitor
and host giant server farms (i've been in them). they have different
pricing structures for your needs. they host sites like (Budweiser, Martha
Hi:
I can not find where the codes are wrong
//*
package emailtools;
import java.io.*;
import java.net.*;
...
...
public class EmailBean{
...
...
private URL url=new
URL("http://127.0.0.1:8080/examples/jsp/emailtools/test.jsp");
private BufferedReader in=new
Hello,
Yes, I am new to Java and to JSP. My background is Perl and doing web
development. Anyway, I have an interest in learning JSP, but I am not going
to get the job done using the Tutorial on the sunsoft site.
It assumes that I know what a bean is and it is very confusing for an entry
person
Dear Gurus,
I am writing a servlet in order to
access WHOIS domain registration
database. I've read all of the messages
in this forum with respect to this
technique, so please do not redirect me
to them.
When sending the request through a
socket( OutputStream out = socket.getOutputStream();
As I write, I am holding a copy of Larne Pekowsky's JavaServer Pages book
(ISBN0-201-70421-8). This is an excellent book for starting JSP and using it
with JavaBeans. It alsoo got good reviews from Amazon.com.
Raul
--
From: Purcell, Scott[SMTP:[EMAIL PROTECTED]]
Reply To:
There is an excellent book by Manning Publications:
Web Development with JavaServer Pages a full
explanation on the TAG Library specifications. Excellent book
-Original Message-
From: Rivera, Raul [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 2:58 PM
To: [EMAIL
Hello,
The problem is that the URL constructor and the openStream method both
throw Exceptions (not Runtime Exceptions). You are not allowed to throw
non Runtime Exceptions in initializers.
You can, however, initialize the private members in an empty constructor.
There, you can either
This looks like a very elegant solution, but I'm afraid that the example
is not basic enough for me. What is meant by a "looping data source"?
It looks like another taglib is being used, but I don't see any other
reference to it.
Thanks for any help or clarification!
--john
Kent Symanzik
john,
i'm looking at the same thing right now to see if i can use it and i'll
report back to you. but what it looks like is that anything in that example
w/ an "ex:" tag is a custom tag call to the database to prepare a recordset.
so, you need to do your own database call, as ypu normally would
And maybe learning JSP requires learning Java first?
That would DEFINITELY be a good start... JSP is pretty much HTML with
embedded server-side Java...
rr
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
I am just about finished dog-earing a copy of Pekowsky's book and find it
just a little light for my taste, meaning that it takes quite a few pages to
get into the deeper stuff (e.g. the relationship between JSP and Java
beans). Co-worker recommendations and flipping through a copy suggest that
Hi Java Gurus,
I am a sort of newbie to this Java World, but had to crack on some of the
Java error messages ASAP.
Given below are some of the error messages, which are frequently occurring
at our Production System. I would like to have a go at them, but would like
to receive some expert advice
Thanks that was great help!!
-Original Message-
From: Kevin Duffey [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, May 11, 2000 10:46 PM
To: [EMAIL PROTECTED]
Subject:Re: Why do we use combinations??
Rather than a list, just stick
Advertisements are becoming the real plague of this mailing list. Is there
anything that could seriously be done against it? I suggest banning the
domain name from the mailing list!
Frederik Delacourt
--
"The only good bug is a dead bug!" - Starship Troopers
Yes you would need to declare the jsp:useBean tag in jsp2 as well.
jsp:useBean id="foo" scope="application" class="test.ReportHandler" /
But because you have created the foo object iwith assplication scope, the
above tag will not instantiate a new bean object but get it from the
application
Hi,
I am trying to create FTP facility using JSP in which clients have
read or write permissions to some directories on the server. Users are
allowed to ftp into certain directories only depending on several
factors which I plan to handle using session variables or database.
What I need
Try the Java Tutorial at java.sun.com/docs/books/tutorial
It will help to learn a little Java before attempting JSP...
rr
-Original Message-
From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 12, 2000 2:51 AM
To: [EMAIL PROTECTED]
Subject: Rookie Starter Question
Hi Ravi,
Thanx for the reply.I solved this problem with JSP.I have not tried with servlet as
being said
by u.
Now I have got one more problem.I have 2 text fields,they r Name and Phone.There r 2
buttons,they r ADD and FIND .Add is to add record and Find is to find out the reord
after
giving
that's pretty easy to do ..
%
String filename=request.getParameter("test")
if (filename!=null){
out.println(filename);
}
%
html
body
form action="test.jsp"
input type="file" name="test"
input type=submit name="send!"
/form
/body
/html
79 matches
Mail list logo