Re: Any advantages of taglibs

2001-02-12 Thread JSP Insider

Hi

I just wrote a brief article about this.

http://www.jspinsider.com/articles/jsp/intrototags.html

A quick hash of some of the pros / cons

The problem with tags are:
-An initial extra up front cost in building the tags.
-An additional overhead in processing the tag.
-Adding some complexity to certain operation where
  scriptlets  would be easier.

The benefits that tags have:

-Reusability
-Easier to maintain pages and have other people use same page.
-Easier to expand and change functionality without changing
  existing pages
-Expand JSP
-There are some things you can do in tags YOU CANT achieve with
  scriptlets
-Better than templates for maintainability
-Easier to move code from project to project, vs scriptlets which
  dont move as well.

This is a very quick list and the benefit list goes on and on,
but its 1 am I need some sleep, check the article for more details...

Casey Kochmer
www.jspinsider.com
[EMAIL PROTECTED]

>From: Raghu Movva <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Any advantages of taglibs
>Date: Mon, 12 Feb 2001 10:29:33 +0530
>
>   Hi all,
> I don't see any reason using taglibs, because using taglibs we are
>really complicating the work flow of the program.  Rather than it is better
>to use beans for writing business logic and embed very little java code in
>the jsp.  In this way the development is really faster.  Does any body has
>another idea?.
>Regards
>Raghu
>

_
Get your FREE download of MSN Explorer at http://explorer.msn.com

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



No Subject

2001-02-12 Thread Pratap Sinha Routray

  JSP-INTEREST DIGEST
Routray Pratap

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Using JSP in functions or using RunnableTags?

2001-02-12 Thread James Strachan

> James, what an excellent email!

Thanks ;-)

> You've run into a real problem: in the worst case, you're going to have a
> problem indeed. Luckily, though, there are many cases where the worst case
> simply doesn't happen.

Yes I've hit the worst case. It doesn't mean I can't get my job done, its
just that its *so* much slower than it should be. And there is no
workaround, the Java code that is generated by the JSP is so much slower
than it should be. Unfortunately there is no way around it (AFAIK) until the
JSP spec is improved to add more complex flow control to JSP pages.

Right now today JSP tags flow control are just way too simplistic. If you
want to do something as complex as a switch statement efficiently, you
shouldn't use JSP custom tags, you should use Java code. This is a big shame
IMHO

> For example, you mention object creation for the tags; if the same tag is
> used over and over again in a given page, many JSP containers will simply
> reuse previous instances.

I kinda assumed that one too. Though I've tried a few common JSP and when
tags are *nested* then reuse often doesn't happen.

> What's more, object creation isn't nearly as
> expensive with HotSpot in JRE 1.3 as it was in previous incarnations of
> Java.

Sure. Though creating many unnecessary objects and calling many unnecessary
functions per request is a waste of computing resources no matter how clever
HotSpot is getting.

> You can, in fact, include methods in JSP snippets,

Yes you can declare regular all-Java methods - you can't use regular JSP in
the funciton body. So I can't do things like this...

<%! public void foo()

%>

Hello my name is <%= pageContext.getAttribute( "name" ) %>

<%!  }
%>

Which is a big shame.

> but tags don't have
> access (normally) to that, and while I believe you could shoehorn
something
> like that together, the purist in my rebels (and gags) at the thought of
how
> tightly coupled your JSP and your JSP tags would be. Since JSP tags are a
> mechanism for loose coupling, it seems to be an intentional mutation of
> purposes.

I agree that there isn't a way to shoehorn anything like this into JSP
today. Though if the JSP spec were enhanced we could easily implement this
kind of funcitonality. I'll mail a more complete proposal shortly...

> 
> >*  creates a new BodyContext object (ok the new IterationTag
can
> >avoid this)
>
> This is pretty inexpensive, really.

Not if done inside a large loop. Creating and manipulating (say) 10,000
objects per request unnecessarily when *there is no need to do this
whatsoever* is a waste of memory and CPU on a heavily loaded web server. I
want to use valuable memory and CPU for doing useful things, not wasting
time doing irrelevant things just because flow control with JSP tags are too
simplistic right now.

> >* all the whitespace inside the  gets written to the output
> >(doesn't it?)
>
> Between each tag, yes. There are ways around this (limit whitespace, use
> XML/XSL to trim, etc.) but the basic problem is still there.
>
> >* creates a new Java object for *each* case tag in *each* loop iteration
> >* initialise each case tag object, calling setParent, setPageContext and
> >other properties etc.
>
> Initialization is a problem, if it's very expensive, yes. (Hint: use
simple
> initialization...)

It still results in many totally unnecessary method calls, whatever way you
look at it. i.e. doing completely irrelevant and totally unnecessary
processing just because custom tags only support very simplistic flow
control.

> >* call the necessary doStartTag() / doEndTag() methods of each tag
>
> See the previous note.
>
> I think your concerns are valid ones, but within the context of JSP
there's
> not really a great solution without breaking constraints JSP puts into
> place.

I agree right now today there's nothing we can do to address this
performance problem. Though by enhancing the JSP specification, we might.




James Strachan
=
email: [EMAIL PROTECTED]
web: http://www.metastuff.com


__

If you are not the addressee of this confidential e-mail and any
attachments, please delete it and inform the sender; unauthorised
redistribution or publication is prohibited.
Views expressed are those of the author and do not necessarily
represent those of Citria Limited.
__

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Sorting line items in a ShoppingCart

2001-02-12 Thread Jerson Chua

Hi...
For example, if I have a ShoppingCart object which contains an ArrayList of
lineItem objects. Each lineitem object contains the attribute productName,
productPrice, productCode, and quantity.

Here's the expected behavior.

For example... initially it's sorted by
productCode, productName, productPrice, and quantity.

If the user clicks productName then it will be sorted by
productName, productCode, productPrice, and quantity.

If the user clicks productPrice then it will be sorted by
productPrice, productName, productCode, and quantity.

and so on...

Initially I planned to use Comparator but this can only be used for sorting
a single column.

How do I implement such functionality?

thank you very much your help will be very much appreciated.

Jerson

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Sorting line items in a ShoppingCart

2001-02-12 Thread GAURAV LALL

Hi ,
U can sort using comparator by having a flag to distinguish what to sort on
for eg if u want to sort  on product quantity
class Test implements comparable
{
  boolean flgSortOnProductPrice=false;

.
.
.
   public Test()
{
}
public setFlgSortOnProductPrice( boolean sort)
{
this.flgSortOnProductPrice=true;
//set all flags to false
}
public int compareTo(Object obj1,Object obj2)
{
lineitem l1=(lineitem) obj1;
lineitem l2=(lineitem) obj2;
 i f(flgSortOnProductPrice)
  {
return (l1.getProducttPrice()).compareTo(l2.getProductPrice())

}
else
.
.
.
.
}



}
now  oto use this
Arraylist al1;
test =new Test();
/say sort on product price
test.setFlgSortOnProductPrice(true);

Collections.sort(al1,test);


to sort on proctcode
test.setFlag(true);
Collections.sort(al1,test);
Maybe this helps
Regards,
Gaurav
Jerson Chua wrote:

> Hi...
> For example, if I have a ShoppingCart object which contains an ArrayList of
> lineItem objects. Each lineitem object contains the attribute productName,
> productPrice, productCode, and quantity.
>
> Here's the expected behavior.
>
> For example... initially it's sorted by
> productCode, productName, productPrice, and quantity.
>
> If the user clicks productName then it will be sorted by
> productName, productCode, productPrice, and quantity.
>
> If the user clicks productPrice then it will be sorted by
> productPrice, productName, productCode, and quantity.
>
> and so on...
>
> Initially I planned to use Comparator but this can only be used for sorting
> a single column.
>
> How do I implement such functionality?
>
> thank you very much your help will be very much appreciated.
>
> Jerson
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Problems with PreparedStatements and LIKE

2001-02-12 Thread David Mellado

Hello.

I´m trying to execute an PreparedStatement that contains a SQL instruction
like this:

"SELECT COUNT(*) FROM USERS WHERE NAME LIKE ? "

I'm putting as parameter a String, for example "David".

In the data-base there is a record which NAME field contains "David", but
when I execute the PreparedStament it recovers 0 otherwise if I use an
normal Statement that contains "SELECT COUNT(*) FROM USERS WHERE NAME LIKE
'David' " or if I use '=' in place of 'LIKE', it runs OK.

Someone can say me why this happen ?

Thanks

David Mellado
[EMAIL PROTECTED]

PD:(I'm sorry because of my english, I recognize that it isn't very good
:,-I )

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Kindly Help

2001-02-12 Thread Rajeev Sharma

Hi All,

I am calling a jsp from a HTML file & on submit the following code will be

invoked in the jsp.



There is a for loop in the jsp but it is getting invoked only once.

But if I change the html to http://localhost:8100/SimpleJSP.jsp">

the for loop is getting executed.

Could anyone tell me the reason?

Thanks in advance,

Rajeev

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Sorting line items in a ShoppingCart

2001-02-12 Thread Joseph Ottinger

Comparators allow you to sort based on however many columns you want.

See the docs for Comparator, from
http://java.sun.com/j2se/1.3/docs/api/index.html for more information. If
you still need help after checking the API, send another email and I'll see
what time I can find to write an example.

>From: Jerson Chua <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Sorting line items in a ShoppingCart
>Date: Mon, 12 Feb 2001 18:48:13 +0800
>
>Hi...
>For example, if I have a ShoppingCart object which contains an ArrayList of
>lineItem objects. Each lineitem object contains the attribute productName,
>productPrice, productCode, and quantity.
>
>Here's the expected behavior.
>
>For example... initially it's sorted by
>productCode, productName, productPrice, and quantity.
>
>If the user clicks productName then it will be sorted by
>productName, productCode, productPrice, and quantity.
>
>If the user clicks productPrice then it will be sorted by
>productPrice, productName, productCode, and quantity.
>
>and so on...
>
>Initially I planned to use Comparator but this can only be used for sorting
>a single column.
>
>How do I implement such functionality?
>
>thank you very much your help will be very much appreciated.
>
>Jerson
>
>===
>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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Get your FREE download of MSN Explorer at http://explorer.msn.com

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: how implement carriage return

2001-02-12 Thread Ron Quartel

emailBody =
"Make: Ford" + '\b' +
"Model: Mustang" + '\b' +
"Movie: Bullet" + '\b'

Ron Quartel

-Original Message-
From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 12:09 AM
To: [EMAIL PROTECTED]
Subject: Re: how implement carriage return


I guess you can use the tag .

out.println("");


-Original Message-
From: Ian Corner [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 3:51 PM
To: [EMAIL PROTECTED]
Subject: how implement carriage return


Hi
how do you implement a carriage return when using JSP to construct the body
of an email?

For example, I want the email to look like this:
Make: Ford
Model: Mustang
Movie: Bullet

Instead when the form submitting this data is processed and the email
constructed I get this:
Make: FordModel: MustangMovie: Bullet

Any help appreciated.

Thanks,
Ian

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Off - Topic White Box Testing tool for Java Code

2001-02-12 Thread Shahzad Mahmood

Hi All,

Can somebody tell me about any White Box testing tool available for Java Code.
Helping efforts will be highly appreciated

Shahzad

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Diff bet asp & jsp

2001-02-12 Thread Don Makoviney

Nice reply. . .thanks for the background and bio.

-Don Makoviney

-Original Message-
From: JSP Insider [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 1:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Diff bet asp & jsp



Good Morning Don,

I suppose I should answer this email since you asked me a pretty direct
question on my beliefs.

Hmm Am I Biased?

Let's see and examine this in more detail:

I have been programming ASP since it was first released over 3-4  years ago.

In fact I still programming in ASP today. I like ASP a lot. In fact ask any
of my co workers and they will say I am a fan and supporter of ASP. I have
successfully implemented many ASP sites.  I still have recommended and am in

process of helping start up several new ASP projects.

Hmm. Ok. So far so good.

Now let's look at JSP

I started programming Java at the same time as ASP. And I have been
programming JSP for the past year. Again I like JSP alot and again ask any
of my co workers and they will say I am a fan and supporter of JSP. Again I
have sucessfully implemented JSP sites. Again I am in the middle of setting
up JSP projects. In fact I liked JSP enough to start up the JSPInsider web
site.

Hmm Ok still So far so good all things seem pretty equal.

So now I am forced to compare the two platforms BASED ON real expereinces of

using each. And I personally find JSP to be a better server side solution
most of the time. I am not saying ASP
is a bad solution It is great solution. Read what I have written and you
will find I am an ASP supporter. But in programming both ASP and JSP I have
found from practical experience that JSP is currently the stronger solution.

Program JSP for 6 months and then make your own decisions. Don't believe
what I say or what others write. In the end it is something you have to
decide for yourself.

THE TRUTH:
JSP isn't for everyone and ASP isn't for everyone.

THE SOLUTION
Use the solution that is right for you. I just believe and my experience as
it now stands JSP is the stronger of the two systems. In a year ASP+ might
be the stronger. But you must understand my judgements are based upon hard
and true and tried experiences. Killer specs means nothing to me, they are
just specs. I have to produce a product and I will use the one right for my
customer.  So yes I suppose I am biased slighly in favor to JSP due to my
successful  experiences, But isnt everyone biased?? Obviously you are
heavily biased towards ASP+ as I can tell from the strength of your feelings

in the email! Is this bad? No of course not, expecially if it gets the job
done.  If you are living or breathing of course you will have your favorite
tool to use, based on the tools you are successful with. The real question
is are you open minded and can you be flexible to use the right tool for the

right Job!

KEEPING AN OPEN MIND
And in that I always have an open mind, that is why I build both ASP and JSP

web applications, because neither one is right for everyone. However, my
experiences and my currently perffered solution is JSP as it offers the most

maintainable and easiest to build reusable web solutions. NO amont of BETA
specs will change my mind in this since it doesn't count until production,
and this isn't a matter of being open minded but realistic. Anyone who
builds a house of cards on beta software deserves the house they build,
sometimes the gamble wins but more often the gamble loses. I hope your
programming  path in ASP+ is as smooth as you state it will be. ASP+ is a
complete rewrite of the ASP rules and in this I reserve the right to have my

have doubts until it has in production for 6 months. Once it has been in
production for six months get back in contact with me and ask me how I feel
then and please share your experiences for I will be interesting in
comparing notes. However, after looking at ASP+ and still working with ASP
3.0 I have decided its too early to make solid informed choices regarding
ASP+ until it has been in production. Until then JSP 1.1 is my first choice
75% of the time and ASP 3.0 is my choice 25% of the time.

Finally I will also say this (and I have written this in my columns before)
The chances are ASP+ will live up to some of the hype. MS has too much at
stake for it not to work right. However, I am fairly
conservation in the use of technology, since I am responsible for building
systems for other people. And this means even though I think MS will deliver

quite a bit, I never build on Beta software unless I have no other choice.
ASP+  is still beta, JSP is here and now and offers what I need and that is
a very important fact in my support of JSP.
I know I mention JSP 1.2 , but the reality is that JSP 1.1 already has
everything I need and that is what drives my choice.

Have a great day.

Casey Kochmer
President, Amberjack Software LLC
[EMAIL PROTECTED]
www.JSPInsider.com

>From: Don Makoviney <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages

Re: Can anyone direct me to a JDBC or ORACLE related mailing list?

2001-02-12 Thread Christian Hamann Linares

hey i forgot..
dont use.. odbc.. you should use primitive way... so
you can get the drivers from oracle to connect
directly..
okis
christian


Correo enviado a través del Correo Web de USMP: http://mail.usmp.edu.pe/imp
  Powered by LINUX

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



New JSP User needs help and advice

2001-02-12 Thread Julie Tan

Hi,

I am a new user trying to setup tomcat on my home PC a window 98. I have
downloaded the jakarta-tomcat-3.2.1.zip and unzipped it to my directory. I
have also done the following things like set JAVA_HOME to point to my jdk
directory.

After that, I try running the startup file in the bin directory of tomcat.
But the following error as below happened…….

Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Unable to set CLASSPATH dynamically.
Note: To set the CLASSPATH dynamically on Win9x systems
  only DOS 8.3 names may be used in TOMCAT_HOME!
Setting your CLASSPATH statically.
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Using CLASSPATH:

Starting Tomcat in new window

After this another window pops up and closes and the program just ends
there. Please advise.


Regards,
Julie

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



GUI Capabilities

2001-02-12 Thread Thompson, Willard (GTICCC)

Hello,

Does anyone know if you can develop menubars by using JSP's and not applet
technology?

Willard

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: memory leak problem w/ graph image

2001-02-12 Thread cmcfarland

I solved this memory leak problem.  It ended up being the 3rd-party graphing
component.  When I upgraded to their latest version the problem was fixed.

-CMcFarland

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of cmcfarland
> Sent: Wednesday, January 10, 2001 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: memory leak problem w/ graph image
>
>
> All,
>
> In my Tomcat-run (standalone, version 3.1) web application, the user can
> request a static GIF image representation of a graph which I build
> dynamically on the server and send back to the user via the
> HttpServletResponse.getOutputStream().  For your reference, I use the
> technique described at:
>
> www.sitraka.com/software/support/search/JCLChart/pr/jcl_chart_pr_27.html
>
> This all works great except that the memory used to create a graph and add
> it to a Frame is never released (I actually have not verified whether the
> memory leak is the graph Frame, or if it has something to do with encoding
> to the response output stream).  Every subsequent request for a new graph
> image builds Tomcat's memory usage up in huge chunks until the webserver
> fails because it has run out of memory for compiling.  I've tried
> de-referencing object's, removing listeners, etc. everywhere I can and it
> does not fix the problem.
>
> Do you think upgrading to Tomcat 3.2 will help this, and does anyone have
> any suggestions about how I can fix this memory leak?
>
> Thanks much!
> Chris McFarland
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: GUI Capabilities

2001-02-12 Thread Steve

You could use javascript/dhtml

There is an impressive example of what you want to do at:

http://www.webmonkey.com

run a search on "dhtml"

Steve
--- "Thompson, Willard (GTICCC)" <[EMAIL PROTECTED]>
wrote:
> Hello,
>
> Does anyone know if you can develop menubars by using JSP's and not
> applet
> technology?
>
> Willard
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


=
Steve
http://www.geocities.com/beforewisdom/

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



JSP developer forums...

2001-02-12 Thread Eduardo Pelegri-Llopart

Hi Anil:

I, too, believe that active and useful developer forums are key to the
success of these technologies.  Traditionally JSP-interest and
Servlet-interest have had participation by a number of key developers at
Sun, including both people in the specification side and the
implementation side;  more recently, I think we have not been as present
for a number of reasons, and this has been compounded by the success of
the mailing list (we are by far the largest active mailing list, and
things will just keep getting worse).  I agree that we can, should and
must do better, and I'll bring up your concerns and suggestions to the
appropriate internal groups.

In the meantime, some, hopefully useful, pointers:

* ALl mailing lists @ java.sun.com also provide a DIGEST format that can
be used to reduce mail traffic.
* All mailing lists @ java.sun.com provide a Web archive that is sorted
by date, thread, author.
  [Archive is at http://archives.java.sun.com/]
* The ASF-related projects keep different mailing lists (-user, -dev,
-general, ...). Relevant ASF projects include tomcat (the code basis for
the RI), taglibs (an incubator project for JSP tag libraries), struts
(an MVC framework using JSP and Servlets).
* Different mailing lists hosted by the different vendors.  For example,
I know that Allaire keeps its own mailing list, although I do not
participate there.

Hope this helps,

  - eduardo pelegri-llopart
  Web Layer Architect for the Java Platform


> Date:Tue, 6 Feb 2001 20:30:26 -0500
> From:Anil John <[EMAIL PROTECTED]>
> Subject: Re: Moderated JSP Focused Lists?
>

...

>
> out
> there who are providing high quality assistance to people.  There is
> active participation on listserves (100+ asp lists on www.asplists.com),
> including Microsoft people who build the technology.
>
> As a JSP newbie, one of the first things I looked for was a high quality
> listserv that served the JSP community that had active participation
> from
> industry experts.  With the plethora of Java based application servers
> from Sun, IBM, Weblogic, Allaire I was expecting active participation on
> multiple lists from Engineers and Technologists from those companies as
> well as from community leaders and experts. Unless I have missed
> something, the ONLY JSP focused list I found was this one.



>
> 1. Split the JSP-INTEREST list into multiple lists.
> e.g. JSP-Beginner,JSP-Advanced,JSP-JRun, JSP-Jakarta, JSP-JDBC etc
>
> 2. Encourage active participation from both internal employees as well
> as
> JSP vendors and community experts and authors.
>
> 3. Moderate the list tightly (Iron fist in the velvet glove).
>
> You (Sun) NEED to take an ACTIVE role here!

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



No Subject

2001-02-12 Thread Velmurugan, Vivek

Where can I find good resource for jsp 0.92 ??

TIA
vivek.

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



sql question ?? rows from start with a range

2001-02-12 Thread sufi malak
Hi, how can I write an sql statment that return rows with a start row and a range, I wrote a function in my bean, this function is called threads(int start, int range), the two "?" from the prepared statment I am looking for will be replaced by "start" and "range" 
I am so sorry if this is off topic.
Your help will be appreciated.
ThanksGet your FREE download of MSN Explorer at http://explorer.msn.com

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


Session Object Persistence

2001-02-12 Thread Dan Lopez

I am using pager taglib from www.jsptags.com.  I get
data from a database fine when I get ALL the data.

However when a user enters info from a form to be used
in SQL clause, the data comes up on the first page (of
1/2/3/4/5... etc) but when you go to the next page,
the values are null.  Included is some sample code and
the error 500 that I get.  Please Help

Thanks

Dan


Sample Code

<%@ taglib uri="http://someurl.net" prefix="pg" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page session= "true" %>



<%! String field=""; %>

<% //Get the fields passed from Search request page
from form submission
  field = request.getParameter("fieldname");
  session.putValue("fieldname", field);

%>

<% //Get the fields passed from session values
String field = (String) session.getValue("fieldname");
%>

<%

  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection myConn =
DriverManager.getConnection("jdbc:odbc:test_db");
Statement stmt = myConn.createStatement();
ResultSet myResultSet = stmt.executeQuery("SELECT "
+field+ " FROM tbl_test");

%>

<%
String requestUri = request.getRequestURI();
int indexOfqm = requestUri.indexOf('?');
if (indexOfqm != -1)
requestUri = requestUri.substring(0, indexOfqm);

String style = request.getParameter("style");
%>


   <% /* keep track of style
*/ %>



  
Search
Results 

  <%
if (myResultSet != null) {
while (myResultSet.next()) {
String a = myResultSet.getString(1);
  %>
  

  

<%= a %>
 
  
  
  <%
}
 }

   stmt.close();
   myConn.close();
%>



 
  
  

[ (<%= pageNumber %>) <<
Previous ]


   <%= pageNumber %>


  [ Next >> (<%=
pageNumber %>) ]

  



ERROR===
null
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at
allaire.jrun.session.JRunSession.setAttribute(JRunSession.java:240)
at
allaire.jrun.session.JRunSession.putValue(JRunSession.java:226)
at
jrun__test__po_srch_result2ejsp18._jspService(jrun__test__po_srch_result2ejsp18.java:46)
at
allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
at
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
at
allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:175)
at
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
at
allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
at
allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
at
allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
at
allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
at
allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
at
allaire.jrun.WorkerThread.run(WorkerThread.java:75)




__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Diff bet asp & jsp

2001-02-12 Thread Hung Yee

Here's an interesting article I found at Oreilly's website that compares
J2EE with .NET in general:
http://java.oreilly.com/news/farley_0800.html

I found the article to be generally informative and avoids the 'heated'
rhetoric that often plagues discussions between Microsoft and non-Microsoft
technologies.

-Original Message-
From: Don Makoviney [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 5:52 AM
To: [EMAIL PROTECTED]
Subject: Re: Diff bet asp & jsp


Nice reply. . .thanks for the background and bio.

-Don Makoviney

-Original Message-
From: JSP Insider [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 1:42 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Diff bet asp & jsp



Good Morning Don,

I suppose I should answer this email since you asked me a pretty direct
question on my beliefs.

Hmm Am I Biased?

Let's see and examine this in more detail:

I have been programming ASP since it was first released over 3-4  years ago.

In fact I still programming in ASP today. I like ASP a lot. In fact ask any
of my co workers and they will say I am a fan and supporter of ASP. I have
successfully implemented many ASP sites.  I still have recommended and am in

process of helping start up several new ASP projects.

Hmm. Ok. So far so good.

Now let's look at JSP

I started programming Java at the same time as ASP. And I have been
programming JSP for the past year. Again I like JSP alot and again ask any
of my co workers and they will say I am a fan and supporter of JSP. Again I
have sucessfully implemented JSP sites. Again I am in the middle of setting
up JSP projects. In fact I liked JSP enough to start up the JSPInsider web
site.

Hmm Ok still So far so good all things seem pretty equal.

So now I am forced to compare the two platforms BASED ON real expereinces of

using each. And I personally find JSP to be a better server side solution
most of the time. I am not saying ASP
is a bad solution It is great solution. Read what I have written and you
will find I am an ASP supporter. But in programming both ASP and JSP I have
found from practical experience that JSP is currently the stronger solution.

Program JSP for 6 months and then make your own decisions. Don't believe
what I say or what others write. In the end it is something you have to
decide for yourself.

THE TRUTH:
JSP isn't for everyone and ASP isn't for everyone.

THE SOLUTION
Use the solution that is right for you. I just believe and my experience as
it now stands JSP is the stronger of the two systems. In a year ASP+ might
be the stronger. But you must understand my judgements are based upon hard
and true and tried experiences. Killer specs means nothing to me, they are
just specs. I have to produce a product and I will use the one right for my
customer.  So yes I suppose I am biased slighly in favor to JSP due to my
successful  experiences, But isnt everyone biased?? Obviously you are
heavily biased towards ASP+ as I can tell from the strength of your feelings

in the email! Is this bad? No of course not, expecially if it gets the job
done.  If you are living or breathing of course you will have your favorite
tool to use, based on the tools you are successful with. The real question
is are you open minded and can you be flexible to use the right tool for the

right Job!

KEEPING AN OPEN MIND
And in that I always have an open mind, that is why I build both ASP and JSP

web applications, because neither one is right for everyone. However, my
experiences and my currently perffered solution is JSP as it offers the most

maintainable and easiest to build reusable web solutions. NO amont of BETA
specs will change my mind in this since it doesn't count until production,
and this isn't a matter of being open minded but realistic. Anyone who
builds a house of cards on beta software deserves the house they build,
sometimes the gamble wins but more often the gamble loses. I hope your
programming  path in ASP+ is as smooth as you state it will be. ASP+ is a
complete rewrite of the ASP rules and in this I reserve the right to have my

have doubts until it has in production for 6 months. Once it has been in
production for six months get back in contact with me and ask me how I feel
then and please share your experiences for I will be interesting in
comparing notes. However, after looking at ASP+ and still working with ASP
3.0 I have decided its too early to make solid informed choices regarding
ASP+ until it has been in production. Until then JSP 1.1 is my first choice
75% of the time and ASP 3.0 is my choice 25% of the time.

Finally I will also say this (and I have written this in my columns before)
The chances are ASP+ will live up to some of the hype. MS has too much at
stake for it not to work right. However, I am fairly
conservation in the use of technology, since I am responsible for building
systems for other people. And this means even though I think MS will deliver

quite a bit, I never build on Beta 

Re: Off - Topic White Box Testing tool for Java Code

2001-02-12 Thread ivan

If you're thinking of unit testing (regression, etc...) check out junit
(www.junit.org)
Also, you might want to look into jython language (www.jython.com - python
written in java [my personal favorite]).
And of course there is 'JTest' from www.parasoft.com  (they have other tools
as well).  The only issue I have with JTest is that it is not free.  There
are a number of other tools out there.  All really depends on the kind of
"white-box" testing you are doing.

..oh, and TETware is also pretty popular ( http://tetworks.opengroup.org/ )
_Ivan

p.s.
if you're interested in writing test-harnesses/frameworks, I would suggest
you use either junit, or jython.. or both :)

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Shahzad Mahmood
Sent: Monday, February 12, 2001 5:26 AM
To: [EMAIL PROTECTED]
Subject: Off - Topic White Box Testing tool for Java Code


Hi All,

Can somebody tell me about any White Box testing tool available for Java
Code.
Helping efforts will be highly appreciated

Shahzad

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP developer forums...

2001-02-12 Thread Anil John

Eduardo,

Thanks for the response.. Glad that we agree that developer support in
thesed forums and listserve's are an important way of assuring the sucess
of JSP. Hopefully we will be seeing more of you guys here...

I hope to hear back from you (hopefully with some implementation
details) once the internal group discussions are complete.

Thank you also for the pointers...

Anil

On Mon, 12 Feb 2001, Eduardo Pelegri-Llopart wrote:

> Hi Anil:
>
> I, too, believe that active and useful developer forums are key to the
> success of these technologies.  Traditionally JSP-interest and
> Servlet-interest have had participation by a number of key developers at
> Sun, including both people in the specification side and the
> implementation side;  more recently, I think we have not been as present
> for a number of reasons, and this has been compounded by the success of
> the mailing list (we are by far the largest active mailing list, and
> things will just keep getting worse).  I agree that we can, should and
> must do better, and I'll bring up your concerns and suggestions to the
> appropriate internal groups.
>
> In the meantime, some, hopefully useful, pointers:
>
> * ALl mailing lists @ java.sun.com also provide a DIGEST format that can
> be used to reduce mail traffic.
> * All mailing lists @ java.sun.com provide a Web archive that is sorted
> by date, thread, author.
>   [Archive is at http://archives.java.sun.com/]
> * The ASF-related projects keep different mailing lists (-user, -dev,
> -general, ...). Relevant ASF projects include tomcat (the code basis for
> the RI), taglibs (an incubator project for JSP tag libraries), struts
> (an MVC framework using JSP and Servlets).
> * Different mailing lists hosted by the different vendors.  For example,
> I know that Allaire keeps its own mailing list, although I do not
> participate there.
>
> Hope this helps,
>
>   - eduardo pelegri-llopart
>   Web Layer Architect for the Java Platform
>
>
> > Date:Tue, 6 Feb 2001 20:30:26 -0500
> > From:Anil John <[EMAIL PROTECTED]>
> > Subject: Re: Moderated JSP Focused Lists?
> >
>
> ...
>
> >
> > out
> > there who are providing high quality assistance to people.  There is
> > active participation on listserves (100+ asp lists on www.asplists.com),
> > including Microsoft people who build the technology.
> >
> > As a JSP newbie, one of the first things I looked for was a high quality
> > listserv that served the JSP community that had active participation
> > from
> > industry experts.  With the plethora of Java based application servers
> > from Sun, IBM, Weblogic, Allaire I was expecting active participation on
> > multiple lists from Engineers and Technologists from those companies as
> > well as from community leaders and experts. Unless I have missed
> > something, the ONLY JSP focused list I found was this one.
>
> 
>
> >
> > 1. Split the JSP-INTEREST list into multiple lists.
> > e.g. JSP-Beginner,JSP-Advanced,JSP-JRun, JSP-Jakarta, JSP-JDBC etc
> >
> > 2. Encourage active participation from both internal employees as well
> > as
> > JSP vendors and community experts and authors.
> >
> > 3. Moderate the list tightly (Iron fist in the velvet glove).
> >
> > You (Sun) NEED to take an ACTIVE role here!
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>

--
___
Anil John
[EMAIL PROTECTED] [PGP Key Available]

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Session Object Persistence

2001-02-12 Thread James Klicman

Hi Dan,

First you should make sure field != null before trying to put it
in the session. That is what is causing the NullPointerException.

Then add a  tag inside the 
tag. This will add "fieldname" to the list of parameters that will
be preserved and passed to future pages.

-James

On Mon, Feb 12, 2001 at 09:02:00AM -0800, Dan Lopez wrote:
> I am using pager taglib from www.jsptags.com.  I get
> data from a database fine when I get ALL the data.
>
> However when a user enters info from a form to be used
> in SQL clause, the data comes up on the first page (of
> 1/2/3/4/5... etc) but when you go to the next page,
> the values are null.  Included is some sample code and
> the error 500 that I get.  Please Help
>
> Thanks
>
> Dan
>
>
> Sample Code
>
> <%@ taglib uri="http://someurl.net" prefix="pg" %>
> <%@ page language="java" import="java.sql.*" %>
> <%@ page session= "true" %>
>
>
> 
> <%! String field=""; %>
>
> <% //Get the fields passed from Search request page
> from form submission
>   field = request.getParameter("fieldname");
>   session.putValue("fieldname", field);
>
> %>
>
> <% //Get the fields passed from session values
> String field = (String) session.getValue("fieldname");
> %>
>
> <%
>
>   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>   Connection myConn =
> DriverManager.getConnection("jdbc:odbc:test_db");
> Statement stmt = myConn.createStatement();
> ResultSet myResultSet = stmt.executeQuery("SELECT "
> +field+ " FROM tbl_test");
>
> %>
>
> <%
> String requestUri = request.getRequestURI();
> int indexOfqm = requestUri.indexOf('?');
> if (indexOfqm != -1)
> requestUri = requestUri.substring(0, indexOfqm);
>
> String style = request.getParameter("style");
> %>
> 
> 
><% /* keep track of style
> */ %>
>  width="46%" align="center">
> 
> 
>   
> Search
> Results 
> 
>   <%
> if (myResultSet != null) {
> while (myResultSet.next()) {
> String a = myResultSet.getString(1);
>   %>
>   
>
>   
> 
> <%= a %>
>  
>   
>   
>   <%
> }
>  }
>
>stmt.close();
>myConn.close();
> %>
> 
>
> 
>  
>   
>   
> 
> [ (<%= pageNumber %>) <<
> Previous ]
> 
> 
><%= pageNumber %>
> 
> 
>   [ Next >> (<%=
> pageNumber %>) ]
> 
>   
> 
> 
>
> ERROR===
> null
> java.lang.NullPointerException
> at java.util.Hashtable.put(Unknown Source)
> at
> allaire.jrun.session.JRunSession.setAttribute(JRunSession.java:240)
> at
> allaire.jrun.session.JRunSession.putValue(JRunSession.java:226)
> at
> 
>jrun__test__po_srch_result2ejsp18._jspService(jrun__test__po_srch_result2ejsp18.java:46)
> at
> allaire.jrun.jsp.HttpJSPServlet.service(HttpJSPServlet.java:40)
> at
> allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> at
> allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> at
> allaire.jrun.servlet.JRunNamedDispatcher.forward(JRunNamedDispatcher.java:34)
> at
> allaire.jrun.jsp.JSPServlet.service(JSPServlet.java:175)
> at
> allaire.jrun.servlet.JRunSE.service(JRunSE.java:1013)
> at
> allaire.jrun.servlet.JRunSE.runServlet(JRunSE.java:925)
> at
> allaire.jrun.servlet.JRunRequestDispatcher.forward(JRunRequestDispatcher.java:88)
> at
> allaire.jrun.servlet.JRunSE.service(JRunSE.java:1131)
> at
> allaire.jrun.servlet.JvmContext.dispatch(JvmContext.java:330)
> at
> allaire.jrun.http.WebEndpoint.run(WebEndpoint.java:107)
> at allaire.jrun.ThreadPool.run(ThreadPool.java:272)
> at
> allaire.jrun.WorkerThread.run(WorkerThread.java:75)
>
>
>
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



session.setAttribute ERROR

2001-02-12 Thread Jsp Joe

.mail id: [EMAIL PROTECTED]


I am using jswdk-1.0.1
I get the following error message when i try to run the JSP given below.




Unhandled error! You might want to consider having an error page to report
such
errors more gracefully
com.sun.jsp.JspException: Compilation
failed:work\%3A8080%2Fexamples\jsp_0005cpl
aytop_0005cuserlogin_0002ejspuserlogin_jsp_2.java:106: Method
setAttribute(java.
lang.String, playtop.User) not found in interface
javax.servlet.http.HttpSession
.
session.setAttribute("user", user);
^




THE JSP :

---
<%@ page language="java" import="playtop.*, java.util.*" %>





<% String moveto = "userlogin.html";

User user = loginBean.checkuser();

if (user != null) {
session.setAttribute("user", user);
System.out.println("User Logged in : " + user);
session.setMaxInactiveInterval(1000);
moveto = "showtoplists.jsp";
}
%>



---

THE BEAN its using


package playtop;


public class Login {

private String username = "";
private String password = "";

public Login() { }

public void setUsername(String username) {
this.username = username;
}

public void setPassword(String password) {
this.password = password;
}

public User checkuser() {
if (username.equals("clive") && password.equals("bigboy")) {
return new User("clive");
} else if (username.equals("rahul") && password.equals("themaster")) {
return new User("rahul");
} else if (username.equals("nitin") && password.equals("married")) {
return new User("nitin");
} else {
return null;
}
}
}

--

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP Server with IIS

2001-02-12 Thread Daryani Santosh

You can download JRun 3.0 from Allaire.com.  Configuring it with IIS 5.0 is easy
, once you begin installing
throught the install wizard you come to a section that says "Connection Wizard"
. This section provides a dropdown for
the available web server , IIS 5.0 is one of the the options. Select that and
set the scripts directory.
   JRun 3.0 CD was distributed free a few months back with the JavaDevelopers
Journal , so if you know anyone who subsribes to that you can get a copy, but
its a developer license.
Allaire is conducting a free seminar for JRun all over US in the next few
months , if interested check their website to find the one nearest to you.




Santosh






suying <[EMAIL PROTECTED]> on 12/22/2000 01:34:53 AM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  Re: JSP Server with IIS



Hello,Can you tell me where to get jrun3.0 and configure it with IIS?
suying
- Original Message -
From: "amar singhal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 19, 2000 5:44 PM
Subject: Re: JSP Server with IIS


> Hi
> Jrun 3.0 can be configured with the iis 5.0 as the jsp and servlet engine
>
>
> >From: Zahid Khan <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: JSP Server with IIS
> >Date: Tue, 19 Dec 2000 14:15:36 +0500
> >
> >Hi Dear,
> >
> >Which JSP Engines can be configured with IIS 5.0 except ServletExec.
> >Wchi JSP Server Provides integrated team development envoirnment?
> >
> >Thanks in Advance,
> >Zahid Khan
> >
> >
> >_
> >Do You Yahoo!?
> >Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >===
> >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:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Java Date Class problem

2001-02-12 Thread Daryani Santosh

check your for loop , it says i=1 , i < 27 ofcourse it will print 25 values ,
change your for loop terminating condition

Santosh








Senaka Suriyaarachchi <[EMAIL PROTECTED]> on 12/22/2000 03:15:37 AM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  Java Date Class problem



Hi All
I tried to show drop down list with next 30 dates. but it doesn't work. It
correctly add up to 25 days after that it show previous days. Please advice
me.

BR
Senaka



<%@ page language="java" import="java.sql.*, java.util.Date"%>



Untitled



<%
Date nd = new Date();
long lnd = nd.getTime();
Date todate = new Date(lnd);
String today = todate.toString();
java.sql.Date dbday = new  java.sql.Date(lnd);
long lndnew = lnd;
%>



Reservation Date

<% for(int i=1; i<27; i++){%>
<%= (new
java.sql.Date(lndnew + i*24*60*60*1000))%>
<% }%>










===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



A little Grasshopper + JSP ???

2001-02-12 Thread Jsp Joe

Hi,

Everybody's heard of the story of the grasshopper who sang all
summer...well time to meet one.

Whats this to do with JSP, I hear you ask.its a long story.

It all starts off with project that I have to do as my final year
engineering project. Me and my group contact this company who agree to
give us a project. Before that they ask us to learn JSP and do a small
program and submit within a week. That was 8 mths ago.

After that starts  a saga of downloading Apache web server, Tomcat, Java
engines...and actually tryin to set them up on my Celeron 466Well 2 mths
and a lot of mails, JUGS, Boards later.I finally get JSWDK-1.0.1  up and
runnin...then the exam dates are announced.so its bye bye project
..down to the books...

I study for my exams and decide that as soon as the exams are over i am
gonna dive right into making this small example for the company guyz  so
that we can at least start the project...but a few days before the exams
..NEWS: Exams postponed..

Well the exams finally got over a month ago. and i get working on  a
small JSP prog using beans..A month later..here I amfrustruated,
depressed...looking for one last hope...

If you are wondering where exactly are the other members of my group through
all this.beats methe poor ppls proggramming knowledge is limited to
a very basic C so even if they wanted to they wouldn't be of very much help.

Now I really need to do this project well..because after I finish this I
want to work in the same company  Its like my dream place to work
in.small place..but so much potential for growth

So, I need a messiah..

Someone to help me get done in a couple of months what was supposed to have
been done over a period of 6 mths...

If there is someone out there who is willing to help this poor grasshopper
in need...I'll be indebted to them all my life...I'll clean your floors
.do the dishes..anything.JUST HELP ME!!

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Session Object Persistence

2001-02-12 Thread Dan Lopez

James,

Here is my current (sample) code I am working with.  I
Now do not get a null pointer exception.  But now the
first page with the first 10 rows from query come up.
Then when I go to next pages, the counter is there but
no data. Not even rows with null values.

Any ideas would be helpful.

This little thing is causing such a headache!

Thanks for all the help.

SAMPLE
CODE

<%@ taglib uri="http://someurl.net" prefix="pg" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page session= "true" %>




A.nodec { text-decoration: none; }






<% //Get the fields passed from Search request page
from form submission
  String field = request.getParameter("fieldname");
  String field2 = request.getParameter("fieldname2");
  String equal = request.getParameter("equals");
  String sqlstmts = request.getParameter("sqlstmt");
%>


<%

  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection myConn =
DriverManager.getConnection("jdbc:odbc:cpedb");
Statement stmt = myConn.createStatement();
ResultSet myResultSet = stmt.executeQuery("SELECT
"+field+" FROM tbl_cpetest"+
" WHERE " +field2+ "='" 
+sqlstmts+ "'");

%>

<%
String requestUri = request.getRequestURI();
int indexOfqm = requestUri.indexOf('?');
if (indexOfqm != -1)
requestUri = requestUri.substring(0, indexOfqm);

String style = request.getParameter("style");
%>



 <% /* keep track of style and
variables */ %>
 <% /* keep track of variables
*/ %>
 <% /* keep track of
variables */ %>
 <% /* keep track of
variables */ %>




  
Search
Results 

  <%
if (myResultSet != null) {
while (myResultSet.next()) {
String a = myResultSet.getString(1);
  %>
  

  

<%= a %>
 
  
  
  <%
}
 }

   stmt.close();
   myConn.close();
%>



 
  
  

[ (<%= pageNumber %>) <<
Previous ]


   <%= pageNumber %>


  [ Next >> (<%=
pageNumber %>) ]

  





--- James Klicman <> wrote:
> Hi Dan,
>
> First you should make sure field != null before
> trying to put it
> in the session. That is what is causing the
> NullPointerException.
>
> Then add a  tag inside
> the 
> tag. This will add "fieldname" to the list of
> parameters that will
> be preserved and passed to future pages.
>
> -James
>
> On Mon, Feb 12, 2001 at 09:02:00AM -0800, Dan Lopez
> wrote:
> > I am using pager taglib from www.jsptags.com.  I
> get
> > data from a database fine when I get ALL the data.
> >
> > However when a user enters info from a form to be
> used
> > in SQL clause, the data comes up on the first page
> (of
> > 1/2/3/4/5... etc) but when you go to the next
> page,
> > the values are null.  Included is some sample code
> and
> > the error 500 that I get.  Please Help
> >
> > Thanks
> >
> > Dan
> >
> >
> > Sample Code
> >
> > <%@ taglib uri="http://someurl.net" prefix="pg" %>
> > <%@ page language="java" import="java.sql.*" %>
> > <%@ page session= "true" %>
> >
> >
> > 
> > <%! String field=""; %>
> >
> > <% //Get the fields passed from Search request
> page
> > from form submission
> >   field = request.getParameter("fieldname");
> >   session.putValue("fieldname", field);
> >
> > %>
> >
> > <% //Get the fields passed from session values
> > String field = (String)
> session.getValue("fieldname");
> > %>
> >
> > <%
> >
> >   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> >   Connection myConn =
> > DriverManager.getConnection("jdbc:odbc:test_db");
> > Statement stmt = myConn.createStatement();
> > ResultSet myResultSet =
> stmt.executeQuery("SELECT "
> > +field+ " FROM tbl_test");
> >
> > %>
> >
> > <%
> > String requestUri =
> request.getRequestURI();
> > int indexOfqm = requestUri.indexOf('?');
> > if (indexOfqm != -1)
> > requestUri =
> requestUri.substring(0, indexOfqm);
> >
> > String style =
> request.getParameter("style");
> > %>
> > 
> >  maxPageItems="<%=
> > 10 %>">
> ><% /* keep track of
> style
> > */ %>
> >  > width="46%" align="center">
> > 
> > 
> >   
> > Search
> > Results 
> > 
> >   <%
> > if (myResultSet != null) {
> > while (myResultSet.next())
> {
> > String a =
> myResultSet.getString(1);
> >   %>
> >   
> >
> >   
> > 
> > <%= a %>
> >  
> >   
> >   
> >   <%
> > }
> >  }
> >
> >stmt.close();
> >myConn.close();
> > %>
> > 
> >
> > 
> >  
> >   
> >   
> > 
> > [ (<%= pageNumber %>)
> <<
> > Previous ]
> > 
> > 
> ><%= pageNumber
> %>
> > 
> > 
> >   [ Next >> 

Re: A little Grasshopper + JSP ???

2001-02-12 Thread Falls Travis

JSP Joe,
You need to give specifics about the project/ environment before I know if I
can offer any insight.

Travis

This isn't really list worthy since you aren't asking specific questions so
take it off line


-Original Message-
From: Jsp Joe [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 1:10 PM
To: [EMAIL PROTECTED]
Subject: A little Grasshopper + JSP ???


Hi,

Everybody's heard of the story of the grasshopper who sang all
summer...well time to meet one.

Whats this to do with JSP, I hear you ask.its a long story.

It all starts off with project that I have to do as my final year
engineering project. Me and my group contact this company who agree to
give us a project. Before that they ask us to learn JSP and do a small
program and submit within a week. That was 8 mths ago.

After that starts  a saga of downloading Apache web server, Tomcat, Java
engines...and actually tryin to set them up on my Celeron 466Well 2 mths
and a lot of mails, JUGS, Boards later.I finally get JSWDK-1.0.1  up and
runnin...then the exam dates are announced.so its bye bye project
..down to the books...

I study for my exams and decide that as soon as the exams are over i am
gonna dive right into making this small example for the company guyz  so
that we can at least start the project...but a few days before the exams
..NEWS: Exams postponed..

Well the exams finally got over a month ago. and i get working on  a
small JSP prog using beans..A month later..here I amfrustruated,
depressed...looking for one last hope...

If you are wondering where exactly are the other members of my group through
all this.beats methe poor ppls proggramming knowledge is limited to
a very basic C so even if they wanted to they wouldn't be of very much help.

Now I really need to do this project well..because after I finish this I
want to work in the same company  Its like my dream place to work
in.small place..but so much potential for growth

So, I need a messiah..

Someone to help me get done in a couple of months what was supposed to have
been done over a period of 6 mths...

If there is someone out there who is willing to help this poor grasshopper
in need...I'll be indebted to them all my life...I'll clean your floors
.do the dishes..anything.JUST HELP ME!!

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Session Object Persistence

2001-02-12 Thread James Klicman

The problem is that the url parameter name is "sqlstmt" and
you put  instead.

-James

On Mon, Feb 12, 2001 at 12:14:44PM -0800, Dan Lopez wrote:
> James,
>
> Here is my current (sample) code I am working with.  I
> Now do not get a null pointer exception.  But now the
> first page with the first 10 rows from query come up.
> Then when I go to next pages, the counter is there but
> no data. Not even rows with null values.
>
> Any ideas would be helpful.
>
> This little thing is causing such a headache!
>
> Thanks for all the help.
>
> SAMPLE
> CODE
>
> <%@ taglib uri="http://someurl.net" prefix="pg" %>
> <%@ page language="java" import="java.sql.*" %>
> <%@ page session= "true" %>
>
> 
> 
> 
> A.nodec { text-decoration: none; }
> 
> 
> 
>
>
>
> <% //Get the fields passed from Search request page
> from form submission
>   String field = request.getParameter("fieldname");
>   String field2 = request.getParameter("fieldname2");
>   String equal = request.getParameter("equals");
>   String sqlstmts = request.getParameter("sqlstmt");
> %>
>
>
> <%
>
>   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>   Connection myConn =
> DriverManager.getConnection("jdbc:odbc:cpedb");
> Statement stmt = myConn.createStatement();
> ResultSet myResultSet = stmt.executeQuery("SELECT
> "+field+" FROM tbl_cpetest"+
> " WHERE " +field2+ "='" 
>+sqlstmts+ "'");
>
> %>
>
> <%
> String requestUri = request.getRequestURI();
> int indexOfqm = requestUri.indexOf('?');
> if (indexOfqm != -1)
> requestUri = requestUri.substring(0, indexOfqm);
>
> String style = request.getParameter("style");
> %>
> 
> 
>
>  <% /* keep track of style and
> variables */ %>
>  <% /* keep track of variables
> */ %>
>  <% /* keep track of
> variables */ %>
>  <% /* keep track of
> variables */ %>
>
>  width="46%" align="center">
> 
> 
>   
> Search
> Results 
> 
>   <%
> if (myResultSet != null) {
> while (myResultSet.next()) {
> String a = myResultSet.getString(1);
>   %>
>   
>
>   
> 
> <%= a %>
>  
>   
>   
>   <%
> }
>  }
>
>stmt.close();
>myConn.close();
> %>
> 
>
> 
>  
>   
>   
> 
> [ (<%= pageNumber %>) <<
> Previous ]
> 
> 
><%= pageNumber %>
> 
> 
>   [ Next >> (<%=
> pageNumber %>) ]
> 
>   
> 
> 
> 
> 
>
> --- James Klicman <> wrote:
> > Hi Dan,
> >
> > First you should make sure field != null before
> > trying to put it
> > in the session. That is what is causing the
> > NullPointerException.
> >
> > Then add a  tag inside
> > the 
> > tag. This will add "fieldname" to the list of
> > parameters that will
> > be preserved and passed to future pages.
> >
> > -James
> >
> > On Mon, Feb 12, 2001 at 09:02:00AM -0800, Dan Lopez
> > wrote:
> > > I am using pager taglib from www.jsptags.com.  I
> > get
> > > data from a database fine when I get ALL the data.
> > >
> > > However when a user enters info from a form to be
> > used
> > > in SQL clause, the data comes up on the first page
> > (of
> > > 1/2/3/4/5... etc) but when you go to the next
> > page,
> > > the values are null.  Included is some sample code
> > and
> > > the error 500 that I get.  Please Help
> > >
> > > Thanks
> > >
> > > Dan
> > >
> > >
> > > Sample Code
> > >
> > > <%@ taglib uri="http://someurl.net" prefix="pg" %>
> > > <%@ page language="java" import="java.sql.*" %>
> > > <%@ page session= "true" %>
> > >
> > >
> > > 
> > > <%! String field=""; %>
> > >
> > > <% //Get the fields passed from Search request
> > page
> > > from form submission
> > >   field = request.getParameter("fieldname");
> > >   session.putValue("fieldname", field);
> > >
> > > %>
> > >
> > > <% //Get the fields passed from session values
> > > String field = (String)
> > session.getValue("fieldname");
> > > %>
> > >
> > > <%
> > >
> > >   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
> > >   Connection myConn =
> > > DriverManager.getConnection("jdbc:odbc:test_db");
> > > Statement stmt = myConn.createStatement();
> > > ResultSet myResultSet =
> > stmt.executeQuery("SELECT "
> > > +field+ " FROM tbl_test");
> > >
> > > %>
> > >
> > > <%
> > > String requestUri =
> > request.getRequestURI();
> > > int indexOfqm = requestUri.indexOf('?');
> > > if (indexOfqm != -1)
> > > requestUri =
> > requestUri.substring(0, indexOfqm);
> > >
> > > String style =
> > request.getParameter("style");
> > > %>
> > > 
> > >  > maxPageItems="<%=
> > > 10 %>">
> > ><% /* keep track of
> > style
> > > */ %>
> > >  > > width="46%" align="center">
> > > 
> > > 
> >

Re: Session Object Persistence

2001-02-12 Thread Dan Lopez

James,

I dont get a null exception any more, however, I am
getting a strange result.  I get the first ten.  Then
when I go to the 1/2/3/4 etc it is blank, except for
the links.  There is no data, not even rows with null
values.  Any ideas would help eliminate my headache ;)

-Dan

Sample Code===

<%@ taglib uri="http://someurl" prefix="pg" %>
<%@ page language="java" import="java.sql.*" %>
<%@ page session= "true" %>




A.nodec { text-decoration: none; }




<% //Get the fields passed from Search request page
from form submission
  String field = request.getParameter("fieldname");
  String field2 = request.getParameter("fieldname2");
  String equal = request.getParameter("equals");
  String sqlstmts = request.getParameter("sqlstmt");
%>


<%

  Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
  Connection myConn =
DriverManager.getConnection("jdbc:odbc:cpedb");
Statement stmt = myConn.createStatement();
ResultSet myResultSet = stmt.executeQuery("SELECT
"+field+" FROM tbl_cpetest"+
" WHERE " +field2+ "='" 
+sqlstmts+ "'");

%>

<%
String requestUri = request.getRequestURI();
int indexOfqm = requestUri.indexOf('?');
if (indexOfqm != -1)
requestUri = requestUri.substring(0, indexOfqm);

String style = request.getParameter("style");
%>



 <% /* keep track of style and
variables */ %>
 <% /* keep track of variables
*/ %>
 <% /* keep track of
variables */ %>
 <% /* keep track of
variables */ %>




  
Search
Results 

  <%
if (myResultSet != null) {
while (myResultSet.next()) {
String a = myResultSet.getString(1);
  %>
  

  

<%= a %>
 
  
  
  <%
}
 }

   stmt.close();
   myConn.close();
%>



 
  
  

[ (<%= pageNumber %>) <<
Previous ]


   <%= pageNumber %>


  [ Next >> (<%=
pageNumber %>) ]

  






__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: GUI Capabilities

2001-02-12 Thread Jayson Falkner

Willard,

You can have JSP output DHTML to accomplish a menubar effect on client's
browsers. There is an example of this at http://www.jspinsider.com .

And a DHTML widgit for it at:
http://www.jspinsider.com/dhtmlkit/menu/dkit_menu.html

Jayson Falkner
V.P./CTO, Amberjack Software LLC
[EMAIL PROTECTED]
www.jspinsider.com

- Original Message -
From: "Thompson, Willard (GTICCC)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 7:00 AM
Subject: GUI Capabilities


> Hello,
>
> Does anyone know if you can develop menubars by using JSP's and not applet
> technology?
>
> Willard
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: A little Grasshopper + JSP ???

2001-02-12 Thread Duc Nguyen

Hi Joe,
I am an ASP programmer and recently I am trying to learn JSP your project sound like a good practice for me if you don't mind that I am new to this stuff give me your spec and tell me exactly what you want me to help you with.  You can email me at [EMAIL PROTECTED]
thanks,
Duc

>From: Jsp Joe <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: A little Grasshopper + JSP ???
>Date: Mon, 12 Feb 2001 23:40:04 +0530
>
>Hi,
>
>Everybody's heard of the story of the grasshopper who sang all
>summer...well time to meet one.
>
>Whats this to do with JSP, I hear you ask.its a long story.
>
>It all starts off with project that I have to do as my final year
>engineering project. Me and my group contact this company who agree to
>give us a project. Before that they ask us to learn JSP and do a small
>program and submit within a week. That was 8 mths ago.
>
>After that starts a saga of downloading Apache web server, Tomcat, Java
>engines...and actually tryin to set them up on my Celeron 466Well 2 mths
>and a lot of mails, JUGS, Boards later.I finally get JSWDK-1.0.1 up and
>runnin...then the exam dates are announced.so its bye bye project
>..down to the books...
>
>I study for my exams and decide that as soon as the exams are over i am
>gonna dive right into making this small example for the company guyz so
>that we can at least start the project...but a few days before the exams
>..NEWS: Exams postponed..
>
>Well the exams finally got over a month ago. and i get working on a
>small JSP prog using beans..A month later..here I amfrustruated,
>depressed...looking for one last hope...
>
>If you are wondering where exactly are the other members of my group through
>all this.beats methe poor ppls proggramming knowledge is limited to
>a very basic C so even if they wanted to they wouldn't be of very much help.
>
>Now I really need to do this project well..because after I finish this I
>want to work in the same company  Its like my dream place to work
>in.small place..but so much potential for growth
>
>So, I need a messiah..
>
>Someone to help me get done in a couple of months what was supposed to have
>been done over a period of 6 mths...
>
>If there is someone out there who is willing to help this poor grasshopper
>in need...I'll be indebted to them all my life...I'll clean your floors
>.do the dishes..anything.JUST HELP ME!!
>
>===
>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:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
Get your FREE download of MSN Explorer at http://explorer.msn.com

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


Re: A little Grasshopper + JSP ???

2001-02-12 Thread Jayson Falkner

Jsp Joe,

You will have to do your own work but I can help with some direction. Here
is a site with a lot of JSP information including tutorials.
http://www.jspinsider.com

I would also suggest you read a good book on JSP. Wrox has a great one
called "Professional JSP".
http://www.jspinsider.com/reference/book/archive/ProfessionalJSP.html

Jayson Falkner
V.P./CTO, Amberjack Software LLC
[EMAIL PROTECTED]
www.jspinsider.com


- Original Message -
From: "Jsp Joe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 10:10 AM
Subject: A little Grasshopper + JSP ???


> Hi,
>
> Everybody's heard of the story of the grasshopper who sang all
> summer...well time to meet one.
>
> Whats this to do with JSP, I hear you ask.its a long story.
>
> It all starts off with project that I have to do as my final year
> engineering project. Me and my group contact this company who agree to
> give us a project. Before that they ask us to learn JSP and do a small
> program and submit within a week. That was 8 mths ago.
>
> After that starts  a saga of downloading Apache web server, Tomcat, Java
> engines...and actually tryin to set them up on my Celeron 466Well 2
mths
> and a lot of mails, JUGS, Boards later.I finally get JSWDK-1.0.1  up
and
> runnin...then the exam dates are announced.so its bye bye project
> ..down to the books...
>
> I study for my exams and decide that as soon as the exams are over i am
> gonna dive right into making this small example for the company guyz  so
> that we can at least start the project...but a few days before the exams
> ..NEWS: Exams postponed..
>
> Well the exams finally got over a month ago. and i get working on  a
> small JSP prog using beans..A month later..here I amfrustruated,
> depressed...looking for one last hope...
>
> If you are wondering where exactly are the other members of my group
through
> all this.beats methe poor ppls proggramming knowledge is limited
to
> a very basic C so even if they wanted to they wouldn't be of very much
help.
>
> Now I really need to do this project well..because after I finish this I
> want to work in the same company  Its like my dream place to work
> in.small place..but so much potential for growth
>
> So, I need a messiah..
>
> Someone to help me get done in a couple of months what was supposed to
have
> been done over a period of 6 mths...
>
> If there is someone out there who is willing to help this poor grasshopper
> in need...I'll be indebted to them all my life...I'll clean your
floors
> .do the dishes..anything.JUST HELP ME!!
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: A little Grasshopper + JSP ???

2001-02-12 Thread Shawn Zhu

empty promises...And the fact you alienate your group mates
shows that you are not a team player.  Plus, you have very
little confidence in your teammates which is a reflection
of lack of self-confidence. =)

Anyway, OO programming is about divide and conquer.  Hey I
just want to critisize, everyone does!  haha.

> -Original Message-
> From: Jsp Joe [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 10:10 AM
> To: [EMAIL PROTECTED]
> Subject: A little Grasshopper + JSP ???
>
>
> Hi,
>
> Everybody's heard of the story of the grasshopper who sang all
> summer...well time to meet one.
>
> Whats this to do with JSP, I hear you ask.its a long story.
>
> It all starts off with project that I have to do as my final year
> engineering project. Me and my group contact this company
> who agree to
> give us a project. Before that they ask us to learn JSP and do a small
> program and submit within a week. That was 8 mths ago.
>
> After that starts  a saga of downloading Apache web server,
> Tomcat, Java
> engines...and actually tryin to set them up on my Celeron
> 466Well 2 mths
> and a lot of mails, JUGS, Boards later.I finally get
> JSWDK-1.0.1  up and
> runnin...then the exam dates are announced.so its bye
> bye project
> ..down to the books...
>
> I study for my exams and decide that as soon as the exams are
> over i am
> gonna dive right into making this small example for the
> company guyz  so
> that we can at least start the project...but a few days
> before the exams
> ..NEWS: Exams postponed..
>
> Well the exams finally got over a month ago. and i get
> working on  a
> small JSP prog using beans..A month later..here I
> amfrustruated,
> depressed...looking for one last hope...
>
> If you are wondering where exactly are the other members of
> my group through
> all this.beats methe poor ppls proggramming knowledge
> is limited to
> a very basic C so even if they wanted to they wouldn't be of
> very much help.
>
> Now I really need to do this project well..because after I
> finish this I
> want to work in the same company  Its like my dream place to work
> in.small place..but so much potential for growth
>
> So, I need a messiah..
>
> Someone to help me get done in a couple of months what was
> supposed to have
> been done over a period of 6 mths...
>
> If there is someone out there who is willing to help this
> poor grasshopper
> in need...I'll be indebted to them all my life...I'll
> clean your floors
> .do the dishes..anything.JUST HELP ME!!
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: A little Grasshopper + JSP ???

2001-02-12 Thread Daryani Santosh

Joe,
We can surely help you out. The softwares you need will be
An JSP/Servlet Container
A Web Server
JDK
IDE - an interface for writing java programs , jsps and servlets.

You can get the latest JDK from the sun site at java.sun.com , also download the
documentation

For a web server if you are using microsoft as your platform you can Personal
Web Server or IIS.
If you want to go with free ware you can get Apache Web server.

Finally getting a JSP/Servlet container.
There are a lot of containers available for free , most of them also have a
specific forum that addresses
their installation , troubleshooting and configuration issues.

This is a decision you have to make. Some of the popular and easy to configure
engines are Tomcat and JRun
You can get JRun from allaire web site. JRun as a JSP container can use IIS ,
Personal Web Server , Apache or
you can use JRun without any web server and use JRun itself as a web server.

Tomcat is also pretty good.

For writing JSPs you can get any free development tool like Forte , Kawa ,
Homesite . If you don't like to use an IDE
directly use Textpad , notepad or any other text editor .

There are a lot of sites that have JSP tutorials , visit some useful JSP sites
JSPInsider.com , JGuru.com , java.sun.com.products/jsp , coreservlets.com.




hope that helps
Santosh








Jsp Joe <[EMAIL PROTECTED]> on 02/12/2001 01:10:04 PM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  A little Grasshopper + JSP ???



Hi,

Everybody's heard of the story of the grasshopper who sang all
summer...well time to meet one.

Whats this to do with JSP, I hear you ask.its a long story.

It all starts off with project that I have to do as my final year
engineering project. Me and my group contact this company who agree to
give us a project. Before that they ask us to learn JSP and do a small
program and submit within a week. That was 8 mths ago.

After that starts  a saga of downloading Apache web server, Tomcat, Java
engines...and actually tryin to set them up on my Celeron 466Well 2 mths
and a lot of mails, JUGS, Boards later.I finally get JSWDK-1.0.1  up and
runnin...then the exam dates are announced.so its bye bye project
..down to the books...

I study for my exams and decide that as soon as the exams are over i am
gonna dive right into making this small example for the company guyz  so
that we can at least start the project...but a few days before the exams
..NEWS: Exams postponed..

Well the exams finally got over a month ago. and i get working on  a
small JSP prog using beans..A month later..here I amfrustruated,
depressed...looking for one last hope...

If you are wondering where exactly are the other members of my group through
all this.beats methe poor ppls proggramming knowledge is limited to
a very basic C so even if they wanted to they wouldn't be of very much help.

Now I really need to do this project well..because after I finish this I
want to work in the same company  Its like my dream place to work
in.small place..but so much potential for growth

So, I need a messiah..

Someone to help me get done in a couple of months what was supposed to have
been done over a period of 6 mths...

If there is someone out there who is willing to help this poor grasshopper
in need...I'll be indebted to them all my life...I'll clean your floors
.do the dishes..anything.JUST HELP ME!!

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Java Date Class problem

2001-02-12 Thread Shawn Zhu

hahah...dang, wonder how much his company pays him.
This just need some basic debugging and code reviewing.

Well I guess if you are frustrated you can just over look
certain intricate things.  Forgivable. heh

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 12:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Java Date Class problem
>
>
> check your for loop , it says i=1 , i < 27 ofcourse it will
> print 25 values ,
> change your for loop terminating condition
>
> Santosh
>
>
>
>
>
>
>
>
> Senaka Suriyaarachchi <[EMAIL PROTECTED]> on
> 12/22/2000 03:15:37 AM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  Java Date Class problem
>
>
>
> Hi All
> I tried to show drop down list with next 30 dates. but it
> doesn't work. It
> correctly add up to 25 days after that it show previous days.
> Please advice
> me.
>
> BR
> Senaka
>
>
> 
> <%@ page language="java" import="java.sql.*, java.util.Date"%>
> 
> 
> 
> Untitled
> 
>
> 
> <%
> Date nd = new Date();
> long lnd = nd.getTime();
> Date todate = new Date(lnd);
> String today = todate.toString();
> java.sql.Date dbday = new  java.sql.Date(lnd);
> long lndnew = lnd;
> %>
> 
> 
> 
> Reservation Date
> 
> <% for(int i=1; i<27; i++){%>
> <%= (new
> java.sql.Date(lndnew + i*24*60*60*1000))%>
> <% }%>
> 
> 
>  value="Reserv">
> 
> 
> 
>
> 
> 
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Diff bet asp & jsp

2001-02-12 Thread Geert Van Damme

OK,
now we don't have out of the office replies;
off topic questions
Stupid irrelevant answers,
but also the worst of all.
Trolls.

Please go away, and bother someone else.
>From your mail it's very clear you don't know anything about either JSP/
Java not .Net/C#

just FYI, .Net doesn't really exists yet! in that case it's easy to tell how
fantastic it is.
Please show me the first side that uses that technology and does something
meaningful with it.
Ok, by then, we're 4 years further. Let's talk then.
In the meantime, we use JSP.

Geert Van Damme

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Don Makoviney
> Sent: vrijdag 9 februari 2001 19:31
> To: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp
>
>
> Obviously you are biased in your decision, but in addition you obviously
> have not read too much about ASP.NET have you?
>
> JSP's one big argument (portability to other servers) is going to be blown
> away by ASP.NET
>
> Not only that, but you can program in ANY language in .NET - not just
> "their" C# or VB.NET, but Java and even COBOL if you want to. And you can
> program in any language equally as well - it doesn't treat non-native
> languages like second-class citizens.
>
> Try programming in JSP with something other than JAVA technologies. . . .
> .not that easy is it? It will be a piece of cake with ASP.NET.
>
> I don't think that JSP is going anywhere soon (meaning, JSP guys probably
> aren't going to be out looking for new jobs anytime soon). . .
> .but the new
> ASP.NET looks VERY promising.
>
> I'm busy today, but in a day or so I can post some pretty killer specs if
> you all like. . . .
>
> Don Makoviney
>
> -Original Message-
> From: JSP Insider [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp
>
>
> HI Srinivas,
>
> I have written quite a bit on the differences between ASP and JSP
> which you
> can find at www.jspinsider.com.
>
> However, the reason I am responding is I wanted to add something
> additional
> to what can be found in the asp / jsp articles I have written
>
> I now feel as a general rule of thumb JSP should be your first choice over
> ASP unless you have a overriding business reason to use ASP.
>
> The reason: Tag libraries and JSP version 1.2 coming out in the future
>
> ASP has nothing like tag libraries and they add flexiblity and ease of
> maintenance you will never see in ASP.
>
> Also version 1.2 of JSP improves JSP to the point that I feel JSP is
> currently a stronger platform for server side development. Overall, I feel
> JSP offers a better solution for long term maintainance and ease of
> programming over ASP.
>
> Casey Kochmer
> President Amberjack Software LLC
> [EMAIL PROTECTED]
>
> >From: "Srinivas K. R." <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Diff bet asp & jsp
> >Date: Tue, 6 Feb 2001 00:58:12 +0530
> >
> >Hi
> >I am developing an Web application
> >I am in a confussion whether i use ASP or JSP.
> >I want to know the difference between ASP & JSP
> >and also tell me which technology is better and why?
> >
> >Cheers
> >Srinivas
> >
> >=
> ==
> >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:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> _
> Get your FREE download of MSN Explorer at http://explorer.msn.com
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?na

Re: Java Date Class problem

2001-02-12 Thread Dawei Jiang

Try my code instead, it's proved work. Java Date is an monster, when you
need to move foward and backword of a Date, I usually use Calendar to help
(it has add() method),

You sure can work other way out, but I believe this solution is simple and
handy, also attach another method to add and substract Date. hope this will
help.

Rewrite your code
to -->
<%@ page language="java" import="java.sql.*, java.util.*"%>
<%

  java.util.Calendar cal =
java.util.Calendar.getInstance();
  cal.setTime(new
java.sql.Date(System.currentTimeMillis()));
  int duration = 30; //System.getProperty("myDuration");
use this to store info in property file instead of hard coding
 %>



Reservation Date

<%

for(int i=1; i<=duration; i++){
cal.add(Calendar.DATE, 1);
java.sql.Date date = new
java.sql.Date(cal.getTime().getTime());
%>
<%= date%>
<%
}
%>








-->

Bonus method, put in an int to indicate how many days your want to add or
substract from the passing date, if dealing with current, passing Date is
new Date();


--->
public java.sql.Date dateAdvance(java.sql.Date date, int offset)
  {
  java.util.Calendar cal = java.util.Calendar.getInstance();
  cal.setTime(date);
  cal.add(Calendar.DATE, offset);
  date = new java.sql.Date(cal.getTime().getTime());
  return date;
  }

--->

Good luck.

Dawei

Momentum Software Inc


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Senaka Suriyaarachchi
Sent: Friday, December 22, 2000 2:16 AM
To: [EMAIL PROTECTED]
Subject: Java Date Class problem


Hi All
I tried to show drop down list with next 30 dates. but it doesn't work. It
correctly add up to 25 days after that it show previous days. Please advice
me.

BR
Senaka



<%@ page language="java" import="java.sql.*, java.util.Date"%>



Untitled



<%
Date nd = new Date();
long lnd = nd.getTime();
Date todate = new Date(lnd);
String today = todate.toString();
java.sql.Date dbday = new  java.sql.Date(lnd);
long lndnew = lnd;
%>



Reservation Date

<% for(int i=1; i<27; i++){%>
<%=
(new
java.sql.Date(lndnew + i*24*60*60*1000))%>
<% }%>










===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: A little Grasshopper + JSP ???

2001-02-12 Thread Shawn Zhu

talking about Forte for J, it seems abit better than Jbuilder IMHO.

Daryani, did you ever use Forte's compile all function?  It seems that
it will stop compiling the rest of the .java files in the project if
it encounter some errors compiling the first few.  Is there a way to
have it continue to compile the rest of the files in the project?

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: A little Grasshopper + JSP ???
>
>
> Joe,
> We can surely help you out. The softwares you need will be
> An JSP/Servlet Container
> A Web Server
> JDK
> IDE - an interface for writing java programs , jsps and servlets.
>
> You can get the latest JDK from the sun site at java.sun.com
> , also download the
> documentation
>
> For a web server if you are using microsoft as your platform
> you can Personal
> Web Server or IIS.
> If you want to go with free ware you can get Apache Web server.
>
> Finally getting a JSP/Servlet container.
> There are a lot of containers available for free , most of
> them also have a
> specific forum that addresses
> their installation , troubleshooting and configuration issues.
>
> This is a decision you have to make. Some of the popular and
> easy to configure
> engines are Tomcat and JRun
> You can get JRun from allaire web site. JRun as a JSP
> container can use IIS ,
> Personal Web Server , Apache or
> you can use JRun without any web server and use JRun itself
> as a web server.
>
> Tomcat is also pretty good.
>
> For writing JSPs you can get any free development tool like
> Forte , Kawa ,
> Homesite . If you don't like to use an IDE
> directly use Textpad , notepad or any other text editor .
>
> There are a lot of sites that have JSP tutorials , visit some
> useful JSP sites
> JSPInsider.com , JGuru.com , java.sun.com.products/jsp ,
> coreservlets.com.
>
>
>
>
> hope that helps
> Santosh
>
>
>
>
>
>
>
>
> Jsp Joe <[EMAIL PROTECTED]> on 02/12/2001 01:10:04 PM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  A little Grasshopper + JSP ???
>
>
>
> Hi,
>
> Everybody's heard of the story of the grasshopper who sang all
> summer...well time to meet one.
>
> Whats this to do with JSP, I hear you ask.its a long story.
>
> It all starts off with project that I have to do as my final year
> engineering project. Me and my group contact this company
> who agree to
> give us a project. Before that they ask us to learn JSP and do a small
> program and submit within a week. That was 8 mths ago.
>
> After that starts  a saga of downloading Apache web server,
> Tomcat, Java
> engines...and actually tryin to set them up on my Celeron
> 466Well 2 mths
> and a lot of mails, JUGS, Boards later.I finally get
> JSWDK-1.0.1  up and
> runnin...then the exam dates are announced.so its bye
> bye project
> ..down to the books...
>
> I study for my exams and decide that as soon as the exams are
> over i am
> gonna dive right into making this small example for the
> company guyz  so
> that we can at least start the project...but a few days
> before the exams
> ..NEWS: Exams postponed..
>
> Well the exams finally got over a month ago. and i get
> working on  a
> small JSP prog using beans..A month later..here I
> amfrustruated,
> depressed...looking for one last hope...
>
> If you are wondering where exactly are the other members of
> my group through
> all this.beats methe poor ppls proggramming knowledge
> is limited to
> a very basic C so even if they wanted to they wouldn't be of
> very much help.
>
> Now I really need to do this project well..because after I
> finish this I
> want to work in the same company  Its like my dream place to work
> in.small place..but so much potential for growth
>
> So, I need a messiah..
>
> Someone to help me get done in a couple of months what was
> supposed to have
> been done over a period of 6 mths...
>
> If there is someone out there who is willing to help this
> poor grasshopper
> in need...I'll be indebted to them all my life...I'll
> clean your floors
> .do the dishes..anything.JUST HELP ME!!
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe

Re: session.setAttribute ERROR

2001-02-12 Thread Rodrigo Lopes

isn't it session.putValue("user",user) ??


On Mon, 12 Feb 2001, Jsp Joe wrote:

> .mail id: [EMAIL PROTECTED]
>
>
> I am using jswdk-1.0.1
> I get the following error message when i try to run the JSP given below.
>
>
> 
> 
> Unhandled error! You might want to consider having an error page to report
> such
> errors more gracefully
> com.sun.jsp.JspException: Compilation
> failed:work\%3A8080%2Fexamples\jsp_0005cpl
> aytop_0005cuserlogin_0002ejspuserlogin_jsp_2.java:106: Method
> setAttribute(java.
> lang.String, playtop.User) not found in interface
> javax.servlet.http.HttpSession
> .
> session.setAttribute("user", user);
> ^
> 
> 
>
>
> THE JSP :
> 
> ---
> <%@ page language="java" import="playtop.*, java.util.*" %>
>
> 
> 
> 
>
> <% String moveto = "userlogin.html";
>
> User user = loginBean.checkuser();
>
> if (user != null) {
> session.setAttribute("user", user);
> System.out.println("User Logged in : " + user);
> session.setMaxInactiveInterval(1000);
> moveto = "showtoplists.jsp";
> }
> %>
>
> 
> 
> ---
>
> THE BEAN its using
> 
> 
> package playtop;
>
>
> public class Login {
>
> private String username = "";
> private String password = "";
>
> public Login() { }
>
> public void setUsername(String username) {
> this.username = username;
> }
>
> public void setPassword(String password) {
> this.password = password;
> }
>
> public User checkuser() {
> if (username.equals("clive") && password.equals("bigboy")) {
> return new User("clive");
> } else if (username.equals("rahul") && password.equals("themaster")) {
> return new User("rahul");
> } else if (username.equals("nitin") && password.equals("married")) {
> return new User("nitin");
> } else {
> return null;
> }
> }
> }
> 
> --
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

T+

--
  Rodrigo de Oliveira Lopes  "Nao me entrego sem lutar
  Mestrando em Ciencia da Computacao  Tenho ainda coracao
Universidade Federal do Ceara Nao aprendi a me render
 [EMAIL PROTECTED]   Que caia o inimigo entao"
 [EMAIL PROTECTED]   Renato Russo

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: session.setAttribute ERROR

2001-02-12 Thread A. C.

> isn't it session.putValue("user",user) ??

putValue and getValue methods are deprecated, now u should use setAttribute
and getAttribute

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Diff bet asp & jsp (end all, i hope.)

2001-02-12 Thread Nasser Dassi

Ok, now I feel urged to write (in spite of having this discussion arise
every 3 months).

Geert, your knowledge base regarding .NET is rather narrow.  There are
several sites already developed using the newest .NET framework.  What
'sucks' is that they are not permitted (as of yet) to publicize as being
implementors of it.  Why?  Because, you cannot implement something that is
not fully released.

To all, regarding their differences, there is none.  It's all syntax.
"What?," you say.

The explanation is simple: if you look at the structure of both genres of
coding, they are both comprised of the same structures up and down from
source code to server-side hosting.  A variant?  The overall syntax and
interpretors (aka containers).  Which is another difference: terminology.
In the end, if you know the functionalities of both languages and their
syntaxes and how to implement a site on both platforms, you're set to simply
say "they are the same, in the end."

Yes, it's the big picture.  But, everything I develop in ASP i develop in
JSP.  All ActiveX DLL/COM objects coded in VB or C++, i recreate in Java
Beans.  Anything that uses MFC's, I mimic on Java's side.  You get the
point.

ASP can use JavaScript, or VBScript.  JSP doesn't support server-side
VBScript interpretation.  Big deal.
They each work best on their respective OSes.

WANT MORE INFORMATION?  LOOK AT THE ARCHIVES FOR THIS LIST.  There has been
plenty of discussion months and months ago, on a regularly repeated basis.

Instead of telling others to research, research yourself.  Merely revert
back to the archives.

. I hope you eat your Wheaties in the morning, because some of the
brains on this list need more nutrients.

- Nasser
Software/Internet Programmer/Developer since '94.

- Original Message -
From: "Geert Van Damme" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 3:56 PM
Subject: Re: Diff bet asp & jsp


OK,
now we don't have out of the office replies;
off topic questions
Stupid irrelevant answers,
but also the worst of all.
Trolls.

Please go away, and bother someone else.
>From your mail it's very clear you don't know anything about either JSP/
Java not .Net/C#

just FYI, .Net doesn't really exists yet! in that case it's easy to tell how
fantastic it is.
Please show me the first side that uses that technology and does something
meaningful with it.
Ok, by then, we're 4 years further. Let's talk then.
In the meantime, we use JSP.

Geert Van Damme

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Don Makoviney
> Sent: vrijdag 9 februari 2001 19:31
> To: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp
>
>
> Obviously you are biased in your decision, but in addition you obviously
> have not read too much about ASP.NET have you?
>
> JSP's one big argument (portability to other servers) is going to be blown
> away by ASP.NET
>
> Not only that, but you can program in ANY language in .NET - not just
> "their" C# or VB.NET, but Java and even COBOL if you want to. And you can
> program in any language equally as well - it doesn't treat non-native
> languages like second-class citizens.
>
> Try programming in JSP with something other than JAVA technologies. . . .
> .not that easy is it? It will be a piece of cake with ASP.NET.
>
> I don't think that JSP is going anywhere soon (meaning, JSP guys probably
> aren't going to be out looking for new jobs anytime soon). . .
> .but the new
> ASP.NET looks VERY promising.
>
> I'm busy today, but in a day or so I can post some pretty killer specs if
> you all like. . . .
>
> Don Makoviney
>
> -Original Message-
> From: JSP Insider [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 05, 2001 2:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp
>
>
> HI Srinivas,
>
> I have written quite a bit on the differences between ASP and JSP
> which you
> can find at www.jspinsider.com.
>
> However, the reason I am responding is I wanted to add something
> additional
> to what can be found in the asp / jsp articles I have written
>
> I now feel as a general rule of thumb JSP should be your first choice over
> ASP unless you have a overriding business reason to use ASP.
>
> The reason: Tag libraries and JSP version 1.2 coming out in the future
>
> ASP has nothing like tag libraries and they add flexiblity and ease of
> maintenance you will never see in ASP.
>
> Also version 1.2 of JSP improves JSP to the point that I feel JSP is
> currently a stronger platform for server side development. Overall, I feel
> JSP offers a better solution for long term maintainance and ease of
> programming over ASP.
>
> Casey Kochmer
> President Amberjack Software LLC
> [EMAIL PROTECTED]
>
> >From: "Srinivas K. R." <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Diff bet 

Re: Java Date Class problem

2001-02-12 Thread Dawei Jiang

the index is not the key of his problem, the date did get mess when index is
greater than 24.  That could be a problem related to how he handled the date
object, but for sure, changing index won't solve the problem. The issue is
he do need a way to print whatever many days (future or before) in the list.
My last email is a solution, but certainly there are various ways to do it.

Dawei

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Shawn Zhu
Sent: Monday, February 12, 2001 2:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Java Date Class problem


hahah...dang, wonder how much his company pays him.
This just need some basic debugging and code reviewing.

Well I guess if you are frustrated you can just over look
certain intricate things.  Forgivable. heh

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 12:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Java Date Class problem
>
>
> check your for loop , it says i=1 , i < 27 ofcourse it will
> print 25 values ,
> change your for loop terminating condition
>
> Santosh
>
>
>
>
>
>
>
>
> Senaka Suriyaarachchi <[EMAIL PROTECTED]> on
> 12/22/2000 03:15:37 AM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  Java Date Class problem
>
>
>
> Hi All
> I tried to show drop down list with next 30 dates. but it
> doesn't work. It
> correctly add up to 25 days after that it show previous days.
> Please advice
> me.
>
> BR
> Senaka
>
>
> 
> <%@ page language="java" import="java.sql.*, java.util.Date"%>
> 
> 
> 
> Untitled
> 
>
> 
> <%
> Date nd = new Date();
> long lnd = nd.getTime();
> Date todate = new Date(lnd);
> String today = todate.toString();
> java.sql.Date dbday = new  java.sql.Date(lnd);
> long lndnew = lnd;
> %>
> 
> 
> 
> Reservation Date
> 
> <% for(int i=1; i<27; i++){%>
> <%= (new
> java.sql.Date(lndnew + i*24*60*60*1000))%>
> <% }%>
> 
> 
>  value="Reserv">
> 
> 
> 
>
> 
> 
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: A little Grasshopper + JSP ???

2001-02-12 Thread Daryani Santosh

Shawn,
   I cannot compare because I've never used JBuilder , although in a recent
reader choice poll conducted by JavaDevelopersJournal JBuilder was one of the
top ranking IDEs , far out ranking Forte.

No , I've never used the compile all option in Forte , so really don't know the
answer to your question.


Santosh






Shawn Zhu <[EMAIL PROTECTED]> on 02/12/2001 04:13:57 PM

Please respond to A mailing list about Java Server Pages specification and
  reference <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:(bcc: Santosh Daryani/IT/Aon Consulting)

Subject:  Re: A little Grasshopper + JSP ???



talking about Forte for J, it seems abit better than Jbuilder IMHO.

Daryani, did you ever use Forte's compile all function?  It seems that
it will stop compiling the rest of the .java files in the project if
it encounter some errors compiling the first few.  Is there a way to
have it continue to compile the rest of the files in the project?

> -Original Message-
> From: Daryani Santosh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 12:45 PM
> To: [EMAIL PROTECTED]
> Subject: Re: A little Grasshopper + JSP ???
>
>
> Joe,
> We can surely help you out. The softwares you need will be
> An JSP/Servlet Container
> A Web Server
> JDK
> IDE - an interface for writing java programs , jsps and servlets.
>
> You can get the latest JDK from the sun site at java.sun.com
> , also download the
> documentation
>
> For a web server if you are using microsoft as your platform
> you can Personal
> Web Server or IIS.
> If you want to go with free ware you can get Apache Web server.
>
> Finally getting a JSP/Servlet container.
> There are a lot of containers available for free , most of
> them also have a
> specific forum that addresses
> their installation , troubleshooting and configuration issues.
>
> This is a decision you have to make. Some of the popular and
> easy to configure
> engines are Tomcat and JRun
> You can get JRun from allaire web site. JRun as a JSP
> container can use IIS ,
> Personal Web Server , Apache or
> you can use JRun without any web server and use JRun itself
> as a web server.
>
> Tomcat is also pretty good.
>
> For writing JSPs you can get any free development tool like
> Forte , Kawa ,
> Homesite . If you don't like to use an IDE
> directly use Textpad , notepad or any other text editor .
>
> There are a lot of sites that have JSP tutorials , visit some
> useful JSP sites
> JSPInsider.com , JGuru.com , java.sun.com.products/jsp ,
> coreservlets.com.
>
>
>
>
> hope that helps
> Santosh
>
>
>
>
>
>
>
>
> Jsp Joe <[EMAIL PROTECTED]> on 02/12/2001 01:10:04 PM
>
> Please respond to A mailing list about Java Server Pages
> specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Santosh Daryani/IT/Aon Consulting)
>
> Subject:  A little Grasshopper + JSP ???
>
>
>
> Hi,
>
> Everybody's heard of the story of the grasshopper who sang all
> summer...well time to meet one.
>
> Whats this to do with JSP, I hear you ask.its a long story.
>
> It all starts off with project that I have to do as my final year
> engineering project. Me and my group contact this company
> who agree to
> give us a project. Before that they ask us to learn JSP and do a small
> program and submit within a week. That was 8 mths ago.
>
> After that starts  a saga of downloading Apache web server,
> Tomcat, Java
> engines...and actually tryin to set them up on my Celeron
> 466Well 2 mths
> and a lot of mails, JUGS, Boards later.I finally get
> JSWDK-1.0.1  up and
> runnin...then the exam dates are announced.so its bye
> bye project
> ..down to the books...
>
> I study for my exams and decide that as soon as the exams are
> over i am
> gonna dive right into making this small example for the
> company guyz  so
> that we can at least start the project...but a few days
> before the exams
> ..NEWS: Exams postponed..
>
> Well the exams finally got over a month ago. and i get
> working on  a
> small JSP prog using beans..A month later..here I
> amfrustruated,
> depressed...looking for one last hope...
>
> If you are wondering where exactly are the other members of
> my group through
> all this.beats methe poor ppls proggramming knowledge
> is limited to
> a very basic C so even if they wanted to they wouldn't be of
> very much help.
>
> Now I really need to do this project well..because after I
> finish this I
> want to work in the same company  Its like my dream place to work
> in.small place..but so much potential for growth
>
> So, I need a messiah..
>
> Someone to help me get done in a couple of months what was
> supposed to have
> been done over a period of 6 mths...
>
> If there is someone out there who is willing to help this
> poor grasshopper
> in need...I'll be indebted to them all my life...I'll
> clean your floors
> .do the dishes..anything.JUST HEL

Strange JSP Exception

2001-02-12 Thread Ortiz, William J

Hey folks:

In our project we're using VA Java and Webshere as our app. server.
Recently I've noticed that while loading one of our JSP's we'vw been getting
a strange exception.  What makes it even weirder is that it is a very small
JSP and after we get the exception and it bombs out we can continue to use
it normally.  The HTML is only a small form, Here is ALL the java code in
that page:

<%

HttpSession curSession = request.getSession();
 if ((request.getParameter("contact") == null) ||
(request.getParameter("contact").equals(""))){
curSession.putValue("contact", " ");
}
else{
curSession.putValue("contact", request.getParameter("contact"));
}
if ((request.getParameter("salesPerson") == null) ||
(request.getParameter("salesPerson").equals(""))){
curSession.removeValue("salesPerson");
curSession.putValue("salesPerson", " ");
}
else{
curSession.removeValue("salesPerson");
curSession.putValue("salesPerson",
request.getParameter("salesPerson"));
}
%>

We have to use JSP 0.91 (DUH!), there's no intrinsic(?) support for the
session built in, and we use JSDK 2.0 (Double DUH!) and JDK 1.1.7, so
session.putValue() is not deprecated. BTW, the session is not timed out.
Here is the exception we get...

java.net.SocketException: Connection reset by peer
 java.lang.Throwable(java.lang.String)
 java.lang.Exception(java.lang.String)
 java.io.IOException(java.lang.String)
 java.net.SocketException(java.lang.String)
 void java.net.SocketOutputStream.socketWrite(byte [], int, int)
 void java.net.SocketOutputStream.write(byte [], int, int)
 void
com.ibm.servlet.engine.http_transport.HttpTransportConnection.write(byte [],
int, int)
 void
com.ibm.servlet.engine.http_transport.HttpTransportConnection.prepareForWrit
e(int, java.lang.String, java.lang.String [], java.lang.String [], int)
 void com.ibm.servlet.engine.srp.SRPConnection.prepareForWrite(int,
java.lang.String, java.lang.String [], java.lang.String [], int)
 void com.ibm.servlet.engine.srt.SRTServletResponse.commit()
 void com.ibm.servlet.engine.srt.SRTServletResponse.alertFirstWrite()
 void com.ibm.servlet.engine.srt.SRTOutputStream.write(byte [], int, int)
 void java.io.OutputStreamWriter.flushBuffer()
 void java.io.OutputStreamWriter.flush()
 void java.io.PrintWriter.flush()
 void com.ibm.servlet.engine.webapp.BufferedWriter.flushChars()
 void com.ibm.servlet.engine.webapp.BufferedWriter.write(char [], int, int)
 void java.io.PrintWriter.write(char [], int, int)
 void java.io.PrintWriter.write(char [], int, int)
 void com.ibm.ivj.jsp.debugger.IBMPrintWriter.write(char [], int, int)
 void
com.ibm.servlet.jsp.http.pagecompile.filecache.CharFileCacheEntry.writeChars
(int, int, java.io.Writer)
 void
pagecompile._PrintScreen2_xjsp_debug.service(javax.servlet.http.HttpServletR
equest, javax.servlet.http.HttpServletResponse)
 void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
com.ibm.servlet.jsp.http.pagecompile.JSPState.service(javax.servlet.ServletR
equest, javax.servlet.ServletResponse)
 void
com.ibm.servlet.jsp.http.pagecompile.PageCompileServlet.doService(javax.serv
let.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
 void
com.ibm.servlet.jsp.http.pagecompile.PageCompileServlet.doGet(javax.servlet.
http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
 void
javax.servlet.http.HttpServlet.service(javax.servlet.http.HttpServletRequest
, javax.servlet.http.HttpServletResponse)
 void javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
 void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servlet.
ServletRequest, javax.servlet.ServletResponse)
 void
com.ibm.servlet.engine.webapp.IdleServletState.service(com.ibm.servlet.engin
e.webapp.StrictLifecycleServlet, javax.servlet.ServletRequest,
javax.servlet.ServletResponse)
 void
com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service(javax.servlet.S
ervletRequest, javax.servlet.ServletResponse)
 void
com.ibm.servlet.engine.webapp.ServletInstance.service(javax.servlet.ServletR
equest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
 void
com.ibm.servlet.engine.webapp.ValidServletReferenceState.dispatch(com.ibm.se
rvlet.engine.webapp.ServletInstanceReference, javax.servlet.ServletRequest,
javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
 void
com.ibm.servlet.engine.webapp.ServletInstanceReference.dispatch(javax.servle
t.ServletRequest, javax.servlet.ServletResponse,
com.ibm.servlet.engine.webapp.WebAppServletInvocationEvent)
 void
com.ibm.servlet.engine.webapp.WebAppRequestDispatcher.handleWebAppDispatch(c
om.ibm.servlet.e

problem after complying

2001-02-12 Thread Joseph Kimo Kreis

I have several programs that give me the same error.

Exception in thread "main" java.lang.NoClassDefFoundError: clicker

How do I solve this is it a problem with the way I set it up or with the
program.

textarea.java

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class textarea extends Applet implements ActionListener {

TextArea textarea1;
Button button1;

public void init(){
textarea1 = new TextArea(" ", 5, 20);
add(textarea1);
button1 = new Button("Clicker Here");
add(button1);
button1.addActionListener(this);
}

public void actionPerformed (ActionEvent event){
String msg = "Welcome to Java";
if(event.getSource() == button1){
textarea1.insert(msg, 0);
}
}
}


clickers.java

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class clickers extends Applet implements ActionListener{

TextField text1, text2;
Button button1, button2;

public void init(){
text1 =new TextField(20);
add(text1);
button1 = new Button ("Click Here!");
add (button1);
button1.addActionListener(this);


button2 = new Button ("Welcome to Java");
add(button2);
button2.addActionListener(this);
}

public void actionPerformed(ActionEvent event){
String msg = new String ("Welcome to Java");
if( event.getSource() == button1){
text1.setText("hello");
}
if( event.getSource() == button2){
text2.setText("what");

}
}
}
~
~~
~~~
***

Joseph Kimo Kreis
Web Developer for MS&E Department
Terman Engineering Center
Stanford University
Stanford, CA 94305-4026
mailto:[EMAIL PROTECTED]



===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



newbie...

2001-02-12 Thread Nishit Trivedi

hi,
I am new to JSP..

Can I do something like this:

<%
 String firstName= %> <%;


%>

Can I store the value returned by getFirstName() in firstName varible
without
using foo.getFirstName()...(as mentioned something like above...)

Nishit Trivedi
Software Engineer
Planet Access Networks - An InSage Company
973-691-4704 X157

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: problem after complying

2001-02-12 Thread Murugan Patham

Do you have Oracle 8i installed in your system. If then check the classpath and point 
it to the Java Classpath.



Regds

Murugan K Patham
480 - 990 4200 Ext 2712

>>> [EMAIL PROTECTED] 02/12 3:54 PM >>>
I have several programs that give me the same error.

Exception in thread "main" java.lang.NoClassDefFoundError: clicker

How do I solve this is it a problem with the way I set it up or with the
program.

textarea.java

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class textarea extends Applet implements ActionListener {

TextArea textarea1;
Button button1;

public void init(){
textarea1 = new TextArea(" ", 5, 20);
add(textarea1);
button1 = new Button("Clicker Here");
add(button1);
button1.addActionListener(this);
}

public void actionPerformed (ActionEvent event){
String msg = "Welcome to Java";
if(event.getSource() == button1){
textarea1.insert(msg, 0);
}
}
}


clickers.java

import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class clickers extends Applet implements ActionListener{

TextField text1, text2;
Button button1, button2;

public void init(){
text1 =new TextField(20);
add(text1);
button1 = new Button ("Click Here!");
add (button1);
button1.addActionListener(this);


button2 = new Button ("Welcome to Java");
add(button2);
button2.addActionListener(this);
}

public void actionPerformed(ActionEvent event){
String msg = new String ("Welcome to Java");
if( event.getSource() == button1){
text1.setText("hello");
}
if( event.getSource() == button2){
text2.setText("what");

}
}
}
~
~~
~~~
***

Joseph Kimo Kreis
Web Developer for MS&E Department
Terman Engineering Center
Stanford University
Stanford, CA 94305-4026
mailto:[EMAIL PROTECTED]



===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: include problem

2001-02-12 Thread Singh, Jasbinder

If I give a return after the redirect, the common.jsp doesn't display but
the rest of the page that is the page where it is included gets displayed.
The control doesn't go to the login.jsp as I want it to.
I am using JavaWebserver2.0.

Thanks
JS

-Original Message-
From: Joseph Ottinger [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 9:27 PM
To: [EMAIL PROTECTED]
Subject: Re: include problem


You're still executing the rest of the page, IIRC... add "return;" after the
sendRedirect().


>From: "Singh, Jasbinder" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: include problem
>Date: Fri, 9 Feb 2001 15:58:54 -0800
>
>Hi All,
>
>I am developing an application that requires secured login where the page
>should not be reached without logging.
>I have a common jsp that has the following scriptlet.
>common.jsp
><%
>javax.servlet.http.HttpSession sess = request.getSession(false);
>
>if ( sess.isNew() )
>
>   {
>
> System.out.println("Session new");
>
>response.sendRedirect("/login.jsp");
>   }
>
>   else
>
> System.out.println("Session not new");
>
>   if ( sess.getValue("user")==null )
>
>   {
>
>System.out.println("userid is null");
>
>response.sendRedirect("/login.jsp");
>   }
>%>
>
>I include this jsp in all my other JSP's. When I try to invoke a page
>directly by typing the url, I get the above println statements
>correctly("Session new" and "userid is null") but still the page is
>displayed. The page login.jsp is not displayed. But when I invoke the
>common.jsp directly, the control does go to the login.jsp page.
>
>Am I missing something ? Is this possible or I have to include a similar
>scriptlet in every jsp that I write.
>
>Thanks in advance
>JS
>
>===
>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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

_
Get your FREE download of MSN Explorer at http://explorer.msn.com

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP tags & embedded expressions

2001-02-12 Thread cmcfarland

I checked the JSP 1.1 specification. Section 2.12.1 defines my example below
as a "Request Time Attribute Value" and states it is legal for the value
attribute of jsp:param.  This is reiterated in section 2.13.6.1.

So, based on this I guess the iPlanet Web Server is not fully JSP 1.1
compliant?

Any comments / confirmations are appreciated.

Thx,
CM

> -Original Message-
> From: cmcfarland [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 3:16 PM
> To: jsp-interest
> Cc: Chris McFarland
> Subject: JSP tags & embedded expressions
>
>
> I'm having serious problems using JSP expressions inside quoted tag
> attributes.  For example, without expressions I would have a
> hard-coded jsp
> tag attribute like this:
>
> 
>
> My problem occurs when I want to make this attribute configurable, like
> this:
>
> 
>
> In iPlanet Web Server this is a problem because the quotes keep the
> expression from being evaluated.  In this case, the value is
> taken to equal
> the string "<%=Config.getWebserverURL()%>" instead of being evaluated as a
> JSP expression to equal "myserveraddress.com".  I saw this problem brought
> up for Tomcat webserver, and it was solved by putting the
> expression inside
> single quotes, like:
>
> 
>
> For iPlanet this does not work.  Is there any other way to
> accomplish this?
>
> Thanks,
> CM
>
>

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



JSP-Servlet question...

2001-02-12 Thread Jennifer Feeney

Hi,

Thank you in advance to anyone who maybe able to help me with this
query.

I am completely new to JSP, however I have been working on Servlets
for quite awhile...Here is my query.

DESCRIPTION:
===
I presently have servlets which take input from a client(browser),
accesses a database and retrieves information from it to display the
output to the user, presently, I am dispaying the output to the user
in HTML format.

This HTML is written in the servlet code, however, I have learned
that I can take the HTML away from the Servlet and instead, "feed"
the output from the servlet to a JSP file, which conatins all the
HTML for presentation and will also accept the info passed to it by
the servlet and include it in the HTML, for display purposes.

Basically, how do I develop a situation where a servlet is invoked by
a user, but the servlet sends the answer to a JSP file for
presentaion to the client.

Any help would be really helped.

Best Regards,
Jennifer

_

Get your free E-mail at http://www.ireland.com

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Row Color

2001-02-12 Thread The Burkes

Why not just use the % operator?

int count = 0
String bgcolor;

if (count%1 == 0)
   bgcolor="some color";
else
   bgcolor="some other color";

count++;


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Julia Reynolds
Sent: Friday, February 09, 2001 9:08 AM
To: [EMAIL PROTECTED]
Subject: Re: Row Color


Here's an old post from the Struts JSP framework mailing list.  The user is
using
the Struts
iterate tag from the Struts tag library to loop through records from a bean
and a ternary if to alternate colors based on odd or even number of row:

<% int count=0; %>

  
 <%= count %> 
  
 <%=(item).toString() %> 
  



Struts home page:  http://jakarta.apache.org/struts/index.html


Dan Lopez wrote:

> I want to alternate row color.  I have seen it...how
> is it done?  Need help asap!
>
> Thanks
>
> __
> Do You Yahoo!?
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--
In a time of drastic change it is the learners who inherit the future. The
learned
find themselves equipped to live in a world that no longer exists. - Eric
Hoffer



  H e a l t h S t r e a m,   I n c.
  Julia Reynolds - Systems Developer
  209 10th Ave. South Ste. 450 - Nashville, TN 37203
  phone: (615) 301-3220 - fax: (615) 301-3200

  email: [EMAIL PROTECTED]
  Web Site: http://www.cmecourses.com

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Diff bet asp & jsp (end all, i hope.)

2001-02-12 Thread M. Simms

I don't think you've ended it
what about the "all powerful" JSP taglib capability ?
What's the ".NET" counterpart ?

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Nasser Dassi
> Sent: Monday, February 12, 2001 4:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp (end all, i hope.)
>
>
> Ok, now I feel urged to write (in spite of having this discussion arise
> every 3 months).
>
> Geert, your knowledge base regarding .NET is rather narrow.  There are
> several sites already developed using the newest .NET framework.  What
> 'sucks' is that they are not permitted (as of yet) to publicize as being
> implementors of it.  Why?  Because, you cannot implement something that is
> not fully released.
>
> To all, regarding their differences, there is none.  It's all syntax.
> "What?," you say.
>
> The explanation is simple: if you look at the structure of both genres of
> coding, they are both comprised of the same structures up and down from
> source code to server-side hosting.  A variant?  The overall syntax and
> interpretors (aka containers).  Which is another difference: terminology.
> In the end, if you know the functionalities of both languages and their
> syntaxes and how to implement a site on both platforms, you're
> set to simply
> say "they are the same, in the end."
>
> Yes, it's the big picture.  But, everything I develop in ASP i develop in
> JSP.  All ActiveX DLL/COM objects coded in VB or C++, i recreate in Java
> Beans.  Anything that uses MFC's, I mimic on Java's side.  You get the
> point.
>
> ASP can use JavaScript, or VBScript.  JSP doesn't support server-side
> VBScript interpretation.  Big deal.
> They each work best on their respective OSes.
>
> WANT MORE INFORMATION?  LOOK AT THE ARCHIVES FOR THIS LIST.
> There has been
> plenty of discussion months and months ago, on a regularly repeated basis.
>
> Instead of telling others to research, research yourself.  Merely revert
> back to the archives.
>
> . I hope you eat your Wheaties in the morning, because some of the
> brains on this list need more nutrients.
>
> - Nasser
> Software/Internet Programmer/Developer since '94.
>
> - Original Message -
> From: "Geert Van Damme" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 12, 2001 3:56 PM
> Subject: Re: Diff bet asp & jsp
>
>
> OK,
> now we don't have out of the office replies;
> off topic questions
> Stupid irrelevant answers,
> but also the worst of all.
> Trolls.
>
> Please go away, and bother someone else.
> From your mail it's very clear you don't know anything about either JSP/
> Java not .Net/C#
>
> just FYI, .Net doesn't really exists yet! in that case it's easy
> to tell how
> fantastic it is.
> Please show me the first side that uses that technology and does something
> meaningful with it.
> Ok, by then, we're 4 years further. Let's talk then.
> In the meantime, we use JSP.
>
> Geert Van Damme
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Don Makoviney
> > Sent: vrijdag 9 februari 2001 19:31
> > To: [EMAIL PROTECTED]
> > Subject: Re: Diff bet asp & jsp
> >
> >
> > Obviously you are biased in your decision, but in addition you obviously
> > have not read too much about ASP.NET have you?
> >
> > JSP's one big argument (portability to other servers) is going
> to be blown
> > away by ASP.NET
> >
> > Not only that, but you can program in ANY language in .NET - not just
> > "their" C# or VB.NET, but Java and even COBOL if you want to.
> And you can
> > program in any language equally as well - it doesn't treat non-native
> > languages like second-class citizens.
> >
> > Try programming in JSP with something other than JAVA
> technologies. . . .
> > .not that easy is it? It will be a piece of cake with ASP.NET.
> >
> > I don't think that JSP is going anywhere soon (meaning, JSP
> guys probably
> > aren't going to be out looking for new jobs anytime soon). . .
> > .but the new
> > ASP.NET looks VERY promising.
> >
> > I'm busy today, but in a day or so I can post some pretty
> killer specs if
> > you all like. . . .
> >
> > Don Makoviney
> >
> > -Original Message-
> > From: JSP Insider [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, February 05, 2001 2:45 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Diff bet asp & jsp
> >
> >
> > HI Srinivas,
> >
> > I have written quite a bit on the differences between ASP and JSP
> > which you
> > can find at www.jspinsider.com.
> >
> > However, the reason I am responding is I wanted to add something
> > additional
> > to what can be found in the asp / jsp articles I have written
> >
> > I now feel as a general rule of thumb JSP should be your first
> choice over
> > ASP unless you have a overriding business reason to use ASP.
> >
> > The reason: Tag libraries and JSP version 1.2 coming out in th

Re: Diff bet asp & jsp

2001-02-12 Thread M. Simms

Dude - you must be quite popular with the girlies..
I wish I had that first name !

> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Hung Yee
> Sent: Monday, February 12, 2001 12:19 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp
>
>
> Here's an interesting article I found at Oreilly's website that compares
> J2EE with .NET in general:
> http://java.oreilly.com/news/farley_0800.html
>
> I found the article to be generally informative and avoids the 'heated'
> rhetoric that often plagues discussions between Microsoft and
> non-Microsoft
> technologies.
>
> -Original Message-
> From: Don Makoviney [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 5:52 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp
>
>
> Nice reply. . .thanks for the background and bio.
>
> -Don Makoviney
>
> -Original Message-
> From: JSP Insider [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, February 10, 2001 1:42 AM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]
> Subject: Re: Diff bet asp & jsp
>
>
>
> Good Morning Don,
>
> I suppose I should answer this email since you asked me a pretty direct
> question on my beliefs.
>
> Hmm Am I Biased?
>
> Let's see and examine this in more detail:
>
> I have been programming ASP since it was first released over 3-4
> years ago.
>
> In fact I still programming in ASP today. I like ASP a lot. In
> fact ask any
> of my co workers and they will say I am a fan and supporter of ASP. I have
> successfully implemented many ASP sites.  I still have
> recommended and am in
>
> process of helping start up several new ASP projects.
>
> Hmm. Ok. So far so good.
>
> Now let's look at JSP
>
> I started programming Java at the same time as ASP. And I have been
> programming JSP for the past year. Again I like JSP alot and again ask any
> of my co workers and they will say I am a fan and supporter of
> JSP. Again I
> have sucessfully implemented JSP sites. Again I am in the middle
> of setting
> up JSP projects. In fact I liked JSP enough to start up the JSPInsider web
> site.
>
> Hmm Ok still So far so good all things seem pretty equal.
>
> So now I am forced to compare the two platforms BASED ON real
> expereinces of
>
> using each. And I personally find JSP to be a better server side solution
> most of the time. I am not saying ASP
> is a bad solution It is great solution. Read what I have written and you
> will find I am an ASP supporter. But in programming both ASP and
> JSP I have
> found from practical experience that JSP is currently the
> stronger solution.
>
> Program JSP for 6 months and then make your own decisions. Don't believe
> what I say or what others write. In the end it is something you have to
> decide for yourself.
>
> THE TRUTH:
> JSP isn't for everyone and ASP isn't for everyone.
>
> THE SOLUTION
> Use the solution that is right for you. I just believe and my
> experience as
> it now stands JSP is the stronger of the two systems. In a year ASP+ might
> be the stronger. But you must understand my judgements are based upon hard
> and true and tried experiences. Killer specs means nothing to me, they are
> just specs. I have to produce a product and I will use the one
> right for my
> customer.  So yes I suppose I am biased slighly in favor to JSP due to my
> successful  experiences, But isnt everyone biased?? Obviously you are
> heavily biased towards ASP+ as I can tell from the strength of
> your feelings
>
> in the email! Is this bad? No of course not, expecially if it gets the job
> done.  If you are living or breathing of course you will have
> your favorite
> tool to use, based on the tools you are successful with. The real question
> is are you open minded and can you be flexible to use the right
> tool for the
>
> right Job!
>
> KEEPING AN OPEN MIND
> And in that I always have an open mind, that is why I build both
> ASP and JSP
>
> web applications, because neither one is right for everyone. However, my
> experiences and my currently perffered solution is JSP as it
> offers the most
>
> maintainable and easiest to build reusable web solutions. NO amont of BETA
> specs will change my mind in this since it doesn't count until production,
> and this isn't a matter of being open minded but realistic. Anyone who
> builds a house of cards on beta software deserves the house they build,
> sometimes the gamble wins but more often the gamble loses. I hope your
> programming  path in ASP+ is as smooth as you state it will be. ASP+ is a
> complete rewrite of the ASP rules and in this I reserve the right
> to have my
>
> have doubts until it has in production for 6 months. Once it has been in
> production for six months get back in contact with me and ask me
> how I feel
> then and please share your experiences for I will be interesting in
> comparing notes. However, after looking at ASP+ and still working with ASP
> 3.0 I have decided its too ear

Re: New JSP User needs help and advice

2001-02-12 Thread Joseph Wallace

You can do two things.
On the DOS window that opens right click on the MSDOS icon in the upper left
corner.  Click on Properties.  Click the memory tab.  Set Initial environment
higher.  3072 should be enouph.
You can also open a DOS window yourself and do the same.  Then run startup from the
command line. eg. C:\>tomcat\bin\startup


Julie Tan wrote:

> Hi,
>
> I am a new user trying to setup tomcat on my home PC a window 98. I have
> downloaded the jakarta-tomcat-3.2.1.zip and unzipped it to my directory. I
> have also done the following things like set JAVA_HOME to point to my jdk
> directory.
>
> After that, I try running the startup file in the bin directory of tomcat.
> But the following error as below happened…….
>
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Unable to set CLASSPATH dynamically.
> Note: To set the CLASSPATH dynamically on Win9x systems
>   only DOS 8.3 names may be used in TOMCAT_HOME!
> Setting your CLASSPATH statically.
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Out of environment space
> Using CLASSPATH:
>
> Starting Tomcat in new window
>
> After this another window pops up and closes and the program just ends
> there. Please advise.
>
> Regards,
> Julie
>
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: JSP-Servlet question...

2001-02-12 Thread Martin Cooper

You want to call the request dispatcher from your servlet when it's done
setting things up. To forward the request to the JSP, something like this
should do the trick:

RequestDispatcher rd = getServletContext().getRequestDispatcher(path);
rd.forward(request, response);

Hope this helps.

--
Martin Cooper
Tumbleweed Communications


- Original Message -
From: "Jennifer Feeney" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 12, 2001 3:54 PM
Subject: JSP-Servlet question...


> Hi,
>
> Thank you in advance to anyone who maybe able to help me with this
> query.
>
> I am completely new to JSP, however I have been working on Servlets
> for quite awhile...Here is my query.
>
> DESCRIPTION:
> ===
> I presently have servlets which take input from a client(browser),
> accesses a database and retrieves information from it to display the
> output to the user, presently, I am dispaying the output to the user
> in HTML format.
>
> This HTML is written in the servlet code, however, I have learned
> that I can take the HTML away from the Servlet and instead, "feed"
> the output from the servlet to a JSP file, which conatins all the
> HTML for presentation and will also accept the info passed to it by
> the servlet and include it in the HTML, for display purposes.
>
> Basically, how do I develop a situation where a servlet is invoked by
> a user, but the servlet sends the answer to a JSP file for
> presentaion to the client.
>
> Any help would be really helped.
>
> Best Regards,
> Jennifer
>
> _
>
> Get your free E-mail at http://www.ireland.com
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: please Help --session check

2001-02-12 Thread Taral Shah

Thanks dear,

But I am unaware about controller servlet.

Can u give me some example or some code that can guide me for this.

Also I found in servlet help I didnt get anything like this.
So please guide me for this in some details.

Thanks
Taral Shah
([EMAIL PROTECTED])

- Original Message -
From: Marco M <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 17, 2001 1:14 PM
Subject: Re: please Help --session check


> hi
>  if you are using JSP Model 2 architecture, or Struts, you can
> check everything in the controller servlet
> i got the same problem (and i had 50 JSP already done after my manager
> told me that he forgot to tell me to check if the user was null.)
>
> i did not want to change all the Action classes, or all the JSPs..so
> i checked in the servlet
>
> hope this helps
>
> br
> marco
>
> > -Original Message-
> > From: ext Claudio Lorico [mailto:[EMAIL PROTECTED]]
> > Sent: 16. January 2001 18:45
> > To: [EMAIL PROTECTED]
> > Subject: Re: please Help --session check
> >
> >
> > What you're thinking is quite right and it can be
> > better if you will use a custom tag for that purpose.
> >
> > --- Deepak C S <[EMAIL PROTECTED]> wrote:
> > > hi people,
> > >
> > > As a part of authentication check, I am
> > > checking for a session
> > > attribute to validate user login across pages.
> > > eg:
> > >
> > > if (session.getAttr("user")==null){
> > > sendRedirect(loginpage);
> > > }
> > >
> > > But now, I am keeping these lines in all my jsp
> > > files(cut and paste)..If I
> > > have to change somethg with that I need to change in
> > > all jsp pages..
> > >
> > > Is there any better way than this?? like keeping
> > > session -checking code in
> > > seperate file and including in all pages??
> > >
> > > pls help.
> > >
> > > Thanx in adv,
> > > Deeps
> > >
> > >
> > ==
> > =
> > > 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:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >
> > http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> >
> >
> > __
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> >
> > ==
> > =
> > 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:
> >
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Kindly Help

2001-02-12 Thread ravi

rajeev,
 if  u put ur code it will  help us to find out where u went wrong,
i feel the information u gave is just not adequate to solve ur problem.

cheers,
ravi

Rajeev Sharma wrote:

> Hi All,
>
> I am calling a jsp from a HTML file & on submit the following code will be
>
> invoked in the jsp.
>
> 
>
> There is a for loop in the jsp but it is getting invoked only once.
>
> But if I change the html to 
> ACTION="http://localhost:8100/SimpleJSP.jsp">
>
> the for loop is getting executed.
>
> Could anyone tell me the reason?
>
> Thanks in advance,
>
> Rajeev
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Kindly Help

2001-02-12 Thread Rajeev Sharma

Ravi,

This is my HTML code



 Simple JSP Program 


How Many Times 









& this is my jsp code.

<%@ page language="java" %>


 Simple JSP Program 



<% int numberoftimes = Integer.parseInt(request.getParameter("numtimes"));
for(int i = 0;i
<%= i %>
Hello World!
<%
}
%>





If I don't give ACTION="http://localhost:8100/SimpleJSP.jsp"> in my html it
doesn't execute the
for loop but it invokes the jsp file as it is displaying "Hello World!"
once.
Could you tell me why is this happenning?

Thanks in advance,

Rajeev


-Original Message-
From: ravi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 11:00 AM
To: [EMAIL PROTECTED]
Subject: Re: Kindly Help


rajeev,
 if  u put ur code it will  help us to find out where u went wrong,
i feel the information u gave is just not adequate to solve ur problem.

cheers,
ravi

Rajeev Sharma wrote:

> Hi All,
>
> I am calling a jsp from a HTML file & on submit the following code will be
>
> invoked in the jsp.
>
> 
>
> There is a for loop in the jsp but it is getting invoked only once.
>
> But if I change the html to 
> ACTION="http://localhost:8100/SimpleJSP.jsp">
>
> the for loop is getting executed.
>
> Could anyone tell me the reason?
>
> Thanks in advance,
>
> Rajeev
>
>
===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Resultsets

2001-02-12 Thread David Mellado

Hi!

Is It possible to open two ResultSet objects with a same Connection, at the
same time? When I try, to do it, it causes an exception.

Regards

David Mellado
[EMAIL PROTECTED]

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



Re: Kindly Help

2001-02-12 Thread ravi

>If I don't give ACTION="http://localhost:8100/SimpleJSP.jsp"> in my html it
>doesn't execute thefor loop but it invokes the jsp file as it is displaying "Hello
World!"
>once.

 it works fine w/o "http://localhost:8100/"
also it works fine irrespective of the action method being PUT/GET.

can u let me know environment/jsp container ur using.
i am on jrun3/winnt


cheers,
ravi

Rajeev Sharma wrote:

> Ravi,
>
> This is my HTML code
>
> 
> 
>  Simple JSP Program 
> 
> 
> How Many Times 
>
> 
> 
> 
> 
>
> 
> 
>
> & this is my jsp code.
>
> <%@ page language="java" %>
> 
> 
>  Simple JSP Program 
> 
> 
> 
> <% int numberoftimes = Integer.parseInt(request.getParameter("numtimes"));
> for(int i = 0;i %>
> <%= i %>
> Hello World!
> <%
> }
> %>
>
> 
> 
> 
>
> If I don't give ACTION="http://localhost:8100/SimpleJSP.jsp"> in my html it
> doesn't execute the
> for loop but it invokes the jsp file as it is displaying "Hello World!"
> once.
> Could you tell me why is this happenning?
>
> Thanks in advance,
>
> Rajeev
>
> -Original Message-
> From: ravi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 11:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Kindly Help
>
> rajeev,
>  if  u put ur code it will  help us to find out where u went wrong,
> i feel the information u gave is just not adequate to solve ur problem.
>
> cheers,
> ravi
>
> Rajeev Sharma wrote:
>
> > Hi All,
> >
> > I am calling a jsp from a HTML file & on submit the following code will be
> >
> > invoked in the jsp.
> >
> > 
> >
> > There is a for loop in the jsp but it is getting invoked only once.
> >
> > But if I change the html to  >
> > ACTION="http://localhost:8100/SimpleJSP.jsp">
> >
> > the for loop is getting executed.
> >
> > Could anyone tell me the reason?
> >
> > Thanks in advance,
> >
> > Rajeev
> >
> >
> ===
> > 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:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ===
> 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:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
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:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets