Well, real JSP debugging isn't easy.
I posted a message in the java.programmer newsgroup about servlet debugging
last week. About the same is true for JSP.
here's a copy of that message:
I've tried out a lot of different solutions to the servlet debugging and
finally found one that works very
Dear Sir,
I am able to execute the JSP pages on Windows NT using JSWDK 1.0.1. But
with Windows 95 I am unable to do so.
Can anybody suggest me a good answer?
Regards,
Suresh Kumar
===
To unsubscribe: mailto [EMAIL
I think this answer might help you. Please try it out.
You call your function or anything either a .jsp page or a .txt etc. by including
it in the jsp page or calling page.
%@ include file = "date.jsp"% date.jsp is an example.
Regards,
Suresh Kumar
"Wen B. Sun" wrote:
Hi,
In my JSP, I
-Original Message-
From: Daniel Tillin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 23, 1999 9:32 AM
To: 'Wen B. Sun'
Subject: RE: Functions in JSP
I would have thought you really want the scriplet code in a bean which you
can then
call from anywhere in a JSP, and make the HTML a
-Original Message-
From: Daniel Tillin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 23, 1999 9:44 AM
To: 'Masaoud'
Subject: RE: How to invoke a bean method in a JSP using a HTML Form
Button
You need to use something like this:
input type="text" name="property" size="25" //one of
Hi,
I'm new to JSP and I'm having difficulty with the following:
First of all, I can't compile the jsp page because my use of the 'class'
parameter in the useBean tag is incorrect and the getProperty use is also
incorrect.
Could someone point me in the right direction?
Html Login -
servlet
Hi,
First things first,
It is important to realize that all JSP's get converted into servlets, so
anything that a servlet can do, such as session tracking, can be acheived by
JSP's.
In JSP's we can get hold of an implicit session object like so
% String thisSession = session.getId(); %
Hi,
Also, if you remember that all JSP's are turned into servlets then you can make
use of the Declaration tags to create a method (other than the do() methods) in
the servlet.
eg
%! String shout() { return("HELP!!"); } %
then anywhere in your page you can use shout() eg
%
Hi all,
I have a simple question on taglib: can a custom tag generate other custom
tags that will be further processed. The scenareo is the following: read a
request from the user, generate information from the database. The
information is made up in custom tags that also needs to be
Hi Everyone,
I have two, hopefully easily answered questions for you
all.
1). JRun
I started off just using the Sun's JSWDK1.0.1 server and
have recently tried to convert over to using JRUN, with GREAT difficulty. I am
running on a NT Workstation with IIS. I have tried reading all
Sounds like you don't have JRun working too well. Make sure the sample
servlets work before trying to add all your own beans, etc. Search the
Allaire Knowledge under JRun for more up-to-date info. on the ins and
outs of JRun. I would highly recommend the article on installation
troubleshooting
James Skehan wrote:
Hi,
I'm new to JSP and I'm having difficulty with the following:
First of all, I can't compile the jsp page because my use of the 'class'
parameter in the useBean tag is incorrect and the getProperty use is also
incorrect.
Could someone point me in the right direction?
I found that Jrun's implementation of jsp is inetable. I had lots of problem. I
encourage you to use GNUJSP 1.0, it works great, it is for free and with source code.
Mi jsp code that use to crash jrun now works fine using gnujsp.
greetings
carlos orrego
Hello Ian,
1) Start the JRun Administrator, Select the General tab, then the Java tab and make
sure your beans or packages are in the Java Classpath.
Restart the JRun Server.
2) Looks ok to me. For reference, we successfully use
%@ page language="java"
I've seen this problem, although the message it couldn't find wasn't the one
written out (i.e. addURL() in your case),
but a method sent within the one mentioned. You say you replaced the
addURL() method with another get/set method without error. Presumeably, this
new method is not calling any
Thanks everyone for the very quick help, I seam to have it working now, not
that I am 100% sure how it works but hey..
Ian
- Original Message -
From: Ola Sandström (QDT) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 23, 1999 3:03 PM
Subject: Re: JRun and ErrorPages
Masaoud wrote:
Hi,
I am using a bean inside a JSP page and trying to call a method
(which is a non-get/set method). When the JSP page is invoked,
following error is reported
500 Internal Server Error
Java Server Page Translation Error
Error during compilation :
I have been reading the docs and examples that come with JavaWebServer2.0
but I am getting confused with how to use a CLASS/Bean from a JSP page.
And where to put them.
Here is what I want: (Very simple examples please)
A JSP that uses a CLASS. In that class, just an initial value X,
then
Dear Sir,
I am absolutely new to JSP environment. I would like to know What are
actually Servlets and how can I use them in my JSP code to get the
maximum extent out of them.
Regards,
Suresh Kumar
===
To unsubscribe:
Daniel Tillin wrote:
Here's one for you to chew the fat on!!
If you define a bean with application scope, will that reference be
available to all other JSPs you serve?
The reference will be available to all JSP pages and servlets within the same web
application, but not to JSP pages and
Sandeep,
The idea is that you implement the HttpSessionBindingListener for any object
that you intend to store in your HttpSession object. When the object is
removed from the HttpSession object, it will trigger a call to a method
called valueUnbound(HttpSessionBindingEvent event) which the
WebSphere 1.0 and 2.0 supports JSP 0.91.
WebSphere 3.0 supports JSP 1.0 and 0.91
Dan
--
Daniel Kirkdorffer
NACN IS: 425-580-6225
Sr. Consultant, Syllogistics LLC
Email: [EMAIL PROTECTED]
Web: http://www.syllogistics.com/
--
From: Daniel Tillin[SMTP:[EMAIL PROTECTED]]
Reply
Can you please eloborate a little more in detail, so that it becomes easy for us to
understand and proceed further.
Regards,
Suresh Kumar
Steve Nguyen wrote:
JRun or ServletExec both offer servlet runner and JSP. Other way (free) to do is to
take ApacheWin32/JServ and run it in diffrent
Dear Sir,
I have two queries with me.
A) Is it possible to write an appication in JSP without the usage of
Servelts or Java Beans?
B) Is it advisable to go for the development of an application without
Java Beans and Servelts.
Which is the best way? Meaning therby whether to use Beans and
Masaoud,
You have to remember that the JSP pages are server-side, while the buttons
and GUI are a result of client-side display.
Pressing a button on your form can do nothing vis-a-vis the JSP. What you
can do is submit the form (along with all the
parameters) to a jsp. The jsp can now process
Suresh,
First off, I imagine most questions asked here are going to be a "Query on
JSP !!". This will be the last time I respond here to a question with such
a meaningless subject line. (someone has to put their foot down). Please
make your subjects more descriptive about the question you are
Wen,
The JSP include directive (%@ include file=... %) can provide exactly the
functionality you appear to be looking for here.
Please take a look at the documentation for this command's function and
exact syntax.
-AMT
-Original Message-
From: A mailing list about Java Server Pages
IMHO, the less JSP in your application, the better. That is, no less than
needed to support the presentation tier of an application, but no more. JSP
pages are not an effective way to partition an application, compared to
solutions based on other features of Java such as packages and
Hello, all:
I installed Apache Web Server and Apache JServ 1.1b3.
When I start Apache web server, I got "class not
found: org.apache.jserv.JServ" in error.log. The
setting in jserv.properties looks correct:
wrapper.bin=c:\program
files\javasoft\jre\1.1\bin\jre.exe
wrapper.classpath=c:\program
This is pushing it :)
Suresh Kumar Nittala wrote:
Dear Sir,
I have two queries with me.
A) Is it possible to write an appication in JSP without the usage of
Servelts or Java Beans?
Yes
B) Is it advisable to go for the development of an application without
Java Beans and Servelts.
A bean is a class but a class isn't necessarily a bean.
There are certain things bean must do and certain things a bean must implement in
order to be called a bean but really it's just a class and behaves the same way as
class. Check out sun's site for more specifics.
I'm not going to code for
We have the same problem, running the JSDK JSP engine under
Apache/JServ, so it's probably not a web server configuration issue.
It's a bug in JSDK, IMO.
jm.
Dustin Aleksiuk wrote:
Hi everyone,
I'd really appreciate some help on this, even if you have only a suggestion
or guess as to
I never did get a response to this question. Although I have not had a
chance to investigate yet I am curious has anyone tried using XML with
JSP. Anyone have any thoughts, or work prototypes, on this topic?
Robert
did you get a satisfactory answer to your question? i did not see a
A) Is it possible to write an appication in JSP without the usage of
Servelts or Java Beans?
yes
B) Is it advisable to go for the development of an application without
Java Beans and Servelts.
well i guess this is one question which everybody will answer from their
experience, so here is
Jia-yu Sun wrote:
When I start Apache web server, I got "class not
found: org.apache.jserv.JServ" in error.log. The
setting in jserv.properties looks correct:
Since your path names have spaces, try enclosing them in quotes, as follows:
wrapper.bin="c:\program
From: Jia-yu Sun [mailto:[EMAIL PROTECTED]]
When I start Apache web server, I got "class not
found: org.apache.jserv.JServ" in error.log. The
setting in jserv.properties looks correct:
wrapper.bin=c:\program files\javasoft\jre\1.1\bin\jre.exe
wrapper.classpath=c:\program
Hi all,
I've just installed JRun on my IIS/NT box and have
servlets working fine.
I can also get some JSP pages to work, but not ones
that use beans. Where is the .class file for a simple bean supposed to go
on the server?
Anyone have a similar problem? I mean this is
a simple bean, so
Hello,
Does anyone know where I can get
org.gjt.jsp.JSPServlet
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
Hello
Scott,
You
have to modify the class path within JRun (JRun Admin:General:Java) to point to
a directory for your beans. Hope this helps.
Matthew
-Original Message-From: A mailing list about Java
Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On
Has any one got the NT/98/95 of apache with GNUJSP to work? I don't
understand the
instructions. The Files that it talks about don't exist.
Mike Howard
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
http://www.klomp.org/gnujsp/
"Ro, Jean" wrote:
Does anyone know where I can get
org.gjt.jsp.JSPServlet
--
Scott Stirling
Allaire
http://www.allaire.com
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
"Ro, Jean" wrote:
Hello,
Does anyone know where I can get
org.gjt.jsp.JSPServlet
The "org.gjt" prefix means it should be available at the Giant Java Tree (gjt) web
site:
http://www.gjt.org
Craig McClanahan
===
"Ro, Jean" wrote:
Hello,
Does anyone know where I can get
org.gjt.jsp.JSPServlet
http://www.klomp.org/gnujsp/
Wes
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be
We need a few people with JSP expertise to advise us about a new
publication on web development using JSP. If interested, please
send a note to [EMAIL PROTECTED] with a brief description of
your credentials and I will send you more information.
Jeetandra,
When the user closes his (or her) browser, nothing happens. It doesn't
send any dying message back to the web server to say it's closing,
please take care of my session (and feed the dog). Although, I have
seen info on this group about how that can be done in client-side
JavaScript.
"Craig R. McClanahan" wrote:
Daniel Tillin wrote:
Here's one for you to chew the fat on!!
If you define a bean with application scope, will that reference be
available to all other JSPs you serve?
The reference will be available to all JSP pages and servlets within the same web
Well, we got a bit different view: servlet in its nature has its own advantage over
JSP. You (close enough) separate your presentation and your business logic and this is
how you develop mission-critical components/applications. We wrote lot of servlet (at
least 10,000 lines/each) and take the
Christopher Cobb wrote:
How do you specify an entity that you want to be global across applications?
The standard Java approach of using a class with public static methods is the usual
technique for accomplishing this. This is often referred to as the "singleton"
pattern. An example of
You're overthinking this...all I'm saying is that
a) a class does not inherently map form fields to attributes
b) a bean being used by a JSP can automatically set its attributes using get
and set routines that you write once in the bean class
that's all I'm saying!
Gerry
-Original
Suresh - see below
-Original Message-
From: Suresh Kumar Nittala [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, November 23, 1999 6:43 PM
To: [EMAIL PROTECTED]
Subject:Query On JSWDK 1.0.1
Dear Sir,
Not sure what country
On Tue, 23 Nov 1999 06:06:15 -0600, Mike Howard [EMAIL PROTECTED]
wrote:
||| Has any one got the NT/98/95 of apache with GNUJSP to work? I don't understand the
||| instructions. The Files that it talks about don't exist.
|||
||| Mike Howard
After about the fourth time reading the docs,
hi,
I am using URLConnection for communication between my servlet and applet.
and here is my code at the applet side
URLConnection con = myURL.openConnection();
con.setDoOutputStream(true);
ObjectOuputStream objout = new ObjectOutputStream(con.getOutputStream());
objout.writeObject(myObject);
Hi,
Kindly help me out.
1. How would you differntiate?
A) Java Bean
B) Enterprise Java Bean
C) Servelets
2. Can we call Servelts directly from JSP?
Regards,
Suresh Kumar
===
To unsubscribe: mailto [EMAIL PROTECTED] with
Hi Drew,
Thanks for the suggestion. Here is the brief description of the problem I am
facing.
After copying the JSWDK1.0.1 on to my Local Hard Disk along with JDK 1.2.1 I
have set the path and the Class path in the Autoexec.bat file. The I run the
StartServer in the JSWDK folder then I am
Suresh Kumar Nittala wrote:
Hi Drew,
Thanks for the suggestion. Here is the brief description of the problem I am
facing.
After copying the JSWDK1.0.1 on to my Local Hard Disk along with JDK 1.2.1 I
have set the path and the Class path in the Autoexec.bat file. The I run the
StartServer
Hi
You have to set the java home environment variable
JAVA_HOME = c:\jdk1.2.1
in 95 do it in autoexec.bat
set JAVA_HOME = c:\jdk1.2.1
in NT do it in system congifuration
regards
Amit
-Original Message-
From: Suresh Kumar Nittala [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday,
Hello Everyone,
I need to access some CORBA objects from my JSP page. Can anyone please
tell me some way of doing this ? As far as I know, I can access these
objects from Java Beans but can I access them from JSP directly ?
Regards,
Reeta
Hello Everyone,
I am sorry that I have sent a mail with wrong Subject. I wanted to ask a
question on CORBA objects but I have written the subject as JAVA Beans
-Compile.
Sorry for trouble...
Regards,
Reeta
===
To
Well to get rid of the Out of environment space error do the following:
click on the properties tab of the MsDos prompt shortcut,
then cick on the memory tab
you will find a initial environment set to auto change that to 4096 you
should not get that error.
Goodluck with your endeavour.
Have a
Hi Suresh
Even I also faced the same problem with JSWDK -1.0 .
In the readme of JSWDK -1.0, it has been clearly indicated that
This release has been developed and tested on the following systems:
Sparc Solaris 2.6 JDK 1.1.8 Java2 SDK 1.2
Windows98/NT JDK 1.1.8
60 matches
Mail list logo