Session on start

2000-04-19 Thread anderson

How can I put a code to run when a session starts ? Like ASP global.asa
...

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



JPEG/GIF Width

2000-05-22 Thread anderson

Anyone knows how can I get the GIF or JPEG width ?

thanks
anderson

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



Source Management

2000-05-23 Thread anderson

Anybody knows a software that manage source files to JSP ?

Anderson

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

2000-05-23 Thread anderson

Where I can take it ?

Thank you so much

anderson

Carlos Latugaye wrote:

> cvs
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of anderson
> Sent: Tuesday, May 23, 2000 7:42 PM
> To: [EMAIL PROTECTED]
> Subject: Source Management
>
> Anybody knows a software that manage source files to JSP ?
>
> Anderson
>
> ===
> 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 problem

2000-05-25 Thread anderson

Where Can I found the documentation of response, request, session objects ? I didn't 
found at the
java.sun.com.br .

Thank you
Anderson

===
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: Emailling within JSP

2000-05-25 Thread anderson

Where I found the packages : javax.mail.* , javax.activation.* ?

Thanks
anderson

Geert Van Damme wrote:

> Joseph, thanks for the other mail links.
>
> However, the servlet was easier that I expected.
> Here's the code I use
>
> import java.io.*;
> import java.util.*;
> import java.net.*;
> import javax.servlet.*;
> import javax.servlet.http.*;
> import javax.mail.*;
> import javax.mail.internet.*;
>
> public class MailPage extends HttpServlet{
>
> private String SMTPHost = "";
>
> public void init(ServletConfig config) throws ServletException{
> super.init(config);
> SMTPHost = getInitParameter("host");
> }
>
>   public void service(HttpServletRequest req, HttpServletResponse res)
> throws ServletException, IOException {
> String source = req.getParameter("source");
> String from = req.getParameter("from");
> String to = req.getParameter("to");
> String subject = req.getParameter("subject");
> PrintWriter out = res.getWriter();
> res.setContentType("text/plain");
>
> try{
> Properties sysProps = System.getProperties();
> sysProps.put("mail.smtp.host",SMTPHost);
> Session session = Session.getInstance(sysProps,null);
>
> MimeMessage message = new MimeMessage(session);
>
> Address fromAddress = new InternetAddress(from);
> message.setFrom(fromAddress);
>
> Address[] toAddress = InternetAddress.parse(to);
> message.setRecipients(Message.RecipientType.TO,toAddress);
>
> message.setSubject(subject);
>
> StringBuffer text = new StringBuffer();
> URL url = new URL(  source );
> BufferedReader in = new BufferedReader( new
> nputStreamReader( url.openStream() ) );
> String line = null;
> // use a String as buffer
> while ((line=in.readLine()) != null){
> text.append(line);
> }
> message.setText(text.toString());
> Transport.send(message);
>
> }
> catch (IOException e){
> out.println("Error : "+e.getClass()+"  "+e.getMessage());
> }
> catch (AddressException e){
> out.println("Error in address : "+e.getClass()+"  
>"+e.getMessage());
> }
> catch (SendFailedException e){
> out.println("Error in send : "+e.getClass()+"  
>"+e.getMessage());
> }
> catch (MessagingException e){
> out.println("Error in message : "+e.getClass()+"  
>"+e.getMessage());
> }
>
> }
> }
>
> You need to specify the SMTPHost as an init parameter.
> URL parameters are to, from, subject and source
> Source is the full path to a webpage like http://www.gojasper.be
>
> I'll try to install this on my server and let you know where this can be
> tested.
>
> Geert 'Darling' Van Damme
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Geert Van Damme
> > Sent: woensdag 3 mei 2000 12:41
> > To: [EMAIL PROTECTED]
> > Subject: Re: Emailling within JSP
> >
> >
> > However, even when using javamail, emailing from JSP isn't obvious.
> > Of course you can do it, but in that case, your whole code is in
> > between <%
> > %> with lot's of println("blablabla ") statements and you're not really
> > doing JSP. That's a plain servlet ;-)
> >
> > It would be very nice if you could use a JSP approach to sending email.
> >
> > Here's what I'd like to do:
> > Make a servlet that takes address and subject as a parameter and
> > also a URL
> > to a JSP page.
> > the servlet makes a URLConnection to that JSP and routes the result to an
> > email.
> > that way you can use create your emails like you create JSP. Isn't that
> > wonderful?
> > But before I do 

Re: Starting Server

2000-05-25 Thread anderson

Try include dot ( . ) in your classpath variable.

anderson

"Gomez, Anthony" wrote:

> Hi All,
>
> I'm new to JSP. I just downloaded the JDK 1.2 and JSWDK to try some of the
> DEMOS.
> When I try to start the server by clicking on the STARTSEVER.BAT file. I get
> the following error:
>
> The necessary packages not included in the classpath environment.
>
> Again I'm new to JSP can anybody help!
>
> Thank you in advance
> Anthony.
>
> ===
> 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-06-28 Thread anderson

Hi,

How can I do a connection pool ? I'm using a simple oracle connection when the
session starts.

thanks
anderson

"Aggarwal, Pawan" wrote:

> There is a problem faced while using the connection pool class in Oracle..
> I dont know how to tacke it..
>
> What i have is a pool of 50 connection...
> The moment the server is started and the first user logins then the 50
> connections are acquired..
>
> Now the time out for oracle session is 15 minutes and web server session
> time out is 30 min..
>
> If a user connects and then leave the screen for more than 15 mins then the
> oracle kills session
> and the number of connection from pool decrease from 50 to 49
> Even if i open a new browser window and try to login then i get exceptions
> that connection time out
> which means i am not getting any of the 49 connections??
> I restart the web server problem is solved
>
> What i am confused about is whether if there is no other user for at least
> lets say 2 hours
> then will all the connections (49) also die out as time out for session for
> oracle is 15 mins
> Then what is the use of connection pool...
> is there any difference between session and connection ??
> There must be some way out?
> Does increasing the web server session time out > oracle session time out
> will help??
>
> Please advice\
>
> ===
> 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



HTTP Header in HTML

2000-06-28 Thread anderson

Hi,

I'm having a strange problem, the source of HTTP header is appearing
in my html generated by JSP . What's the problem ?

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



off topic - maximum open cursors exceeded

2000-06-28 Thread anderson

Anyone knows about this error in Oracle ? This error is about the number
of Recordset that I use in my page ?

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



Re: off topic - maximum open cursors exceeded

2000-06-28 Thread anderson

Thank you so much... And the Connection, how can I close it when the session ends ?

[]s

Mark Hills wrote:

> Make sure you close any database objects that you aren't using anymore, like
> ResultSet, CallableStatement, and PreparedStatement objects. I've gotten the
> same errors before when I've forgotten to close things and this has taken
> care of it.
>
> -----Original Message-
> From: anderson [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 28, 2000 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: off topic - maximum open cursors exceeded
>
> Anyone knows about this error in Oracle ? This error is about the number
> of Recordset that I use in my page ?
>
> 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

===
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 - maximum open cursors exceeded

2000-06-29 Thread anderson

thank you so much Kishore...

[]s


Kishore Raghavan wrote:

> YOU can use this query (ORACLE) to see how many cursors are open.
>
> Query : "SELECT value FROM v$sysstat WHERE name = 'opened cursors current'";
>
> This would help you to see which part of you code is leaving the cursors
> open..
>
> 
> Kishore Raghavan
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Philip Doyle
> Sent: Wednesday, June 28, 2000 3:14 PM
> To: [EMAIL PROTECTED]
> Subject: Re: off topic - maximum open cursors exceeded
>
> Hi
>
> this error is common for folks who use connection pooling - as Oracle
> creates a session for each connection and will accumulate cursors associated
> with each open connection in the pool throughout the connections life.
>
> Therefore one should set the max uses for each connection in the pool and
> recreate them to release the Oracle resources associated with them.
>
> Also, one can have ones DBA increase the max open cursors setting for the
> database which is in $ORACLE_HOME/dbs/init.ora as far as I
> remember.
>
> regards
> Phil
>
> - Original Message -
> From: Mark Hills <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 28, 2000 11:41 PM
> Subject: Re: off topic - maximum open cursors exceeded
>
> > You should just be able to use the Connection's close() method when you're
> > done with it (done processing the page, for instance). You will want to
> look
> > into connection pooling to cut down on the time it takes to open and close
> > connections on a page. I think Oracle has some info up on their website
> > about this, and I know WebLogic provides connection pooling as a "service"
> > of the WebLogic server, so I'm assuming other servers may do this as well.
> >
> > -Original Message-
> > From: anderson [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, June 28, 2000 4:24 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: off topic - maximum open cursors exceeded
> >
> >
> > Thank you so much... And the Connection, how can I close it when the
> session
> > ends ?
> >
> > []s
> >
> > Mark Hills wrote:
> >
> > > Make sure you close any database objects that you aren't using anymore,
> > like
> > > ResultSet, CallableStatement, and PreparedStatement objects. I've gotten
> > the
> > > same errors before when I've forgotten to close things and this has
> taken
> > > care of it.
> > >
> > > -Original Message-
> > > From: anderson [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, June 28, 2000 1:44 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: off topic - maximum open cursors exceeded
> > >
> > > Anyone knows about this error in Oracle ? This error is about the number
> > > of Recordset that I use in my page ?
> > >
> > > 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
> >
> >
> ===
> > 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
> >
> >
&

Image Size

2000-07-04 Thread anderson

How can I get the image width and height (GIF and JPF) ?

thanks
anderson

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



Cookies

2000-07-04 Thread anderson

Hi,

How can I get if the browser is able to receive cookies ?
If the cookies options in the browser is disable, the session beans
works ?

thanks
[]s
anderson

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

2000-07-04 Thread anderson

My database contains a field that has the name and path of an image (Gif or JPG ), I
need to show the image inside the window, and this window must have the same width
and height of the image. To do it I need to get the image size with the JSP.

thanks
anderson

Branko Kaucic wrote:

> Hi!
>
> Tell more about what you need. I made some servlets that produce images,
> so maybe I can help.
>
> Branko
>
> On Tue, 4 Jul 2000, Lesley Eadie wrote:
>
> > Hi
> > are you using jsp to generate images server side and display them on a
> > client browser?  If you are or anyone else is, I need your help.  I'm going
> > mad trying to do it.
> >
> > Thanks in advance a'body!
> > DD xx
> >
> > - Original Message -
> > From: "anderson" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 04, 2000 3:21 PM
> > Subject: Image Size
> >
> >
> > > How can I get the image width and height (GIF and JPF) ?
> > >
> > > thanks
> > > anderson
> > >
> > >
> > ===
> > > 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



Cookies

2000-07-04 Thread anderson

Hi,

Using Javascript client side " window.navigator.cookieEnabled; " I
get the information about cookies from the browser . How can I get this
information using JSP ?

thanks

anderson

===
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: Servlets or JSP "that is the question"

1999-10-07 Thread John Anderson



I have found two major advantages with JSP with servlets  over just
servlets:
1. They allow you to completely seperate the display formating of your
pages completely from the java code to the extent that the person coding
the JSP does not need to know anything about JAVA and the person coding
your servlet has no control over the formating. They are two different
types of people anyway.
2. This then allows full prototying of your app at html time before
any code is written by putting dummy navigation bars at the bottom of the
screen that do everything the program would have done. Once tested and
agreed you just had servlet and bean code to cause the actions.
Have a look at a book SG24-5423-00 on IBM's site www.redbooks.com for
an example
John Anderson
Daniel Macho wrote:
 Hi my friends.
I am a new subscriptor to this list. First
of all, sorry if my english isn't good enough. The
question is that I was wondering if someone could explain me what is the
advantage of usingservlets and jsp together when developing
internet applications, if the role of the servlet can besupplied
with a bean into a jsp. I am analizing a new
internet application, and I have realized that the only reason for using
a servletis checking users validity into a session,
and so on, things that can be done with a bean into a jsp. Are
jsp's a substitution for servlets or a complement instead? Thanks
in advance. -
Daniel Macho Ortiz
Analista Programador
Dep. Laboratorio.
FIHOCA
Tlf: (93) 410.90.00 Ext. 508
e-mail: [EMAIL PROTECTED]
-

--
from
john anderson
(mailto:[EMAIL PROTECTED])

matai marketing
po box 27-496
wellington
new zealand (home of the americas cup)
phone +64+4+801 8672
mobile +64+25+27 27 192
fax +64+4+801 8673
visit our site at
http://www.mataimarketing.co.nz

 




Re: callPage() method

1999-10-07 Thread John Anderson

Uncertain exactly what your problem is but two things come to mind:
1. Look at servlet chaining as an alternative to how you architect your solution.
This allows picking up function from other 'places'. The real beauty of JSP is that
it keeps the formating code seperate from the business function and you appear to
be putting them back together.
2. If you are using IBM's solution you may find the PageListServlet advantageous in
managing a level of indirection in naming with jsp files therefore debugging will
also become easier. It uses an XML servlet configuration file to redirect the name
used in your callPage() to the implementation.

John Anderson

Sunil S Sarje wrote:

> Hi friends,
> This is my first question on this list.
> So first of all I would like to give thanks to all of you for sharing the
> ideas through this list.
>
> My problem is as follows
>
> I am using IBM WebSphere Application server 2.0 with apache v1.3.6.
>
> QUERY IN DETAIL:
> A browser requests for a page on a web-server which initiates a servlet.
> Now this servlet calls a jsp-page residing on the other web-server ( which
> supports jsp). This jsp-page
> is implemented such that it writes some message on "out" object.
>
> Now my question is that whether the message written by the jsp -page will
> appear in the browser or not .
> If yes then how the context/connection is maintained.??
> If not then what could be done to achieve this.??
>
> TnR
> Sunil
>
> ===
> 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

--
from

john anderson
(mailto:[EMAIL PROTECTED])


matai marketing
po box 27-496
wellington
new zealand (home of the americas cup)

phone +64+4+801 8672
mobile +64+25+27 27 192
fax +64+4+801 8673

visit our site at
http://www.mataimarketing.co.nz


===
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: difference between request.setParameter and session.putValue????? - but they achieve the same effect--dont they?

1999-10-10 Thread John Anderson


sendRequest is very useful becaus of this.
Rupesh Choubey wrote:
 sendRedirect would cause the
browser to make a new request which would mean the information is lost
and cannot be obtained from the JSP.does this make sense?
thank you for your response
rupesh.
-Original Message-
From: Mike Engelhart [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 08, 1999 5:06 PM
To: [EMAIL PROTECTED]
Subject: Re: difference between request.setParameter
and
session.putValue?
It think you're comparing apples and oranges.  Sessions
and requests are not
the same thing.  They are different objects with
different functionality.
There is no way for you to write, in a servlet for example
request.setParameter("name", value);
and then in a JSP write this
session.getValue("name");
That will not work.   You can use session objects
to pass data to a page but
you must specifically remove/invalidate it or else it
will stay around for
the lifetime of the session.
Mike
--
>From: Rupesh Choubey <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: difference between request.setParameter and
session.putValue?
>Date: Fri, Oct 8, 1999, 3:55 PM
>
>
> hi,
>
> i know you can make a value persist for the request
lifetime using two ways:
>
> 1. request.setParameter("name", value);
>
> 2. session.putValue("name", value);
> and in the jsp say: 
>
> what is the difference between the two approaches if
the object is going to
> be around only for the lifetime of the request?? am
i missing something?
>
> thanks for your help,
> rupesh.
===
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

--
from
john anderson
(mailto:[EMAIL PROTECTED])

matai marketing
po box 27-496
wellington
new zealand (home of the americas cup)
phone +64+4+801 8672
mobile +64+25+27 27 192
fax +64+4+801 8673
visit our site at
http://www.mataimarketing.co.nz

 


Re: Problem with tag

1999-10-11 Thread John Anderson

Double check your parameters and classpath. I use this extensively with no problems
but do remember getting caught out with code verse codebase when I first used it.

John Anderson

"Sandu, Sathish" wrote:

>  Hi,
>   Could somebody tell me if there is a problem with the  tag. I am
> trying to use it, but I am not able to get it to work. Is is kind of flaky?.
>
>  Thank you for your help.
>  Sathish.
>
> ===
> 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

--
from

john anderson
(mailto:[EMAIL PROTECTED])


matai marketing
po box 27-496
wellington
new zealand (home of the americas cup)

phone +64+4+801 8672
mobile +64+25+27 27 192
fax +64+4+801 8673

visit our site at
http://www.mataimarketing.co.nz


===
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: Brutal opinions requested

1999-10-11 Thread John Anderson

Our pennies worth!

We had a blue sky option  and have gone IBM AS/400, IBM HTTP Server (APACHE),
WebSphere, JAVA Servlets, JSP, NetObjects Fusion, and various graphical tools such
as Photoshop.

Our major objectives were:
1. Stability in production for ecommerce applications.
2. Scaleability of production environment.
3. Minimise number of production technologies.

We chose the hardware platform as it contributes to all of the above. They run 24/7
for months on end, have all software from one vendor which restricts the number of
technologies you use and the amount of 'integration' effort.  There is clear vendor
responsibility for problems. The scaleability of 400 is wider than anything else I
am aware of.

The development environment is  JAVA Servlets and JSP for WebSphere with DB2 for
database. This is supported on Linux, NT, various unix, OS400, and MVS. We can
deploy to client environments in any of these technologies.

We were swayed by the fact this is essentially a transaction processing environment
and that has been IBM's bread and butter since the 1960's! They are the world
leaders in transaction processing, as SUN are in networking, Cray are in super
computing, and Microsoft are in marketing.

We belive the JAVA and JSP technologies are stabalising very quickly and the
stability of the operating environment will be the major factor within six months.

John Anderson


Fred Durham wrote:

> We currently do all development on IIS using ASP combined with ActiveX on
> the server to do what ASP scripts cannot (like beans I think), and ISAPI
> when ASP just can't do what we need.
>
> JSP looks really tempting. Object based (unlike ASP and VBScript), one
> language (Java) right now we keep 3 code bases - ASP, ActiveX + ISAPI
> projects.
>
> However, we know this windows centric system works, and switching is a risk
> (though, as I say, a very tempting one). Bugs, down-time, random crashes,
> weak class libraries, etc are all big problems for us.
>
> * Any brutally honest opinions about the state of JSP is *greatly*
> appreciated.
>
> * Any pointers on which vendor to use for the JSP environment to run in?
>
> * Where's it fail? Given the choice, would any of you rather use a different
> technology?
>
> Thanks!
>
> -Fred
>
> ===
> 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

--
from

john anderson
(mailto:[EMAIL PROTECTED])


matai marketing
po box 27-496
wellington
new zealand (home of the americas cup)

phone +64+4+801 8672
mobile +64+25+27 27 192
fax +64+4+801 8673

visit our site at
http://www.mataimarketing.co.nz


===
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: Tomcat ignoring my JSP tags.

2000-08-28 Thread Wayne Anderson

try appending the proxy port to the host name. http://localhost:8080/

wayne
- Original Message -
From: "Dilip Patel" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 29, 2000 8:17 AM
Subject: Re: Tomcat ignoring my JSP tags.


> Forget about TaglibI am not able to run the simple hello world
> program I am now really frustrated I dont know whether it has got
to
> do with classpath settings... can anyone tell me what should be the
claspath
> settings...I think that is the only thing I need to check again now..
>
>
> >From: Marco M <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Tomcat ignoring my JSP tags.
> >Date: Mon, 28 Aug 2000 16:10:18 +0300
> >
> >ok Asha,
> > i did not follow the thread..but were you able to run the custom
> >tag
> >example that comes along with tomcat??
> >it's in the directory examples/jsp/simpletag
> >if u are able then:
> >- write your own tag
> >- write your taglib
> >- declare your taglib in the proper web.xml
> >- then write the JSP with your custom tag
> >
> >if your tag has an attribute...declare it in your taglib
> >
> >
> >name_of_the_attribute
> >true
> >true
> >
> >
> >
> >regards
> > marco
> >
> >
> >
> >
> >if u are able..then the problem can be how u declare the taglib
> >
> > > -Original Message-
> > > From: EXT Asha Patel [mailto:[EMAIL PROTECTED]]
> > > Sent: 28. August 2000 15:26
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: Tomcat ignoring my JSP tags.
> > >
> > >
> > > I am still not able to run tomcat successfully...JSP tags are
> > > still ignored.
> > >
> > > Could anyone please list down all the steps required to
> > > install TOMCAT 3.1
> > > in win 98 machine, the prerequisites softwares to be
> > > installed, the class
> > > path and java_home path settings, the windows system memeory settings,
> > > etc...
> > >
> > > I beleive that it will be of great help to everyone.
> > > Personally I think even
> > > many links of installing tomcat are incomplete or not very
> > > friendly to new
> > > comers...
> > >
> > > Thanks again
> > > -
> > >
> > >
> _
> 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: Training and Education

2000-09-02 Thread Edwin Anderson

I just took a great class on servlets and JSP.
http://www.learningtree.com/us/ilt/courses/570.htm

Hope this helps.

- Ed
_
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



Re: Tomcat as Personal Web Server Replacement

2000-11-08 Thread Jason Anderson

Hi...

I've just done the very thing that you're asking about. And this is my first
ever foray into JSP/Java world, and it wasn't at all difficult. In fact, it
was easier to install and setup than Microsofts own PWS :)

/jase


> -Original Message-
> From: Scott Evans [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, November 08, 2000 3:44 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Tomcat as Personal Web Server Replacement
>
> 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

===
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: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson

use String[] whatToDo = request.getParameters("action");

multiple checkbaoxes return multiple parameters

-Original Message-
From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 2:30 PM
To: [EMAIL PROTECTED]
Subject: getting paramater names from checkboxes


Hi, I have a problem in handling values of checkboxes.
If I write for exampple

and then on some other page
String whatToDo = request.getParameter("action");
then everything is OK, in whatToDo is the value DELETE.
But If I have



How could I get all the values of the selected checboxes?

Thank you,
Martin.

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson

-Original Message-
From: Andi Anderson [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 3:31 PM
To: [EMAIL PROTECTED]
Subject: Re: getting paramater names from checkboxes


I am sorry it should look like this:

String checkbox[] = request.getParameterValues("mavdel");


my bust
Andi

-Original Message-
From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: getting paramater names from checkboxes


Sorry, but it doesn't work.
Error compiling source file: file:f:/java/apache/htdocs/work/movedel.jsp:
Method getParameters(java.lang.String) not found in interface
javax.servlet.http.HttpServletRequest.
String checkbox[] = request.getParameters("movedel");
 ^
1 error

Martin

- Original Message -
From: "Andi Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 8:53 PM
Subject: Re: getting paramater names from checkboxes


> use String[] whatToDo = request.getParameters("action");
>
> multiple checkbaoxes return multiple parameters
>
> -Original Message-
> From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: getting paramater names from checkboxes
>
>
> Hi, I have a problem in handling values of checkboxes.
> If I write for exampple
> 
> and then on some other page
> String whatToDo = request.getParameter("action");
> then everything is OK, in whatToDo is the value DELETE.
> But If I have
> 
> 
> 
> How could I get all the values of the selected checboxes?
>
> Thank you,
> Martin.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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

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

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



Re: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson

I am sorry it should look like this:

String checkbox[] = request.getParameterValues("mavdel");


my bust
Andi

-Original Message-
From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: Re: getting paramater names from checkboxes


Sorry, but it doesn't work.
Error compiling source file: file:f:/java/apache/htdocs/work/movedel.jsp:
Method getParameters(java.lang.String) not found in interface
javax.servlet.http.HttpServletRequest.
String checkbox[] = request.getParameters("movedel");
 ^
1 error

Martin

- Original Message -
From: "Andi Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 8:53 PM
Subject: Re: getting paramater names from checkboxes


> use String[] whatToDo = request.getParameters("action");
>
> multiple checkbaoxes return multiple parameters
>
> -Original Message-
> From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 23, 2001 2:30 PM
> To: [EMAIL PROTECTED]
> Subject: getting paramater names from checkboxes
>
>
> Hi, I have a problem in handling values of checkboxes.
> If I write for exampple
> 
> and then on some other page
> String whatToDo = request.getParameter("action");
> then everything is OK, in whatToDo is the value DELETE.
> But If I have
> 
> 
> 
> How could I get all the values of the selected checboxes?
>
> Thank you,
> Martin.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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

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

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



Re: getting paramater names from checkboxes

2001-03-23 Thread Andi Anderson

cool glad to help

-Original Message-
From: Martin Pribyl [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 3:37 PM
To: [EMAIL PROTECTED]
Subject: Re: getting paramater names from checkboxes


I was faster:-))
Thanks anyway, now everything is OK.

Martin

- Original Message -
From: "Andi Anderson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 23, 2001 9:30 PM
Subject: Re: getting paramater names from checkboxes


> I am sorry it should look like this:
>
> String checkbox[] = request.getParameterValues("mavdel");
>
>
> my bust
> Andi

===
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: Page Directive error

2001-03-23 Thread Andi Anderson

I believe that you have to use the ISO--# not UTF-8 I think what you are
looking for is ISO-8859-1

-Original Message-
From: Azania Abebe [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 23, 2001 4:39 PM
To: [EMAIL PROTECTED]
Subject: Page Directive error


I've the following code in my jsp page & when I try to compile the jsp
pages I'm getting an error but if I take out the ";" the page compiles.
Any idea why I'm getting this error?

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

Thanks!

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



Tomcat and Java error reporting

2001-07-09 Thread Neil Anderson

Hi,

I am looking for any information on setting up tomcat 3.2.2 on sun Solaris
servers. The problem that I am getting is that any errors that should go to
jvm.stderr or jvm.stdout are going to the consol of the user who starts
tomcat. I have set to parameters in wrapper.properties to the following

wrapper.stdout=$(wrapper.tomcat_home)/logs/jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)/logs/jvm.stderr

This has made no difference. I am using mod_jk as the bridge between apache
and tomcat.

Any help would be appreciated

Regards
Neil

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



Plugin Adobe Acrobat

2000-07-20 Thread Anderson Ami

Hi,

   Anybody knows how can I detect if the browser has adobe acrobat plugin ?

thanks
anderson

===
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 install TomCat on Windows 2000??

2001-08-21 Thread Anderson Wayne

just add the line "set JAVA_HOME=c:\jdk1.3.0_02" to your startup.bat file in the bin 
directory and it should work.

I made no changes to my autoexec.bat and it runs fine.




>>Date:Tue, 21 Aug 2001 19:53:52 -0300
>>From:Clair e Simon <[EMAIL PROTECTED]>
>>To:  [EMAIL PROTECTED]
>>CC:
>>Subject: How to install TomCat on Windows 2000??
>>
Hi everybody,

I did install the new versions of jdk and TomCat on my computer (Windows
2000). But nothing work. I try to use TomCat, but it stay close even if
i press startup. Also, I can't give memory for him to run, I don't have
it in the program. I did open autoexec.bat and add those lines like I
did at home;

c:\jdk1.3.0_02\bin

set TOMCAT_HOME=c:\tomcat
set JAVA_HOME=c:\jdk1.3.0_02

I use Windows 98 at home with jdk and TomCat, without any problems. So,
I don't know what should I do to fix this.

I hope to receive news from you soon.

Bye

Simon



_
The simple way to read all your emails at ThatWeb
http://www.thatweb.com

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

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



Re: Model 2

2000-02-25 Thread Jacob W Anderson

I don't believe you would make requests on the controller for generating
degenerate views (views with no parameters).  In general, the views handle
themselves without interactions on the controller, unless the user is
affecting the data in the model.  Remember that the controller's role in MVC
is to manage manipulations of the data, e.g. changing user passwords, etc.

To handle the authentication part, think of logging into the system as an
MVC pattern applied to the session object.  You would need a
"SessionController" servlet to which you would post credentials and set the
session state.

Also, the view retrieves data from the model directly in a read-only role.
This is typical behaviour for a view in MVC, otherwise it can't act like a
bona fide view of the model!  :)  Just remember to ONLY act in a read-only
role with the model from the view.

Since this is a design pattern topic, it should probably go to another
mailing list ...

Please correct me if I missed something ...

-- Jake

- Original Message -
From: Thomas Oellrich <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 25, 2000 12:33 AM
Subject: Model 2


> Hello all,
>
> I'm building a Web application based on the Model 2 architecture advocated
> by folks like Craig. I'm wondering how you guys handle requests for JSP
> pages where no previous action was executed. Are these requests also
directed
> to the controller servlet or do you let the JSP pages handle these
requests
> directly? If so, I guess these JSP pages need to include authentification.
> Another issue arises when the JSP page contains a list which needs to be
> populated from a database. Is it a good a idea to let the view retrieve
data from
> the model directly?
>
> Thanks for any help.
> Tom
>
>
> --
> Sent through GMX Free Mail - https://www.gmx.net
>
>
===
> 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
>

===
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: outputting a fileinputstream

2000-02-26 Thread Jacob W Anderson

Doesn't out.println() output to an error log in the servlet engine?
Instead, just make an explicit reference to the strData string in your JSP
code:

<%
File file = new File("./public_html/xml/cc.xml");
FileInputStream fis = new FileInputStream(file);
byte[] data = new byte[fis.available()];
String strData = new String(data);
%>
Hey this is the string <%= strData %>

-- Jake


- Original Message -
From: Paul Beer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, February 25, 2000 11:38 AM
Subject: outputting a fileinputstream


> I am trying to load an xml packet off a local directory and display it in
a
> jsp template... to no avail... could someone lok at this code and let me
> know why it displays nothing ?  when i do a string.length() i get 3451 so
I
> know it is reading the stream... I just cant output it in JSP.
>
> thanks,
> paul
>
> code:
>
> File file = new File("./public_html/xml/cc.xml");
> FileInputStream fis = new FileInputStream(file);
> byte[] data = new byte[fis.available()];
> String strData = new String(data);
> out.println(strData);
>
>
===
> 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
>

===
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: beans accessing database pool

2000-03-01 Thread Jacob W Anderson

Don't forget to add mutex locking around your connection pool object,
otherwise you will have a race condition and end up with multiple instances
of the connection pool.

> class SingletonConnectionPool {
>  private static SingletonConnectionPool  m_conPool = null;

private static Object _mutex = new Object();  // JWA

>
>  public static getInstance() {

synchronized(_mutex) {   // JWA

>   if (m_conPool == null)
>m_conPool = new SingletonConnectionPool();
>

}   // JWA

>   return m_conPool();
>  }
>
>  private SingletonConnectionPool(...);
> }

==
Jacob W Anderson
Software Design & Management Consultant
Arrowhead General Insurance Group
[EMAIL PROTECTED]
(858) 361 2384
=

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



Off Topic: Submitting Forms

2000-03-16 Thread Jacob W Anderson

Hi!

I've got this JSP which is for password hint/email requests ... of course,
there are two buttons that need to act on one text field input.  The way my
controller works (Model 2 architecture), is to have an action specified in
the servlet's parameters.  Typically I just specify the ACTION="<%=blah
blah%>" in the  element, but in this case, the action depends on which
button is pressed.

Any of you guys have some advice on how to implement this?  I am trying the
javascript route, but have had no luck with it:

function submitAction(form, action)
{
  form.<%=YZConfig.PARAM_ACTION%>=action;
  form.submit();
}


  
  


Any help is greatly appreciated!

Thanks

-- Jake

===
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: Been getting the same message...

2000-12-18 Thread Wayne Scott Anderson

i just redirect the clowns postings back to its own mailbox until this gets
fixed.

- Original Message -
From: Meera Gajanan Nayak <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 11:32 AM
Subject: Been getting the same message...


> I  did not get any messages from this list last week.And today i got one
> or two particular messages from the same person  -the one on good jsp
> engines -around 20-30 times.Anyone else having the same problem??
>
> Meera.
>
>
===
> 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