Internal Server Error

2003-10-19 Thread Anson Zeall
Hi guys,

For some reason, my tomcat won't start. It says there's a 500
Internal server error with:

exception

javax.servlet.ServletException: org/apache/naming/JndiPermission
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:241
6)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherVa
lve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:4
80)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:60
1)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:534)


What does this mean?

Anosn



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using drop down boxes in JSP

2003-09-17 Thread Anson Zeall
OR maybecan I use it to call a javascript method to call up a
servlet? Does that work?

Anson

-Original Message-
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:54 PM
To: 'Tomcat Users List'
Subject: RE: Using drop down boxes in JSP


Hi,
   Thanks for the reply. But, hmm.i was thinking of using
onChange...and thenprocess the parameter via servlet?

Anson

-Original Message-
From: Walker Chris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:45 PM
To: 'Tomcat Users List'
Subject: RE: Using drop down boxes in JSP


Anson,

You will have to write client JavaScript to do this.

OTTOMH, attach a function to the onChange event of your SELECT tag.  The

object representing the tag will probably be accessible as
document.all.yourTagId, or possibly something else, depending on the
browser object model.  This object will expose a collection
corresponding to all the OPTION tags and a property to indicate which is
selected.

I'd recommend you to find a definition of the browser object model and
to check out sites specializing in JavaScript.

Chris Walker



-Original Message-
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: 17 September 2003 11:31
To: Tomcat Users List
Subject: Using drop down boxes in JSP


Hi people,

I want to know, what is the best way to scan the option chosen each
time the user selects an option from the drop down menu. Like..most of
the pages I surfed to, they only showed how to make a drop down box..and
then see what the option was chosen ONLY when the button is pressed. Is
there any way I can scan the input, as soon as the user chooses an
option from the drop down box?

Regards,


Anson




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Using drop down boxes in JSP

2003-09-17 Thread Anson Zeall
Hi,
   Thanks for the reply. But, hmm.i was thinking of using
onChange...and thenprocess the parameter via servlet?

Anson

-Original Message-
From: Walker Chris [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 17, 2003 8:45 PM
To: 'Tomcat Users List'
Subject: RE: Using drop down boxes in JSP


Anson,

You will have to write client JavaScript to do this.

OTTOMH, attach a function to the onChange event of your SELECT tag.  The

object representing the tag will probably be accessible as
document.all.yourTagId,
or possibly something else, depending on the browser object model.  This
object will expose a collection corresponding to all the OPTION tags and
a property to indicate which is selected.

I'd recommend you to find a definition of the browser object model and
to check out sites specializing in JavaScript.

Chris Walker



-Original Message-----
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: 17 September 2003 11:31
To: Tomcat Users List
Subject: Using drop down boxes in JSP


Hi people,

I want to know, what is the best way to scan the option chosen each
time the user selects an option from the drop down menu. Like..most of
the pages I surfed to, they only showed how to make a drop down box..and
then see what the option was chosen ONLY when the button is pressed. Is
there any way I can scan the input, as soon as the user chooses an
option from the drop down box?

Regards,


Anson




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using drop down boxes in JSP

2003-09-17 Thread Anson Zeall
Hi people,

I want to know, what is the best way to scan the option chosen each
time the user selects an option from the drop down menu. Like..most of
the pages I surfed to, they only showed how to make a drop down box..and
then see what the option was chosen ONLY when the button is pressed. Is
there any way I can scan the input, as soon as the user chooses an
option from the drop down box?

Regards,


Anson




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Using encodeURL - do we have to pass the jsessionID around?

2003-09-12 Thread Anson Zeall
Hi guys.

I still don't quite get how to really use encodeURL and
encodeRedirectURL. Yes I know the syntax and how to put in the link but
like.hmm.do we have to pass the ID around to get page?

Regards


Anson

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Embedding JSP code in a JS file

2003-09-12 Thread Anson Zeall
Thanks, butwhatand how to set the mime-type?

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 12:37 AM
To: Tomcat Users List
Subject: Re: Embedding JSP code in a JS file


Rename the js file to jsp then update your link to pull in the jsp file
accordingly. (You may have to do a mime-type set too)

-Tim

Anson Zeall wrote:

> HI,
>
> I want to know if anyone knows how to embed JSP code in JS files?
> 'cause I want to use encodeURL inside the JS filesomehow.
>
> Regards,



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Embedding JSP code in a JS file

2003-09-12 Thread Anson Zeall
'cause problem right now is..I tried dumping the js file code...into
my jsp file..and put in the encodeURL.and when I click on the
click via the browserit says my redirect for the URL has exceeded.
Dunno what that means..

Anson

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 12:37 AM
To: Tomcat Users List
Subject: Re: Embedding JSP code in a JS file


Rename the js file to jsp then update your link to pull in the jsp file
accordingly. (You may have to do a mime-type set too)

-Tim

Anson Zeall wrote:

> HI,
>
> I want to know if anyone knows how to embed JSP code in JS files?
> 'cause I want to use encodeURL inside the JS filesomehow.
>
> Regards,



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Embedding JSP code in a JS file

2003-09-12 Thread Anson Zeall
HI,

I want to know if anyone knows how to embed JSP code in JS files? 'cause
I want to use encodeURL inside the JS filesomehow.

Regards,


Anson





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Dynamic drop down menus

2003-09-12 Thread Anson Zeall
Nevermind, I found the stuff I want from dynamicdrive.com ...thanks
anyway

-Original Message-
From: engp0510 [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 13, 2003 12:13 AM
To: Tomcat Users List
Subject: Re: Dynamic drop down menus


http://www.htmlcodetutorial.com/

- Original Message -
From: "Anson Zeall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, September 12, 2003 5:41 PM
Subject: Dynamic drop down menus


> Hi,
>
> I want to know if there are free guides in teaching you how to do
> dynamic drop-down menus?
>
> Regards,
>
>
> Anson
>
>
>
>
>







> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic drop down menus - addition

2003-09-12 Thread Anson Zeall
With java script that is...

-Original Message-
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 7:42 PM
To: Tomcat Users List
Subject: Dynamic drop down menus


Hi,

I want to know if there are free guides in teaching you how to do
dynamic drop-down menus?

Regards,


Anson








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic drop down menus

2003-09-12 Thread Anson Zeall
Hi,

I want to know if there are free guides in teaching you how to do
dynamic drop-down menus?

Regards,


Anson




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Setting the classpath in Windows and Linux

2003-09-11 Thread Anson Zeall
Hi,

 I have a question on setting the classpath for Windows and Linux. Right
now, I'm using a really stupid way (but works for the moment =P) to compile
my java files; copying all the related jar files with my J2SE libraries. I
know this ain't the right method. So, I would like to ask who can lead me to
the right method? Hehe...

For windows, my Tomcat dir and java dir respectively, are located at:

C:\Apache\Tomcat  &C:\j2sdk_nb\j2sdk1.4.2

For Linux, my Tomcat dir and java dir respectively are located at:

/import/elfman/2/sew35/tomcat& /usr/local/java/jdk1.4.1

Regards,


Anson

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: The function for response.encodeURL....me still not sure

2003-09-10 Thread Anson Zeall
Hi guys,

Thanks a lot Jon and Chris. I'm very new to JSP...so...barely with me
for the stupid questions. I don't mind being called stupid...i'll learn
=P haha...

Anson

-Original Message-
From: Jon Wingfield [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 7:53 PM
To: Tomcat Users List
Subject: Re: The function for response.encodeURLme still not sure


You don't need to use encodeURL for includes or forwards. These are
server side processes and the session has already been determined. The
encodeURL tags the *next* client request with the data required to
continue a session.

HTH,

Jon

Anson Zeall wrote:

> Thanks a lot,
>
> But..for example...if I have a jsp file..that includes another jsp

> file in it.how can I write it with encodeURL? Doesn't seem to
> work..
>
> E.g.
> <%@ include file="<%= response.encodeURL("header_status_register.jsp")
> %>" %> doesn't work
>
> Anson
>
> -Original Message-
> From: Christopher Williams [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 10, 2003 5:55 PM
> To: Tomcat Users List
> Subject: Re: The function for response.encodeURLme still not sure
>
>
> As I said, the URL-rewriting is done by the container to allow you to
> use HTTP sessions when the user of your site has disabled cookies and
> it does this by appending ";jessionid=blah-blah-blah" to end of your
> URLs prior to the query string ("?blah=stuff&jabber=yakka-yakka...").

> This is all in the servlet spec.  However, you need to give the
> container the opportunity to do so and for this you need to use the
> encodeURL methods of HttpServletResponse.
>
> Think about your JSPs.  Currently (presumably) you have links like the
> following:
> Some link
>
> To enable session tracking without cookies, all you need to do is:
> ">Some link
>
> Likewise, whenever the logic of your page indicates that a redirect is

> required, instead of calling:
> response.sendRedirect("some_link.jsp");
> you call
>
> response.sendRedirect(response.encodeRedirectURL("some_link.jsp"));
>
> Check out the J2EE tutorial for examples:
> http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets11.html#63281
>
> Chris.
>




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: The function for response.encodeURL....me still not sure

2003-09-10 Thread Anson Zeall
Thanks a lot,

But..for example...if I have a jsp file..that includes another jsp
file in it.how can I write it with encodeURL? Doesn't seem to work..

E.g.
<%@ include file="<%= response.encodeURL("header_status_register.jsp")
%>" %> doesn't work

Anson

-Original Message-
From: Christopher Williams [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 5:55 PM
To: Tomcat Users List
Subject: Re: The function for response.encodeURLme still not sure


As I said, the URL-rewriting is done by the container to allow you to
use HTTP sessions when the user of your site has disabled cookies and it
does this by appending ";jessionid=blah-blah-blah" to end of your URLs
prior to the query string ("?blah=stuff&jabber=yakka-yakka...").  This
is all in the servlet spec.  However, you need to give the container the
opportunity to do so and for this you need to use the encodeURL methods
of HttpServletResponse.

Think about your JSPs.  Currently (presumably) you have links like the
following:
Some link

To enable session tracking without cookies, all you need to do is:
">Some link

Likewise, whenever the logic of your page indicates that a redirect is
required, instead of calling:
response.sendRedirect("some_link.jsp");
you call
response.sendRedirect(response.encodeRedirectURL("some_link.jsp"));

Check out the J2EE tutorial for examples:
http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets11.html#63281

Chris.

- Original Message -
From: "Anson Zeall" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 2:56 AM
Subject: The function for response.encodeURLme still not sure


> Hi guys,
>
> I was asking about the login stuff before from previous emails and

> trying to avoid the use of cookies. Someone in the group asked me to
> try
and
> use sessions ...using response.encodeURL and stuff. Can someone
> explain a bit more what that does, or is there a site that can explain

> to me about that?
>
>
>
> Thanks,
>
> Anson
>
>







> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



The function for response.encodeURL....me still not sure

2003-09-09 Thread Anson Zeall
Hi guys,

I was asking about the login stuff before from previous emails and
trying to avoid the use of cookies. Someone in the group asked me to try and
use sessions ...using response.encodeURL and stuff. Can someone explain a
bit more what that does, or is there a site that can explain to me about
that?



Thanks,

Anson

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Implementing a Login procedure, but avoiding cookies/session

2003-09-09 Thread Anson Zeall
Thanks chris I think I know what to do now..thanks!! =)

-Original Message-
From: Christopher Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 9:53 PM
To: Tomcat Users List
Subject: Re: Implementing a Login procedure, but avoiding
cookies/session


Anson,

If cookies are disabled, Tomcat uses URL rewriting to store the session
ID. When you encode URLs you need to to use special methods to support
this feature.  These methods are defined in HttpServletResponse and are:
String encodeURL(String url)
String encodeRedirectURL(String url)

So, instead of calling:
response.sendRedirect(url);
you should call:
response.sendRedirect(response.encodeRedirectURL(url));

If the session ID is stored in a cookie, this call is a NOOP.

Does this make sense?  By the way, you may have noticed that some web
sites have a mysterious ";jsessionid=BASE64-encoded-gobbledygook" added
to the URLs when you browse them (try www.postoffice.co.uk for an
example).  This is URL-rewriting in action.  Importantly, the jsessionid
value is opaque. Unless you'd managed to spy on another user's session,
there is no useful change you could make to this value to enhance your
privileges on the web site.  The session IDs are long, random, unique
strings used (presumably) as the key to a hashtable.

Of course, there's nothing to stop you implementing a similar scheme
yourself, but there's no need.

Hope this is useful.

Chris.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: method of implementing a 'login' section in a site

2003-09-09 Thread Anson Zeall
I don't get ityou mean you have to can set the cookie yourself??

-Original Message-
From: Billy Kantartzis [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 8:41 PM
To: Tomcat Users List
Subject: Re: method of implementing a 'login' section in a site


The way i prefer to do it is use a simple db with the
user atributes (userid , password , etc), use cookies
to check if the user is logged in or not.

one thing i had problems with when i first implemented
this solution is that the cookies are stored in a
browser specific place and you might not be able to
access them easilly. a work round to this is to set
the cookie path yourself from a methid in the API (i
dont have it at the top of my head i will look it up)
and get the cookie reference using the location where
the cookie is stored

Billy


--- "zeallousbigpond.net.au" <[EMAIL PROTECTED]>
wrote:
> hi,
>
> Thanks a lot for the email guys!! Another
> question I want to ask. I
> want to create a section of my site where I only
> allow users to use IF
> they have logged into my site. Either than using
> cookies to keep track
> if they have logged in or not, what method should I
> use to keep track
> of their status on each page?
>
> Anson
>
> - Original Message -
> From: "Marco Tedone" <[EMAIL PROTECTED]>
> Date: Tuesday, September 9, 2003 10:36 am
> Subject: Re: EJB in tomcat
>
> > Well, Tomcat needs to 'colloquiate' with an
> application server
> > (where EJBs
> > are deployed). The answer is yes, it's possible;
> all your
> > application needs
> > to do is to establish a context with an
> application server and
> > then it can
> > use the component deployed on application server
> generally using a
> > lookup.
> > Here follow a snippet from a code:
> >
> > InitialContext context = null;
> > //getJbossContext() sets up the correct property
> file and returns
> > a context
> > initialized to that property file
> > context = getJbossContext();
> > Object node = context.lookup(sessionName); PeopleDbManagerHome home
> > =
> >
>
(PeopleDbManagerHome)PortableRemoteObject.narrow(node,
> > PeopleDbManagerHome.class);
> > bean = home.create();
> > } catch (RemoteException e) { printRemoteExceptionMessage();
> > return null;
> > }
> > Hope it will help,
> >
> > Marco
> >
> > - Original Message -
> > From: "zeallousbigpond.net.au"
> <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, September 09, 2003 1:17 AM
> > Subject: EJB in tomcat
> >
> >
> > > hi,
> > >
> > >  I would like to ask, can Tomcat work with
> Enterprise
> > > Javabeans? 'cause I read from the Java site...it
> says that we
> > need a
> > > BEA server? Is it necessary? Or tomcat it self
> already has those
> > > libraries.
> > >
> > > Anson
> > >
> > >
> > >
> > >
>
-
> > 
> > > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> [EMAIL PROTECTED]
> > >
> >
> >
> >
> >
> >
>
---
> > --
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
>
>
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Implementing a Login procedure, but avoiding cookies/session

2003-09-09 Thread Anson Zeall
When you mean 'session' its using methods like HttpSession session =
req.getSession(true);? If yes...then...aren't they still using cookies?
'cause that's what I'm using. And when I test my app by turning off the
cookiesmy app is just...screwed

-Original Message-
From: Christopher Williams [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 09, 2003 8:17 PM
To: Tomcat Users List
Subject: Re: Implementing a Login procedure, but avoiding
cookies/session


Magic?  Actually, you could use URL-rewriting or hidden forms, but
anybody using your page could change the value from "0" to "1" to fool
your code into thinking they'd logged on.  They could also do the same
with a cookie if they reverse engineered your cookie data (which is not
hard).  Best to use the Session object as that's stored server side,
and, conveniently, goes away when the user does.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Another question - validating user input in fields

2003-09-09 Thread Anson Zeall
Hi,

I have another question for you guys. Say, a user types an input into
the form, but with my checkings, I made that kind of input, say "$%#RG",
invalid. But I would like to write a line at the side of the form saying
"input must be from A-Z or a-z". I think in asp, its called text validators
or something. How do you do that in JSP?

From,

Anson



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Implementing a Login procedure, but avoiding cookies/session

2003-09-09 Thread Anson Zeall
Hi,

I would like to know if there is anyway I could avoid the use of Session
or cookies for a login procedure, but still keep track of the user's login
status?

From,


Anson





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Good sites that show you EJB stuff

2003-09-08 Thread Anson Zeall
Hi,

I want to know if anyone, could show me, or recommend me any sites that
show you how to use JavaBeans and what the Beans are for?

Regards,


Anson





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: I still don't understand the need for the connection between Apache and Tomcat

2003-09-07 Thread Anson Zeall
Oh thanks!.that solved my confusion =)

-Original Message-
From: Amjad Shahrour [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 7:26 PM
To: 'Tomcat Users List'
Subject: RE: I still don't understand the need for the connection
between Apache and Tomcat


Tomcat can act as a web server and serve static (html) pages as well as
servlets and jsps, but tomcat is not as fast as apache web server.

Another reason might be that most servers already have apache installed
and also might already have multible sites including PHP pages.

Regards,
Amjad shahrour

-Original Message-----
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 11:54 AM
To: Tomcat Users List
Subject: I still don't understand the need for the connection between
Apache and Tomcat

Dear people,


I still don't understand why is there a need for a connection
between Apache and Tomcat since Tomcat can work on its own.

Regards,


Anson



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I still don't understand the need for the connection between Apache and Tomcat

2003-09-07 Thread Anson Zeall
Dear people,


I still don't understand why is there a need for a connection between
Apache and Tomcat since Tomcat can work on its own. 

Regards,


Anson

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Setting up Tomcat in Windows 2000 Advanced Server

2003-09-06 Thread Anson Zeall
Hahahha!! I've solved my own problem again!! ..sorry about that guys

-Original Message-
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Sunday, September 07, 2003 11:25 AM
To: Tomcat Users List
Subject: Setting up Tomcat in Windows 2000 Advanced Server


Dear Tomcat users,

I've recently installed JDK 1.4.2 and Tomcat 4.1.27 on Windows 2000
Advanced Server. But it doesn't seem to work. This is what happened:

1. I set up three accounts in the computer (the default acct
'administrator', 'aa', 'bb'), all with Administrator permissions 2. I
set up JDK and Tomcat on 'aa' 3. I set the path, JAVA_HOME,
CATALINA_HOME as required. 4. I started Tomcat 5. I typed
http://localhost:8080 or even http://aa:8080. It doesn't work

How come?

Regards,

Anson







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setting up Tomcat in Windows 2000 Advanced Server

2003-09-06 Thread Anson Zeall
Dear Tomcat users,

I've recently installed JDK 1.4.2 and Tomcat 4.1.27 on Windows 2000
Advanced Server. But it doesn't seem to work. This is what happened:

1. I set up three accounts in the computer (the default acct
'administrator', 'aa', 'bb'), all with Administrator permissions
2. I set up JDK and Tomcat on 'aa'
3. I set the path, JAVA_HOME, CATALINA_HOME as required.
4. I started Tomcat
5. I typed http://localhost:8080 or even http://aa:8080. It doesn't work

How come?

Regards,

Anson



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: How come Tomcat doesn't load the second time?

2003-09-06 Thread Anson Zeall
Hey people, I've found out the reason.its 'cause of my
firewall...haha..sorry for all the trouble

-Original Message-----
From: Anson Zeall [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 06, 2003 11:54 PM
To: Tomcat Users List
Subject: How come Tomcat doesn't load the second time?


Hi people,

I've installed Tomcat 4.1.27. Put for some reason, when I restart my
computeror like..shutting down and restarting tomcat a few
times..I'm not able to access tomcat again? Not even
http://localhost:8080/index.jsp.

What is the reason for this?

Regards,


Anson








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How come Tomcat doesn't load the second time?

2003-09-06 Thread Anson Zeall
Hi people,

I've installed Tomcat 4.1.27. Put for some reason, when I restart my
computeror like..shutting down and restarting tomcat a few
times..I'm not able to access tomcat again? Not even
http://localhost:8080/index.jsp.

What is the reason for this?

Regards,


Anson




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]