Hi, friends:
When I use java bean in a JSP page, should I always use .class file not .jar
file? None of examples I have ever seen so far is using .jar file. That's
why I ask this question. If I want to use a bean in jar file, how do I write
useBean tag?
Thanks
Regards,
Dennis Huang
Hi,
I'm currently developing a simple 2.5-tier application using the Model 2
architecture, with a controller/session servlet, "regular" JavaBeans to
model logic and control db access, and JSPs for display. I'm new to this and
have a few questions:
1. Initially the entire application will run on
Title: passing hidden form variables
Hi,
Here's my scenario: I have a form on one JSP page that passes the info to another JSP page that processes this info (by calling a stateless session bean). This processing page does not display, so once the the processing is done I pass the client back to
what version of websphere and what platform?
provide detail please.
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
You cannot make dynamic images in JSP (you can of course make dynamic IMG
tags, but I assume it's not that what you're looking for).
You have to use a servlet for that.
Check out my graffiti wall for an example: http://www.darling.be/wall.html
Geert 'Darling' Van Damme
-Original
Hi,
1. Initially the entire application will run on the web server, on the same
machine as the db server. However, I foresee that in the future we may want
to use an appserver and Enterprise JavaBeans for the application logic. What
can I do in designing my regular beans today, that they will be
(I think this is off-topic.)
If you are using ASP. You can do it like this:
% k=0 %
applet code=abc.class width=111 height=111
% do while not rs.eof %
param name="row%=k%" value="%=rs(0)%|%=rs(1)%|"
% k=k+1
rs.movenext
loop
%
param name="separator" value="|"
/applet
Then you can read
Let me know too, please.
dennis
-Original Message-
From: Babar Bhutta [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 08, 2000 1:22 AM
To: [EMAIL PROTECTED]
Subject: Dynamic Images
Hi Everybody,
I am trying to find a way to create dynamic images in
JSP. If
Title: re: My boss needs convincing..
You are pretty funny (why people that don't check things, get
sooo excited is beyond me), now for some enlightenment.
.jsp is the standard extension for the BROADVISION server, out
long befor JAVA Server Pages. It uses Javascript, hence the .jsp extension
Title: re: My boss needs convincing..
And for what the initial email that the above
reader responded to, there is no reason in this universe that anyone would
want to use cgi instead of JSPs. CGI is the worst technology that the
internet was ever corrupted with. It's so slow, it's
hi all
Is it possible to write a hit counter for my web page
only with client side scripting. what I mean is there
is no server side scripting or a database. if it is
possible can someone please gimme some pointers.
thanks in advance
shri
__
Do
Hi Craig,
With forward you don't need to pass the parameters in the URL. You can
use setAttribute(), getAttribute() to set/get "parameters" in requests
without having to add them in the URL.
And if you are not displaying anything in your processing JSP page, why
use a JSP page at all? Wouldn't
Title: Tuxedo
You
can find more information about BEA Tuxedo at http://www.bea.com/products/tuxedo/index.html
They
have also state of art J2EE Application Server (BEA WeblogicServer). If
you are developing J2EE applications you shoud check it out.
/Tuomo
-Alkuperäinen
Hi All,
Ashwani, thanks for your reply.
Coming to my problem, I have the following two files.
When I call my html file from Internet Explorer, I am getting the following
error: 'document.myform.test.getMonth()' is not an object.
Can any body tell me how to correct this problem?
I
//Don't forgot to set the content type of HTTPServletResponse to "image/gif" type
//before encoding the gif to the output stream
response.setContentType("image/gif");
Babar Bhutta wrote:
Hi Everybody,
I am trying to find a way to create dynamic images in
JSP. If somebody
Hi,
You can do the following:
//create an unshown frame
frame = new Frame();
frame.addNotify();
// get a graphic region
Image im = frame.createImage(yourWidth, yourHeight);
// get the Graphics
Graphics g = im.getGraphics();
// draw your desired image
g.draw...
// encode the content of the
If anyone was using the JavaMail(TM) 1.1.2 from Sun (as I was) , you may
already know that there is a Y2K problem for today. I downloaded the 1.1.3
version and it fixed the problem.
Here is the download starting point:
http://java.sun.com/products/javamail/index.html
Daniel Lopez wrote:
Hi Craig,
Now that you mention security and the new specification JSKD2.2...
"Craig R. McClanahan" escribió:
...snip
For security, I've taken two different approaches:
* In servlet containers that do not support the 2.2 servlet API, I add a little
scriptlet
Hello!
I have a question?
i have winnt 4 wks, jrun, where can i put my javabeans?
directory?
Thanks!
// jorkas
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on
Take a look at the attached example.
Christian
--
Christian Mallwitz INTERSHOP Communications Germany
Senior Software Engineerphone: +49 3641 894 334
binary-image.jsp
Hi,
If anybody have the API docs and class files of jsdk1.0 or versions
earlier than ver 2.0 please mail it to me or send me the location from which
I can get it.
TIA
---
Biju Nair
ITLInfosys
Ph:8520261 Ext.
See the FAQs below. I saw the answer to this particular one at jguru.com
today.
- Original Message -
From: "munu praveen" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 29, 2000 5:06 PM
Subject: who can write init() method in jsp
Hi guys,
how can i write init()
http://www.gefionsoftware.com/InstantOnline/TP/
Scott Stirling
- Original Message -
From: "Misha Davidson" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, February 29, 2000 12:58 PM
Subject: taglib availability?
Hi,
could anyone recommend a custom tag library that works with
Hi all,
This is the second time I am asking this question to all, it seems the
question didn't appear the first time.
How can I write methods in JSP and call them?Please reply me as earliest.
Ravi
Get free email and a permanent
Hi,
I am working on a servlets, JSP and EJB architecture. I am trying to
find some models/examples available using these technologies. If somebody
know about the examples, please let me know.
Thank you,
Babar Bhutta.
AptisSoftware, Austin, TX
I've been chasing this one for days now and I've finally decided to ask for
some help...
I've tried fixing the problem by rebuilding all components at least twice.
Running Tomcat stand-alone works fine. I can connect to the example pages
on port 8080 and then work with all of the examples.
Hi all,
I am new to JSP.
I have some COM components already wittten.
Can I call them from JSP?
Can Visual J++ help in this regard?
Thanks in advance,
regards,
Diwakar
===
To unsubscribe: mailto [EMAIL PROTECTED] with
I think the best solution is however to just query the db again ;-)
- Since the database uses it's own caching mechanism, it's likely that the
same query will go fast and use not much resources.
- If the query is too heavy to have a quick reponse, you already have a
problem in creating your
Hi !I'm a JSP beginner with the following issue: I need to
enable the reader of the page to modify the number of form elements inside the
page.
Tipically she/he has a form including an input textarea.
I need to insert a link which - when clicked - recalls the
page including one more
In your JSP page use
%!
// this defines the method at instance scope
void someMethod(someParams
{
// method goes here
}
then
%
someMethod(with those parameters);
%
Kevin Jones
DevelopMentor
www.develop.com
-Original Message-
From: A mailing list about Java Server
Writing a hit counter only using Client Side Scripting, as per my limited
and growing knowledge is not possible.
Have a nice day.
With regards,
Sachin S. Khanna.
www.emailanorder.com
- Original Message -
From: Shrikumar R [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 09,
As a follow-on to Christian Mallwitz's example, here is a JSP that creates a
JPEG dynamically using the AWT and the JPEGImageEncoder. I have tested this
only under JSP 1.1.
HelloWorldImage.jsp
just a guess ...
Maybe you could use JSP Session Variables instead of hidden variables.
This would get around a lot of your issues with hidden variables.
Oliver Enseling.
Java Software Architect
BORN
-Original Message-
From: Craig Reichenbach [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
Dennis:
You can use the useBean directive irrespective of whether your Java classes
resides within a
JAR file or within a .class file in a directory, as long as the JAR file
and/or the .class file
directory are included in your JSP container's class path.
So, don't change the useBean tag at
I'm having trouble with accessing checkbox values in the jsp. When I get the
value from the checkbox attribute, it just returns the first value, not the
comma(,) separated values. All the checkboxes have the same name in the
table(list). Per HTML standards, it should return comma (,) separated
I am using Jrun2.3.3
When you have a very big jsp file, the JSP Engine throws a
ArrayIndexOutOfBoundException
How do I overcome this ?
Thanks
Kishore
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
J2J version 1.2 is available for download from
http://coldjava.hypermart.net
J2J lets you to have access to server side java objects
directly from within your JavaScript applications.
ColdJava: java server side programming
http://coldjava.hypermart.net
I am having some trouble with one of my jsp files that uses a JavaBean. I
have put the compiled bean into the classes directory. When I go and make a
change to the bean and recompile it, the same result appear.
Do I put the class file in the local html directory where the jsp page is
located?
I am using JRun 2.3.3
I have found two problems with the current JSP engine.
Firstly if you have a JSP comment as shown below with a dash(-) inside the
comment body, the JSP Engine does not parse the comment tag properly and
creates a junk .java file. Also this happens if you have any word
I'm curious - what are the common ways of doing HTML reporting against java
classes?
The type of data I want to display on my reports can change a lot so it
seems like creating a bunch of classes to hold all the data for a specific
report is not the way to go...but what is?
I'll use a very
Hi Scott, Kevin,
My own comments intermixed...
Kevin Duffey wrote:
Hi,
1. Initially the entire application will run on the web server, on the same
machine as the db server. However, I foresee that in the future we may want
to use an appserver and Enterprise JavaBeans for the application
-Original Message-
From: K.V.Srinivas Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 1:59 PM
To: [EMAIL PROTECTED]; Jianjun Fu
Subject: Java in javscript
Hi All,
Ashwani, thanks for your reply.
Coming to my problem, I have the following two files.
When I
Hi all!
in some recent mails, there has been a mention of LIVE CONNECT in ref. to using
JavaScript and Java in a .jsp
Could somebody please tell me what this LIVE CONNECT is??
thnx
varun
===
To unsubscribe: mailto
"Loganathan, Kamalesh" wrote:
I'm having trouble with accessing checkbox values in the jsp. When I get the
value from the checkbox attribute, it just returns the first value, not the
comma(,) separated values. All the checkboxes have the same name in the
table(list). Per HTML standards, it
If your JSP engine can use the MS VM (jview) then you can call the COM
components from JSP code
Kevin Jones
DevelopMentor
www.develop.com
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Diwakar
Fernando Ribeiro wrote:
Sorry but those features will be available only on a product:
- with some dumb interaction with the client layer;
- with a meta information database about client browsers.
What option better describes the product?
Information like "what JavaScript version this
Hi!
I am new to web programming. I am trying to write some JavaServer Page
programs. I have installed the Microsoft Personal Web Server on my machine
(Win95). However, the browser does not recognize the Java code within the
JSP file (i.e. it only renders the HTML part of the code). What are the
Arni,
Read the HTTP specs - they will tell you that a user's use of the Back
button in a User Agent (in other words, a browser) should be that of
actually going back in time, and that if a browser does just that (and
hence does not get a new version of the page from the server), it is
properly
Hi,
Has anyone here used JServ or any other servlet engine on a machine
running behind a load balancer? Our configuration is that we have multiple
machines running Apache and JServ w/ GnuJSP running behind a load balancer.
We have a problem with HttpSessions b/c the sessions are not shared
Can you elaborate more on the problem. I think I have a solution
-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Bradley McLain
Sent: Sunday, February 27, 2000 12:42 PM
To: [EMAIL PROTECTED]
Subject:
Hi,
This is my first post to the mailing list and unfortunately it has nothing
to do with JSP, or even Java for that matter.
I would just like to warn people about opening the attachment in the mail
entitled c:\coolprogs\prettypark.exe. It contains a virus that, when opened,
will go through all
Title: jsp:useBean tag and Netscape Enterprise Server
Hi
I'm using Netscape Enterprise Server 4.0 to run my Servlets and JSPs. Its not recognising the jsp:useBean tags given in JSP 1.1 Specs. Instead, its working fine when I give as follows.
USEBEAN name=xxx type=aaa.bbb.className
Hi Javier:
I don't know exactly what www.jsp-interest.com does; I seem to remember
they play some sort of intermediary role. You are registered at our
LISTSERV as "normal". To change that subscription go to
archives.java.sun.com, scroll down to jsp-interest, notice we are about
to cross 3600
Bill,
Here's a suggestion
When the user clicks on the submit button, process the order, and then
return a page containing only javascript
("window.close()"). Actually, you may want to also return text on the page
telling the user that the order has
been submitted, and that the window can
Try the following method of HttpServletRequest (your request object in Jsp):
public java.lang.String[] getParameterValues(java.lang.String name)
-Original Message-
From: Loganathan, Kamalesh [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 11:28 AM
To: [EMAIL PROTECTED]
Hi,
I'm traying to use a Tag Library, but when I call the jsp thi error appears.
Someone knows what this exception means? (Unable to compile class for JSP)
I forgot something?
Error: 500
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile class for JSP
at
It look like you may be loosing your session in some cases.
You might want to try setting the session parameter of the page
directive to "false". This will ensure that the default session
implicit object is not created in your jsp page. You can then
explicitly attempt to obtain a session in a
Jason,
I'm having trouble with a JSP. I'm using JRun 2.3.3
with IIS 4.0/Win NT 4.0.
I keep crashing the javaw.exe whenever I try to load
a specific webpage. Do you have any insights regarding what could be cauing
this?
Thanks.
Mr. Kaylon Daniels
Software Engineer
[EMAIL PROTECTED]
work:212
These technologies do not interact in the manner described.
JSPs are processed by the web server supply pure HTML responses for the
browser to process. Javascript, however, is processed solely by the browser
within the context of the web page. Therefore, Javascript cannot invoke JSP
methods.
Siva,
What server you are using. Is it Websphere. We had similar
problem when using Websphere 2.0 and VAJ2.0. Have you
checked the values you are gettting from database.
I am asking because in our case it was some problem with IBM's
persistence layer and the data fetched from the database (DB2)
Anh Nguyen [EMAIL PROTECTED] writes:
Dear all,
This might not have anything to do with JSP, but if anyone in this
group has any experience with SilverStream then could you please
share with me a few bad and good points of using this application
server.
Your inputs are very much
Can someone point me to any info regarding input validation ?
I read earlier posting where a JSP form submit goes to a servlet
to validate all the input fields (with client side JavaScript
doing some limited checking). However, I am not clear how to
validate fields to support
I've found that I have to restart the servlet engine(JRun in my case). You
might be able to change some caching option also. Its just as easy for me
to hit "Restart" as it would be to wander cluelessly in the JRun
administrator looking for the cache setting or, heaven forbid, reading the
In addition to the absence of the html and body tags which mark the
beginning of the file, I believe you need to change your "BEAN" tag to the
following:
jsp:useBean id="jspDb"
TYPE="com.livesoftware.jrun.plugins.jsp.beans.JSPDBConnection"
SCOPE="session"/
-Original Message-
From:
In jsp, you wrap raw code in
%
... code ...
%
but you wrap method definitions in
%!
... methods ...
%
_3
M
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on
there. How can I get the pop-up window to close and do the submit like I
need?
Have the popup window invoke a jscript function on the main page which tells
the popup's form to submit itself and then closes the window. Second option
is to have the popup's form target return a tiny page like:
Same thing for me with JSWDK.
Is there something to do to avoid to stop and restart the web server each
time I change a bean ? ...
thanks,
Fabien
I am having some trouble with one of my jsp files that uses a JavaBean. I
have put the compiled bean into the classes directory. When I go and make
i was able to solve the problem, by recognizing that JRun implements the
setmaxinactivetimeout method in milliseconds, not seconds. i had set the
session to timeout (i thought) in 10 minutes by passing 600 into that
method, but it was actually timing out in 600 milliseconds. the putValue
I am trying to get the default_server to run with ibm websphere and apache
it just says command start server failed... does anyone know how to get
around this ?
===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
Using session variables would be the better choice. I have just finished a
project where we used session variables to send the user to different pages
depending on different session values (i.e., how they came to the page, what
client site they came from, the type of transaction they
Folks,
I am sick of JDBC-ODBC bridge behavior and investigating upon JDBC driver
pricing to connect JRun to MS SQL Server7 particularly:
. Weblogic's jdbcKona
. Merant's SequeLink
Their sales department won't answer me and I just need a rough estimate. Can
anybody give me the range we are
Has anyone successfully used Cuacho Resin plugin with IIS For running jsp
files ? I am getting 404 errors ! !
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets
?D ??? ??? ?" #*? ???
??P
??? ??
?
??
??? ??
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
It's as simple as just adding double quotes around the City name to define
the boundaries of the string. If double quotes aren't used then you get the
default
Hi all. I hope this isn't too much of a newbie question though it is
fundamental
to JSP development and I may have missed something really obvious. g
If I have a file named real.jsp and a file named blob.jsp and real.jsp
includes
blob.jsp to display a message with special formatting. They both
Hi,
Sorry for the off-topic, but it does relate to my JSP site. I cant figure
this out and I dont know if there is an HTML interest group. None the less,
we have a strange problem on our site. When Netscape is used (versions we
know affected are 4.5, 4.61 and 4.7), periodically it submits the
using "no-Cache" can force the broswer to get the latest version
of file when user click back/forward/refresh button. Utilizing session
variables let you maintain the states. In other words, you want the
user see whatever input he enter when "Back Button" is clicked
For example in a Jsp where
You can tell the browser not to ever cache the output of your jsp (in
effecting forcing it to refresh each time it is loaded) by inserting this
code at the top of your jsp:
%
response.setHeader("Cache-Control","no-store"); file://HTTP file://HTTP
1.1
response.setHeader("Pragma","no-cache");
kevin carothers wrote:
One thing to consider is that it is ridiculously easy to decompile
java class files... you have to obfuscate them, and then
completely re-test. Usually complicated problems don't obfuscate well.
..
but there's always other ways. You can convert your java
Hello:
I am going to do the similar thing. Do you know where I can find an example
on the net?
Thanks,
Dennis Huang
-Original Message-
From: Jacob W Anderson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 29, 2000 4:44 AM
To: [EMAIL PROTECTED]
Subject: Re: beans accessing database
Hi,
Just in case you had opened the virus attatchment
and executed it..here's how to manually disinfect your windows system from
the virus.
Sorry about the problem.
Using REGEDIT, modify the Registry
entryHKEY_LOCAL_MACHINE\Software\Classes\exefile\shell\open\command
from
On what environment have you all tried this on?
I heard it runs fairly well on an NT box, but
on solaris performance becomes a problem, especially
if you do this under load.
-Rich.
Senior Software Developer
Bluestone Software.
-Original Message-
From: Mark Wutka [mailto:[EMAIL
Hi guys:
We are going to work on ATGDynamo for our project . We intensively like
to do Model 2 architecture . Dynamo supports very poor in JSP
(.91)Servlets(?) and EJB(only session beans with no pooling) but provides
its own API like DSP(Dynamo server pages) etc etc.We like not to go for
-Original Message-
From: Shrikumar R [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 08, 2000 11:49 PM
To: [EMAIL PROTECTED]
Subject: hit coiunter
hi all
Is it possible to write a hit counter for my web page
only with client side scripting.
No.
Hi
I am using Jrun2.3.3
When you have a very big jsp file, the JSP Engine throws a
ArrayIndexOutOfBoundException
How do I overcome this ?
Thanks
Kishore
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
What is specific about this web page that makes it so special it can crash
your JVM? Not much I or anyone can do or say unless we have a lot more
info.
Scott Stirling
- Original Message -
From: "Kaylon Daniels" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, March 09, 2000 3:22
?D ??? ??? ?" #*? ???
??P
??? ??
?
??
??? ??
Content-type: text/plain; charset="ISO-8859-1"
Content-transfer-encoding: quoted-printable
Comments below
"Craig R. McClanahan" escribi=F3:
=20
...snip=20
=20
That's exactly what isUserInRole() is for -- to let you vary the response
based on
How can I make use of jview with JSP engine?
-Original Message-
From: Kevin Jones [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, March 09, 2000 9:42 PM
To: Diwakar Killamsetty
Subject: RE: JSP - COM
If your JSP engine can use the MS VM (jview) then you can call the COM
components
hi all!
of late there have been some queries about how to write java methods in .jsp
many people have replied that u can do it as follows..
%!
method()
{
//java code
}
%
however 1 pt. i would like to add is that u CANNOT BREAK UP THE METHOD LIKE
%!
method()
{
///java code
% html
Hi all,
Can a button be made sizeable at run time in the browser
(Internet explorer specifically). I want to know if it is possible to drag a
button to any size in an html/DHTML page.
Thanks,
Anjan
Hi everyone,
quick question.
How could I achieve functionality of RequestDispatcher interface
in JSDK2.0 ? I am running JServ .1.1 that supports only
2.0 .
Thank you for your time.
George
I've been trying out my web-app on different Servlet engines and have
found a discrepancy between the way response.sendRedirect() works on
Orion 0.9 beta versus JRun 3.0 beta. Orion behaved the way I expected,
but when I tried to find out from the Servlet 2.2 spec the way this
situation should be
91 matches
Mail list logo