Re: Best Connection Pooling

2000-11-09 Thread Scott Evans

Personally I didn't like the ConnectionBroker by JavaExchange because of
unpredictable behavior under heavy conditions. Some requests for a
connection would receive it after a second, others after 20 seconds, and
others would simply time out after 30 seconds, without any rhyme or reason.
This really complicates getting good benchmarks. I believed it has to do
with how the broker deals with multiple threads. You can see this behavior
if you configure a limited number of connections and hit your site with a
stress tester. Then browse your site and look at the log file output that
results, and you'll get a feel of what I'm talking about.

Hope this helps,
Scott



-Original Message-
From: Shankar Lal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 2:08 PM
To: [EMAIL PROTECTED]
Subject: Best Connection Pooling


Which is the best Connection Pooling implementation around - JavaExchanges
ConnectionBroker, Poolman, BitMechanic .
Has anyone used Oracles Connection pool implementation?
Has anyone faced any problems with any of these implementations.
Also can I use a third party connection pooling implementation (like
connection broker) with oracles driver and still use datasources?

Thanks
Shankar

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Method getMaxIntervalTime() not found in interface javax.serv let.http.HttpSession

2000-11-09 Thread Scott Evans

According to the javadocs you should be using:
session.getMaxInactiveInterval() and session.setMaxInactiveInterval(int
seconds)

The javadocs are always the first place I look when I seek a method name,
especially if I receive that exception. They are a great resource and
benefit of Java that you should get comfortable using. Often I use the
javadocs only when I learn a new Java API.

Scott

-Original Message-
From:  [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 4:55 PM
To: [EMAIL PROTECTED]
Subject: Method getMaxIntervalTime() not found in interface
javax.servlet.http.HttpSession


Hi,
 This is the error i am getting for the code in jsp file. the
problem is to set or view max interval time for  sessions.






 User Name






<% out.println(session.getMaxIntervalTime()); %>





The error msg is

<<>>

Pls help.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Re

2000-11-09 Thread Scott Evans

Check the server's log files and the JRUN support resources.

-Original Message-
From: Modassir Sattar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 09, 2000 5:27 PM
To: [EMAIL PROTECTED]
Subject: Re


Hi,

Can any one  help me.

I installed JRUN 3.0 on Windows NT 4.00.

Every time I run a JSP page, the default server stops and gives error
"program exited abnormally".
I reinstalled it lot of times , I also installed as service.

I even tried this on NT Server and Workstation but getting same error.

Your help will be appreciated.

Thanks,

Modassir

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 include question

2000-11-12 Thread Scott Evans

The difference is when you want to include the file - at compile time
<%@include file="URL" %> or at runtime . Using the compile time
option results in faster execution, while the runtime option results in the
flexibility to decide dynamically which file to include.

-Original Message-
From: Venu Gopal [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 12, 2000 10:47 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp include question


Which one is best to use? The simple situation is like
i want to include header & footer on every page which
one should i use?

 or <%@include file="relative URL" %>?

Venu

--- Shireesh Thanneru <[EMAIL PROTECTED]>
wrote:
>  happens at run-time, where as
> <%@ include file="URL" %> happens at compile time.
>
> Shireesh Thanneru
>
> On Sun, 12 Nov 2000, Chin Sung Kit wrote:
>
> >hi all,
> >
> >what's the difference between  and
> <%@include
> >file="relative URL" %>?
> >
> >thank you.
> >
> >ced
> >
>
>===
> >To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> >Some relevant FAQs on JSP/Servlets can be found at:
> >
> > http://java.sun.com/products/jsp/faq.html
> > 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".
> 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!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Bean's - quick look?

2000-11-12 Thread Scott Evans

1. You can, if you provide your bean with the appropriate object references
and import the proper classes. There is nothing magical here that does this
automatically.
2. I don't know, maybe try a search engine
3. I think the BDK is meant for developing visual beans that can be modified
in a GUI IDE, which isn't of much use in servlets. JavaBeans in JSP/Servlets
basically are java objects that follow the getXXX()/setXXX() naming
conventions for accessor/mutator methods and provide a no-args constructor.
This allows the jsp container to instantiate them and set their values using
reflection. For example, for a property named foo, the jsp container will
use reflection to invoke your bean's setFoo() and getFoo() methods.

Scott


-Original Message-
From: Venu Gopal [mailto:[EMAIL PROTECTED]]
Sent: Sunday, November 12, 2000 11:20 AM
To: [EMAIL PROTECTED]
Subject: Bean's - quick look?


Hi Experts,

I'm just wondering whether we can do the following
from beans, though these are simple and stupid ones
for experienced guys:

1. Can i access the request,response,cookie objects
from a bean? If i tried to do that it gave me an
error. JspWriter i have come across, but i don't have
any clue how to use it??? Can some one give an example
code how to acces all the above 3 objects?

2. Where can i find ONLY beans interest mailing list?
Like i found the RMI interest mailing list on
java.sun.com ?

3. And a very stupid question, whats BDK for? what are
server side developed beans used by JSP? Are they both
same? According to me BDK is to develop front-end
reusable components..and the server side beans are for
accessing server resources. Am i correct?

Help me

Cheers,
Venu


__
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Looking For Piecemeal Frameworks

2000-11-15 Thread Scott Evans

I think you should check out the MVC example in the book "Web Development
with JavaServer Pages" by Kolb and Fields.

-Original Message-
From: Philip Weaver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 15, 2000 3:57 PM
To: [EMAIL PROTECTED]
Subject: Looking For Piecemeal Frameworks


Hello -

I'm looking for framework resources for JSP. I am aware of Struts, Turbine,
and JavaCorporate. Currently, I don't want to use them. Are there any other
sources for framework code in individual components, even source code? I'm
thinking of something smaller (concise) that I could piece together.
Specifically, EntryServlet, actions, MVC, etc.

Thanks,
Philip

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Dr.Watson,Help Please!!!

2000-12-05 Thread Scott Evans

Hm. Are you using Sun's JDBC-ODBC brigde by any chance?

-Original Message-
From: prasad bhosale [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 01, 2000 2:06 PM
To: [EMAIL PROTECTED]
Subject: Dr.Watson,Help Please!!!


  Hi all,
I am running a JSP file on tomcat with apache-tomcat combination.
What i am doing is retrieving data from the database, creating an xml
file and then parsing it using DOM parser and displaying the records.

It runs pretty well 3-4 times but when i try to run it more than
that successively, it throws Dr Watson Error on WinNT.
Details:Application error:
java.exe;
Exception :Access violation(0xc005)Address:(ox77f674cb)
So where is the problem exactly? Pl let me know.
Prasad.

_
Get more from the Web.  FREE MSN Explorer download : 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: Session timeout and having to make a database call

2000-01-24 Thread Scott Evans

Hi Ian,

I think your bean would need to implement the HttpSessionBindingListener
interface. This interface has two methods: valueBound() is called with the
bean is added to a session, and valueUnbound() is the opposite
(valueUnbound() is also called when the session is invalidated). An
HttpSessionBindingEvent object is sent to both methods to identify the
session and the name of your bean instance in the session.

Check out HttpSessionBindingListener and HttpSessionBindingEvent in the
Servlet API.

Scott Evans
SI&I Training Development




-Original Message-
From: Ian Graham [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 24, 2000 2:01 PM
To: [EMAIL PROTECTED]
Subject: Session timeout and having to make a database call


Hi Everyone,

I have looked through all the emails that are raging at the moment about
session timeouts. I have a similar problem but when the session times out I
have to remove his entry from a database table.

Basically the scenario is this:

The user logs into the system and an entry is added to a table (used to
ensure that no one person can login twice)
He/she makes use of the system and then he could use the logout button which
would clear the table, or the session out timeout and then he try's to use
the system again, but he is returned back to the login screen (and his entry
in the table is removed). What I can't work out how to do is if the user
just closes his window or types in another URL etc how can I trap that and
remove his entry from the table.

Is there an function that can be written in the sessioned bean that when the
session times out that function is ran and clears up after itself???

The only other solution I can think of is to date/time stamp the entry in
the login table and everytime an operation is carried out this is updated,
and then in the background have a routine which is clearing out this
table

Any help would be greatly appreciated,
Ian

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: JSP or Servlet and Connection Pool

2000-03-08 Thread Scott Evans

Check out http://www.javaexchange.com/ for a fully implemented, and free, db
connection pool.

Scott Evans



> -Original Message-
> From: amirali purteymur [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, March 05, 2000 3:57 PM
> To: [EMAIL PROTECTED]
> Subject: JSP or Servlet and Connection Pool
>
>
> Dear all friends,
> I have been using JDBC connection for connectivity to Oracle
> 8i Database in
> JSP and Servlet.I put my connection object in one of my
> classes as public
> static final variable .and this workd  has created a lot of
> problem for me.I
> am looking for connection pool or something like that.could
> anyone please
> help me that is there anything like connection pool that solve my
> problem.(oracle has been introducec one but I couldn't use it
> in Java Web
> Server)
> Any suggestion would be appreciated.
> Amirali
> __
> Get Your Private, Free Email at http://www.hotmail.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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 Model 2, JavaBeans, and EJB...

2000-03-09 Thread Scott Evans

Hi,

I'm currently developing a simple 2.5-tier application using the Model 2
architecture, with a controller/session servlet, "regular" JavaBeans to
model logic and control db access, and JSPs for display. I'm new to this and
have a few questions:

1. Initially the entire application will run on the web server, on the same
machine as the db server. However, I foresee that in the future we may want
to use an appserver and Enterprise JavaBeans for the application logic. What
can I do in designing my regular beans today, that they will be easier to
replace with EJBs in the future? This may be more of a system architecture
question than about the interfaces my beans expose.

2. It might help and it seems to me a better separation of business-logic,
site-logic and presentation-logic, if the beans control database access. I'd
like to use a connection pool, like the DBConnectionBroker from
http://www.javaexchange.com/  . How can a
bean, instead of a servlet, maintain such a pool over the life of the
application in an elegant way, and how can another bean somewhere else in
the application get/free a connection from the dbpool bean, without the
controller servlet and JSPs ever needing to know about it?

3. Since Servlets and JSP are executed as multiple threads, what are the big
concurrency gotchas that I should look out for? I've read someplace that it
is quite common for database query methods to implemented as static methods
to cut creation overhead and to increase execution speed. Is this
thread-safe as long as all fields the static method manipulates are either
passed in as parameters or are local fields, as opposed to static class
fields, or instance member fields? For example, can a static method create a
new result/view bean on the fly and return it to the method caller without
the data being corrupted by other threads or causing a race condition?

4. Is anybody reusing PreparedStatements in their Servlet/JSP/JavaBean
applications, or is it more work and memory than it is worth?

Thanks,

Scott

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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 bit off-topic: Visual Age for Java with JSP and Tomcat

2000-03-14 Thread Scott Evans

Sorry for the off-topic question.

Has anyone tried developing/debugging JSPs with Tomcat from within IBM's
VisualAge for Java Entry Edition on Windows 95, as described at
http://www7.software.ibm.com/vad.nsf/Data/Document2389?OpenDocument
 &p=1&BCT=1&Footer=1

Specifically, I've been having trouble getting Tomcat to run, due to a
ClassNotFoundException with the java class IBM provides to run Tomcat in
VAJ.

The class it can't locate is org.apache.tomcat.shell.Startup.java, which
comes from the webserver.jar

Any help, or info about a more appropriate list to post this question would
be very appreciated.


Thanks,
Scott

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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: Processing classes stored in Hashtable

2000-03-15 Thread Scott Evans

Craig McClanahan wrote:

"Why do you need a big "if...else if" construct in Model2? The approach I
take is to use the path information part after the servlet path, and look up
the appropriate processing class in a Hashtable that is configured in the
initialization of the servlet. That way, there is no code change to the
controlling servlet when you add new processing options."


This is the approach that I'd like to use, but I'm not sure I understand it
well enough.

I might do something like this, using an interface:

String actionName = getActionName(HttpUtils.getRequestURL(request));  //
utility method of the controller servlet for getting the path after the
servlet path
Performable action = (Performable) actionMap.get(actionName);// don't we
need new instance?


Now, how should I provide the action class with request parameters? The
examples bundled with Tomcat seem to suggest passing the request to the
class:

action.processRequest(request);

The logic in this seems to be that the action class knows best what
parameters it needs, so it extracts them from the request, checks for input
errors, and if everything is OK processes the request. Some have written
about using Java's Reflection API, but this seems like overkill and hard to
debug.

Then the controller servlet is responsible for making sure that no errors
occurred, and forwarding the request:
if (action.hasErrors()) { ...create an error bean, forward request to the
error page }
else { ...create a view bean, forward request to the requested page }

In this scenario, who should be responsible for initializing the view bean
to be sent to the jsp page, the action or the servlet, or should the action
be also the view bean?

Also, would you consider it acceptable design to allow the action class to
internally set new attributes in the current request or session via the
HttpServletRequest that it received as a parameter, for example: adding the
view bean to the request?

Thanks,
Scott

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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 Post-Processing

2000-03-15 Thread Scott Evans

Hi everyone,

I wondering if it is possible for me to send the result of a JSP 1.1 page
(i.e. the html that is sent to the client) to a servlet for additional
processing with Servlet API 2.2 & Tomcat 3.0.

In his book "Java Servlet Programming" (Servlet API 2.0 & JSP 0.91),  Jason
Hunter has an example where by editing a properties file of the web server
he specifies that all content of a specific type be handled by a servlet (it
removes all blink tags from anything with content type text/html being
served to the client, whether static or dynamically generated).

Specifically, for pages that have dynamic content that changes only once in
a very long while, I'd like to generate static html pages that are stored on
the server using JSP to create the content and a servlet to write the
results to a file. Does anybody know if this is possible?

Thanks,
Scott

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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



forward() or doGet()

2000-03-16 Thread Scott Evans

Hi,

If I want to have my controller servlet re-process the same request again
before forwarding to a jsp, is it better to use forward() or call doGet()
recursively?

Scott Evans
SI&I Training Development
46833 (Ramat Gan)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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: Need help with Model 2

2000-03-24 Thread Scott Evans

Craig and Kevin,

First of all, thanks - I'm a newbie and I've really learned a lot from
reading your correspondence.

I'm dying to know, the instance of the action class, is it multithreaded or
do you use it to create other instances of the same class?

As well, what happens with input errors? More methods in the Action
interface, like:

public boolean hasErrors();
public String getErrorMessage();
public String getHandlerURI();

i.e
try {
  action.perform(this, request, response);
  if (action.hasErrors()) {
String errorMessage = action.getErrorMessage();
String handlerURI = action.getHandlerURI();
request.setAttribute("ERROR", errorMessage);
request.getRequestDispatcher(handlerURI).forward(request, response);
  }
} catch (Exception e){...}

or perhaps...

public ErrorBean getError();  // (which may return null?)

action.perform(this, request, response);
ErrorBean error = action.getErrorBean();
if (error!=null) {
  request.setAttribute("ERROR", error);
  request.getRequestDispatcher(action.getHandlerURI).forward(request,
response);
}

or with home grown exceptions:

try {
  action.perform(this, request, response);
} catch (InvalidFormInputException ex){...
} catch (Exception e) {...}


thanks again,

Scott

> --
> From: Kevin Duffey[SMTP:[EMAIL PROTECTED]]
> Reply To: Kevin Duffey
> Sent: Saturday, March 18, 2000 4:19 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Need help with Model 2
>
> Hi,
>
>
> >I suppose you could call the controller servlet using a GET
> >request with query
> >line parameters, but in practice I always used a form for this.
> >Sometimes that
> >meant creating a form just to encapsulate a submit button that is
> >an image --
> >but a form nevertheless.
>
> Yeah..but so far I haven't seen a need to ever put an empty form just to
> call the servlet. Plus, with JSP you can map the .do like you mention
> later
> on, and just use  and call the
> servlet
> directly cant you? Not that any form parameters are passed, but I imagine
> you can do that if necessary..why I have no clue.
>
> >As you suggest -- if there's no business logic to be done, I don't see
> any
> >problem with linking directly from one JSP page directly to another.  In
> >essence, the user is manipulating the View without modifying the Model.
>
> Agreed.
>
> >I'm not actually using reflection.  All the action classes
> >implement something
> >like this:
> >
> >public interface Action {
> >
> >public void perform(HttpServlet servlet,
> >HttpServletRequest request,
> >HttpServletResponse response)
> >  throws IOException, ServletException;
> >
> >}
> >
> >so that I just deal with instances of an Action.  The advantages include:
> >
> >* Not all the logic is in one class, so it scales better and
> >  never runs into a class size limit my JVM might impose.
> >
> >* The logic can be written by multiple members of a
> >  team without fighting over a single source module.
> >
> >* Adding a new action requires zero software changes
> >  to the controller servlet itself -- just a new configuration
> >  parameter.
> >
> >* The controller servlet itself is generic enough to be used
> >  for multiple web applications.
>
> Very good points. I like your ideas and it does have some merit. However,
> is
> there any difference really in the way your doing it, and using descendant
> servlets, one for each form say, much like you use one action class for
> each
> form?
>
> >I tend to use initialization parameters for the controller
> >servlet.  It would
> >be just as simple to load from a properties resource file in the
> >init() method.
>
> I think I would prefer the property file just because I can edit it easier
> than editing init parameters, plus I would think it might be more portable
> to a J2EE app server. From what I have seen, init parameters have to be
> defined for each server you use. I could be wrong..but I thought I saw
> that
> somewhere. I know in Orion there is a .xml config file that you define
> init
> parameters for.
>
> >My favorite way is actually the third alternative that I presented in the
> >previous response.  I map the controller servlet to a filename
> >extension like
> >"*.do" -- which implies "go do something".  Then, my form submit looks
> >something like this:
> >
> 
>
>
> >The three approaches (hidden parameter, path information, and extension
> >mapping) are all functionally equivalent, and roughly the same
> >amount of code
> >in the controller servlet (one or two lines) -- I just find this
> >one makes my
> >JSP pages more readable.
>
> I agree with you. It does make for easier reading. The only downside is
> that
> you do have to do some changes on the server. The main one being mapping
> all
> .do files to a specific servlet. But, I have to admit..I like it. Seems
> the
> overall setup is using simple classes to handle the work, instead of
> servlets, with only a single servlet to call the action classes.

Tomcat crashes on RequestDispatcher.forward()

2000-04-03 Thread Scott Evans

Java.exe crashes (thus killing the web server with no exceptions thrown)
from the following code at the end of my controller servlet's doGet()
method:

if ( jspURI != null ) {
  RequestDispatcher rd = sc.getRequestDispatcher(jspURI);
  if (rd != null) rd.forward(request, response);
  else System.out.println("Resource at URI " + jspURI + " not found.");
}

Any ideas?

I'm using WinNT 4.0 with JDK1.2.2 and Tomcat 3.0.

thanks,

Scott Evans

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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: Browser Crash and Session tracking

2000-04-06 Thread Scott Evans

Check out the HttpSessionBindingListener interface and the
HttpSessionBindingEvent class in the docs of the javax.servlet.http package.
Such an event is created when you explicitly add (after login) or remove
(after logout) the implementing object to/from the session, or when the
session is invalidated due to timeout.

I recommend that unless your using applets, you not focus very much on
manipulating the browser - try to keep you logic on the server, as users
have their own unique "logic" using the browser.

Scott
- Original Message -
From: Venkat Srinivasan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 07, 2000 1:14 AM
Subject: Browser Crash and Session tracking


> Hi,
>
> I want to track the web browser sessions and perform a certain db
operations
> when the session ends, during logout. I want to know is there a way to
track
> the session when the browser is closed and invoke a particular function in
> my JSP evnironment.
>
> I am using Sun's JWS and Oracle DB
>
> Is there any funtion that would be invoked automatically, when the session
> ends.
>
> Thanks,
> Venkat
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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: Model 2 Question

2000-04-09 Thread Scott Evans

What do you mean by logical view?

Scott Evans
SI&I Training Development
46833 (Ramat Gan)



> -Original Message-
> From: Shone Sadler [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 09, 2000 4:08 PM
> To: [EMAIL PROTECTED]
> Subject: Model 2 Question
>
>
> Hello,
> I am also new to this camp as well as sevlets/jsp.
>
> I keep reading all of the discussions about Model II and MVC
> and I would
> like to thank everyone
> for an enlightening experience.
>
> My question, is also about the design of the Action.
> To me a View(HTML form) is nothing less than HTML and actions.
> The Action component of the controller is simple an event
> handler for a user
> action (button click, etc)
> I am attempting to make a flexible architecture for a
> packageable product,
> ie I do not want a end-user to compile functionality into the
> application.
> Has anyone used a scripting language such as JPython to implement the
> Action.
> Meaning:
> 1. Each request would be delegated to the ApplicationController
> 2. Application Controller would look into its action
> Hashtable (loaded from
> filesytesm/database) of scripts based on logical name and action name.
> 3. Application would create an instance of the Action class
> and execute it.
> 4. The action class would invoke JPython's embedded interpreter.
> The responsibilities of the script would be:
> 1.Manipulate the DataLayer
> 2.Tell the ApplicationController what logical view to send the
> request to.
> 5.The ApplicationController would look at the logical view
> returned and
> return an associated physical view(JSP page)
>
> Does anyone see any issues with this?  Any feedback appreciated!
>
> Thanks,
> Shone Sadler
> Developer
> Q-Link Technologies
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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



FW: Saving ServletRequest's...

2000-04-17 Thread Scott Evans

I'm forwarding a question that started on the tomcat-user list server:

As in the situation when the user submits a request that requires a session
and they don't have one or it has expired, so you want to save the request
parameters, forward to a login page, and then get them back when the user
has been authenticated?

I've been wondering myself about an elegant way to do this, without changing
my existing code that reads and
verifies request parameters. Saving the request object in the session also
occurred to me, but didn't seem like a good design approach from a
conceptual point of view. Is this even possible?

Scott Evans


> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 17, 2000 8:25 AM
> > To: [EMAIL PROTECTED]
> > Subject: Saving ServletRequest's...
> >
> >
> > Folks,
> >
> > A general servlet programming question, rather than one directed
> > specifically at Tomcat (are such questions considered wildly
> > offtopic for
> > this list?).
> >
> > Would anyone consider it unwise to write a web application
> > that saved the
> > last HttpServletRequest object received by a servlet in the
> > user's session,
> > and referred to it in the next request from the client?
> >
> > Regards,
> > James W.
> >
> > --
> > 
> > Cards etc will be on stand 1161 at CardTech SecurTech in Miami
> > from 2nd May to 4th May. Look forward to seeing you there!
> > --
> > 
> > This e-mail is from Cards Etc Pty Ltd (ACN: 069 533 302). It
> > may contain
> > privileged and confidential information. It is intended for
> the named
> > recipient(s) only. If you are not an intended recipient,
> > please notify us
> > immediately by reply e-mail or by phone on +61 2 9212 7773 &
> > delete this
> > e-mail from your system.
> > --
> > 
> >
> >
> >
> > --
> > 
> > To unsubscribe, email: [EMAIL PROTECTED]
> > For additional commmands, email: [EMAIL PROTECTED]
> >
>
> --
> 
> To unsubscribe, email: [EMAIL PROTECTED]
> For additional commmands, email: [EMAIL PROTECTED]
>

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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 to call a servlet from a JSP page ?

2000-04-17 Thread Scott Evans

But you cannot submit a form with a link unless you use javascript - which
is not a good idea if you want to make sure your forms always get submitted.


Instead, you need to use the image input tag and then on the server-side
check for its "existence" in the query parameters. You have got to do this
because it doesn't function like a normal button. Instead, when pressed the
coordinates of where you click on the image are sent as parameters, which
comes out to look like:

foo.jsp?imageField.x=13&imageField.y=12

You can't name these "image buttons", so if you have more than one they are
named in the order they appear in the html, so if the user clicked on the
third image button, it would look like this in the query string:

foo.jsp?imageField3.x=42&imageField3.y=16

This means you'll need to ensure that they always remain in the same order
in the html, or you'll need to change something in your code. IMHO, I don't
think this is worth the hassle and is error prone - use regular submit
buttons instead if possible.

Scott Evans



> -Original Message-
> From: Zhu Jianga [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 17, 2000 3:00 PM
> To: [EMAIL PROTECTED]
> Subject: Re: How to call a servlet from a JSP page ?
>
>
> I  think the problem is in your link:
>
>
> http://127.0.0.1:7001/servletclasses/myServlet.class" border=0
> > height=14 hspace=8 src="/pics/buttons/submit.gif">
>
> you do not have end ">" in the start "";
>
> 404 is "file not found error",so the problem is with the name of your
> servlet.
>
> another issue is when you upload the servlet to your server,
> you can give a
> name to it
> so that you don't need to use the class name of it. Anyway, i
> am sure you
> can use a link
> to call a servlet.
>
>
> -Original Message-
> From: EXT rahul khandelwal [mailto:[EMAIL PROTECTED]]
> Sent: 17. April 2000 14:16
> To: [EMAIL PROTECTED]
> Subject: Re: How to call a servlet from a JSP page ?
>
>
> Dear Pam,
>if u want ur image to work as a submit button then u can use this
>   height=14  src="/pics/buttons/submit.gif">.
> now this image will act as a submit button, and in the form
> action in the
> JSP page u can specify the name of the servlet, which u want
> the page to be
> submitted to.I hope this should work,
> enjoy programming,
>
> Rahul
>
>
>
> - Original Message -
> From: Pamela Cotture <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, April 13, 2000 8:09 PM
> Subject: How to call a servlet from a JSP page ?
>
>
> > I'd like to call a servlet from a JSP page when I click on
> an image that
> > represents my submit button.
> >
> > I've tested the following code in my jsp page but I got an
> 404-Error :
> >
> > http://127.0.0.1:7001/servletclasses/myServlet.class" border=0
> > height=14 hspace=8 src="/pics/buttons/submit.gif">
> >
> > Anyone can help me ?
> >
> > Thanks
> >
> > Pamela
> >
> > mailto:[EMAIL PROTECTED]
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  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".
> 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".
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".
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: off topic

2000-04-24 Thread Scott Evans

I believe it is because to read input & write output from the client,
servlets use stream classes which inherit from stream classes in the java.io
package.

Some of the methods of these servlet streams throw IOExceptions themselves.

These streams are retrieved by a servlet using request.getInputStream() and
response.getOutputStream().

Because the servlet container creates the request and response objects and
passes them to the servlet, I think it makes sense that if it's handing out
bad streams to the servlets it needs to find out about it.

@See
javax.servlet.ServletRequest.getInputStream()
javax.servlet.ServletInputStream
javax.servlet.ServletResponse.getOutputStream()
javax.servlet.ServletOutputStream
java.io.InputStream
java.io.OutputStream
in the APIs for more info.

Scott Evans


> -Original Message-
> From: Pattabiraman_Meenakshisundaram [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 24, 2000 1:28 PM
> To: [EMAIL PROTECTED]
> Subject: off topic
> Importance: High
>
>
> Hi,
> I have a basic doubt and is outside the scope of JSP.
> Could any one tell me the reason for a servlet throwing
> IOException. I am
> forced to include java.io package just for the sake of this exception.
>
> Thank you.
>
> Regards,
> pattabi
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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



Stress testing tool?

2000-04-25 Thread Scott Evans

Can anyone recommend a tool for stress testing my servlet/jsp application?

Thanks,

Scott Evans

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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: out.println() stmt....

2000-04-26 Thread Scott Evans

I looks to me like your curly brackets from the if statement,{ and }, are
nested improperly.

<%
if (request.getParameter("usrName") != null)
{
  out.println(request.getParameter("usrName"));
}
else {
  out.println("New User");
}
%>

Scott Evans


> -Original Message-
> From: Gogia Nitin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 27, 2000 8:18 AM
> To: [EMAIL PROTECTED]
> Subject: out.println() stmt
>
>
> Can anyone tell me what's wrong with the code. I want to get
> the user name
> from the FORM and display it on the screen. If the user name
> entered on the
> FORM is null i want to enter "New User".
> Now the problem is with 2nd part i.e. when User Name is null.
> "New User" is
> not being displayed on the screen and the JSP engine
> compiles the code correctly. So where exactly the problem lies ?
>
> <%if(request.getParameter("usrName") != null)
> {
> out.println(request.getParameter("usrName"));
> else
> out.println("New User");
> }%>
>
>
> Thanks in advance,
> Nitin
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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: doubt about browser window

2000-04-27 Thread Scott Evans

If you want to control the maximize and minimize buttons you better go back
to programming Windows GUI applications. On the web, those things below to
the user, not the application.

You can close with javascript any browser window that you opened with
javascript by calling the window's close() method. You can try to close
others, but those that you didn't open will first ask the user for
permission to close (at least on IE5).

Scott Evans


> -Original Message-
> From: Portal Team [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 27, 2000 8:34 AM
> To: [EMAIL PROTECTED]
> Subject: doubt about browser window
>
>
> hi everybody,
> could anybody let us know on how to disable the maximize ,
> minimize and
> closing buttons of a browser window or how to conditionally close the
> browser window .
>
>
> thanx in advance.
>
> __
> __
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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: Radio buttons and JSP

2000-04-27 Thread Scott Evans

Are you talking about radio button groups (single selection only) or check
box groups (multiple selections possible)?

You define groups of radio buttons or check boxes by giving all in the same
group the same name, but different values. Whatever is selected is sent with
the request. Not selected, not sent.

Scott Evans


> -Original Message-
> From: Mohan Radhakrishnan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 27, 2000 3:02 AM
> To: [EMAIL PROTECTED]
> Subject: Radio buttons and JSP
>
>
> Hi,
>  I have several radio buttons in the form. How do I
> pass all the
> boolean values based on the checked property of the buttons
> to the JSP page
> ?
>   There may be several buttons. Is there a way to do
> this with a
> bean ?
> bye,
> Mohan
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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: little doubt

2000-04-27 Thread Scott Evans

If you've already set the properties of the bean during processing, why
would you do it again in the jsp? It seems to me that you can just leave out
 if you've done all the processing in the controller
servlet.

Scott Evans
SI&I Training Development
46833 (Ramat Gan)



> -Original Message-
> From: Marco M [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, April 26, 2000 3:16 PM
> To: [EMAIL PROTECTED]
> Subject: Re: little doubt
>
>
> hi,
> ok i followed the suggestion to put the Bean in the session..
> but, that means that i should not use it with  class="mybean" scope="session" /> ??
> i have strange result every time that i do like that:
> when the servlet is called the first time, it puts into the
> session the
> various bean that must be used.
> then, in some jsp pages, i use
> 
>  (for getting
> advantage of
> having all the parameters set in the bean instead of looping
> thru various
> parameter)
>
> the problem that i have, is that the Properties in the Bean
> are set when i
> send the request back to the JSP page, in other words after
> processing the
> logic...
>
> anyone can explain me what is wrong??
> thanx in advance and regards
> marco
>
> > -Original Message-
> > From: EXT Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> > Sent: 25. April 2000 18:34
> > To: [EMAIL PROTECTED]
> > Subject: Re: little doubt
> >
> >
> > Marco M wrote:
> >
> > > hi all,
> > > i have a little doubt:
> > > i am using Model 2 architecture along with the  tag
> > > in my jsp page, i have  > class="package.TheBean"
> > > scope="request" />
> > > i have also 
> > > the problem is this:
> > > the Bean represent an user, with all the various properties
> > such as name,
> > > surname ecc..
> > > i must be able to change this information. and store the new
> > > informations
> > >
> > > using the scope = request, means that, if the page is
> forwarded to a
> > > Servlet, the Bean is available in the servlet if i use
> > > request.getAttribute("mybean") ??
> > > i don't think so, i have tried so many times that at the
> > end i realized that
> > > the bean is not available... but i want to be told that is
> > like that..
> > >
> >
> > As long as you are using  to forward, and not
> > response.sendRedirect(),
> > request attributes should be available through the remainder
> > of the current
> > request.  If you need them to last longer than the current
> > request (or you need to
> > use sendRedirect for some reason) you should store beans in
> > the session instead.
> >
> > >
> > > thanx in advance for your reply
> > > regards
> > > marco
> >
> > Craig
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
>  http://java.sun.com/products/jsp/faq.html
>  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".
> 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".
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 question

2000-04-27 Thread Scott Evans

You should use a different driver. I was using the JDBC-ODBC bridge driver
with SQL-Server 7.0 and it killed the java.exe after about three queries. I
switched to NetDirect's JDataConnect driver and haven't had a problem since.


There's a list of available drivers at Sun's site:
http://java.sun.com/products/jdbc/drivers

Scott Evans



> -Original Message-
> From: Deniz Ersöz [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 25, 2000 4:52 PM
> To: [EMAIL PROTECTED]
> Subject: Re: A question
>
>
> So, what should i use instead of JDBC-ODBC?
>
>
> - Original Message -
> From: "Scott Stirling" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, April 25, 2000 5:05 PM
> Subject: Re: A question
>
>
> > The Sun JDBC-ODBC bridge driver, which I'll bet dollars to
> donuts you're
> using
> > to connect to Access, is buggy.  It's always just a matter
> of time or
> number of
> > concurrent users until you hit a snag in it that will kill
> javaw.exe on
> Windows.
> >
> > Scott Stirling
> >
> > - Original Message -
> > From: Deniz Ersöz <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, April 25, 2000 9:49 AM
> > Subject: Re: A question
> >
> >
> > > Yes, my database connection part is approved in a normal
> application,
> but
> > > when I execute several queries JSWDK server crashes...
> > >
> > > - Original Message -
> > > From: "Rebecca Coleman" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, April 25, 2000 4:28 PM
> > > Subject: Re: A question
> > >
> > >
> > > > are you closing your connection to the db when you're finished?
> > > >
> > > > -Original Message-
> > > > From: Deniz Ersoz [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, April 25, 2000 8:51 AM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: A question
> > > >
> > > >
> > > > When I'm accessing an Access Database JSWDK 1.01 server
> crashes after
> > > > several queries... What vcan be the problem?
> > > >
> > > > Thanx for your attention.
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  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".
> 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".
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: out.println() stmt....

2000-04-27 Thread Scott Evans

Can you provide more fleshed out code? What nested loop?

Scott Evans

> -Original Message-
> From: Gogia Nitin [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 27, 2000 9:40 AM
> To: [EMAIL PROTECTED]
> Subject: Re: out.println() stmt
>
>
> No not working.
> Problem is when i give out.println("New User") separately it's working
> but inside the nested loop it's not working..
>
> Nitin
>
> > -Original Message-
> > From: Scott Evans [SMTP:[EMAIL PROTECTED]]
> > Sent: Thursday, April 27, 2000 1:04 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: out.println() stmt
> >
> > I looks to me like your curly brackets from the if
> statement,{ and }, are
> > nested improperly.
> >
> > <%
> > if (request.getParameter("usrName") != null)
> > {
> >   out.println(request.getParameter("usrName"));
> > }
> > else {
> >   out.println("New User");
> > }
> > %>
> >
> > Scott Evans
> >
> >
> > > -Original Message-
> > > From: Gogia Nitin [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, April 27, 2000 8:18 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: out.println() stmt
> > >
> > >
> > > Can anyone tell me what's wrong with the code. I want to get
> > > the user name
> > > from the FORM and display it on the screen. If the user name
> > > entered on the
> > > FORM is null i want to enter "New User".
> > > Now the problem is with 2nd part i.e. when User Name is null.
> > > "New User" is
> > > not being displayed on the screen and the JSP engine
> > > compiles the code correctly. So where exactly the problem lies ?
> > >
> > > <%if(request.getParameter("usrName") != null)
> > > {
> > > out.println(request.getParameter("usrName"));
> > > else
> > > out.println("New User");
> > > }%>
> > >
> > >
> > > Thanks in advance,
> > > Nitin
> > >
> > > ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > > "signoff JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> >  http://java.sun.com/products/jsp/faq.html
> >  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".
> > 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".
> 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".
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: Silly error message

2000-04-30 Thread Scott Evans

Did this occur as the result of a forward or include?

"Response has already been committed" in that context means that some data
has already been sent to the client, so you're not allowed to start over at
that point, so to speak.

Scott Evans


> -Original Message-
> From: Stefan Freyr Stefansson [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, April 30, 2000 5:23 PM
> To: [EMAIL PROTECTED]
> Subject: Silly error message
>
>
> Can anyone tell me what THIS means?
>
> Error: 500
> Location: /komodo/admin/adminDBProperties.jsp
> Internal Servlet Error:
>
> java.lang.IllegalStateException: Response has already been committed
> at
> org.apache.tomcat.core.HttpServletResponseFacade.sendError(Htt
> pServletRespon
> seFacade.java:157)
> at
> org.apache.jasper.runtime.JspServlet.unknownException(JspServl
> et.java:299)
> at
> org.apache.jasper.runtime.JspServlet.service(JspServlet.java, Compiled
> Code)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java,
> Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.pro
> cessConnection
> (Ajp12ConnectionHandler.java, Compiled Code)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java,
> Compiled Code)
> at java.lang.Thread.run(Thread.java:479)
>
> Any help is greatly appreciated.  Also... is there any error response
> reference page where you can look these errors up?
>
> Thanks,
> Stefan
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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: refreshing a frame

2000-05-02 Thread Scott Evans

Hi Pal,

Where do you put the meta-tags your documents? In the head or at the end?

Scott Evans



> -Original Message-
> From: Pal Brattberg [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 5:15 PM
> To: [EMAIL PROTECTED]
> Subject: Re: refreshing a frame
>
>
> > Be careful with using meta tags for refreshing. They work
> in Netscape,
> > but not IE.
>
> They work just fine in IE. In what version have you detected this bug?
>
> :: pal :: :  :  .
> ___s_p_r_a_y_
>
> >
> > -Original Message-
> > From: akaushik
> > Sent: Wednesday, March 03, 1999 10:48 PM
> > To: JSP-INTEREST
> > Subject: Re: refreshing a frame
> >
> >
> > U can referesh the fram by the help of META tags
> > The code is...
> >
> > 
> >
> > bye..
> > [EMAIL PROTECTED]
> >
> > - Original Message -
> > From: Kent Symanzik <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, May 01, 2000 6:48 PM
> > Subject: refreshing a frame
> >
> >
> > > I have a servlet that adds a row to the database as a
> > result of a form
> > post
> > > in frame A.  The rows in the db are displayed in a list
> in frame B.
> > How
> > can
> > > I tell frame B to refresh itself so it updates the list
> from the db?
> > >
> > > Kent
> > >
> > >
> > ==
> > ==
> > ===
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  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".
> > 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
> >
> >
> > This message contains confidential information and is intended only
> > for the individual named.  If you are not the named addressee you
> > should not disseminate, distribute or copy this e-mail.  Please
> > notify the sender immediately by e-mail if you have received this
> > e-mail by mistake and delete this e-mail from your system.
> >
> > E-mail transmission cannot be guaranteed to be secure or error-free
> > as information could be intercepted, corrupted, lost, destroyed,
> > arrive late or incomplete, or contain viruses.  The sender therefore
> > does not accept liability for any errors or omissions in
> the contents
> > of this message which arise as a result of e-mail transmission.  If
> > verification is required please request a hard-copy version.  This
> > message is provided for informational purposes and should not be
> > construed as a solicitation or offer to buy or sell any
> securities or
> > related financial instruments.
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  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".
> 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".
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: javaScript: How to disable a button in Netscape

2000-05-02 Thread Scott Evans

Hi Lee,

Sounds interesting. I know how to swap images, but how do you omit the A or
INPUT tag?

Scott Evans


> -Original Message-
> From: Lee Elenbaas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 6:34 PM
> To: [EMAIL PROTECTED]
> Subject: Re: javaScript: How to disable a button in Netscape
>
>
> I prefare to use images. You can always include them so the
> page maintain
> it's layout. but you can replace the image and ommit the A or
> INPUT tag that
> wrapps it.
> lee
>
> Lee Elenbaas
> ViryaNet
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Scott Evans
> Sent: Tuesday, May 02, 2000 6:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: javaScript: How to disable a button in Netscape
>
>
> Netscape 7.2? Is this the new beta release?
>
> I don't know about Netscape 7.2, but I know that in previous
> versions(4-5)
> of Netscape it is impossible. Instead design your pages so
> that you don't
> need to disable any buttons while they are displayed on the
> client browser.
> During dynamic generation on the server, exclude from the
> output the buttons
> that aren't relevant for the current view.
> (also known as thin-client)
>
> Scott Evans
>
>
>
> > -Original Message-
> > From: Kumaravel Kandasami [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 02, 2000 4:44 PM
> > To: [EMAIL PROTECTED]
> > Subject: javaScript: How to disable a button in Netscape
> >
> >
> > Hi All!
> >   I'm working in JavaScript & IE, now when I view the
> > same application on Netscape7.2. The disabled buttons
> > do not work in NS.
> >   My question is how do I disable a button, which
> > works on IE & NS ???
> >   Very Urgent, please respond as soon as possible
> >
> > Thanks,
> > Kumar
> >
> > __
> > Do You Yahoo!?
> > Send instant messages & get email alerts with Yahoo! Messenger.
> > http://im.yahoo.com/
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
>  http://java.sun.com/products/jsp/faq.html
>  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".
> 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".
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".
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: web.xml parsing bug in Tomcat3.1 (custom tag libs) ???

2000-05-02 Thread Scott Evans

What in the DTD below requires this? Simply the order of the Elements?

Scott Evans


> -Original Message-
> From: Allan Scott [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 5:08 PM
> To: [EMAIL PROTECTED]
> Subject: Re: web.xml parsing bug in Tomcat3.1 (custom tag libs) ???
>
>
> Hi Heiko,
>
> The ordering is required because the DTD for the web
> specifier requires it:
>
> 
>  context-param*, servlet*, servlet-mapping*, session-config?,
> mime-mapping*, welcome-file-list?, error-page*, resource-ref*,
> security-constraint*, login-config?, security-role*, env-entry*,
> ejb-ref*)>
>
> So this is not a bug - just the specified behavior.
>
> ---Allan
>
> - Original Message -
> From: "Heiko Gottschling" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 02, 2000 7:47 AM
> Subject: web.xml parsing bug in Tomcat3.1 (custom tag libs) ???
>
>
> > Hi,
> >
> > you may (or may not) have noticed my posting some days ago
> regarding a
> > problem with Tomcat3.1 and a custom tag library. Since no one solved
> > this problem, I had to solve it myself. Here's what I found out:
> >
> > When using a custom tag lib, Tomcat obviously insists on a
> certain order
> > of tags in the web.xml file. Tags must appear in this order:
> >
> > 
> > 
> > 
> >
> > Any deviation of this order yields an error when calling
> the JSP page.
> >
> > The error can easily be reproduced with the web.xml file of
> the example
> > webapp provided with tomcat. Re-arranging the order of tags
> within that
> > file breaks the "simpletag" example. (The JSP file must be
> compiled anew
> > after making the change to view the effect).
> >
> > Error message:
> >
> > >Unable to open taglibrary
http://java.apache.org/tomcat/examples-taglib :
> >Parse Error in the tag library descriptor: Element "web-app" does not
allow
> >"servlet-mapping" here.
>
> I have only checked for this error in conjuction with tag libs, so I
> don't know if it occurs otherwise, too.
>
> Is this a real bug, or is the order of tags in web.xml specified
> anywhere (can't imagine that's the case, though)?
>
> cu
> Heiko
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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".
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: javaScript: How to disable a button in Netscape

2000-05-02 Thread Scott Evans

Netscape 7.2? Is this the new beta release?

I don't know about Netscape 7.2, but I know that in previous versions(4-5)
of Netscape it is impossible. Instead design your pages so that you don't
need to disable any buttons while they are displayed on the client browser.
During dynamic generation on the server, exclude from the output the buttons
that aren't relevant for the current view.
(also known as thin-client)

Scott Evans



> -Original Message-
> From: Kumaravel Kandasami [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: javaScript: How to disable a button in Netscape
>
>
> Hi All!
>   I'm working in JavaScript & IE, now when I view the
> same application on Netscape7.2. The disabled buttons
> do not work in NS.
>   My question is how do I disable a button, which
> works on IE & NS ???
>   Very Urgent, please respond as soon as possible
>
> Thanks,
> Kumar
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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 a drop down list as a submit when the onchange event oc curs

2000-05-02 Thread Scott Evans

onChange="window.document.MyFormName.submit()"

Scott Evans


> -Original Message-
> From: Stefán Freyr Stefánsson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 7:50 PM
> To: [EMAIL PROTECTED]
> Subject: Using a drop down list as a submit when the onchange event
> occurs
>
>
> Hi!  I have a HTML question and I apologise if it doesn't
> quite fit in on
> this mailing list.
>
> The thing I need to do is to have a drop down list ()
> serve as a
> submit button on a form so whenever something on that form changes
> (onchange) the form is submitted.  Does anyone know of a good
> way to do
> this???
>
> Thanks alot in advance,
> Stefan
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of PÃ¥l Brattberg
> Sent: 2. maí 2000 16:50
> To: [EMAIL PROTECTED]
> Subject: Re: refreshing a frame
>
>
> inside the  tags.
>
> Try this HTML document in your browser:
>
> 
> 
> Redirect me!
> http://java.sun.com/">
> 
> 
> Please wait...
> 
> 
>
> :: pål :: :  :  .
> ___s_p_r_a_y_
>
> PÃ¥l Brattberg | [EMAIL PROTECTED]
> Mob: (+46) 0704 566299 | Tel: (+46) 08 52790122
>
> Här börjar internet | http://www.spray.se
>
> > -Original Message-
> > From: Scott Evans [mailto:[EMAIL PROTECTED]]
> > Sent: den 2 maj 2000 18:30
> > To: [EMAIL PROTECTED]
> > Subject: Re: refreshing a frame
> >
> >
> > Hi Pal,
> >
> > Where do you put the meta-tags your documents? In the head or
> > at the end?
> >
> > Scott Evans
> >
> >
> >
> > > -Original Message-
> > > From: Pal Brattberg [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, May 02, 2000 5:15 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: refreshing a frame
> > >
> > >
> > > > Be careful with using meta tags for refreshing. They work
> > > in Netscape,
> > > > but not IE.
> > >
> > > They work just fine in IE. In what version have you
> > detected this bug?
> > >
> > > :: pal :: :  :  .
> > > ___s_p_r_a_y_
> > >
> > > >
> > > > -Original Message-
> > > > From: akaushik
> > > > Sent: Wednesday, March 03, 1999 10:48 PM
> > > > To: JSP-INTEREST
> > > > Subject: Re: refreshing a frame
> > > >
> > > >
> > > > U can referesh the fram by the help of META tags
> > > > The code is...
> > > >
> > > > 
> > > >
> > > > bye..
> > > > [EMAIL PROTECTED]
> > > >
> > > > - Original Message -
> > > > From: Kent Symanzik <[EMAIL PROTECTED]>
> > > > To: <[EMAIL PROTECTED]>
> > > > Sent: Monday, May 01, 2000 6:48 PM
> > > > Subject: refreshing a frame
> > > >
> > > >
> > > > > I have a servlet that adds a row to the database as a
> > > > result of a form
> > > > post
> > > > > in frame A.  The rows in the db are displayed in a list
> > > in frame B.
> > > > How
> > > > can
> > > > > I tell frame B to refresh itself so it updates the list
> > > from the db?
> > > > >
> > > > > Kent
> > > > >
> > > > >
> > > > ==
> > > > ==
> > > > ===
> > > > > To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff
> > > > JSP-INTEREST".
> > > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > > >
> > > > >  http://java.sun.com/products/jsp/faq.html
> > > > >  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".
> > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > >
> > > >  http://java.sun.com/products/jsp/faq.html
> > >

Re: Invalid escape character ...

2000-05-02 Thread Scott Evans

Why don't you show us the code in your jsp that starts with <%@ page
import=" ?

Scott Evans
SI&I Training Development
46833 (Ramat Gan)



> -Original Message-
> From: Jose Castro [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 02, 2000 7:34 PM
> To: [EMAIL PROTECTED]
> Subject: Invalid escape character ...
>
>
> Hi,
>
> I'm getting the following error when I'm trying to run a
> Simple JSP ...
>
>
> Compilation of
> 'E:\weblogic\myserver\classfiles\examples\jsp\_dbtest\_update_
> 95_v1_95_1.jav
> a' failed:
> --
> --
> 
>
> E:\weblogic\myserver\classfiles\examples\jsp\_dbtest\_update_9
> 5_v1_95_1.java
> :15: Invalid escape character.
> probably occurred due to an error in dbtest\update_v1_1.jsp line 8:
> <%@ page import="
>
> E:\weblogic\myserver\classfiles\examples\jsp\_dbtest\_update_9
> 5_v1_95_1.java
> :16: Invalid escape character.
> probably occurred due to an error in dbtest\update_v1_1.jsp line 8:
> <%@ page import="
>
>
>
> Does anyone knows why?
>
> Thanks in advance,
> José Castro
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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 with session tracking,getting two sessions at a time .

2000-05-03 Thread Scott Evans

If you use request.getSession(false) instead of request.getSession() a new
session will not be created if one doesn't exist. Then you can get a clearer
picture of what is going on in your app.

How are you implementing the session id on the client, cookies or url
rewriting? It sounds like a problem with these.

Another idea is the amount of time allotted per session is way too short,
but I doubt it, as your probably going through the pages very quickly while
debugging.

And last, have you defined that your jsp page participates in the session?
As in:
<%page session="true" %>
I think you must do this.

Scott Evans



> -Original Message-
> From: PITCHUKA SRINIVASA RAO [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 03, 2000 7:49 AM
> To: [EMAIL PROTECTED]
> Subject: problem with session tracking,getting two sessions at a time.
>
>
> Hi all,
> In my application after user successfully logged in,I'll
> assign a adminID
> to him and I'm putting that adminID in that session.then I'm
> forwarding
>  to index.html file where total transactions or process to be
> done after
> user successfully logged in.In that index.html I'm having
> action to some
> jsp file(say viewresults.jsp) where I'm retriving the adminID.This is
> the actual procass to be done.
> But in the viewresults.jsp file I'm checking whether it's a new
> session,but it's not a new session and I also I checked whether the
> session valid.it's valid.but it's giving  a different sessionid in the
> viewresults.jsp due to which I was unable to retrieve the
> adminID form the
> session.Can any one help.
> Thanks in advance.
> Sreenivas p,CMCLtd,India
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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



Debugging with SingleThreadModel - was RE: *** Java Server suppor ting Servlets and Free? - Resin

2000-05-03 Thread Scott Evans

Hi Geert,

Now I'm interested - how do you use the SingleThreadModel to trace and
locate concurrency bugs?

Thanks,
Scott Evans



> -Original Message-
> From: Geert Van Damme [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 03, 2000 11:36 AM
> To: [EMAIL PROTECTED]
> Subject: Re: *** Java Server supporting Servlets and Free? - Resin
>
>
> Sure resin got bugs.
> If you don't accept that I think you better stay away from
> computers ;-)
>
> Of course it's possible that a single bug has a big impact on
> your specific
> implementation, but in most cases there are workarounds.
> A problem with the SingleThreadModel is more a feature than a
> bug, since I
> would strongly suggest NOT to use the SingleThreadModel if it's not
> absolutely necessary. I think the SingleThreadModel is OK during
> devbelopment to trace and locate concurrency bugs, but on a production
> server SingleThreadModel can ruin the performance.
>
>
> Geert 'Darling' Van Damme
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
> and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Germán López Castro
> Sent: woensdag 3 mei 2000 11:18
> To: [EMAIL PROTECTED]
> Subject: Re: *** Java Server supporting Servlets and Free? - Resin
>
>
> My only problem is I'm not sure if resin hasn't got any bugs, 'cause
> I know this server since a few months ago. Also, I've noticed version
> 1.1 had some problems with servlets that implement the
> SingleThreadModel and running servlets that connect to databases.
> These problems seem to be fixed in version 1.1.1, but I'm in a
> trouble while connecting to oracle databases thru oci8 and thin jdbc
> drivers, and I want to discard the causes of this problem.
>
>
>
>
>
>
>
>
> Consigue tu dirección de email gratis y permanente en
http://WWW.LETTERA.NET
= To unsubscribe: mailto [EMAIL PROTECTED] with
body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be
found at: http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=P
http://www.jguru.com/jguru/faq/faqpage.jsp?name=rvlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 - Javascript

2000-05-11 Thread Scott Evans

Maybe,
If your JS value is supposed to be a String then you need to add quotes.

var myDynamicValue = "<%= myBean.getValue() %>";

Scott Evans
SI&I Training Development
46833 (Ramat Gan)



> -Original Message-
> From: Sreenivasa R V [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 11, 2000 1:11 PM
> To: [EMAIL PROTECTED]
> Subject: Re: JSP - Javascript
>
>
> Hi Pal,
> I tried your solution, but it is giving javascript syntax
> error for the below
> line
>
> var myDynamicValue = <%= myBean.getMyValue() %>;
>
> Can someone give the reason for this.
>
> Thanx,
> Sreenivas R.V.
>
> Pal Brattberg wrote:
>
> > Absolutely, just insert the values directly in the JS.
> >
> > 
> > <!--
> >
> > var myDynamicValue = <%= myBean.getMyValue() %>;
> >
> > function init()
> > {
> > alert("myDynamicValue: " + myDynamicValue );
> > }
> >
> > //-->
> > 
> >
> > :: pal :: :  :  .
> > ___s_p_r_a_y_
> >
> > Pal Brattberg | [EMAIL PROTECTED]
> > Mob: (+46) 0704 566299 | Tel: (+46) 08 52790122
> >
> > Har borjar internet | http://www.spray.se
> >
> > > -Original Message-
> > > From: Sreenivasa R V [mailto:[EMAIL PROTECTED]]
> > > Sent: den 11 maj 2000 09:07
> > > To: [EMAIL PROTECTED]
> > > Subject: JSP - Javascript
> > >
> > >
> > > Hi,
> > > I want to use javascript in my Presentation.jsp. How
> can i use the
> > > java bean variables in a javascript method.
> > > As of now i am declaring a hidden text field and then
> setting the
> > > value using <%= .%>. Then i am accessing the hidden text
> > > field value
> > > in my javascript method. It becomes a tedious approach when
> > > the variable
> > > list increases.
> > >
> > > Is there any other way of doing this???
> > >
> > > Thanx in Advance,
> > > Sreenivas R.V.
> > >
> > > ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body:
> > > "signoff JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  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".
> > 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".
> 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".
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: JavaBeans Compile?

2000-05-18 Thread Scott Evans

For your class to be a JavaBean (in the JSP world, not in general) it needs
to have a no-args constructor so that it can be instantianted by the jsp
engine, such as

public MyBean() {
// do whatever
}

If you want to use JSP's getProperty & setProperty tags you need to have
associated mutator methods in the bean, such as:

public void setFoo(String foo) {
  this.foo = foo;
}

public String getFoo() {
  return foo;
}

where 'foo' is the name of the property.

Scott Evans
SI&I Training Development
46833 (Ramat Gan)



> -Original Message-
> From: Pete Walsh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 17, 2000 4:55 PM
> To: [EMAIL PROTECTED]
> Subject: JavaBeans Compile?
>
>
> Ok I am starting to use JavaBeans with JSP pages.  I've never
> made a 'bean'
> before and I was wondering how to do it.  When I try to
> recompile the code
> to a bean I dont get errors (using normal javac 'filename')
> but when the jsp
> pages comes up it has errors.  The code isnt messed up
> because I am using
> the code for an example that works.  Is compiling a bean
> different than
> compiling normal Java code?
>
> Also do I need Java Enterprise Edition SDK 1.2.1?  I have the Standard
> Edition SDK 1.3.  (When I tried to install the J2EE it didnt
> have javac in
> it and I was all confused)  Please explain if this is the
> reason.  I just
> started programming in java and don't know the basics.  Thanks.
>
> Thanks
>
> Pete
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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 to pass parameter from html file to Bean with JSP

2000-05-18 Thread Scott Evans

Have you tried changing the bean's scope to request? That's where the
parameters being passed via http live.

Scott Evans
SI&I Training Development
46833 (Ramat Gan)



> -Original Message-
> From: Nwalal Mi Nyom Martin [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 16, 2000 7:31 PM
> To: [EMAIL PROTECTED]
> Subject: How to pass parameter from html file to Bean with JSP
>
>
> I am new in JSP, I havve a probleme to pass values from
> login.html(below) to loginBean (below) by using JSP file.
>
> please help i was already passed a lot of times without  succes.
>
>
> > login.htm
> >
> ==
> > 
> > 
> >
> > 
> > 
> > 
> >  Username:
> >
> >  Password:
> >
> >  
> >   
> > 
> > 
> > 
> >
> >
> > checkLogin.jsp
> > -
> > <%@ page import="projet_pack1.*;" errorPage="errorpge.jsp" %>
> >  > class="projet_pack1.loginBean"/>
> > 
> >
> >
> ><%
> >String display="login.html";
> >User user=loginBean.authentification();
> >if(user!=null){
> >
> > display="browser.jsp";
> >
> >}
> >
> > %>
> >  
> > --
> >
> > loginBean.java
> > --
> >
> > package projet_pack1;
> >
> > public class loginBean{
> >
> >  private String username;
> >  private String password;
> >
> >  public void setUsername(String username){
> > this.username=username;
> >  }
> >
> >  public void setPassword(String password){
> > this.password=password;
> >  }
> >
> >  public  String getUsername(){
> >return username;
> >  }
> >
> >  public  String getPassword(){
> >return password;
> >  }
> >
> >  public User authentification(){
> >  if (username.equals("projet")&&password.equals
> >  ("jsp"))
> >  return new User("projet");
> >  else
> >  return null;
> >
> >   }
> > }
> >
> > ---
> >
> > User.java
> >
> > package projet_pack1;
> >
> > public class User{
> >
> >   private String userId;
> >
> >   public User(String userId){
> >  this.userId=userId;
> >   }
> >
> >   public String getUser(){
> >   return userId;
> >   }
> >
> >public String toString(){
> >return userId;
> >}
> >  }
> >
> >
>
>
> __
> Do You Yahoo!?
> Send instant messages & get email alerts with Yahoo! Messenger.
> http://im.yahoo.com/
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
 http://java.sun.com/products/jsp/faq.html
 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".
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: JSPs and XML.

2000-05-18 Thread Scott Evans

Can you please give an example of what the jsp page with the enclosing tag
would look like?
i.e. what about page directives and the like?

TIA,

Scott Evans


> -Original Message-
> From: Daniel Lopez [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 18, 2000 11:58 AM
> To: [EMAIL PROTECTED]
> Subject: Re: JSPs and XML.
>
>
> Shawn,
>
> There are at least 2 method through which you can post-process the XML
> generated in a JSP page. One is the approach that Joseph uses,
> post-processing based in the mime-type of the answer. However, this
> approach is container specific and we prefer to use the second one,
> which is nothing less than using a JSP taglib that encloses your whole
> JSP and postprocess everything in the doEndTag() method. You
> just need a
> JSP1.1 compatible container and the actual taglib class is
> very simple.
> I have tested it and it works, we are just not using it now because
> PL/SQL is good enough for what we want to do. If we needed to process
> some files/ access the filesystem, then I'd introduce JSPs in the mix.
> I hope this helps,
> Dan
> ---
> Daniel Lopez Janariz ([EMAIL PROTECTED])
> Web Services
> Computer Center
> Balearic Islands University
> ---
>
> "Joseph B. Ottinger" wrote:
> >
> > On Thu, 18 May 2000, Shawn McKisson wrote:
> >
> > Coimments are interspersed.
> >
> > > The problem with using JSP for generating XML is that the
> JSP wants to
> > > assume that it is sitting at the  top level of your
> application, i.e. it
> > > wants to send the response back to the client.
> >
> > It does? Funny, I use JSP to generate XML all the time, and it goes
> > through XSL on the server...
> >
> > > >From what I understand, your current architecture looks like this
> > >
> > > [db] <-> [pl/sql] ---XML---> [XSL engine] --HTML via
> HTTP---> [client]
> > >
> > > If we try to introduce JSP into this scenario we get
> > >
> > > [db] <-> [pl/sql] ---data---> [JSP] ---XML via
> HTTP--> [client]
> > >
> > > There is no room after the JSP layer to perform the XSL
> transformation
> > > JSP does not allow for post processing of it's output in
> order to perform
> > > the rendering. I believe this is because JSP is meant to
> be used in as
> > > presentation generation language, not as a data mapping
> language. Sure, you
> > > could chain this to another servlet which contained your
> rendering code, but
> > > it is much cleaner to just have something like
> > >
> > > [db] <-> [pl/sql] ---data---> [XML data mapping code]
> ---XML--> [XSL
> > > engine] --XML/PDF/etc. via HTTP--> [client]
> > >
> > > It is the requirement that JSP respond to the client that
> limits its
> > > usefulness in this context.
> >
> > Um, maybe you should switch to a better app server, one that allows
> > chaining based on mime types. As stated, I use a design
> something like
> > this:
> >
> > [db] --data--> [beans] --> jsp --XML+XSL--> HTML
> >
> > The XSL can be active content itself, so the HTML is
> variable (I just
> > haven't used it for anything else.
> >
> > BTW, example content can be found at
> http://www.orionsupport.com/ - don't
> > let the file extensions fool you, it's all JSP, XML, XSL.
> >
> > > --shawn
> > >
> > > - Original Message -
> > > From: Daniel Lopez <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Thursday, May 18, 2000 1:32 AM
> > > Subject: Re: JSPs and XML.
> > >
> > >
> > > > Hi Shawn,
> > > >
> > > > We are doing something very similar, and we might as
> well use JSP later
> > > > down the road so I'll get you my own reasoning.
> > > > Why? Because that way you have the data generated by your action
> > > > completely independent of the way you present the data.
> So independent
> > > > that you don't have to use Java to format this data or
> even produce it.
> > > > For example, right now we skipped the JSP part because
> we are generating
> > > > the XML directly from PL/SQL but if we have to add some
> operations that
> > > > will be done better in Java (handling files...) we just
> need to produce
> > > > XML from Java and use the same XSLT sheets as the
&

Re: doPost() to doGet() via RequestDispatcher

2000-05-18 Thread Scott Evans

In Servlet A's doPost, you can call doGet (still Servlet A) and then forward
to Servlet B.

Scott Evans




> -Original Message-
> From: Serbulent Ozturk [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 18, 2000 5:03 PM
> To: [EMAIL PROTECTED]
> Subject: doPost() to doGet() via RequestDispatcher
>
>
> Hi,
>
> My Servlet-(A) gets a POST request from a form after
> processing it I need to
> pass it to another Servlet-(B) but I need to pass it to
> Servlet(B)'s doGet()
> method.  As the original request line was POST, it always invokes
> Servlet-(B)'s doPost().
>
> 
> getServletContext().getRequestDispatcher("/servlet/B").include
> (req, res);
> 
>
>
> I guest I can set an attribute in the request in the
> Servlet-(A) before
> dispatching and retrieve it at the begginning of Servlet-(B)
> doPost() and if
> true call the doGet(), as a work around.
>
> However, although I could not fond t in API Socumentation, I
> think there
> must/should be a convential way of changing the Method type in the
> Request-Line dynamically, as it is encapsulated as an object, i.e.
> HttpServletRequest.
>
> Any ideas?
>
>
> Bulent
> __
> __
> Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Database Help

2000-05-24 Thread Scott Evans

If you use PreparedStatement instead of Statement, this problem is
automatically taken care of in a cross-platform way.

-Original Message-
From:   ramadevi [mailto:[EMAIL PROTECTED]]
Sent:   Monday, January 24, 2000 8:51 AM
To: [EMAIL PROTECTED]
Subject:Re: Database Help

hai
you can do it like this
first set the escape on by issuing
set escape on ,then
select * from sample where name='o\''reily';

Dominic Choo wrote:

> I would like to ask anyone the help me to solve this SQL
command problem.
> For example:
>
> Select * from Personal where Name like '%O'hara%';
>
> This SQL command will produce an error because the
existance of the  " ' "
> character in the "O'hara" word.
> Please help me to solve this problem.. Thanx!
>
> Choo Khai Shien, Dominic
>
> ---
> Disclaimer note:
> Confidential information may be contained in the e-mail
and any files
> transmitted with it ('Message'). If you are not the
addressee indicated in
> this Message (or responsible for the delivery of this
Message to such
> person), you are hereby notified that any dissemination,
distribution,
> printing or copying of this Message or any part thereof is
strictly
> prohibited. In such a case, you should delete this Message
immediately and
> advise the sender by return e-mail. Opinions, conclusions
and other
> information in this Message that do not relate to the
official business of
> e-BX nor any of its related companies shall be understood
as neither given
> nor endorsed by e-BX nor any of its related companies.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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".
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



OFFTOPIC "Standard SQL" -- WAS: "RE: jsp and NT"

2000-06-01 Thread Scott Evans

Jim Bailey wrote:
"Make sure that you use as much standard SQL as possible and not Oracle's
PL-SQL unless you want to be tied to Oracle."

Does anyone know an Internet resource that really details the syntax of
standard SQL, preferably with a JDBC focus and in human readable format. :-)

Thanks,

Scott Evans

-Original Message-
From:   Jim Bailey [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, May 31, 2000 7:43 PM
To: [EMAIL PROTECTED]
Subject:Re: jsp and NT

First and foremost, make sure that your development is
standards based and
you can pretty much switch your environment at will. We
currently run NT
because that is the environment that our systems people
prefer. As
developers we are pretty neutral as long as the system is
reliable.

We were using Websphere 2.0x as our app server and IIS for
our web server in
our production environment but we recently switched to the
Resin app server
and IIS so that we could upgrade to JSP 1.x. We could easily
switch to Unix
and Apache and a different app server if it ever becomes
necessary.

We run 100% Java for our business logic and use JSP & HTML
for presentation
layer. There is nothing NT specific about what we do. We use
MS-SQL and JDBC
for our database connectivity, but again we are totally
standards based and
avoid anything platform specific like stored procedures--we
also run under
Oracle with the same business logic code.

So my conclusion, be careful about the technologies that you
use for your
server environment and you won't get locked into any vendor.
Then religious
questions like NT vs. Unix or Oracle vs. MS become purely
academic.  You get
to choose what works best and have the ability to switch if
something better
comes along. Avoid proprietary environments like ASP unless
you really don't
care if you are tied to Microsoft. Make sure that you use as
much standard
SQL as possible and not Oracle's PL-SQL unless you want to
be tied to
Oracle.

Hope this helps.

-Original Message-
From: Alex Strasheim [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 12:22 PM
To: [EMAIL PROTECTED]
Subject: jsp and NT

Changing the subject a little, what is your feeling about
JSP on NT?
Most of the Java people I know are hard core unix people,
and they
give me dire but vague warnings about mixing MS with Java.

Right now I have a production ASP site that I'd like to port
to JSP
and Unix.  If I could rewrite it a little bit at a time, and
keep
everything on the same server, it would be a lot easier than
rebuilding the whole thing at once then flipping the switch.
Once the
site was all JSP, I could do whatever I wanted with it.


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 to insert a filed consisting of single quote in msaccess?

2000-06-05 Thread Scott Evans

PreparedStatements automatically escape quotes and other problematic
characters in the form that your database expects them to be escaped.
Otherwise, you have to do it by hand, and you may have to change how you
escape some things if you change your database.

Note that this won't protect you from users embedding html tags in your
forms which can mess up your jsp output.

Scott Evans

-Original Message-
From:   Khem Chand Sachdeva
[mailto:[EMAIL PROTECTED]]
Sent:   Monday, June 05, 2000 12:07 PM
To: [EMAIL PROTECTED]
Subject:Re: how to insert a filed consisting of
single quote in msaccess?

how exactly using PreparedStatement will help in this case
hoping for a answer,
khem,

Kishore Raghavan wrote:

> Wensj,
>
> You do lot of effort in getting rid of characters like
quotes etc... How
> many such characters will you keep replacing ???
>
> Use PreparedStatements in your inserts. All your problems
will get solved
> automatically. Tap the power of JDBC please
>
> Kishore Raghavan
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of wensj
> Sent: Monday, June 05, 2000 2:23 AM
> To: [EMAIL PROTECTED]
> Subject: Re: how to insert a filed consisting of single
quote in
> msaccess?
>
> hi:
> i'm met this question,this because your text field
include character
> "\'".
> in SQL statement,it's look as separater.
>eg: when you insert "b'day" as the third field into
table.
> SQL statement is:insert into table
values('aa','bb','b'day'.)
> at this time, it cause SQLException: "comma wanting";
> how can we aviod this problem?
> i'm througth two ways
> one is: not permit input "\'" at text field.
> the other is: before insert,use other character
replace it.
> eg:
><% String
tmpstr=request.getParameter("strwithspe");
> tmpstr=tmpstr.replace("\'","~");
> %>
> user "~" replace "\'",
> when you get data from database,you must replace
character "~" with
> "\'".
>
>
ok?
>
> - Original Message -
> From: Kotireddy Mutyam <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, June 05, 2000 3:56 PM
> Subject: how to insert a filed consisting of single quote
in msaccess?
>
> > hi friends,
> > I am working on JSP using JRun with MSAccess as a
Database.
> > I am not able to insert a field for example if i enter
the value in text
> >   field like "b'day" it is throwing exception. How
to overcome the
> >   error?
> > TIA
> > kotireddy
> > [EMAIL PROTECTED]
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  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".
> Some relevant FAQs on JSP/Servlets can be found at:
>

Re: tomcat server dies easy?

2000-06-06 Thread Scott Evans

Couldn't it be that the server is killed because you call System.exit(1) in
the catch statement?

I believe that is intended for stand-alone applications and should never be
found in a servlet or jsp.

-Original Message-
From:   Alan Lun [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, June 06, 2000 12:16 PM
To: [EMAIL PROTECTED]
Subject:tomcat server dies easy?

When a servlet tries to read the file that doesn't exist,
the tomcat
server is killed. I used a code from

"http://triton.towson.edu/~schmitt/server/servlet/guestbook6.java"

try {
 BufferedReader in = new BufferedReader(new
InputStreamReader(
 new
FileInputStream("/usr/faculty/schmitt/.mysql-init")));
} catch (Exception e) {
   out.println("guestbook6: cannot read .mysql-init");
   System.exit(1);
}

Any ideas?

Thanks

Alan

[EMAIL PROTECTED]


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: tomcat server dies easy?

2000-06-06 Thread Scott Evans

I looked at the code and seems really old. It looks like a servlet that
executes like an external CGI program, rather than in a servlet container.

Here's a list of tutorials and resources that Nayak Savitha sent to list a
while back:

http://www.webreview.com/pub/2000/01/07/style/nov99.html
The big tutorial "Servlet Essentials":
www.novocode.com/doc/servlet-essentials/
Other tutorials you can find at www.servlets.com
Java Server Pages (JSP)
http://java.sun.com/products/jsp/
http://java.sun.com/products/jsp/docs.html
http://www.sunworld.com/sunworldonline/swol-08-1998/swol-08-asp.html
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp.html
http://www.gamelan.com/journal/techworkshop/092199_jsp1.html
http://www.gamelan.com/journal/techworkshop/092899_jsp2.html
http://www7.software.ibm.com/vad.nsf/data/document2389?OpenDocument
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://www.browsebooks.com/Fields/
http://java.sun.com/products/jsp/jsp-asp.html
http://java.sun.com/products/jsp/technical.html
http://java.sun.com/products/jsp/faq.html
http://www.serverpages.com/Java_Server_Pages/
http://www.jsptutorial.com/
http://www.servletcentral.com/1998-12/jsp.dchtml
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/files/read.html
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/jdbc/index.html
http://java.sun.com/products/jsp/html/jspbasics.fm3.html
http://www.interpasnet.com/JSS/
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms.html
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-jspxml.html
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
http://www.taglib.com/
http://jakarta.apache.org/taglibs/
http://jsptags.com/
http://www.devx.com/upload/free/features/javapro/2000/04apr00/te0004/te0004
-1.asp

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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



-Original Message-
    From:   Scott Evans [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, June 06, 2000 2:32 PM
To: [EMAIL PROTECTED]
Subject:Re: tomcat server dies easy?

Couldn't it be that the server is killed because you call
System.exit(1) in
the catch statement?

I believe that is intended for stand-alone applications and
should never be
found in a servlet or jsp.

-Original Message-
From:   Alan Lun
[mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, June 06, 2000 12:16 PM
To: [EMAIL PROTECTED]
Subject:tomcat server dies easy?

When a servlet tries to read the file that
doesn't exist,
the tomcat
server is killed. I used a code from


"http://triton.towson.edu/~schmitt/server/servlet/guestbook6.java"

try {
 BufferedReader in = new
BufferedReader(new
InputStreamReader(
 new
FileInputStream("/usr/faculty/schmitt/.mysql-init")));
} catch (Exception e) {
   out.println("guestbook6: cannot read
.mysql-init");
   System.exit(1);
}

Any ideas?

Thanks

Alan

[EMAIL PROTECTED]



===
To unsubscribe: mailto [EMAIL PROTECTED]
with body:
"signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be
found at:

 http://java.sun.com/products/jsp/faq.html
 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".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.c

Re: JSWDK problem Urgent

2000-06-07 Thread Scott Evans

I'm willing to guess that you guys are using sun's JdbcOdbc bridge on
Windows for your JDBC driver...
When I used it it killed the JVM every time - when I switched drivers all my
problems disappeared.

Scott


-Original Message-
From:   Gogia Nitin [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 07, 2000 12:39 PM
To: [EMAIL PROTECTED]
Subject:Re: JSWDK problem Urgent

This is the problem with TOMCAT also...I don't know why i am
getting it.

Nitin

> -Original Message-
> From: Marco M [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, June 07, 2000 3:21 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: JSWDK problem Urgent
>
> hi
>  i also got error with JSWDK 1.0 & 1.1'
> so, try to move to tomcat!! i think JSWDK is outdated
> regards
> marco
>
> > -Original Message-
> > From: EXT Madhavi, Aaji (IE10)
[mailto:[EMAIL PROTECTED]]
> > Sent: 07. June 2000 12:47
> > To: [EMAIL PROTECTED]
> > Subject: Re: JSWDK problem Urgent
> >
> >
> > Hi everyone
> >
> > I am facing the same problem. It happens while handling
> > Database operations
> > as well as when I am trying to pass some session value
to
> > anothere JSP. This
> > happens even when I am using JRun. Please Help!!!
> >
> > Regards,
> > Madhavi.
> >
> > > -Original Message-
> > > From: Nilesh Maheshwari (Yahoo)
[SMTP:[EMAIL PROTECTED]]
> > > Sent: Wednesday, June 07, 2000 1:58 PM
> > > To:   [EMAIL PROTECTED]
> > > Subject:  JSWDK problem Urgent
> > >
> > > Hi All,
> > >
> > > I am using JSWDK 1.0 for my JSP and servlet
development and
> > testing. But
> > > on
> > > every request to a JSP which is handing Database
operations
> > the Dr. Watson
> > > error is reported. I am unable to test my JSP
continuiously
> > as it reports
> > > the Dr. Watson error very often.
> > >
> > > Can anybody help?
> > >
> > > ~Nilesh
> > >
> > >
> > >
> > >
> > > __
> > > Do You Yahoo!?
> > > Talk to your friends online with Yahoo! Messenger.
> > > http://im.yahoo.com
> > >
> > >
> >
==
> > 
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with
body: "signoff
> > > JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  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".
> > 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".
> 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: Where we can find tutorial for JAVASCRIPT in the web

2000-06-07 Thread Scott Evans

www.webmonkey.com

-Original Message-
From:   Nwalal Mi Nyom Martin [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 07, 2000 3:55 PM
To: [EMAIL PROTECTED]
Subject:Where we can find tutorial for JAVASCRIPT in
the web

Hi,
Can someone telle me where I can find good tutorial for
JavaScript
tanks

Martin

__
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Invoking a servlet via a hyperlink

2000-06-08 Thread Scott Evans

I believe that the problem with this approach is that POST/doPost()
parameters are not supposed to be in the url where they can be seen by the
client. They are intended to be sent as part of the header. If you want to
send parameters as part of a link you should use the GET/doGet() or
GET/service().

Scott

-Original Message-
From:   Ferghil O'Rourke [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, June 08, 2000 3:47 AM
To: [EMAIL PROTECTED]
Subject:Re: Invoking a servlet via a hyperlink

Yes. I've just managed to get this working. I can now invoke
the servlet and pass in the parm values trailing it.

Just a Q since I have you though. When I use
req.getParameters()
to get the parameter string here it just comes back as one
big
string. So I'll have to parse the parameters out manually
right?

Thanks.
Ferghil

-Original Message-
From: A mailing list about Java Server Pages specification
and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Shrisha
Radhakrishna
Sent: Wednesday, June 07, 2000 7:37 PM
To: [EMAIL PROTECTED]
Subject: Re: Invoking a servlet via a hyperlink


I might be way off here (since I don't use this approach);
but, can't you
just say

Hyp
erlink

This should definitely invoke the controller servlet with
all the right
parameters.

- Original Message -
From: "Ferghil O'Rourke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 5:44 PM
Subject: Re: Invoking a servlet via a hyperlink


> Yes, I'm pretty sure that I can pass the values via the
href ok to the
> servlet
> and have it parse those parms when it gets them. But
that's not the
problem.
>
> The problem is how to get the servlet invoked from the
hyperlink. Right
now
> the hyperlink isn't even invoking my servlet.
> Also, I'd prefer not to use javascript if possible as I
don't want to run
> the risk of losing browsers that don't support it.
>
> -Ferghil
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ian
> Sent: Wednesday, June 07, 2000 6:33 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Invoking a servlet via a hyperlink
>
>
> have you tried using
>
> my
link
>
> I would think this would pass all the same info as a form.
>
> /Ian
>
> -Original Message-
> From: A mailing list about Java Server Pages specification
and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Ferghil
O'Rourke
> Sent: Wednesday, June 07, 2000 7:31 PM
> To: [EMAIL PROTECTED]
> Subject: Invoking a servlet via a hyperlink
>
>
> [sorry, not sure this got submitted earlier...]
>
> Anyone got any ideas on how handle hyperlinks in an MVC
controller
servlet?
>
> We've been in the process of developing a servlet based on
the MVC model 2
> architecture for the last few months now. And many thanks
to Craig for his
> key contributions here. I've implemented his action class
mechanism
> successfully to have a single "controller" servlet
interact with java
> business objects thru action objects.
>
> Each action object maps to the name attached to a FORM
SUBMIT in our JSP
> pages. So, for example, a pushbutton submits the name
"RetrieveVendors.do"
> to the controller servlet, the servlet uses this string as
a key to a
> hashtable of action class names, instantiates the relevant
action class,
and
> finally invokes it's perform() method. The action class
then takes over
and
> performs processing relavant to that pushbutton. It also
has the facility
to
> pull all the data from the SUBMIT into the relevant
business object.
>
> It all

Re: JSP mapping to my own servlet?

2000-06-13 Thread Scott Evans

Hi Daniel,

You wrote:
"And if you got paranoid you could even protect your JSPs
from being accesed directly by
disallowing any other hosts to access /whatever/*.jsp but
your local host."

How can I do that? Is it container specific?

I've also written my own model 2 security mechanism provided by the
controller servlet - everything works great, but I don't know how to stop
users from invoking my jsp's directly.

For example, if an application link is:
/servletMapName/doLogin

how can I protect against a user directly accessing a page via its file
system location, such as:
 /jsp/login.jsp ?

Thanks,
Scott

-Original Message-
From:   Daniel Lopez [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, June 13, 2000 12:16 PM
To: [EMAIL PROTECTED]
Subject:Re: JSP mapping to my own servlet?

Hi Kevin,

I've done pretty much what you are asking for in our WebLeaf
framework,
so I'll add my own comments intermixed ;).

--
Date:Mon, 12 Jun 2000 10:24:06 -0700
From:"Craig R. McClanahan"
<[EMAIL PROTECTED]>
Subject: Re: JSP mapping to my own servlet?
>Kevin Duffey wrote:
>
>> Hi,
>>
>> I was wondering, following the Struts framework, Model 2,
etc..since
>> servlets merely map the JSP extension to their own
incarnation of
>> JSPServlet, is it possible to map all JSP pages to my
ControllerServlet
>(or
>> for that matter, the controller servlet of the Struts
framework), so
>that I
>> could place security abilities and other things (making
sure pages they
try
>> to access are allowed..if they are logged in or not,
etc)? If so, is
>there a
>> lot involed in such a task?

That actually depends on what you want to do in the
controller servlet.
We do have customizable-flexible-dynamic authentication and
application-wide event handling. As the security part is
somehow
sophisticated (error messages specify "wrong password, user
doesn't
exist..", concurrent access is controlled...) then it has
not been a
one-day task. On the other hand, we are quite happy with the
result and
we have been using it since then.


>>I know I could just remap the servers JSP
>> mapping, but I am wondering if it makes more sense to
just comment out
their
>> mapping, and put the JSP mapping into my web.xml for my
application..or
can
>> I leave the servers there, but map it anyways..and my
web.xml mapping
would
>> override the servers?
>>

>Mapping the JSP extension to your controller servlet means
that you have
>to do
>everything the JSP servlet would have done (compile the
page if the source
>is
>newer, execute the corresponding servlet, and so on).  This
is not for the
>faint of
>heart :-).

Craig is right, of course ;). What I did before getting into
the Model2
world was to create a base JSP class that implemented the
security
routines and then force the JSP generated class to extend
this base
secured class using the "extends" JSP directive. It worked
even though I
had some problems with some engines tha t were not compliant
to the spec
so the extends directive didn't work. Then I got into the
Model 2
arquitecture and used JSP just as a view so I implemented
the security
in the controller and I was much happier.
Then I moved to Model 3 and I don't use JSP so I was
reassured that
implementing this in the controller and not in the JSPs was
the right
choice.

>If you are building your app for a servlet container that
implements the
>version
>2.2 spec (and in particular the security constraints
stuff), my answer
>would be
>"you are trying to work to hard."  Just let the servlet
container's
>security
>constraints deal with authentication and access checking.

If the specification was flexible and complete enough I
would agree
with  Craig in this point. That was the reason that "forced"
me to
create my own. On the other hand, I agree that if your
security scheme
 

Re: ServletContext.getRequestDispatcher

2000-06-14 Thread Scott Evans

Here's your answer - straight out of the Servlet API javadoc:

"The pathname must begin with a "/" and is interpreted as relative to the
current context root. Use  getContext  to obtain a  RequestDispatcher  for
resources in foreign contexts. This method returns  null  if the
ServletContext  cannot return a  RequestDispatcher ."

Scott Evans

-Original Message-
From:   Arun M. Thomas [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 14, 2000 2:30 AM
To: [EMAIL PROTECTED]
Subject:ServletContext.getRequestDispatcher

Does anyone know whether or not
ServletContext.getRequestDispatcher is
supposed to be able to return a non-null request dispatcher
is a
non-existent resource is requested?

I've a couple of JSP pages which I'm forwarding to from a
servlet.
Depending on parameters supplied by the user, the
appropriate page is
chosen by changing the name of the JSP page requested.  If a
requested
page is missing, however, I'd like to be able to default to
another page.

My original assumption was that the getRequestDispatcher
method should
return null if the requested resource is unavailable.  At
least on Weblogic
5.1,
this does not seem to happen.  Is this the correct
behaviour?  If so,
is there any way to determine in advance whether or not a
particular
resource
exists prior to dispatching requests to it?

Any and all help appreciated!
-AMT


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: forward and the URL

2000-06-14 Thread Scott Evans

Actually, its impossible. In any case, the location bar will display the url
that was requested by the client.

Scott Evans

-Original Message-
From:   Angus Mezick [mailto:[EMAIL PROTECTED]]
Sent:   Wednesday, June 14, 2000 4:23 PM
To: [EMAIL PROTECTED]
Subject:jsp:forward and the URL

Does anyone know how to use  and have it change
the Location:
window in netscape to the page you forwared to.  Say I have
HelloWorld.jsp
contain the line .
I want the URL
in the bowser to read SimpleDbLogin.jsp, not HelloWorld.jsp.

--Angus

P.S.  Anyone know how to contact the admins for this list?


===
To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Tomcat wierdness - actully: user silliness

2000-06-18 Thread Scott Evans

Okay Angus, say it with me - primadonna!

Maybe you could do a little research into anger control therapy, or better
yet, find out where the delete button is located on your keyboard so you can
ignore those really frustrating questions. There's no need to get nasty!

When I first came to the list I asked stupid questions too, and thanks to
the help and patience of people of like Craig McClanahan and Daniel Lopez I
can't believe the progress I've made both professionally and on my project.

Scott Evans

-Original Message-
From:   Angus Mezick [mailto:[EMAIL PROTECTED]]
Sent:   Thursday, June 15, 2000 4:08 PM
To: [EMAIL PROTECTED]
Subject:Re: Tomcat wierdness - actully: user
silliness

Okay everybody, say it with me.  RTFM!

If you had actually bothered to read a book or check out the
javadocs you
would have noticed this:
From the java docs
http://java.sun.com/j2ee/j2sdkee/techdocs/api/index.html
(under javax.servlet.ServletRequest):
getParameter

public java.lang.String getParameter(java.lang.String name)

 Returns the value of a request parameter as a String,
or null if the
parameter does not exist. Request parameters are extra
information sent
with the request. For HTTP servlets, parameters are
contained in the query
string or posted form data.

 You should only use this method when you are sure the
parameter has
only one value. If the parameter might have more than one
value, use
getParameterValues(java.lang.String).

 If you use this method with a multivalued parameter,
the value
returned is equal to the first value in the array returned
by
getParameterValues.

 If the parameter data was sent in the request body,
such as occurs
with an HTTP POST request, then reading the body directly
via
getInputStream() or getReader() can interfere with the
execution of this
method.
 Parameters:
  name - a String specifying the name of the
parameter
 Returns:
  a String representing the single value of the
parameter
 See Also:
  getParameterValues(java.lang.String)

A little research into solving your own damn problem before
posting to the
list goes a long way.
--Angus



"Gillies, David (EDU)" wrote:
>
> First post for me...  We're running Apache 1.3.12 with
Tomcat 3.1 for
> servlets/JSP.  And unfortunately, our development box is
NT.  There is
> something strange happening with form submissions -
particularly with
> multiple select boxes.  Here is a piece of HTML with a
form that submits to
> a JSP that prints out the results with
request.getParameter().
>
> test.html:
> 
> 
> 
> 
> 1
> 2
> 3
> 
> 
> 
> 
> 
>
> process.jsp:
> B:<%
> out.println(request.getParameter("b"));
> %>
>
> Look folks, it doesn't get any easier than this!  The
problem is that
> whenever I select more than one item in the select,
getParameter reports
> only one.  This exact piece of code works on our old
JavaWebServer 2.0
> server.  What gives?  The production box will run Solaris
2.7 with Apache
> and Tomcat as well, but is still being put together so I
can't test it
> there.  Is this just shoddy NT implementation of
Apache/Tomcat ?  Any ideas
> would be very helpful.
>
> Dave
>
> Dave Gillies
> Web Programmer
> Learning Technologies Unit
> E230-1970 Ness Avenue
> Phone: (204) 945-7497
> Fax: (204) 945-1704
> EMail: [EMAIL PROTECTED]
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
"signoff
  

Model Two Threads of Execution Question

2000-07-11 Thread Scott Evans

Is it reasonable to assume that the thread of execution that represents a
request ceases execution after the request has been fulfilled?
I ask because I'd like to know if in my controller servlet I can maintain a
list of currently executing requests.

I imagined getting the current thread my using Thread currentThread =
Thread.getCurrentThread(), adding a identifier for it to a list, and start
another thread to track the current Thread's progress by using
currentThread.join(). Then when the currentThread ceases executing the
tracker thread removes the identifier from the list.

I'm guessing that this assumes too much about the underlying Servlet/JSP
container.

Scott

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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: where to place jsp file in webappcabaret.com

2000-07-12 Thread Scott Evans

Perhaps the administrator of webappcabaret.com can tell you???

-Original Message-
From: Paras Sharma [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 12, 2000 6:13 PM
To: [EMAIL PROTECTED]
Subject: where to place jsp file in webappcabaret.com


hi
can  some tell me  where  we have to put  our  jsp  file in
  webappcabaret.com ( serlvet & JSP host)  & what is the path to see that
file


  also  where to put class file ?

thanx in advance   paras


Get free email and a permanent address at http://www.netaddress.com/?N=1

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: call Custom Tag on an event

2000-07-12 Thread Scott Evans

This won't work.
Custom tags evaluated on the server-side - Javascript events are on the
browser.

-Original Message-
From: Herbert Pfleger [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 12, 2000 2:10 PM
To: [EMAIL PROTECTED]
Subject: call Custom Tag on an event


Hi,
how can I call a selfmade Custom Tag on an Event ( for example onClick) ?

onClick = ""
 or
onClick = "callTag()"
with
function callTag(){
   document.write("");
}

are not working.

Can anybody give me a hint?

Thanks Herb.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 Internationalization

2000-07-19 Thread Scott Evans

Does anyone know of any problems/pitfalls associated with using UTF-8 as the
content type for JSPs? For example:

<%@ page contentType="text/html; charset=UTF-8" %>

Thanks,
Scott

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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: newby: instance with parameter

2000-07-19 Thread Scott Evans

I think your asking this in relation to the jsp bean tags. In that case you
need to have a default no-args constructor, and then create getter/setter
methods to use with the setProperty/getProperty tags, for example:

foo.setJspSpecificationUrl("http://java.sun.com/products/jsp/download.html")
;

If you are not using the jsp bean tags, then you can create any constructor
that you want.

;)
Scott

-Original Message-
From: Jens-Uwe Eilers [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 19, 2000 2:04 PM
To: [EMAIL PROTECTED]
Subject: newby: instance with parameter


I'm new in JSP. I want create an instance from my class. Can i create an
instance from the class with parameter? Or had I to create a parameterless
constructor from the class?
Jens-Uwe

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 ?

2000-07-20 Thread Scott Evans

Push 'Print Screen' then paste into image editing software?

-Original Message-
From: Rakesh Bhat [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 20, 2000 10:50 PM
To: [EMAIL PROTECTED]
Subject: how ?


Hi pals ,

how can i take a screen shot of a webpage ?
It may look silly question but i have really forgotten how to do that :(
I am using netscape and solaris.

( i know few of u r raising u'r eye brows )

Pls.

Thx for the help in advance .
Rakesh.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 Internationalization

2000-07-25 Thread Scott Evans

Sorry, I stated my question incorrectly. My desire is not to have to create
new JSPs for each charset, so I'd like to use UTF-8. However, can I expect
that most modern browsers will be able to display UTF-8 for their locale?
Obviously I don't expect a Chinese browser to display Hebrew, but I do want
the Chinese browser to UTF-8 like it displays BIG5.

As well, I was wondering what encoding browsers send form data in, and what
happends to it when I try to use it within my JSP/Servlet code. In other
words, do I first need to convert the data sent from the browser into
Unicode, or does the servlet container do that for me?

Thanks,
Scott

-Original Message-
From: Frank Esch [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 24, 2000 10:42 PM
To: [EMAIL PROTECTED]
Subject: AW: JSP Internationalization


Here's is the answer:

<%@ page contentType="text/html; charset=UTF-8" %>

hope this helps
Frank

> -Ursprüngliche Nachricht-
> Von: A mailing list about Java Server Pages specification and
> reference
> [mailto:[EMAIL PROTECTED]]Im Auftrag von Scott Evans
> Gesendet: Mittwoch, 19. Juli 2000 10:14
> An: [EMAIL PROTECTED]
> Betreff: JSP Internationalization
>
>
> Does anyone know of any problems/pitfalls associated with
> using UTF-8 as the
> content type for JSPs? For example:
>
> <%@ page contentType="text/html; charset=UTF-8" %>
>
> Thanks,
> Scott
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body:
> "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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".
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 timeout

2000-07-26 Thread Scott Evans

Sorry, but I don't think Javascript has anything to do with it.

The amount of time for a session to timeout is specified in the server's
configuration. For the Tomcat container in server.xml:



In this case the session will time out after it has been idle for 30
minutes. If you change defaultSessionTimeOut to 15 it will be 15 minutes.

Then in your servlet/jsp you can do something like this:

// true specifies to create a session if one doesn't already exist for the
user
// you could also specify false and then test if session is null in the if
statement
// if you want the login page to create the session
HttpSession session = request.getSession(true);

// the session is new if the client doesn't know about it yet
if (session.isNew()) {

// use a RequestDispatcher to forward the request
// don't use sendRedirect to avoid another roundtrip to the client
and back
RequestDispatcher dispatcher =
request.getRequestDispatcher("/jsp/login.jsp");

// dispatcher may be null if the container can't find the file
specified
if (dispatcher != null) {
dispatcher.forward(request, response);
}
else {
// go to your error page
}
}

You can also specify the amount of time for a session to timeout
programmatically using the following:

HttpSession session = request.getSession(true);
// specify the amount of idle seconds until this session will timeout
session.setMaxInactiveInterval(15 * 60); // 15 minutes * 60 seconds

Scott Evans


-Original Message-
From: Suriya Narayan Varatharajan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 26, 2000 6:34 AM
To: [EMAIL PROTECTED]
Subject: Re: Session timeout


well... really it a good question...
do onething...
Use javascript...
in javascript... we have setTimeOut function...
it will take two parameter... one is function name,other is time..
set the time...
if it is exist... clear the session value...
and chk if it is clear go to the first page...


regards
suriya
*Q  try for everything Q*

Suriya narayanan V
Software Engineer
Contech Software Ltd
E-3/1,2,3, GIDC Electronics Estate,
Sector - 25, Gandhinagar - 382 044, INDIA
Tel.: +91(2712) 44989/43324/43328
(R)  : 91 - 79 - 6746164
fax:+91 (2712) 24468

Email :[EMAIL PROTECTED],[EMAIL PROTECTED]
URL   : http://www.contechgroup.com
HomePage : http://www.suriyan.org



-Original Message-
From:   Raghavendra i Rao [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, July 26, 2000 8:49 AM
To: [EMAIL PROTECTED]
Subject:Session timeout

How can I timeout a session using JSPs ?? i.e if the User is initially logs
into my web site and then is idle for 15 minutes I want to timeout his
sesion .After the timeout, if the User clicks on anything on the existing
page I want to redirect him to the Login page of the application.  Also if
he goes back in the browser (Using the Back button) I do not want to allow
him to do that. I am quite new to JSP and hence any help will be highly
appreciated.
Thanks in advance.


_
Get Your Free Email At, http://www.rediffmail.com

Partcipate in crazy Re.1 auctions at http://www.rediff.com/auctions

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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".
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: [Re: Proprtionate String Padding]

2000-08-01 Thread Scott Evans

Java Strings are not constants - they are immutable. This means that once a
String object is created it cannot be changed. It also means that when you
pass a String as a argument to a method a new String is created that has the
same value but is nonetheless a different object. This works similiar to
pass-by-value for primitive types like int. On the other hand, the reference
that you hold to a String object can be reassigned to a new String object.

-Original Message-
From: abhishek shodhan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 31, 2000 11:08 PM
To: [EMAIL PROTECTED]
Subject: Re: [Re: Proprtionate String Padding]


Java Strings are not advisable as far as possible as each new String Object
will need to be Created in the Memory, and hence will slow down the
Application/Page. and considering that we are programming on the web, we
might
assume that we would get a lot of Hits on the JSP page. That will create
even
more Threads of Code, and hence even more String Objects.

String Buffers, on the other hand are easier to manage and Easier on the
Server.

Why do you need to Pad the String anyway? Just thinking... why not Trim it?
(String.trim())

Love Always,
Abhishek Shodhan.


B R Nair <[EMAIL PROTECTED]> wrote:
Thanks a lot Santosh, Naresh & Richard for your invaluble input.

"Strings are constant; their values cannot be changed after they are
created. String buffers support mutable strings." &  "A string buffer is
like a String, but can be modified."

Whenever I read the above Java lanuage documentation, I am a lot more
confused.
If a string is constant, I should not be able to change its value after it's
created. But I can change the value of the string at my will (My experiments
show it *). Then, why we should we use StringBuffer instead of string when
both give the same result?


Thanks and regards
BRN.

*
public class Strpad
{
public static void main(String[] Arg)
{
  String s = "String";
  String a = s;
  String b = "Buffer";
  String m = "mutable";
  String p = "padding -> ";
  String c = s+ " " + p;
  for (int i = 1;i<11;i++)
   c = c + i;
  System.out.println(c);
  System.out.println();
  StringBuffer sb = new StringBuffer(s+b+" "+p);
  for(int i=1;i<11;i++)
   sb.append(i);
  String d = sb.toString();
  System.out.println(d);
  System.out.println();
  a = a + " is (not) " + m + "?";
  System.out.println(a);
}
}

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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 free email and a permanent address at http://www.amexmail.com/?A=1

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: anchor tag link problem

2000-08-02 Thread Scott Evans

return false to cancel following the href link:

abc



-Original Message-
From: Ishfaq Ahmed Lone [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 03, 2000 5:24 PM
To: [EMAIL PROTECTED]
Subject: anchor tag link problem


Hi all
In jsp i am using anchor tag for creating a link on the text
The script is like this




function func()
{

...
document.location.href="xxj.jsp"
}



abc



when i am clicking on the text it doesnt go to the xxj.jsp(inside function)
instead it always goes to the href=dontgo.jsp.
Though it does execute the statments inside the function, however the link
there doesnt work.
Can anybody please tell me the solution to this problem.
Thanks in advance
ishfaq

***
Ishfaq Ahmad Lone

***

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: scriptlet question

2000-08-07 Thread Scott Evans

What's the error?

-Original Message-
From: Caspar van Vroonhoven [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 07, 2000 10:50 AM
To: [EMAIL PROTECTED]
Subject: scriptlet question


Hi again,


I've got a small problem:

One of my classes is 'WebMarket'. It has a method getPriceQuoteMoney(..),
which returns a string.
In one of my (supplied) jsp pages, the following expression is written:

<%= WebMarket.getPriceQuoteMoney(currentQuote, PriceQuote.ASK_QUOTE_MONEY,
theMarket) %>

which returns a certain price, works great, no problems here.

Now I want to put this info in a String like this:

<% String cost = WebMarket.getPriceQuoteMoney(currentQuote,
PriceQuote.ASK_QUOTE_MONEY, theMarket) %>

but this returns an error.. what's wrong?
I understand the first code line is an expression and that it's being
evaluated on the server, but that doesn't mean that the same info isn't
available in the scriptlet (2nd line), right?

regards and thanks in advance,

Caspar van Vroonhoven
www.tradingcars.com
Amsterdam, the Netherlands

P.S: I'll be buying a book on JSP in a few minutes, so my current flow of
questions should decrease..

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 & Sessions & Recordsets

2000-08-08 Thread Scott Evans

The session object works similiar to a hashtable. It can contain any Java
object, although that is necessarily recommended. Remember not to forget to
cast from Object on retrievals.

// put it in the session

String thisString = rs.getString("FIRST_NAME");
HttpSession session = request.getSession(true); // create if null
session.setAttribute("FIRST_NAME", thisString);

//--


// retrieve and remove from the session at a later stage

HttpSession session = request.getSession(); // don't create if null
String thatString = null;
if (session != null)
thatString = (String)session.getAttribute("FIRST_NAME"); // cast to
String
session.removeAttribute("FIRST_NAME");
else...

//--



-Original Message-
From: Kate McNamara [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 08, 2000 12:04 PM
To: [EMAIL PROTECTED]
Subject: FW: JSP & Sessions & Recordsets


Hi Folks,

I have an exceedingly elementary question about JSP.  I am trying to process
a login for a user, validating the data from the database and then setting
up
session variables.

I am a native ASP programmer, but thought I was making progress in JSP,
though
it seems not.  My greatest hurdle at the moment is making a field from a
recordset
equal to a local variable (string).  I can't seem to do it.

In ASP I would do something along the lines of: (post
declaration)...

thisString = rs("FIRST_NAME")

I understand the JSP equivalent to be:

String thisString = rs.getString("FIRST_NAME");

Then...my problems continue.  I am not sure how to declare, write to or
retrieve
session variables.  Any assistance would be great appreciated.

Cheers,

Kate McNamara
www.atomicdesign.com.au

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Tomcat crashes on RequestDispatcher.forward()

2000-08-16 Thread Scott Evans

Yes, it was actually the JDBC-OBDC bridge that was causing the problem. When
I switched to a pure Java JDBC driver the problem disappeared. Are you using
the bridge?

-Original Message-
From: Howard Lee [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 16, 2000 6:49 PM
To: Scott Evans
Subject: RE: [JSP-INTEREST] Tomcat crashes on
RequestDispatcher.forward()


Have you solved this problem? What was causing it? Thank you very much.

howard

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Evans
Sent: Monday, April 03, 2000 8:39 AM
To: [EMAIL PROTECTED]
Subject: [JSP-INTEREST] Tomcat crashes on RequestDispatcher.forward()


Java.exe crashes (thus killing the web server with no exceptions thrown)
from the following code at the end of my controller servlet's doGet()
method:

if ( jspURI != null ) {
  RequestDispatcher rd = sc.getRequestDispatcher(jspURI);
  if (rd != null) rd.forward(request, response);
  else System.out.println("Resource at URI " + jspURI + " not found.");
}

Any ideas?

I'm using WinNT 4.0 with JDK1.2.2 and Tomcat 3.0.

thanks,

Scott Evans

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: ASCII Codes

2000-08-21 Thread Scott Evans

The carriage return is platform-dependent, so Windows and UNIX for example
represent it differenly. You have to ask the System object what it's using
to represent it:

char lineSeparator = System.getProperty("line.separator").charAt(0);

-Original Message-
From: Graham Cruickshanks [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 21, 2000 5:09 PM
To: [EMAIL PROTECTED]
Subject: ASCII Codes


I'm trying to write a | delimited file for a external program to parse

I.e.

390129|1326|David Gould|.|18 Huxley Way|Bishops
Cleave|Cheltenham|Gloucester|GL52|D||0|N|N||1|
390129|1326|David Gould|.|18 Huxley Way|Bishops
Cleave|Cheltenham|Gloucester|GL52|D||0|N|N||1|

The external program reads in the file incorrectly as the carriage return is
not reconised.

I was using \n to do this but it didn't work, I presume this is a unicode /
Ascii problem.

how do I write a carriage return in ASCII in java.

I've been trying things like this in my jsp file

<%
int a = 0x0013;
int b = 0x0010;
Character c = new Character( (char)a );
Character d = new Character( (char)b );

  String OutputString = "";
  OutputString = OutputString + "390129|1326|David Gould|.|18 Huxley
Way|Bishops Cleave|Cheltenham|Gloucester|GL52|D||0|N|N||1|" + d + c;
  OutputString = OutputString + "390129|1326|David Gould|.|18 Huxley
Way|Bishops Cleave|Cheltenham|Gloucester|GL52|D||0|N|N||1|";

%><%= OutputString %>

but to not joy

Graham Cruickshanks
www.itsnotrocketscience.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: urgent Help on UPLOAD a file

2000-08-22 Thread Scott Evans

IMHO the only real solution for this is smarter or better trained users -
maybe put a warning next to the browse button, or popup a javascript prompt
when they click the button, like confirm("Hey, are you sure you saved your
most recent changes?").

As for a hack, if you are on an intranet using client-side vbscript/ActiveX
on Windows, (I really don't know if this is possible), maybe you could try
to rename or move the file and see if Windows complains about a sharing
conflict. If it does then you know its still open. Of course, if something
goes wrong your users will be really pissed off that they can't find their
local files anymore.

-Original Message-
From: Rajesh Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 1:52 PM
To: [EMAIL PROTECTED]
Subject: urgent Help on UPLOAD a file


Hi all guru

...i've one problem which is bugging me
since last two days.I NEED URGENT HELP
from all of u
...the problem is like this:
...creating a web-based application in which
one of the functionality is to UPLOAD a file
(in my case it will be .xls file)from the client's
machine. Now requirement is that if you select a file
to upload THEN IF THAT FILE is opened at the client's
system at that time then it SHOULD NOT UPLOAD the
file and give some Message to the User.It is to
prevent that the user could be editing the file
at that time and without saving he can go for
uploading(this is to prevent as application requires
this)...so we will prevent the UPLOAD if that file
is opened at that time.(if you have used
www.driveway.com then you would hv found that they
allow the UPLOAD taking the old ie last updated
file...this thing we want to prevent)

HOW TO GO ABOUT IT ?..I'm using Java, Servlet etc.
one thing i feel that i need to check the
Task Manager before uploading BUT still here atmost
we can check is whether that application(MS-Excel for
ex) is running and can't check which file...

HELP Please...if u have anything to say
on this problem

u can send at [EMAIL PROTECTED] also
thanx and regards,
Rajesh





















__
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Up to how many concurrent sessions can tomcat support?

2000-08-22 Thread Scott Evans

Won't that depend on how much memory tomcat is allocated, and how much you
store in the sessions?

-Original Message-
From: Kim [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 4:56 AM
To: [EMAIL PROTECTED]
Subject: Up to how many concurrent sessions can tomcat support?


I can't seem to get the above info.
Anybody has the answer or ref. to this?

thanks,
kim.

- Original Message -
From: JSPInsider <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 22, 2000 12:19 PM
Subject: Re: want help to make menus in javascript


> Check out the menu on http://www.jspinsider.com, if you like it drop me a
> line and I'd be glad to help you make a similar one.
>
> Also check out http://www.brainjar.com, there are some excellent tips for
> creating cross browser JavaScript menus.
>
> [EMAIL PROTECTED]
>
> - Original Message -
> From: "amar singhal" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, August 20, 2000 2:41 PM
> Subject: want help to make menus in javascript
>
>
> > hi,
> > I want to make the menus in my webpage. i think javascript is the
solution
> > of my requirement, so kindly help me to make menus in javascript.
> >
> > Thanks
> > amar singhal
> >
> >
> > 
> > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  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".
> 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".
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".
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: EJB and JSP

2000-08-22 Thread Scott Evans

check out http://theserverside.com/home/index.jsp for a free EJB book in
PDF.

-Original Message-
From: Leonov, Stanislav (RSCH) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 22, 2000 5:05 PM
To: [EMAIL PROTECTED]
Subject: EJB and JSP


Hello everyone,
I'm looking for some good (better great) book on EJB and JSP to buy,
and also for free e-books (online books) or tutorials on EJB and JSP.
If you know any titles (or ISBNs) or websites,
please email them.

Thank you,

Stas
[EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Training and Education

2000-09-03 Thread Scott Evans

What do you mean by JSP Container Class?

Do you have a similiar curriculum for EJB? ;%)

-Original Message-
From: JSP Insider [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 31, 2000 8:50 PM
To: [EMAIL PROTECTED]
Subject: Re: Training and Education


It depends on what you already know,
and how fast you need to learn it
and what your goals are (since you can use JSP in several ways)

In general, I recommend the following (remove the steps you already know).

Start with learning Java (start with 1.3)
Plan on spending 3 to 6 weeks Getting to understand the Java Basics.

Next Make sure you Understand HTML.
Plan on 1 to 3 weeks here.

Next Review JavaScript.
Plan on 1 to 2 weeks here

Next be kind to yourself and
review and understand finer details about your webserver
Plan on 3 days here

Then you can start with JSP
plan on 3 weeks here
There are 2 good books here
(Professional JSP from Wrox)
(Web Development with JavaServer Pages by Fields and Kolb)

Then Spend 1 week with the JSP Container Class you plan on using.
(sometimes rolled into the JSP section of training)

Then Spend 1 week reviewing JDBC and learning the JDBC driver
you plan on using ) (sometimes rolled into the Java or JSP section
of training depending on need and schedule.)

Then from from here you can expand your knowledge into Servlets
and or DHTML

Most people make the mistake of thinking JSP is java made simple.
Well If you already know, JAVA, HTML and JavaScript then JSP is simple
but many people ignore the learning curve of all the pieces required to use
JSP successfully. After all in my book JSP is a bridging technology, and for
the bridge to be successfully transversed you need to know to understand the
other technologies the bridge is transversing.

This is an idealised training format and you may not have to learn
it all depending on how your project team is broken out. But This is
the schedule I used to successfully train people with. The key element
is it takes on average 3 months to really train a person (from start to
finish)to be a successful user of JSP, You can and I recommend have a
project to use as a framework to base your training upon. This will help you
focus where the important issues are for you in your training.

Casey Kochmer
[EMAIL PROTECTED]
www.jspinsider.com

>From: "Pavlakovich, Justin" <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Training and Education
>Date: Thu, 31 Aug 2000 08:59:24 -0700
>
>I have little or no programming experience however I need to learn JSP.
>Can
>someone suggest the best way to get up to speed and eventually learn JSP?
>I
>am assuming that the Sun class "Java for non programmers" is a good place
>to
>start and I have downloaded the Java tutorial from the Sun website.  Where
>should I go from here?   What classes and/or books can you suggest?
>Thanks.
>
>
>Justin Pavlakovich
>AdvisorSource
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Can i use java objects in Javascript

2000-09-04 Thread Scott Evans

Remember, JSP runs on the server - Javascript runs on the browser.

You need quotes for javascript to identify the message as a String:

JSP:

if (actform.txt1=="") {
alert("<%= msg.MSG01 %>");
}

Resulting HTML:

if (actform.txt1=="") {
alert("You have to fill the textbox");
}


-Original Message-
From: Leena Albert [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 04, 2000 12:17 PM
To: [EMAIL PROTECTED]
Subject: Can i use java objects in Javascript


Hi,
   In JSP, I would like to use instances in JavaScript using JSP tags.
Will it be possible?

 I am having a interface Which declares constants, i.e, fields like
MSG01="You have to fill the textbox". In javascript, on field validation, if
i call the message with instance msg as <%= msg.MSG01 %> it, gives "object
undefined error".
How can i access it in javascript, as i need to declare the error
messages(MSG01) in interface?

form name=actform and textbox name = txt1,

Code is

if (actform.txt1==""){
alert(<%= msg.MSG01 %>);
}

Thanks in advance,

A.Leena

_
Get Your Free Email At, http://www.rediffmail.com

Partcipate in crazy Re.1 auctions at http://www.rediff.com/auctions

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: access Java objects from JSP

2000-09-04 Thread Scott Evans

No. ItSounds like you need to do a little more reading before you start
asking the list questions. Check the resources below:

-Original Message-
From: Nayak Savitha [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 31, 2000 7:37 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP Tutorial


print page break -http://www.webreview.com/pub/2000/01/07/style/nov99.html
The big tutorial "Servlet Essentials":
www.novocode.com/doc/servlet-essentials/
Other tutorials you can find at www.servlets.com
Java Server Pages (JSP)
http://java.sun.com/products/jsp/
http://java.sun.com/products/jsp/docs.html
http://www.sunworld.com/sunworldonline/swol-08-1998/swol-08-asp.html
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp.html
http://www.gamelan.com/journal/techworkshop/092199_jsp1.html
http://www.gamelan.com/journal/techworkshop/092899_jsp2.html
http://www7.software.ibm.com/vad.nsf/data/document2389?OpenDocument
http://www.apl.jhu.edu/~hall/java/Servlet-Tutorial/
http://www.browsebooks.com/Fields/
http://java.sun.com/products/jsp/jsp-asp.html
http://java.sun.com/products/jsp/technical.html
http://java.sun.com/products/jsp/faq.html
http://www.serverpages.com/Java_Server_Pages/
http://www.jsptutorial.com/
http://www.servletcentral.com/1998-12/jsp.dchtml
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/files/read.html
http://csclub2.stthomas.edu:8080/mfcatlin/tutorial/jdbc/index.html
http://java.sun.com/products/jsp/html/jspbasics.fm3.html
http://www.interpasnet.com/JSS/
http://developer.java.sun.com/developer/onlineTraining/J2EE/Intro/
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-forms.html
http://www.javaworld.com/javaworld/jw-03-2000/jw-0331-ssj-jspxml.html
http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc.html
http://www.taglib.com/
http://jakarta.apache.org/taglibs/
http://jsptags.com/
http://www.devx.com/upload/free/features/javapro/2000/04apr00/te0004/te0004
-1.asp

-Original Message-
From: Orlando Perdomo [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 04, 2000 1:13 PM
To: [EMAIL PROTECTED]
Subject: access Java objects from JSP


Hi,

I want to know how to use another java objects I develop, from JSP.
I put the .class files of that objects in the servlet directories, of =
JRun, which is the app server I use.

I want to to extend a JSP from a servlet class, and I use the extends =
attribute of the page directive, Am I right?

Thanks in advance.

Orlando.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Multiple web applications on one jvm

2000-09-05 Thread Scott Evans

Does the second app work ok if the first isn't loaded?

Does your jvm have enough memory allocated to it?

What jvm are you using?

Have your ensured the quality of your JDBC drivers?

Do you close all JDBC connections when your finished with them?

-Original Message-
From: Scott Bradley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 05, 2000 9:11 AM
To: [EMAIL PROTECTED]
Subject: Re: Multiple web applications on one jvm


"Sachin S. Khanna" wrote:

> Hello jspians,
> I'd like you guys to throw some light on the following :
> What could be the consequences of running similar multiple web
applications
> on a single jvm.

We are running Apache(1.3.12) with JServ(1.1).

We are serving two different web apps. They do similar things but one feeds
off an

Oracle db and the other MySql.

 The first web app was the Oracle one and it seemed to run ok and dropped
out
infrequently.

I then put my web app. The jvm seems to have a serious problem with
something
here. I runs
for variable time periods and then dissappears. The web server remains up
but,
you can't
apachectrl stop the server. You actually have to kill each process then
restart
the server.

This has become incredibly infuriating and we have tossed around many ideas
as to
what it
could be but to no avail.

To your question what could be the consequence of running similar multiple
web
appz on a single jvm.
There should be none. Everything should work fine. But in our case this
isn't
true.

Frustrated,
Scott Bradley

the web pages if your interested:

(Oracle) =>   http://sunspot.dstc.edu.au:/
(MySql) =>   http://sunspot.dstc.edu.au:/MusicMeggie/search.html

--
Scott Bradley  B.Inf.Tech. [EMAIL PROTECTED]
Software Engineer, DSTC Pty Ltd,  +61 7 3365 4541
The University of Queensland 4072 Australia

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Prob of Servlet objects in JSP functions

2000-07-17 Thread Scott Evans

The declarative tag <%! %> creates instance variables in the servlet into
which your jsp page is compiled. This means that such variables are shared
by all threads running through the servlet. Because the declarative tag is
evaluated at compile time, none of the "implicit" objects (request,
response, session, application) are available.  These items only exist at
run time.

Variables created using <%  %>, on the other hand, become local variables in
the jsp's service method, which is only invoked at run time. Thus, all the
implicit objects are available.

-Original Message-
From: Gerard Menezes [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 17, 2000 2:37 PM
To: [EMAIL PROTECTED]
Subject: Prob of Servlet objects in JSP functions


Hi all,

I have a problem while defining JSP functions in the
Declarative tag <%!  %>.
I cannot access the pre-defined servlet objects,
like request,response,session,application etc.
It gives errors such as :
*** Error: "request" is either a misplaced package name or a non-existent
entity.

It becomes very difficult to include all code in the scriptlets without
using
functions. Please Help !

Thanx a lot

Gerard.M/..

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Stress Testing your JSP Site

2000-09-18 Thread Scott Evans

Check out this list:
http://www.softwareqatest.com/qatweb1.html

-Original Message-
From: Bradley McLain [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 14, 2000 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: Stress Testing your JSP Site


we've tested apache jmeter and also the microsoft web application stress
tool (i cant remember the exact name).  the microsoft tool allows you to
record activity scripts, so it can be a bit easier.

the problem with such tools, however, is that we haven't found a way to
simulate real user activity effectively.  we can copy an url with parms and
bang away at a particular page, but our app is based on action classes and
request dispatcher, which we haven't really gotten to work with an automated
tool.  we always end up with session trouble.  our pages do almost nothing
apart from display logic, so with such tools we're not currently able to
test the real workhorses of our app which are the classes that our action
objects control.

i'd be keen to hear anyone else's views / suggestions on this issue.
unfortunately, the best 'stress-testing' tool i've found so far is everybody
in the company hitting the app at once from differenct clients..

--bradley mclain
usmoving.com

>From: JSP Insider <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and
> reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Stress Testing your JSP Site
>Date: Wed, 13 Sep 2000 19:28:22 GMT
>
>Hello everyone
>
>Performing a quick survey to see which Web Stress testing tool you prefer
>using with JSP.
>
>While stress testing a JSP site is no different than stress testing a
>normal
>web site.
>I am curious to see which tools most Jsp Developers are using for this
>function.
>
>Thanks much!
>
>Casey Kochmer
>[EMAIL PROTECTED]
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>Share information about yourself, create your own public profile at
>http://profiles.msn.com.
>
>===
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
>JSP-INTEREST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
>http://java.sun.com/products/jsp/faq.html
>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.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 to Identify whether a session has expired

2000-09-18 Thread Scott Evans

It shouldn't work like that unless the browser is not participating in
maintaining the session, i.e. it is set not to allow cookies.

-Original Message-
From: Nitin Khattar [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 18, 2000 2:55 PM
To: [EMAIL PROTECTED]
Subject: Re: How to Identify whether a session has expired


 I meant when you click 'refresh' or 'reload' on the browser (and not reload
the browser!) the object bound to a session are unbound and then rebound.So
these methods are called whenever you click on 'refresh' or 'reload' buttons
on the browser.

Sorry for not being clear!


- Original Message -
From: "Kevin Jones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 18, 2000 6:17 PM
Subject: Re: How to Identify whether a session has expired


> But the session will expire when you reload the browser!
>
> HttpSession uses 'non-durable' cookies, i.e. they are in-memory only, if
you
> shut down the browser then the cookie is unloaded, when you re-open the
> browser and go back to the site then the cookie has to be re-created by
the
> server.
>
> If you want persistent sessions you need to look at the Cookie class,
you'll
> then need to roll-your-own session management at the server,
>
> Kevin Jones
> DevelopMentor
> www.develop.com
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Nitin Khattar
> > Sent: 18 September 2000 12:33
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to Identify whether a session has expired
> >
> >
> > But these methods are called even when you Reload the browser (and the
> > session has not expired)
> > - Original Message -
> > From: "Kevin Jones" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, September 18, 2000 4:59 PM
> > Subject: Re: How to Identify whether a session has expired
> >
> >
> > > If you mean an HttpSession -
> > >
> > > Create an object that implements HttpSessionBindingListener, call
> > > session.setAttribute(myObj). The HttpSessionBindingListener
> > will be called
> > > (valueUnbound(...) ) when the session expires,
> > >
> > > Kevin Jones
> > > DevelopMentor
> > > www.develop.com
> > >
> > > > -Original Message-
> > > > From: A mailing list about Java Server Pages specification
> > and reference
> > > > [mailto:[EMAIL PROTECTED]]On Behalf Of Narayanaswamy,
Kumaran
> > > > (CTS)
> > > > Sent: 18 September 2000 04:57
> > > > To: [EMAIL PROTECTED]
> > > > Subject: How to Identify whether a session has expired
> > > >
> > > >
> > > > Hi
> > > > Is there any method to find whether a session has been expired?
> > > > with regards,
> > > > Kumaran
> > > > 
> > > > Cognizant Technology Solutions India Ltd,
> > > > 1st Floor ,T.S.140 No 2 & 9,
> > > > C.P.T Road .Taramani
> > > > Chennai - 600 113.
> > > > Phone(0ff): 044 - 2354281/2354411 Extn: 4443
> > > > EMail : [EMAIL PROTECTED]
> > > > _
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > This e-mail and any files transmitted with it are for the sole
> > > > use of the intended recipient(s) and may contain confidential and
> > > > privileged information.
> > > > If you are not the intended recipient, please contact the sender
> > > > by reply e-mail and destroy all copies of the original message.
> > > > Any unauthorised review, use, disclosure, dissemination,
> > > > forwarding, printing or copying of this email or any action taken
> > > > in reliance on this e-mail is strictly
> > > > prohibited and may be unlawful.
> > > >
> > > > Visit us at http://www.cognizant.com
> > > >
> > > > ==
> > > > =
> > > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > > JSP-INTEREST".
> > > > Some relevant FAQs on JSP/Servlets can be found at:
> > > >
> > > >  http://java.sun.com/products/jsp/faq.html
> > > >  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".
> > > 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".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperan

Re: Urgent JSP, XML, XSL

2000-09-18 Thread Scott Evans

Are you expecting the browser or the server to do the style sheet
conversion?

-Original Message-
From: Priya Pinto [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 18, 2000 1:18 PM
To: [EMAIL PROTECTED]
Subject: Urgent JSP, XML, XSL


Hi,

I've been trying a absolutely simple program in jsp and it is just refusing
to work out!

I've got a jsp file which generates XML code and calls an xsl file to
display the output and it is just not working!!

Here's the JSP file


<%@ page language="java" import="java.io.*" session="true"%>
<%
String title1="Yahoo";
String description1="Search engine extraordinaire";
String urls1="http://www.yahoo.com";
String category1="General";
String id1="b001";
String ss="Blackie";
%>

<%=ss%>
<%=id1%>
<%=title1%>
<%=description1%>
<%=urls1%>
<%=category1%>


Here's the XSL file


http://www.w3.org/TR/WD-xsl">







Welcome 



  
Edit
Bookmark
  
  

  



  
  
Title







  
  
Description







  
  
Url







  
  
Category







  
  



  
  
 
  


  









Thanks
Priya


_
Get Your Free Email At, http://www.rediffmail.com

For fabulous shopping deals visit:
http://www.rediff.co.in/shopping/index.html

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: JPS Model 2 and ResultSets

2000-09-18 Thread Scott Evans

I have been creating a collection of the specific objects that the user is
searching for, for example, books, although I fear that it is creating too
much object churn.

-Original Message-
From: Lee Turner [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 18, 2000 3:34 PM
To: [EMAIL PROTECTED]
Subject: JPS Model 2 and ResultSets


Hi

I was wondering how people are handling searches when using the jsp model 2
architecture ??

I am converting an all servlet based application to a jsp/servlet
architecture using model 2.  I have a jsp page which displays the search
form.  This allows them to enter their search criteria.  When they click on
the search button, control is then passed over to a servlet which performs
the search and then forwards the request onto the jsp page which displays
the results.  To do this I query the database obtaining a ResultSet which I
attempt to place in the session for use in the jsp that displays the
results.  The problem I am having is that the ResultSet is not serializable
and therefore I get an error.

How are other people handling this ??

TIA

Lee

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 ServletResponse.setLocale in JSP (internationlization)

2000-09-21 Thread Scott Evans

It is my understanding that you cannot dynamically set the locale of a jsp
response. It depends on the charset set in the page directive:
<%@ page contentType="text/html;charset=ISO-8859-1" %>
(This is the default content type, which is used if nothing is declared.)

Can anyone confirm this? I hope that I am wrong. If not, I believe a
work-around may be to set the charset to UTF-8 (unicode), but I haven't
tried that yet.

-Original Message-
From: Albert Wong [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 21, 2000 12:33 AM
To: [EMAIL PROTECTED]
Subject: Using ServletResponse.setLocale in JSP (internationlization)


Hi

The "ServletResponse.setLocale" method looks pretty useful: it configures
the PrintWriter to the appropriate character set, set's the content type and
content language headers.  It's especially appealing because one can
retrieve the "Locale" from ServletRequest.getLocale and use that object in
the ServletResponse (eg.servletResponse.setLocale(localFromRequest)).

The problem, in the case of JSP,  is the following:

According to the JavaDoc on "ServletResponse" the "setLocale" method should
be called BEFORE "getWriter".  How would I use this method given the servlet
generated from my JSP has already grabbed the "Writer" by the time any
scriplet or JSP tag/directive I have can be executed?

Thanks,
Albert

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: About post functionality to servlet.

2000-10-17 Thread Scott Evans

What do you mean?

-Original Message-
From: Xing guohong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 10:58 AM
To: [EMAIL PROTECTED]
Subject: About post functionality to servlet.


Hi,
Is it possible to implement post function in servlet(not receive post)?

Any help will be great appreciated!

Guohong xing

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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 question on bean

2000-10-17 Thread Scott Evans

I'm talking about jsp 1.0 and above here.

In the file structure of your web application you should have the following
path
{appname}/WEB-INF/classes

You should put your classes there. If your classes are part of packages
(which they probably should be) the directory structure should be built from
there.

For example:

Your class -
com.foo.bar.Example;

The directory -
{appname}/WEB-INF/classes/com/foo/bar/Example.class

Then in your jsp -
<%@page import="com.foo.bar.Example" %>



-Original Message-
From: Xiaofeng Wang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 9:35 AM
To: [EMAIL PROTECTED]
Subject: a question on bean


hi all,

I want to use a bean in an jsp page.

but where should I put the bean(I mean the class file).

The same with the jsp page or somewhere else?

and how to tell the jsp the path of the bean?

Thanks.

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: About post functionality to servlet.

2000-10-17 Thread Scott Evans

I have two suggestions.
1. If possible use JSP not ASP. It will make your life easier since it is
also Java.
2. Check out the STRUTS project at Apache. It is a framework for doing what
you are looking for (with JSP). http://jakarta.apache.org/struts/index.html

-Original Message-
From: Xing guohong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 11:35 AM
To: [EMAIL PROTECTED]
Subject: Re: About post functionality to servlet.


Thanks for your reply.
Now I get the a new requirement to code business logic in servlet and
display the data in asp. So after the servlet implement the business logic,
without any display and post the data in the servlet to an asp, let the asp
display them.
I do not know whether it is possible ot not.  Any suggestion?

Guohong Xing


- Original Message -
From: "Scott Evans" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, October 17, 2000 5:11 PM
Subject: Re: About post functionality to servlet.


> What do you mean?
>
> -Original Message-
> From: Xing guohong [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 17, 2000 10:58 AM
> To: [EMAIL PROTECTED]
> Subject: About post functionality to servlet.
>
>
> Hi,
> Is it possible to implement post function in servlet(not receive
post)?
>
> Any help will be great appreciated!
>
> Guohong xing
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
> 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".
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".
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 simple Jsp/Script Problem

2000-10-17 Thread Scott Evans

Because of the out.println( strModell ) line.

By the way, type for the input field should be a valid HTML input type such
as text, button, etc.

-Original Message-
From: Charlotte Schaffstein [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 17, 2000 10:22 AM
To: [EMAIL PROTECTED]
Subject: A simple Jsp/Script Problem


Hi everybody!

I need to solve a very simple Jsp/Script Problem in a very short
time:



<%
//String strModell = (String)
request.getParameter( "modell" );
strModell = "Cabrio";
out.println( strModell );
%>
>



Can anybody please tell me why this code does not only insert
strModel into the
corresponding edit html-field, but also automatically constructs a
label containing
the same string in front of the edit field?
Please reply fast and please excuse that I am very new to the
theme, so that stupid
questions might happen!
Lots of thanks in advance!


Charlotte
[EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: JRUN performance

2000-10-17 Thread Scott Evans

Why don't you supply some code? I willing to bet that JRun is not to blame.
I've stress tested a db intensive app on Tomcat 3.2, Resin 1.1.4, and JRun
3.0 and JRun was easily the fastest.

-Original Message-
From: Dan Lopez [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 16, 2000 8:14 PM
To: [EMAIL PROTECTED]
Subject: Re: JRUN performance


Jrun performance REALLY slow on resultset.  I am even
caching some resultset and only display 5% of data and
still SO SLOW!  Any suggestions?

-D

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: MD5 Hash ??

2000-10-22 Thread Scott Evans

You can check out the standard java.security package, as well as the
CommandToken class from the Fields & Kolb JSP book.

Probably the good ole' java tutorial and java developer connection have
stuff as well.

-Original Message-
From: V.A. Kozhevnykov [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 22, 2000 3:03 PM
To: [EMAIL PROTECTED]
Subject: MD5 Hash ??


Hi all !!

Now i am dealing with security( password,login ) tracking problems.
And many of You wrote something like this :

> Use something like a MD5 hash to store the password in the DB
> and then store the hash in the session,

What is MD5 ? and where i can find some docs and tutorials ??

Thanx a lot ..
Best regards
Valik.

__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: help,invalidate session

2000-10-23 Thread Scott Evans

Based on the root cause NullPointerException, I'd say the session doesn't
actually exist itself. Try including a check for that as well.

-Original Message-
From: Chin Sung Kit [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 23, 2000 9:10 AM
To: [EMAIL PROTECTED]
Subject: help,invalidate session


hi,

i have a problem invalidating the user's session.

i have a  link, if the user clicks on this link, it is supposed
to sign out the user - HttpSession.invalidate();

my jsp code:
<%
String signout = request.getParameter("signout");
if (signout != null)
 userSession.invalidate();
 %>

i'm using tomcat3.1

thanks for any help/suggestion.

ced

below is the error:
Internal Servlet Error:

javax.servlet.ServletException:
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:386)

at
jsp._0002fjsp_0002fsignin_0002ejspsignin_jsp_23._jspService(_0002fjsp_0002fs
ignin_0002ejspsignin_jsp_23.java:149)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va,
Compiled Code)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java,
Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Unknown Source)

Root cause:

java.lang.NullPointerException:
at
jsp._0002fjsp_0002fsignin_0002ejspsignin_jsp_23._jspService(_0002fjsp_0002fs
ignin_0002ejspsignin_jsp_23.java:136)

at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled
Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va,
Compiled Code)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
Compiled Code)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
Compiled Code)
at javax.servlet.http.HttpServlet.service(HttpServlet.java,
Compiled Code)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
Compiled Code)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java,
Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java,
Compiled Code)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
Compiled Code)
at java.lang.Thread.run(Unknown Source)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: help,invalidate session

2000-10-23 Thread Scott Evans

Sachin S. Khanna wrote:


"...Another thing, you would have to check for the token
string in every jsp page to see whether the user is logged on, if not then
you must direct the user to the log on page."


Which is another good reason for using the Model 2 framework that has been
discussed so much on this list. Check the list archives for a lot of great
info.

Scott

- Original Message -
From: Chin Sung Kit <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 23, 2000 12:39 PM
Subject: help,invalidate session


> hi,
>
> i have a problem invalidating the user's session.
>
> i have a  link, if the user clicks on this link, it is supposed
> to sign out the user - HttpSession.invalidate();
>
> my jsp code:
> <%
> String signout = request.getParameter("signout");
> if (signout != null)
>  userSession.invalidate();
>  %>
>
> i'm using tomcat3.1
>
> thanks for any help/suggestion.
>
> ced
>
> below is the error:
> Internal Servlet Error:
>
> javax.servlet.ServletException:
> at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:386)
>
> at
>
jsp._0002fjsp_0002fsignin_0002ejspsignin_jsp_23._jspService(_0002fjsp_0002fs
ignin_0002ejspsignin_jsp_23.java:149)
>
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled Code)
> at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va,
> Compiled Code)
> at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
> Compiled Code)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
> Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
> Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> Compiled Code)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java,
> Compiled Code)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
> Compiled Code)
> at java.lang.Thread.run(Unknown Source)
>
> Root cause:
>
> java.lang.NullPointerException:
> at
>
jsp._0002fjsp_0002fsignin_0002ejspsignin_jsp_23._jspService(_0002fjsp_0002fs
ignin_0002ejspsignin_jsp_23.java:136)
>
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java, Compiled
> Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled Code)
> at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
va,
> Compiled Code)
> at
> org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java,
> Compiled Code)
> at org.apache.jasper.runtime.JspServlet.service(JspServlet.java,
> Compiled Code)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java,
> Compiled Code)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java,
> Compiled Code)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java,
> Compiled Code)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java,
> Compiled Code)
> at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java,
> Compiled Code)
> at java.lang.Thread.run(Unknown Source)
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  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".
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".
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: Running JSP Demos

2000-10-24 Thread Scott Evans

View the source in the browser - does it include your jsp code?

-Original Message-
From: Alan Fogarty [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 2:01 PM
To: [EMAIL PROTECTED]
Subject: Running JSP Demos


I am new to servlets / jsp
I wonder could anyone tell
me what I need to do exactly to
run a jsp demo. I have both
Jigsaw and apache for windows and I
have tried samples in both... the html
is output but all the java does not run..

It may be ClassPath problems or something

this is my sample


First Page


Today is:
<%= new java.util.Date() %>



<% if (Math.random() < 0.5) { %>
Have a nice day!
<% } else { %>
Have a lousy day!
<% } %>




It is very simple but I cannot get proper output
on my machine I get this

Today is:
Have a nice day! Have a lousy day!


Any Ideas anybody...

thanks

Alan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Running JSP Demos

2000-10-24 Thread Scott Evans

That means the web server is treating the file as a static html file. I'm
not familiar with the jigsaw web server, so I don't know what to tell you.
It's probably a stupid question, but does your file have a .jsp extension?

-Original Message-
From: Alan Fogarty [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 3:55 PM
To: [EMAIL PROTECTED]
Subject: Re: Running JSP Demos


Yes when I view source in browser it does include the jsp code

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]On Behalf Of Scott Evans
Sent: Tuesday, October 24, 2000 1:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Running JSP Demos


View the source in the browser - does it include your jsp code?

-Original Message-
From: Alan Fogarty [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 2:01 PM
To: [EMAIL PROTECTED]
Subject: Running JSP Demos


I am new to servlets / jsp
I wonder could anyone tell
me what I need to do exactly to
run a jsp demo. I have both
Jigsaw and apache for windows and I
have tried samples in both... the html
is output but all the java does not run..

It may be ClassPath problems or something

this is my sample


First Page


Today is:
<%= new java.util.Date() %>



<% if (Math.random() < 0.5) { %>
Have a nice day!
<% } else { %>
Have a lousy day!
<% } %>




It is very simple but I cannot get proper output
on my machine I get this

Today is:
Have a nice day! Have a lousy day!


Any Ideas anybody...

thanks

Alan

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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".
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".
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: Passing Value from one frame to another

2000-10-29 Thread Scott Evans

With or without a trip to the server?

-Original Message-
From: Mukka, Srikanth [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 25, 2000 9:59 PM
To: [EMAIL PROTECTED]
Subject: Passing Value from one frame to another


Hi All,


I have two frames,frame1 and frame2, I am displaying one a.html in frame1
and b.html in frame2. User selected value from the list box from a.html and
depending on the value selected in a.html, I want to display the values in
frame two using b.html. I question is how do I pass values in this scenerio.
May be this is a small doubt.

Bye
Srikanth

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Design and validation opinion

2000-10-30 Thread Scott Evans

I prefer to use javabeans with the Memento pattern as discussed in the Kolb
& Fields book Web Development with JavaServer Pages.

-Original Message-
From: Andrea Vicentini [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 30, 2000 2:47 PM
To: [EMAIL PROTECTED]
Subject: Re: Design and validation opinion


  Hi!

- Original Message -
From: "Tripat Singh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, October 30, 2000 9:28 AM
Subject: Design and validation opinion


> Hi pals!!!
>
> I would like to have a opinion of all of you for validating fields in the
> html page.
>
> -- Whats is the preferable way to validate fields - server side in the
> servlet/jsp page or using the java script at the client end?
>
> -- What are the advantages and disadvantages of both the techniques?
>

Client-side validation is simply impossible.
I can create and send your application any kind of request I want --
indipendently from the HTML page that I have received: your application
*must* make server-side validation, or else it would crash.
Then, you could try to make client-side validation, that has a meaning only
to improve the user interface... but shouldn't be thought as being
semantically meaningful.

  Gruss.

Andrea Vicentini
System Engineer e-Business
Director of my Arbeitsplatz

--
Blue Quant Consulting Group GmbH
Badstrasse 9, 70372 Stuttgart

phone:  +49 (711) 5 20 87 58 - 780
fax:+49 (711) 5 20 87 58 - 781
mail:   [EMAIL PROTECTED]
web:  http://www.bluequant.de
--

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Servlet and Bean as One

2000-11-01 Thread Scott Evans

This all sounds weird (why not separate the two?), but you could try having
the Servlet place itself inside one of the scopes, for example:

in servlet...
context.setAttribute("ServletBean", this);

in jsp...



or

in servlet...
request.setAttribute("ServletBean", this);

in jsp...



Be careful about multithreading issues.

-Original Message-
From: Phil Hedley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 01, 2000 6:15 PM
To: [EMAIL PROTECTED]
Subject: Servlet and Bean as One


Hi all,

I have created a servlet which processes the output of a jsp page, and also
provides the input for the next jsp page.
The class is actually a Bean and a Servlet.
The jsp pages use the  directive and appropriate get methods.

The problem I am having is that I get 2 instances of the same class.
The first instance is created when I load abc.jsp, the second is created
when I
submit the form on abc.jsp which calls the servlet.

What I need is for the server to use the same instance created by the jsp
page.

Is there a way round this ?

Thanks,
Phil Hedley

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: imports

2000-11-02 Thread Scott Evans

The correct syntax is <%@ page import="java.sql.*" %>

-Original Message-
From: Daniel Lynn [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 02, 2000 5:05 PM
To: [EMAIL PROTECTED]
Subject: imports


ok, so I'm trying to pu in the following line of code

import java.sql.*;

into my JSP page. I put it in with the <% %> around it... Unfortunately,
the compiler says it's invalid. Any ideas?

-Daniel

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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: Tomcat as Personal Web Server Replacement

2000-11-08 Thread Scott Evans

Sure - read the documents included in the Tomcat download.

-Original Message-
From: Edward Garson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 08, 2000 5:12 PM
To: [EMAIL PROTECTED]
Subject: Tomcat as Personal Web Server Replacement


Greetings JSP Community

I am interested in using Tomcat in the same capacity (read: replace) as
Microsoft's Personal Web Server, such that I may replace ASP with JSP. Is it
possible to set up a simple Tomcat configuration on a Win95 machine to
respond to intranet http requests, or will I have to download, install and
configure Apache to enable this?

Does anyone have relevant experience or know of an appropriate resource?

Thankyou for your interest

I am using JBuilder Professional 4 on Win95

Edward Garson
Channel4 Television Corporation
+44 (020) 8874-3299


Any views or opinions are solely those of the author and do not necessarily
represent those of Channel Four Television Corporation unless specifically
stated.  This email and any files transmitted are confidential and intended
solely for the use of the individual or entity to which they are addressed.
If you have received this email in error, please notify
[EMAIL PROTECTED]

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 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".
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