valueUnbound(HttpSessionBindingEvent evt) not called when i close my close jsp or tomcat Server

2002-03-23 Thread Nwalal mi Nyom

Hi,
I use Tomcat4.0.1,Apache1.3.22.
in my jsp file i use class which implements HtppSessionBindingListener and I have 
implement valueBound() and valueUnbound(..) methods.

 when i load my jsp  valueBound(... ) is called correctly
But when l close my jsp or  when i stop Tomcat Server,  valueUnbound(...) method  is 
not called 

can somebody help me 

Thanks

Martin

==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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: [ann] WebWork 1.0 released

2002-03-23 Thread Alan Meyer

Rickard <[EMAIL PROTECTED]> wrote:

> I'm proud to announce the release of WebWork 1.0! WebWork is a
> HMVC web application framework in Java, developed as Open Source
> (BSD license) and designed to help create dynamic websites using
> minimal effort and maximum flexibility. It's architecture is easy
> to learn and understand, yet has features that allow for complex
> applications to be built.

I haven't tried this yet, but I would nevertheless like to say "Thank
you" to all of the developers who worked on the project.

Writing open source software is a great way that people can make
excellent use of their innate talents and hard won skills to give
something to the world as a whole.

My own efforts, both as a professional programmer and as an ordinary
computer user, would be significantly harder and less interesting
without the many superb open source tools that I use on a regular
basis.

As for the issue of Struts vs. WebWork vs. something else, I suspect
that even if WebWork does not acquire a large user base, if it has
good ideas in it (and I'm sure it does), people will see them and
those ideas will work their way into other programs as well.  The
intellectual efforts made by each open source programmer contribute
to the community even if their own specific programs never find many
users.  I'm sure that, in at least some areas, WebWork will raise the
bar and help make all related projects better.

Thanks again.
--
Alan Meyer
AM Systems, Inc.
Randallstown, MD, USA
[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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Nested tags attribute clash

2002-03-23 Thread Hans Bergsten

Erwin DSouza wrote:

> Hi Hans,
>
> Sorry to bother you again with this old thread, but I
> hadn't thought of all the implications of your
> suggestion until now.
> I was asking about how to avoid attribute-name clashes
> in nested tags, and you suggested using:
>
>> The easiest solution is to let the page athor specify
>> the
>> variable name:
>>
>>   
>>   
>> 
>> 
>>...
>> 
>>   
>>
>> If you don't need to access the value through a
>> scripting...
>
>
>> If you *do* need to access the value through scripting
>> code,
>> you can tell the container to use the "var" attribute
>> value for
>> the scripting variable using either a TagExtraInfo
>> class (JSP 1.1
>> and JSP 1.2) or using the  element in the
>> TLD (JSP 1.2).
>
> I *do* need to access the attributes in scripting code.
> But how do I add the new variable dynamically to the
> TagExtraInfo class? How does it help if I add "var" to
> the TEI?
> (I need foo and bar to be variables that I can access
> in my scripting code)
> Is this possible?


Yes it is. As to how, read a book, like mine :-) Just kidding,

even though I do recommend that anyone doing JSP development
read at least the specification. There are many things that you
just can't figure out just by looking at the APIs.

Anyway, here's a TEI that tells the container to create a variable
with the name supplied by the page author as the "id" attribute
value (you should use "id" when you create a scripting variable,
following the convention from ; "var" is a name convention
established by JSTL for variables saved only in a JSP scope):

   public class MyTagTEI extends TagExtraInfo {
 public VariableInfo[] getVariableInfo(TagData data) {
   return new VariableInfo[] {
 new VariableInfo(data.getAttributeString("id"),
   "com.mycompany.SomeType",
   true,
   VariableInfo.AT_END)
   }
 }
   }

The variable is of type "com.mycompany.SomeType" and made available
after the closing tag for the action element (AT_END).

If you use a JSP 1.2 container, you can replace the TEI with this
declaration in the TLD:

   
 myTag
 com.mycompany.MyTag

 
   id
   com.mycompany.SomeType
   true
   AT_END
   This variable contains ...
 
 ...
   


Hans

--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: valueUnbound(HttpSessionBindingEvent evt) not called when i close my close jsp or tomcat Server

2002-03-23 Thread Hans Bergsten

Nwalal mi Nyom wrote:

> Hi,
> I use Tomcat4.0.1,Apache1.3.22.
> in my jsp file i use class which implements HtppSessionBindingListener and I have
> implement valueBound() and valueUnbound(..) methods.
>
>  when i load my jsp  valueBound(... ) is called correctly
> But when l close my jsp or  when i stop Tomcat Server,  valueUnbound(...) method  is 
>not called
>
> can somebody help me


I'm not sure what you mean by "close my jsp", but if you mean close
the browser, this will not trigger a valueUnbound() call. The
valueUnbound() method is called when the session terminates (either
due to an explicit call to invalidate() or a time-out) and when the
object is removed (or replaced) from the session (the removeAttribute()
method is called).

If you stop Tomcat gracefully, e.g. using the showdown script instead
of just killing the process with Ctrl-C, it terminates all sessions
so the valueUnbound() method is called. If it isn't, it's a Tomcat
bug.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
JavaServer Pageshttp://TheJSPBook.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



HI JSP

2002-03-23 Thread Preethi B.

I have a HTML form, inwhich I have select list options, textarea, radio buttonset, etc.

On selecting any form option(Onchange of the default options) by the user I want to 
populate the Querystring in the My Query information(using GETPARAMETER JSP call), 
displayed in the same form. I want to do that immediately their is a change in the 
form options(using onChange function ?)

For eg.



HOST :

q2.paq.av.com
q1.paq.av.com

PORT :

Data Type(dp)

HTML
XML

...
My Query Options in the form: (populate the string with the values selected in the 
form)



Is this possible using JSP. Kindly point me how I can do , sample code to go ahead, I 
will be greatful.


Preethi

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: HI JSP

2002-03-23 Thread Suryanarayana Murthy

Please explain clearly. I am unable to understand your question.

Thanks & Regards,
Suryanarayana Murthy A
Email: [EMAIL PROTECTED]
Ph: 8291680 Ext:1137 / 1136
Dial-Comm: 8* 742-1114/1118




"Preethi B."
<[EMAIL PROTECTED]To: [EMAIL PROTECTED]
OM>  cc:
Sent by: A   Subject: HI JSP
mailing list
about Java Server
Pages
specification and
reference



24/03/2002 03:20
AM
Please respond to
A mailing list
about Java Server
Pages
specification and
reference






I have a HTML form, inwhich I have select list options, textarea, radio
buttonset, etc.

On selecting any form option(Onchange of the default options) by the user I
want to populate the Querystring in the My Query information(using
GETPARAMETER JSP call), displayed in the same form. I want to do that
immediately their is a change in the form options(using onChange function
?)

For eg.



HOST :

q2.paq.av.com
q1.paq.av.com

PORT :

Data Type(dp)

HTML
XML

...
My Query Options in the form: (populate the string with the values selected
in the form)



Is this possible using JSP. Kindly point me how I can do , sample code to
go ahead, I will be greatful.


Preethi

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com