Re: help needed

2000-02-25 Thread Shrisha Radhakrishna

Try using a shared variable (say, a vector, hashtable or a map) instead of
doing a DB read every time.


- Original Message -
From: "Naresh Singh Chhonker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 24, 2000 6:34 AM
Subject: help needed


> hai
>  I am having a servlet which has Two Listboxes both list are filled
> from database entries
>  Say one is Group name and second one is project name list box
>
>  And on changing the Group name the releated Project belonging to that
> group will be displayed in project list box
>  for this i fill Group name directly but for each group i am writing
> Java script to fill project list box and working fine
>
> this combination i need many times on many pages , So every time i fill it
> , but reduces performance and takes lot of timeto reply
>
> So please tell me the Solution for that So my perfmonce of system increses
>
> regards
> naresh
>
>
===
> 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


__
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".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html



Re: reload/post handling problem with MS

2000-03-01 Thread Shrisha Radhakrishna

I use IE 5.  Works fine here.  I dont get the retry/cancel dialog box.  In
your real form, are you using data fields that have been passed on to this
page?

- Original Message -
From: "Simon Jakesch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, February 27, 2000 8:36 PM
Subject: reload/post handling problem with MS


> hi,
>
> i have a page which should be update every 15 seconds or so... on the same
> page i need to identify the user so i do this via a login.jsp and a
post
> to the server. now i have a post object created and when i try to reload
the
> page with the meta tag internet explorer always asks me if it should
resend
> the data this does not happen with netscape... to demonstrate what i
mean
> i attached th source code of a sample page.
> does anyone know how to get around that... or delete the post which is
sent to
> the server somehow..
>
> thanks,
> bye,
> simon
>
> 
> 
> 
> 
> <% java.util.Date thisisDate = new java.util.Date();
> out.println(thisisDate); %>
> 
>
> 
>  name=txtfield>
> 
>
> 
> 
> <%
> boolean logsubmit = false;
> if (request.getMethod().equalsIgnoreCase("POST")) {
> logsubmit = true;
> }
>
> if (logsubmit){
> out.println(""+request.getParameter("txtfield")+"");
> }
> %>
> 
> 
>
> 
>
>
===
> 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


__
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



JSP with weblogic 4.0.4

2000-03-01 Thread Shrisha Radhakrishna



Hi All,
    I am trying to use Tomcat's 
jasper.jar with weblogic 4.0.4 (since this version of weblogic doesn't support 
JSP).  When I start my weblogic server, I notice that jasper.jar has been 
loaded.  Also the init function of JspServlet.class is called when I try to 
access a .JSP file thru any browser.  But, then, it crashes  Here 
is what is says:
 

Mon Feb 28 12:05:15 PST 2000: 
 org.apache.jasper.runtime.JspServlet: 
initMon Feb 28 12:05:15 PST 2000:  
Servlet failed with RuntimeExceptionMon Feb 28 12:05:15 PST 2000: 
 java.lang.NullPointerExceptionat 
java.io.File.(File.java)at 
org.apache.jasper.Options.(Options.java:233)at 
org.apache.jasper.runtime.JspServlet.init(JspServlet.java:205)at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:187)at 
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85)at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:67)at 
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImpl.java:212)at 
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:506)at 
weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:264)at 
weblogic.t3.srvr.ExecuteThread.run(ExecuteThread.java:100)###
 
This is the JSP part of my 
weblogic.properties
###
# # # # # # # # # # # # # # # # # # # # # # # # # # 
# # # # # # # ## WEBLOGIC JSP PROPERTIES# 
# Sets up automatic page 
compilation for JSP. Adjust init args for# directory locations and uncomment 
to 
use.weblogic.httpd.register.*.jsp=\   
org.apache.jasper.runtime.JspServletweblogic.httpd.initArgs.*.jsp=\   
pageCheckSeconds=3,\   
compileCommand=c:/java/bin/javac.exe,\   
verbose=true
###
 
Any help would be GREATLY appreciated.  
Thanks.---Shrisha 
Radhakrishnamailto:[EMAIL PROTECTED]http://members.tripod.com/cricforum(408) 
844-7503 (Off)(408) 773-8327 
(Res)---


Re: JSP with weblogic 4.0.4

2000-03-03 Thread Shrisha Radhakrishna

I did that.  Its looking to open a dir referenced by the property
"ScrarchDir", which, I have setup in the properties file.

Thanks,
Shrisha

- Original Message -
From: "Scott Stirling" <[EMAIL PROTECTED]>
To: "Shrisha Radhakrishna" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, March 02, 2000 6:37 AM
Subject: Re: JSP with weblogic 4.0.4


> Check out lines 205 of org.apache.jasper.runtime.JSPServlet and 233 of
> org.apache.jasper.Options and find out what's calling a method of
> java.io.File.  A hunch is that a file needed by the JSPServlet is
> non-existent or in the wrong place.  Maybe a properties file, or maybe
your
> JSP.
>
> Scott Stirling
>
> - Original Message -
> From: "Shrisha Radhakrishna" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 28, 2000 3:16 PM
> Subject: JSP with weblogic 4.0.4
>
>
> Hi All,
> I am trying to use Tomcat's jasper.jar with weblogic 4.0.4 (since this
> version of weblogic doesn't support JSP).  When I start my weblogic
server,
> I notice that jasper.jar has been loaded.  Also the init function of
> JspServlet.class is called when I try to access a .JSP file thru any
> browser.  But, then, it crashes  Here is what is says:
>
> 
> Mon Feb 28 12:05:15 PST 2000: 
> org.apache.jasper.runtime.JspServlet: init
> Mon Feb 28 12:05:15 PST 2000:  Servlet failed
> with RuntimeException
> Mon Feb 28 12:05:15 PST 2000: 
> java.lang.NullPointerException
> at java.io.File.(File.java)
> at org.apache.jasper.Options.(Options.java:233)
> at org.apache.jasper.runtime.JspServlet.init(JspServlet.java:205)
> at
>
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.jav
> a:187)
> at
>
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:85
> )
> at
>
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
> :67)
> at
>
weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
> l.java:212)
> at
>
weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:506)
> at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:264)
> at weblogic.t3.srvr.ExecuteThread.run(ExecuteThread.java:100)
> ###
>
>
>


__
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



Re: problems with jsp:include to include files dynamically

2000-03-04 Thread Shrisha Radhakrishna



Hi,
    Syntax is
    <%@ include 
file="Global.jsp"%>    
    
    
 
Hope this helps...
---Shrisha 
Radhakrishnamailto:[EMAIL PROTECTED]http://members.tripod.com/cricforum(408) 
844-7503 (Off)(408) 773-8327 
(Res)---

  - Original Message - 
  From: 
  Veena 
  To: [EMAIL PROTECTED] 
  Sent: Wednesday, February 16, 2000 1:28 
  AM
  Subject: problems with jsp:include to 
  include files dynamically
  
  
  Hi all,
   
    I have a problem in including files dynamically using 
  jsp:include.
   Below i have placed the code.Please go thru this..and 
  tell me am i doing something wrong.
   
  Thanks & Regards
  Veena
  =
  <%-- TestInclude.jsp 
  --%><%@ page language="java"%><% String a="Veena"; 
  %><%! String m="VIDHYA"; %>
   
  <%if 
  (session.getValue("staticPage")==null)session.putValue("staticPage","b.jsp");
   
  String newPage=request.getParameter("staticPage");if 
  (newPage!=null) session.putValue("staticPage",newPage);
   
  String p= 
  (String)session.getValue("staticPage");%>
   
  
  Page <%=p%>:(<%= 
  request.getMethod() 
  %>)
  
   
  The current date and time are
  <%-- here iam including static file 
  --%><%@ include file="Date.jsp" 
  %>
   
  <%--
   here iam including file 
  dynamically based on the condition which is not being 
  included
  do u have any idea of why this is 
  happening
  --%>
  
   
  ===
   
  <%-- b.jsp --%>
   
  This is page 
  B
  ===
  
  <%-- c.jsp 
--%>
   
  This is page 
  C
  ===
  <%-- date.jsp: 
  --%><%@ page import="java.util.*" %><%= (new 
  java.util.Date() ).toLocaleString() %><% System.out.println("the 
  value is ="+a); %><% out.println(""); %><% 
  out.println(a); %>
  =
   


Re: JSP Issue

2000-03-04 Thread Shrisha Radhakrishna

Web Browser? Or, Web Server?  JSP is server side scripting.  The browser
just sees HTML tags.  So, in theory, all browsers support JSP.  Obviously, u
gotta have a server which supports JSP.  I found that WebLogic 4.5.1 (eval
version available for NT and UNIX) particularly good.  Also, SUN's own Java
Web Server is worth a shot.  Hope this helps

Regards,
Shrisha

---
Shrisha Radhakrishna
mailto:[EMAIL PROTECTED]
http://members.tripod.com/cricforum
(408) 844-7503 (Off)
(408) 773-8327 (Res)
---
- Original Message -
From: "Hamid" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 29, 2000 3:36 PM
Subject: JSP Issue


> Dear Gurus,
> I am new/Starter in JSP. Is their any Web Browser which supports JSP built
> in. As IIS 4.0 Supports ASP by default, and we dont have to install any
> engine on it.
>
> Your answer will highly help me in moving forward.
>
> Hamid
>
>
===
> 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!?
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



Re: get Property tag

2000-08-17 Thread Shrisha Radhakrishna

trim() won't eat spaces in the middle of strings!  Just URLEncode your
string and it'll work fine.

example: Link

--Shrisha

- Original Message -
From: "Carlos Vasquez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, August 17, 2000 1:55 PM
Subject: Re: get Property tag


> I believe you are using getProperty with a ".trim()".
> If you take the trim out it will work.
>
> -Carlos Vasquez
> --- Venkat Muthusamy <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I have a string with value like "abc star"
> >
> > in the jsp getProperty i am getting only the first
> > half in  the screen like "abc"
> >
> > Is there any way of getting full in the jsp
> >
> > Thanks in advance
> >
> > Venkat
> >
> >
> >
> > __
> > 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
>
>
> __
> 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: load balancing/failover solutions

2000-09-16 Thread Shrisha Radhakrishna

Considered resonate?

- Original Message -
From: "Lisa Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 14, 2000 11:36 AM
Subject: load balancing/failover solutions


> I would appreciate any advice on choosing a load balancing and more
> importantly for us, a failover solution.  We are currently using Allaire's
> JRUN product for the servlet engine.  What do people think of Allaire's
> ClusterCATs?  Or Coyote Point's HW/SW solution.  Or other solutions?  If
> Allaire's ClusterCATs solution depends on the local DNS on the user's
> machine to always resolve to the same IP address, is this really reliable?
>  What if DNS caching was turned off on the user's local machine.  Would
> that prevent subsequent requests from resolving to the same server in the
> cluster?  This obviously would be bad since maintaining state information
> across sessions is a requirement.  Any advice would be greatly
appreciated!
>
> P.S. Please respond via email if possible.  I only subscribe in digest
> mode.
> Thanks for your time!
> Lisa
>
>
===
> 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: Question about URL rewriting.

2000-09-20 Thread Shrisha Radhakrishna

You don't have to do encodeURL the 'IMG SRC' unless it's a hyperlink.

--Shrisha

- Original Message -
From: "Bolt, Dave" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 20, 2000 11:18 AM
Subject: Question about URL rewriting.


> If I want my JSP pages to work in a situation where cookies are disabled
and
> the server is doing URL rewriting
> do I have to use EncodeURL for all of my HREF (and perhaps IMG) tags in my
> JSP page.
>
> Example. Here is a JSP page that retrieves an image (stored in a database)
> via a servlet and has hyperlinks
> to other JSP pages. Note: I am using a servlet mapping to map a servlet to
a
> directory
>
> The way you would expect to write this page is something like this.
>
> 
> page1
> page2
> page3
>
> If I want the page to work in a URL-rewriting mode do I have to do the
> following?
>
> ">
> ">page1
> ">page2
> ">page3
>
> What I'm basically looking for is some guidance on whether or not I need
to
> do option 2 all of the time to
> maximize portability and survive cookie-disabled browsers.
>
> If option 2 is what I should do, why doesn't JSP shield the HTML developer
> from this? The goal would be for
> the JSP author to be a higher-end HTML developer who shouldn't have to
worry
> about maintaining the
> session, etc.
>
> Thanks
>
> Dave Bolt
> ATSC/SPAWAR ASAT Team
> Bolt's Law of Bandwidth - There is always plenty of network bandwidth,
just
> none for you.
>
>
===
> 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 reqd on Personalization

2000-09-22 Thread Shrisha Radhakrishna

Cookie(s).  The easiest way out is to store everything (login, page layout
details, colors etc) in the cookie.  The problem with this approach is that
if the user clears his cookies (or, they are somehow lost), he has to redo
the customization.  Same problem if you (as a developer) want to change the
format of the cookie.

A more elegant solution would be to store only the login (or, some id) in
the cookie and the rest of the customization stuff in a DB.

--Shrisha

- Original Message -
From: "Sanjay Vashisht" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 22, 2000 1:34 AM
Subject: Help reqd on Personalization


> Actually I'm a new joiner to the list and I'm facing this situation, may
> be this has been sent earlier by somebody else then also please suggest
> some solution
> Suggestions requested how do I efficiently use JSP for
> personalization of the
> content on a web page ("similar to MyYahoo") without using a
> personalization tool.
>
> Thanks
> Sanjay
>
>
===
> 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: Providing Data Lookup

2000-09-25 Thread Shrisha Radhakrishna

Why don't you use a wizard sort of an interface? The first page merely
displays the primary key (drop-down) and a "Next" button.  Upon submission,
you can populate the remaining fields into HTML form elements in the next
page.  This way, you can avoid JavaScript (no bloated HTML).  A much cleaner
solution, I would think.

--Shrisha

- Original Message -
From: "Bozidar Dangubic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 1:11 PM
Subject: Providing Data Lookup


> Hello everyone,
>
> I am working on an input for for a distributed java enterprise system and
I
> ran into a problem. I am developing a form that is used for data entry
into
> a system. The contains certain amount of static data that is stored in the
> database. Most of this data contains keys that are associated with certain
> entities in the system. What I am trying to accomplish on the input form
is
> when person who is inputing the data enters a key for a certain entity, I
> want to populate several fields on the form that compromise the rest of
the
> entity data given the key. I have created cache objects that are used to
> load all static information to a java class. But I cannot access any JSP
> object from the javascript unless it can be evaluated at the time of the
> compilation. What I need to do is dynamically lookup information stored in
> my cache objects based on the input of the user. I created javascript code
> that populates the missing fields, but I cannot access JSP object
> dynamically. I solved the problem using LiveConnect from Netscape by
> embedding an applet into my input form and using LiveConnect to
dynamically
> lookup information that I have stored in caches. I do not like this
solution
> since it involves applets which I am trying to avoid application-wide. I
was
> wondering if someone is aware of the slickest solution that will support
the
> functionality that I need.
>
> Thanks in advance
>
> Bozidar Dangubic
> Software Developer
> FuGEN 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



Re: sendRedirect: Catching unknown host/timeout etc

2000-11-27 Thread Shrisha Radhakrishna

Try this:

try{
   URL url=new URL(SomeURL);
   InputStream my_InputStream=url.openStream();
   my_InputStream.close();
}catch(Exception e){
   res.sendRedirect(errorPage);
   return;
}
res.sendRedirect(someURL);
...
=

Works for me... :-)

--Shrisha

- Original Message -
From: "Andy Purshottam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 27, 2000 6:14 PM
Subject: Re: sendRedirect: Catching unknown host/timeout etc


> It's done on the _client_ side.
> How is the server supposed to know
> what the client can do?
>
> The only thing I can think of is not doing
> a redirect, but instead sending a page of javascript
> that would do the page fetch and catch errors.
> And for info about that, go to a client side javascript list.
> Andy
>
> -Original Message-
> From: Sushil Singh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 27, 2000 5:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sendRedirect: Catching unknown host/timeout etc
>
>
> Is there any simple way to check before performing the redirection?
>
> Andy Purshottam wrote:
>
> > My understanding is that re-direction is done on the
> > client sde, by the browser. So catching problems in re-direction
> > would require client side support, ie probably javascript, if
> > it was possible.
> >
> > Andy
> >
> > -Original Message-
> > From: Sushil Singh [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 27, 2000 5:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: sendRedirect: Catching unknown host/timeout etc
> >
> > Hi,
> >
> > Since my application is redirecting to a third party site, I would like
> > to display a user-friendly page if there is any problem in that site,
> > like site is down, connection timeout or even unknown host etc.  But I
> > am unable to catch these types of error, I am using following code:
> > try {
> > response.sendRedirect("www.xyz.com");
> > } catch (Exception e) {
> > System.out.println("Some error occurred");
> > }
> >
> > Is there any way to check before redirecting whether site is up,
> > existing etc.  Any help will be highly appreciated.
> >
> > Thanks in advance.
> >
> > Sushil
> >
> >
>
===
> > 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: sendRedirect: Catching unknown host/timeout etc

2000-11-27 Thread Shrisha Radhakrishna

Catching a timeout is probably trickier.

--Shrisha

- Original Message -
From: "Andy Purshottam" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 27, 2000 6:14 PM
Subject: Re: sendRedirect: Catching unknown host/timeout etc


> It's done on the _client_ side.
> How is the server supposed to know
> what the client can do?
>
> The only thing I can think of is not doing
> a redirect, but instead sending a page of javascript
> that would do the page fetch and catch errors.
> And for info about that, go to a client side javascript list.
> Andy
>
> -Original Message-
> From: Sushil Singh [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 27, 2000 5:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: sendRedirect: Catching unknown host/timeout etc
>
>
> Is there any simple way to check before performing the redirection?
>
> Andy Purshottam wrote:
>
> > My understanding is that re-direction is done on the
> > client sde, by the browser. So catching problems in re-direction
> > would require client side support, ie probably javascript, if
> > it was possible.
> >
> > Andy
> >
> > -Original Message-
> > From: Sushil Singh [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, November 27, 2000 5:06 PM
> > To: [EMAIL PROTECTED]
> > Subject: sendRedirect: Catching unknown host/timeout etc
> >
> > Hi,
> >
> > Since my application is redirecting to a third party site, I would like
> > to display a user-friendly page if there is any problem in that site,
> > like site is down, connection timeout or even unknown host etc.  But I
> > am unable to catch these types of error, I am using following code:
> > try {
> > response.sendRedirect("www.xyz.com");
> > } catch (Exception e) {
> > System.out.println("Some error occurred");
> > }
> >
> > Is there any way to check before redirecting whether site is up,
> > existing etc.  Any help will be highly appreciated.
> >
> > Thanks in advance.
> >
> > Sushil
> >
> >
>
===
> > 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: Fixed! (Re: High powered help?

2000-12-20 Thread Shrisha Radhakrishna

Also, defining the cells' widths for the rows helps
**immensly**. This way, the browser doesn't have to do
a 'best fit' to calcualte the cell widths (When the
browser employs the 'best fit' method, it waits till
the last table row to calculate the individual cells'
widths).

Example: use  instead of just


Don't sweat abt. this issue for small tables ( < page
or 2).

--Shrisha

--- Steve <[EMAIL PROTECTED]> wrote:
> Hi Everybody;
>
> I fixed the mysterious buffer problem.
>
> I was getting frustrated because I tried every tip
> people had to offer
> before I posted my question.
>
> Someone repeated what I thought of about being
> careful to send only
> complete HTML tables back to the client.  If your
> data is in an HTML
> table, and you don't have a  you will not
> see it in Netscape.
>
> I've known this for a long time so when I designed
> my site to send
> things piecemeal I made sure that each out.prinln()
> had a complete table
> in it.
>
> It didn't help.  Someone else mentioned this when I
> posted for help and
> then it came to me this morning.
>
> I'm using a template the marketing department asked
> me to use that is
> one big fat giant table with the dynmaically
> generated contents stuffed
> iside of a cell.
>
> I yanked all of the table code for the template out
> and found that my
> code does indeed work in sending things back
> piecemeal.
>
> I'm glad I was forced to think about the table tag
> issue again.
>
> Thanks to everyone for the help.  I learned some
> good stuff
>
> Steve
>
>
>
> > >
> ===
> > > Hi;
> > >
> > > I have a JSP that looks like it isn't sending
> any data to the browser
> > > until all of the data is collected.
> > >
> > > I have my code set up to output pieces of the
> data as I retrieve it.
> > >
> > > I have set the buffer attribute in the page
> directive to "none". This
> > > had no effect and it caused "cannot flush buffer
> that has already been
> > > flushed" errors.
> > >
> > > I have also used "out.flush()".no effect.
> > >
> > > I have also used "out.getRemaining()" to measure
> the buffer before and
> > > after each "out.println()" call. The numbers do
> look like content is
> > > being flushed from the buffer..but still
> data is not going back
> > > piecemeal to the browser the way I want it.
> > >
> > > I have tried this JSP in iPlanet on NT4 and
> Tomcat 3.2 on a Solaris
> > > box.
> > >
> > > The code in question involves making 3-5
> database calls while scrolling
> > >
> > > through a ResultSet from another database call.
> As each of these 3-5
> > > calls comes back they are wrapped up in html
> strings and "sent to to
> > > the browser" via out.println().
> > >
> > > I tried tucking this loop in a thread, but I
> couldn't get it to work.
> > >
> > > Any ideas on what is going on? Any suggestions?
> > >
> > >   Thanks in advance
> > >
> > >   Steve
>
>
> Steve's Home Page:
> http://www.geocities.com/beforewisdom/
>
>
_
> Do You Yahoo!?
> Get your free @yahoo.com address at
> http://mail.yahoo.com
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with
> body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body:
> "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets


__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/

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

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



Re: Where can I find samples of URL Rewriting ?

2000-03-23 Thread Shrisha Radhakrishna

If you use Session tracking with the Servlet API, it autmotically handles
browsers that don't accept cookies by resorting to URL rewriting.  You as a
programmer don't have to explicitly rewrite the URLs.  But, U do have to
encode the URL with session ID.  The way u do this is...

for redirect: response.encodeRedirectURL(url);
for get's and posts's: response.encodeURL(url);

Why don't you look at the Servlet API?
http://java.sun.com/products/servlet/2.2/javadoc/index.html

- Original Message -
From: "Claudio Henrique Vianna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 23, 2000 10:28 AM
Subject: Where can I find samples of URL Rewriting ?


> Hi,
>
> I'm working with JSP in Tomcat. If I disable the cookies in my
> browser, the session concept is lost and every page
> became a new session. I have been researching another way to detect an
> session in JSP and I read a lot about URL
> Rewriting. But I couldn't find any explanation on how to do this ...
>
> Could somebody tell me where can I find samples of how to do this ?
>
>
> Thanks !!!
>
>
> Cláudio H. Vianna
>
>
===
> 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!?
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



Re: Form submit using HTTP POST

2000-03-27 Thread Shrisha Radhakrishna

I may be wrong; But, I believe I saw a post that mentioned a bug in the
implementation of POST in TOMCAT.

- Original Message -
From: "Nair, Rajendran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 27, 2000 9:49 AM
Subject: Form submit using HTTP POST


> Hi
>
> I wrote a simple JSP  page with a form in it.  This form had a couple of
> text elements and a submit button and I want the submit from this form to
be
> handled by a servlet.  However, when I set the method of the form to
"POST",
> my servlet does not get the parameters (neither the text elements nor the
> submit button), whereas if the method is "GET", these parameters come
> through fine.
>
> Is there anything special I must do to process a POST request from a JSP?
> Or am I missing something very obvious?
>
> I have Apache 1.3.12/Tomcat 3.1 on a Windows98 machine.
>
> Rajendran Nair
> Dharma Systems, inc.
> 1710, S.Amphlett Blvd, #112,
> San Mateo, CA 94402
>
>
===
> 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!?
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



Re: Cookies

2000-03-28 Thread Shrisha Radhakrishna

Is this is a typo?  U R saying (!!!)

if ((cookies == null) || (cookies.length == 0))
{
%>
display cookies
<%}%>

It should be...
if ((cookies == null) || (cookies.length == 0))
{
%>
Display "Cookies not found..."
<%}
else
{
Display all cookies...
}
%>


- Original Message -
From: "Beck, Matthew" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 28, 2000 12:12 PM
Subject: Cookies


> I'm working with JSWDK 1.0.1 and have to simple JSP pages for testing
cookie
> reading and writing (copied below).  I turn on warnings about cookies in
IE
> and can inspect the contents of the cookie coming down to my browser.
> However, when I look for cookies coming back to the server there are none.
> I'm suspicious that the problem is related to running on
> http://localhost:8080/   rather than a "real"
> domain.  Anyone seen similar behavior?  Recommendations???
>
> -Matthew
>
> PutCookie.jsp:
> <%
> Cookie ts = new Cookie("CookieTime",(new java.util.Date()).toString());
> response.addCookie(ts);
> %>
> 
> 
> Untitled Document
> 
> 
>
> 
> Sending Cookies
> 
> 
>
> GetCookies.jsp:
> <%
> System.out.println("Received page request");
>
> Cookie cookies[] = request.getCookies();
> %>
> 
> 
> Untitled Document
> 
> 
>
> 
> <%
> if ((cookies == null) || (cookies.length == 0))
> {
> %>
> Found <%=cookies.length%> cookies
> 
>   
> Name
> Value
> Comment
> Max Age
>   
> <%
>  for (int i=0; i < cookies.length; i++)
>  {
>   Cookie c = cookies[i];
>   System.out.println("Name: " + c.getName() + " Value: " + c.getValue() +
"
> MaxAge: " + c.getMaxAge());
> %>
>   
> <%=c.getName()%>
> <%=c.getValue()%>
> <%=c.getComment()%>
> <%=c.getMaxAge()%>
>   
> <%
>  }
> %>
> 
>  
>   
> <%
> }
> else
> {
>  System.out.println("NO COOKIES FOUND");
> %>No Cookies Found<%
> }
> %>
> 
> 
>
>
===
> 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!?
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



Re: 'RequestDispatcher' Problem

2000-03-29 Thread Shrisha Radhakrishna

I am assuming that you are running this sample app under a web server and
not just opening it from your browser.  U R, aren't u?  (sorry to ask)...

If U R, is this problem *only* with Netscape?

- Original Message -
From: "Boi Ken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 29, 2000 3:23 PM
Subject: 'RequestDispatcher' Problem


> I am trying to run an example JSP/Servlet application. The application
> starts by requesting 'EShop.jsp'. This page allows the user to shop for
> items. On the submit, a servlet is run where the requested shopping item
> is added to a session shopping list. Then the following code snippet is
> run that should refresh 'EShop.jsp' to show the selected shopping list:
>
>String url = "/cas/html/JSPExample/EShop.jsp";
>ServletContext sc = getServletContext();
>RequestDispatcher rd = sc.getRequestDispatcher(url);
>rd.forward(req, res);
>
> But when this code is run from the Netscape 4.5 browser, I get a browser
> popup window indicating:
>   "Unknown file type. You have started to download a file type
> application/java-vm"
>The popup window includes buttons for More Info, Pick App.., Save
> App.., and Cancel.
>
> Any ideas what might be wrong here or what is causing this?
>
> Thank you and I hope I don't get yelled at for it being an obvious FAQ
> question or newbie question.
>
>
===
> 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!?
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



Re: Shopping Carts in JSP and Websphere - HELP! - Additional

2000-04-07 Thread Shrisha Radhakrishna

Instead of a Remove button, create a HREF to the "Remove Servlet" and encode
the order id in the link..

Example: Remove

- Original Message -
From: "Marc Krisjanous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 06, 2000 6:35 PM
Subject: Shopping Carts in JSP and Websphere - HELP! - Additional


> Sorry people!
> I left one requirement out - The amount of check boxes available is
> unlimited (so is the remove Buttons) so I will need to parse through all
> check boxes and buttons on the form to see what check boxes where checked
> (true)and what Remove button was clicked.  Can this be done??
>
>
> Marc
>
> Hi all,
> does anyone have some sample code or URL links to creating a shopping cart
> using JSP pages and Servlets residing on WebSphere?
>
> This is what I would like to do:
>
> 1.have an add shopping cart jsp page - users select multiple checkboxes
> (denoting items for order) then click on the add button located on the JSP
> page.
>
> 2.The add button calls a Servlet residing on Websphere.  The Servlet
parses
> through the add shopping cart JSP page and finds all checkboxes selected.
> Then creates a shopping cart bean (residing on WebSphere) and adds the
items
> selected to the users shopping cart bean.  The Servlet adds the shopping
> cart bean to the users session object.
>
> 3.The Servlet then calls the Shopping cart total JSP page.  the JSP page
> contains a table listing all items selected (gets this from the shopping
> cart bean stored in the users session object).  For each item displayed a
> Remove button will be associated with the item.  if the user clicks on one
> of the remove buttons then the page is submitted and the Servlet updates
the
> shopping cart bean then redisplays the shopping cart JSP page.
>
> I have a reasonable idea of how to create the functionality except for the
> remove buttons and check box searching.  Each remove button will be
created
> by the Servlet but hows does the processing Servlet know what remove
button
> has been selected to remove the item and what check box(s) have been
> selected.
>
> Thanks in advance
>
> Marc
>
>
===
> 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!?
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



Re: How to call a servlet from a JSP page ?

2000-04-13 Thread Shrisha Radhakrishna

Remove the .class from the URL

this is the way to do it


...
...




- Original Message -
From: "Pamela Cotture" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 13, 2000 7:39 AM
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" 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


__
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



Re: Session testing question

2000-04-16 Thread Shrisha Radhakrishna

If u use the servlet API to track sessions, the server will resort to URL
rewriting when client cookies are disabled.  So, if use a session.putValue()
or session.getValue(), either cookies OR URL rewriting used @ the client
side.  Note that you have to encode ALL URLs for URL rewriting to work.  The
way you do it is:
response.encodeUrl(url_string) for POST and HTML A HREFs
response.encodeRedirectUrl(url_string) for all redirects...

To test if your web app works with URL rewriting, simply disable cookies and
check whether some sort of a session id is appended to all URLs.

Hope this helps,
Shrisha
- Original Message -
From: "Marc Krisjanous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 16, 2000 7:04 PM
Subject: Session testing question


> Hi all,
> I have a shopping cart Servlet. The Servlet stores the shopping cart in
the
> session object and the JSP pages accesses the session shopping cart.  Now
> that I have completed the code I was thinking about the situation where
the
> client could deny cookies.  Now I have tested this on IE5 (disabling
cookie
> acceptance) and my Servlet does not work! It treats each session access as
> new. The question I have is:
>
> How can I check to see if cookies have been disabled and if so what can I
> use to still use the shopping cart?? I have heard of URL rewriting? Could
I
> use this instead of storing the shopping cart in the session object if
> cookies are disabled?
>
> Here is my infrastructure:
>
> 1.Websphere 2.x
> 2.JSP version 0.91
> 3.JDK 1.1.8
>
> Cheers
>
>
> Marc
>
>
===
> 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!?
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



Re: Session testing question

2000-04-16 Thread Shrisha Radhakrishna

Try
response.callPage(response.encodeUrl("/ShoppingCartTotal.jsp"), request);


- Original Message -
From: "Marc Krisjanous" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 16, 2000 9:44 PM
Subject: Re: Session testing question


> Thanks all for replying! One question though:
>
> I understand that I need to use the encodeURL() method - I use
callPage(see
> code block below) in my Servlets to load JSP files since I am using
> Websphere 2.x and JSP version 0.91 - could I replace the callPage method
> with the encodeURL() method?
>
> HttpServiceResponse response = (HttpServiceResponse)res;
> response.callPage("/ShoppingCartTotal.jsp", request);
>
> cheers
>
> marc
>
>
>
> -Original Message-
> From: Alan Boldock [mailto:[EMAIL PROTECTED]]
> Sent: 17 April 2000 13:06
> To: [EMAIL PROTECTED]
> Subject: Re: Session testing question
>
>
> If the user chooses to turn off their sessions for cookies you need to URL
> rewritting, this is done by using
> response.encodeURL(URL)
>
> basically what URL rewritting does is change the URL to include a session
> ID within it some where ie
>
> http://fred.bloggs.com.au/fredspage.html
>
> may become
>
> http://fred.bloggs.com.au/fredspage.html?sessionid=XZXZX1234GDFSUE
>
> the session id string is generated by the server you don't need to
> know it. normally it would be in the cookie.
>
> one problem is that you need to do this with every URL on your page !
> As soon as the usesr takes a link that doesn't have rewriting on it you've
> lost their session.
>
> this is the same for servlets as for JSP you would do something like
>
> ">freds page
>
> as for detecting if the user is using cookies you can do it but there is
no
> need, just use the above on all your URLs and the server will decide
> if the URL's need to be rewritten or not.
>
> another way of doing it is to parse your HTML through some other
> code that will rewrite the URLs for you (this is how I've done this
> with some code I wrote, I can send it if anyone wants it)
>
>
> Hope that helps
>
> Alan Boldock
> boldenterprise.com.au
>
>
> - Original Message -
> From: "Marc Krisjanous" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, April 17, 2000 11:34 AM
> Subject: Session testing question
>
>
> > Hi all,
> > I have a shopping cart Servlet. The Servlet stores the shopping cart in
> the
> > session object and the JSP pages accesses the session shopping cart.
Now
> > that I have completed the code I was thinking about the situation where
> the
> > client could deny cookies.  Now I have tested this on IE5 (disabling
> cookie
> > acceptance) and my Servlet does not work! It treats each session access
as
> > new. The question I have is:
> >
> > How can I check to see if cookies have been disabled and if so what can
I
> > use to still use the shopping cart?? I have heard of URL rewriting?
Could
> I
> > use this instead of storing the shopping cart in the session object if
> > cookies are disabled?
> >
> > Here is my infrastructure:
> >
> > 1.Websphere 2.x
> > 2.JSP version 0.91
> > 3.JDK 1.1.8
> >
> > Cheers
> >
> >
> > Marc
> >
> >
>
===
> > 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


__
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



Re: How to call a servlet from a JSP page ?

2000-04-17 Thread Shrisha Radhakrishna

You can submit a form with an image link (no need of any JavaScript).


...
...




I have been using these kinds of submit buttons without any image maps.

- Original Message -
From: "Scott Evans" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 17, 2000 7:57 AM
Subject: Re: How to call a servlet from a JSP page ?


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

Re: JSP Performance?

2000-04-17 Thread Shrisha Radhakrishna

JSP files are not compiled prior to each request.  They are compiled only @
the first request (or when the source code changes).

- Original Message -
From: "Neil Harrison" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 17, 2000 7:59 AM
Subject: JSP Performance?


> Hello.
>
> A general point - if I'm returing a lot of results from a database which
> need only a small amount of formatting for
> display, am i better off using plain looped out.print statements instead
of
> JSP - ie will the compile time overhead of JSP each time
> the page is requested be noticably heavy? Are there any other
> considerations for keeping the JSP speed up?
>
> I'll be using an Ultra Sparc Server with Websphere Application Server 3.0
>
>
> Regards,
>
> Neil.
>
>
===
> 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!?
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



Re: session problem

2000-04-26 Thread Shrisha Radhakrishna

No, No!  Session IDs are not stored as hiddne form fields. If Cookies are
turned off the server will use URL rewriting successfuly if the following
two conditions are met:
1.  URL rewriting is "turned on" on the server (if this is an option)
2.  You use the servlet API for session tracking (.putValue() & .getValue())
and all your URLs are encoded with the session id (use encodeUrl and
encodeRedirectUrl)

- Original Message -
From: "TERENCE YEO KAI SIANG, CUSD" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, April 26, 2000 4:47 AM
Subject: Re: session problem


> Hi :
>
> I think the browser will store the session ID as a form of hidden field on
> the html page if cookie is disabled for the browser. This hidden field
will
> be submitted together with other fields, hence preserving the user's
> session.
>
> Terence
>
> > -Original Message-
> > From: Sanjay Kumar [SMTP:[EMAIL PROTECTED]]
> > Sent: 26 April 2000 19:01
> > To:   [EMAIL PROTECTED]
> > Subject:  Re: session problem
> >
> > Dear ahfei,
> > Session  uses Cookies for implementation. When user (browser)
accesses
> > a
> > page from a webserver, a session id is created and it is stored in
client
> > browser. When browser asks for another page the session id stored in
> > client's cookie is compared with the session id in the web server and
the
> > stored information in the session is fetched from the web server.
> >  If cookie is disabled how can sessions be implemented.
> > There is nothing to do with sessions & URL rewriting
> > I hope u understand the problem
> >
> > Sanjay Kumar
> > Informica India Pvt Ltd
> > Noida
> > India
> >
> > - Original Message -
> > From: ahfei <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, April 26, 2000 1:17 PM
> > Subject: Re: session problem
> >
> >
> > > dear Sanjay Kumar
> > >
> > >  if cookie enabled, this program can work . but i just want to know
why
> > url rewriting can not work with cookie disabled.
> > >
> > >
> > > >  Have u tried with cookie enabled  in your browser ? Is it working?
> > > >Sessions are implemented using cookie. Since session id is stored in
> > browser
> > > >cookie, if cookie is disabled session doesnot work.
> > > >
> > > >Sanjay
> > > >
> > > >- Original Message -
> > > >From: ahfei <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Wednesday, April 26, 2000 6:30 AM
> > > >Subject: Re: session problem
> > > >
> > > >
> > > >> dear laurent andre
> > > >>
> > > >> but i had disabled cookies in netscape
> > > >>
> > > >> at 2000-4-25 17:01:00 your wrote:
> > > >> >That means "your" session manager  works with cookie ! So, if
> > cookies
> > > >> >are disabled, it doesnt work!
> > > >> >i think
> > > >> >
> > > >> >ahfei wrote:
> > > >> >>
> > > >> >> dear all:
> > > >> >>
> > > >> >> i made a test jsp program to study URL rewriting ,but it seems
> > don't
> > > >work.  .
> > > >> >>
> > > >> >> test1.jsp
> > > >> >> <%
> > > >> >>   session.setAttribute("hello","abcd");
> > > >> >>
response.sendRedirect(response.encodeRedirectURL("test2.jsp"));
> > > >> >> %>
> > > >> >>
> > > >> >> test2.jsp
> > > >> >> <%
> > > >> >>   out.println(session.getAttribute("hello"));
> > > >> >> %>
> > > >> >>
> > > >> >> when i run the test1.jsp with cookie disabled,url rewriting
don't
> > work,
> > > >and  test2.jsp return a null string.
> > > >> >>
> > > >> >> can somebody help me?
> > > >> >>
> > > >> >> thanks in advance!
> > > >> >>
> > > >> >> ahfei
> > > >> >> [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
> > > >>
> > > >>
> > > >> ahfei
> > > >> [EMAIL PROTECTED]
> > > >>
> > > >>
> > >
> >
>=
> > ==
> > > >> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > >JSP-INTEREST".
> > > >> Some relevant FAQs on JSP/Servlets can be found at:
> > > >>
> > > >>  http://java.su

JSP/Package problem

2000-05-08 Thread Shrisha Radhakrishna

Hi All,
I have a very strange/painful problem.  Ok, here I go.  I use Weblogic
4.5.1 to host my JSPs.  The compiler adds a "package jsp_servlet;" to all my
JSP's when they are converted into servlets.  So, in other words all my JSPs
are in jsp_servlet package.  Now, I want to instantiate a user-defined
class, say x, (that is not in ANY package) from within my servlet.  So, a
statement in my JSP would be something like:

x temp=new x();

The compiler throws a error that says jsp_servlet.x not found in import.
Obviously, its looking for x within the jsp_servlet package.  How do I
access the default package from within my servlet?

TIA,
Shrisha


-------
Shrisha Radhakrishna
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
http://members.tripod.com/cricforum
(408) 844-7503 (Off)
(408) 773-8327 (Res)
---


__
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



Re: JSP/Package problem

2000-05-09 Thread Shrisha Radhakrishna

Hmmm.. I tried that too.  The compiler doesn't croak on the import
statement, but, it doesn't lile the statement where I call one of the
method's of the user-defined (unnamed package) class.
So, my question is: "Is there any way to instantiate and use a unnamed
package class in a named package class?"  I know that this is a fundamental
Java Question, rather than a JSP one.. So, sorry...

Thanks,
Shrisha

- Original Message -
From: "Hans Bergsten" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 09, 2000 11:57 AM
Subject: Re: JSP/Package problem


> Shrisha Radhakrishna wrote:
> >
> > Hi All,
> > I have a very strange/painful problem.  Ok, here I go.  I use
Weblogic
> > 4.5.1 to host my JSPs.  The compiler adds a "package jsp_servlet;" to
all my
> > JSP's when they are converted into servlets.  So, in other words all my
JSPs
> > are in jsp_servlet package.  Now, I want to instantiate a user-defined
> > class, say x, (that is not in ANY package) from within my servlet.  So,
a
> > statement in my JSP would be something like:
> >
> > x temp=new x();
> >
> > The compiler throws a error that says jsp_servlet.x not found in import.
> > Obviously, its looking for x within the jsp_servlet package.  How do I
> > access the default package from within my servlet?
>
> This is the way Java works when you use a class in the unnamed package
> in another class in a named package. To solve it you must use an import
> statement for the class in the unnamed package, i.e.
>
>   <%@ page import="x" %>
>
> Hans
> --
> Hans Bergsten   [EMAIL PROTECTED]
> Gefion Software http://www.gefionsoftware.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


__
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



Re: Web Browser detection in JSP

2000-05-17 Thread Shrisha Radhakrishna

<%String browser = request.getHeader("User-Agent");
System.out.println(browser);
String type=null;
if(browser.indexOf("MSIE") >= 0)
  type = "IE";
else
  type = "other";
 System.out.println(type);
%>


- Original Message -
From: "P.J. Tenn" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 12:26 PM
Subject: Web Browser detection in JSP


> Hello,
>
> I am surprised this wasn't already have been posted and answered, but I
> searched the archives of this mailing list and could not find any info on
> this ...
>
> At any rate, is there a way to detect whether someone is using Netscape or
> IE using JSP?  I know this can be done easily in JavaScript using code
along
> the lines of:
>
> var browser = navigator.appName;
> var Nav = (browser == "Netscape");
> var IE = (browser == "Microsoft Internet Explorer);
>
> However, I need to set boolean variables within the scriptlet <% ... %>
tags
> based on whether Netscape or IE is being used.
> Thanks in advance!!!
>
> P.J.
>
>
===
> 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!?
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



Re: Web Browser detection in JSP

2000-05-18 Thread Shrisha Radhakrishna

Both netscape (i use 4.7) and ie have "mozilla compatible" in the user-agent
header.

- Original Message -
From: "Nestor Florez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 17, 2000 1:13 PM
Subject: Re: Web Browser detection in JSP


> Does that really work?  I thought that the IE browser had in there
something
> like
> "Mozilla compatible".
>
> Nestor :-)
>
> -Original Message-
> From: Donald Vandenbeld [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 17, 2000 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Web Browser detection in JSP
>
>
> I am using something like this in my controller servlet:
>
> boolean nav = false;
> boolean ie = false;
> String browser = request.getHeader("User-Agent");
> if (browser.indexOf ("Mozilla") && (!browser.indexOf("compatible"))) nav =
> true;
> if (browser.indexOf ("MSIE")) ie = true;
>
> Donald
>
> "P.J. Tenn" wrote:
>
> > Hello,
> >
> > I am surprised this wasn't already have been posted and answered, but I
> > searched the archives of this mailing list and could not find any info
on
> > this ...
> >
> > At any rate, is there a way to detect whether someone is using Netscape
or
> > IE using JSP?  I know this can be done easily in JavaScript using code
> along
> > the lines of:
> >
> > var browser = navigator.appName;
> > var Nav = (browser == "Netscape");
> > var IE = (browser == "Microsoft Internet Explorer);
> >
> > However, I need to set boolean variables within the scriptlet <% ... %>
> tags
> > based on whether Netscape or IE is being used.
> > Thanks in advance!!!
> >
> > P.J.
> >
> >
>
===
> > 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


__
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



Re: Developing sites with JSP and HTML

2000-05-19 Thread Shrisha Radhakrishna

MS IIS 5.0 doesn't actually interpret .asp files that have no dynamic
content. It's as good as plain 'ol  HTML.  So, there's no overhead.  Not
true abt. JSPs, I guess.
:-((

- Original Message -
From: "Steve Bang" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 18, 2000 5:24 PM
Subject: Developing sites with JSP and HTML


> HTML files become JSP files just by changing the extension to .jsp and
using
> a JSP engine, but I assume it is more efficient to use the .jsp extension
> only when exploiting JSP advantages.  Is this true?  Within a single web
> site it would seem to make sense to have both types of pages present on
the
> site.  So, the question I have is does it ever make sense to use the .jsp
> extension on all pages within a site?  At least on Microsoft's site, it
> seems that almost all pages are ASP files, even when an HTML file would
> probably work fine.  Similarly, what do I gain or give up by making all
> pages JSP files?
>
> Thanks,
> Steve
>
>
===
> 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!?
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



Re: Developing sites with JSP and HTML

2000-05-19 Thread Shrisha Radhakrishna

It can be as simple as a flag against each .asp file.  The .asp file may be
looked at once by the asp engine, and, if no dynamic content is found all
subsequent requests won't go thru the asp engine.  Lemme see if I can
"stumble" upon the article (again).

--Shrisha

- Original Message -
From: "Bury Man" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 11:18 AM
Subject: Re: Developing sites with JSP and HTML


> interesting...
>
> I wonder how MS knows that the .asp page has no dynamic content
> without interpreting it.
>
>
>
>
> >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Developing sites with JSP and HTML
> >Date: Fri, 19 May 2000 11:10:31 -0700
> >
> >MS IIS 5.0 doesn't actually interpret .asp files that have no dynamic
> >content. It's as good as plain 'ol  HTML.  So, there's no overhead.  Not
> >true abt. JSPs, I guess.
> >:-((
> >
> >- Original Message -
> >From: "Steve Bang" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, May 18, 2000 5:24 PM
> >Subject: Developing sites with JSP and HTML
> >
> >
> > > HTML files become JSP files just by changing the extension to .jsp and
> >using
> > > a JSP engine, but I assume it is more efficient to use the .jsp
> >extension
> > > only when exploiting JSP advantages.  Is this true?  Within a single
web
> > > site it would seem to make sense to have both types of pages present
on
> >the
> > > site.  So, the question I have is does it ever make sense to use the
> >.jsp
> > > extension on all pages within a site?  At least on Microsoft's site,
it
> > > seems that almost all pages are ASP files, even when an HTML file
would
> > > probably work fine.  Similarly, what do I gain or give up by making
all
> > > pages JSP files?
> > >
> > > Thanks,
> > > Steve
> > >
> > >
>
>===
> > > 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!?
> >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
>
> 
> 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


__
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



Re: Developing sites with JSP and HTML

2000-05-19 Thread Shrisha Radhakrishna

I found it!
http://msdn.microsoft.com/library/psdk/cdo/renoview_4b8n.htm


- Original Message -
From: "Bury Man" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 11:18 AM
Subject: Re: Developing sites with JSP and HTML


> interesting...
>
> I wonder how MS knows that the .asp page has no dynamic content
> without interpreting it.
>
>
>
>
> >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Developing sites with JSP and HTML
> >Date: Fri, 19 May 2000 11:10:31 -0700
> >
> >MS IIS 5.0 doesn't actually interpret .asp files that have no dynamic
> >content. It's as good as plain 'ol  HTML.  So, there's no overhead.  Not
> >true abt. JSPs, I guess.
> >:-((
> >
> >- Original Message -
> >From: "Steve Bang" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Thursday, May 18, 2000 5:24 PM
> >Subject: Developing sites with JSP and HTML
> >
> >
> > > HTML files become JSP files just by changing the extension to .jsp and
> >using
> > > a JSP engine, but I assume it is more efficient to use the .jsp
> >extension
> > > only when exploiting JSP advantages.  Is this true?  Within a single
web
> > > site it would seem to make sense to have both types of pages present
on
> >the
> > > site.  So, the question I have is does it ever make sense to use the
> >.jsp
> > > extension on all pages within a site?  At least on Microsoft's site,
it
> > > seems that almost all pages are ASP files, even when an HTML file
would
> > > probably work fine.  Similarly, what do I gain or give up by making
all
> > > pages JSP files?
> > >
> > > Thanks,
> > > Steve
> > >
> > >
>
>===
> > > 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!?
> >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
>
> 
> 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


__
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



Re: Developing sites with JSP and HTML

2000-05-19 Thread Shrisha Radhakrishna

Still, better (faster) than going through a servlet engine, don't u think
Imagine the JSP engine converting the .jsp to a .class only if scriplets are
found.  This is eseentially what IIS does (and, that's good).

- Original Message -
From: "Bury Man" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 2:42 PM
Subject: Re: Developing sites with JSP and HTML


> right out of the document
>
> "IIS first searches it for any ASP script. If there is none, the file is
> treated as a normal .HTM file and sent directly to the browser."
>
>
>
>
> >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Developing sites with JSP and HTML
> >Date: Fri, 19 May 2000 14:03:55 -0700
> >
> >I found it!
> >http://msdn.microsoft.com/library/psdk/cdo/renoview_4b8n.htm
> >
> >
> >- Original Message -
> >From: "Bury Man" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, May 19, 2000 11:18 AM
> >Subject: Re: Developing sites with JSP and HTML
> >
> >
> > > interesting...
> > >
> > > I wonder how MS knows that the .asp page has no dynamic content
> > > without interpreting it.
> > >
> > >
> > >
> > >
> > > >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: Developing sites with JSP and HTML
> > > >Date: Fri, 19 May 2000 11:10:31 -0700
> > > >
> > > >MS IIS 5.0 doesn't actually interpret .asp files that have no dynamic
> > > >content. It's as good as plain 'ol  HTML.  So, there's no overhead.
> >Not
> > > >true abt. JSPs, I guess.
> > > >:-((
> > > >
> > > >- Original Message -
> > > >From: "Steve Bang" <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Thursday, May 18, 2000 5:24 PM
> > > >Subject: Developing sites with JSP and HTML
> > > >
> > > >
> > > > > HTML files become JSP files just by changing the extension to .jsp
> >and
> > > >using
> > > > > a JSP engine, but I assume it is more efficient to use the .jsp
> > > >extension
> > > > > only when exploiting JSP advantages.  Is this true?  Within a
single
> >web
> > > > > site it would seem to make sense to have both types of pages
present
> >on
> > > >the
> > > > > site.  So, the question I have is does it ever make sense to use
the
> > > >.jsp
> > > > > extension on all pages within a site?  At least on Microsoft's
site,
> >it
> > > > > seems that almost all pages are ASP files, even when an HTML file
> >would
> > > > > probably work fine.  Similarly, what do I gain or give up by
making
> >all
> > > > > pages JSP files?
> > > > >
> > > > > Thanks,
> > > > > Steve
> > > > >
> > > > >
> > >
> >
>===
> > > > > 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!?
> > > >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.htm

Re: Developing sites with JSP and HTML

2000-05-19 Thread Shrisha Radhakrishna

Yes, it just *looks* for ASP code.  It doesn't interpret (which is the topic
of interest here, isn't it?) and then figure out that it's just static HTML.

- Original Message -
From: "Bury Man" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 2:42 PM
Subject: Re: Developing sites with JSP and HTML


> right out of the document
>
> "IIS first searches it for any ASP script. If there is none, the file is
> treated as a normal .HTM file and sent directly to the browser."
>
>
>
>
> >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Developing sites with JSP and HTML
> >Date: Fri, 19 May 2000 14:03:55 -0700
> >
> >I found it!
> >http://msdn.microsoft.com/library/psdk/cdo/renoview_4b8n.htm
> >
> >
> >- Original Message -
> >From: "Bury Man" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, May 19, 2000 11:18 AM
> >Subject: Re: Developing sites with JSP and HTML
> >
> >
> > > interesting...
> > >
> > > I wonder how MS knows that the .asp page has no dynamic content
> > > without interpreting it.
> > >
> > >
> > >
> > >
> > > >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: Developing sites with JSP and HTML
> > > >Date: Fri, 19 May 2000 11:10:31 -0700
> > > >
> > > >MS IIS 5.0 doesn't actually interpret .asp files that have no dynamic
> > > >content. It's as good as plain 'ol  HTML.  So, there's no overhead.
> >Not
> > > >true abt. JSPs, I guess.
> > > >:-((
> > > >
> > > >- Original Message -
> > > >From: "Steve Bang" <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Thursday, May 18, 2000 5:24 PM
> > > >Subject: Developing sites with JSP and HTML
> > > >
> > > >
> > > > > HTML files become JSP files just by changing the extension to .jsp
> >and
> > > >using
> > > > > a JSP engine, but I assume it is more efficient to use the .jsp
> > > >extension
> > > > > only when exploiting JSP advantages.  Is this true?  Within a
single
> >web
> > > > > site it would seem to make sense to have both types of pages
present
> >on
> > > >the
> > > > > site.  So, the question I have is does it ever make sense to use
the
> > > >.jsp
> > > > > extension on all pages within a site?  At least on Microsoft's
site,
> >it
> > > > > seems that almost all pages are ASP files, even when an HTML file
> >would
> > > > > probably work fine.  Similarly, what do I gain or give up by
making
> >all
> > > > > pages JSP files?
> > > > >
> > > > > Thanks,
> > > > > Steve
> > > > >
> > > > >
> > >
> >
>===
> > > > > 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!?
> > > >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/js

Re: Developing sites with JSP and HTML

2000-05-19 Thread Shrisha Radhakrishna

U R absolutely right.  Just a standard.

- Original Message -
From: "Bury Man" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 19, 2000 3:01 PM
Subject: Re: Developing sites with JSP and HTML


> sort of 
>
> but why bother writing an .asp file without any asp
> when you take a (small) performance hit because the server has
> to check and flag that it does not have any asp
>
> better off with HTML page
>
> ya ya?
>
>
>
>
> >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> >Reply-To: A mailing list about Java Server Pages specification and
> > reference <[EMAIL PROTECTED]>
> >To: [EMAIL PROTECTED]
> >Subject: Re: Developing sites with JSP and HTML
> >Date: Fri, 19 May 2000 14:50:17 -0700
> >
> >Still, better (faster) than going through a servlet engine, don't u think
> >Imagine the JSP engine converting the .jsp to a .class only if scriplets
> >are
> >found.  This is eseentially what IIS does (and, that's good).
> >
> >- Original Message -
> >From: "Bury Man" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, May 19, 2000 2:42 PM
> >Subject: Re: Developing sites with JSP and HTML
> >
> >
> > > right out of the document
> > >
> > > "IIS first searches it for any ASP script. If there is none, the file
is
> > > treated as a normal .HTM file and sent directly to the browser."
> > >
> > >
> > >
> > >
> > > >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> > > >Reply-To: A mailing list about Java Server Pages specification and
> > > > reference <[EMAIL PROTECTED]>
> > > >To: [EMAIL PROTECTED]
> > > >Subject: Re: Developing sites with JSP and HTML
> > > >Date: Fri, 19 May 2000 14:03:55 -0700
> > > >
> > > >I found it!
> > > >http://msdn.microsoft.com/library/psdk/cdo/renoview_4b8n.htm
> > > >
> > > >
> > > >- Original Message -
> > > >From: "Bury Man" <[EMAIL PROTECTED]>
> > > >To: <[EMAIL PROTECTED]>
> > > >Sent: Friday, May 19, 2000 11:18 AM
> > > >Subject: Re: Developing sites with JSP and HTML
> > > >
> > > >
> > > > > interesting...
> > > > >
> > > > > I wonder how MS knows that the .asp page has no dynamic content
> > > > > without interpreting it.
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > >From: Shrisha Radhakrishna <[EMAIL PROTECTED]>
> > > > > >Reply-To: A mailing list about Java Server Pages specification
and
> > > > > > reference <[EMAIL PROTECTED]>
> > > > > >To: [EMAIL PROTECTED]
> > > > > >Subject: Re: Developing sites with JSP and HTML
> > > > > >Date: Fri, 19 May 2000 11:10:31 -0700
> > > > > >
> > > > > >MS IIS 5.0 doesn't actually interpret .asp files that have no
> >dynamic
> > > > > >content. It's as good as plain 'ol  HTML.  So, there's no
overhead.
> > > >Not
> > > > > >true abt. JSPs, I guess.
> > > > > >:-((
> > > > > >
> > > > > >- Original Message -
> > > > > >From: "Steve Bang" <[EMAIL PROTECTED]>
> > > > > >To: <[EMAIL PROTECTED]>
> > > > > >Sent: Thursday, May 18, 2000 5:24 PM
> > > > > >Subject: Developing sites with JSP and HTML
> > > > > >
> > > > > >
> > > > > > > HTML files become JSP files just by changing the extension to
> >.jsp
> > > >and
> > > > > >using
> > > > > > > a JSP engine, but I assume it is more efficient to use the
.jsp
> > > > > >extension
> > > > > > > only when exploiting JSP advantages.  Is this true?  Within a
> >single
> > > >web
> > > > > > > site it would seem to make sense to have both types of pages
> >present
> > > >on
> > > > > >the
> > > > > > > site.  So, the question I have is does it ever make sense to
use
> >the
> > > > > >.jsp
> > > > > > > extension on all pages within a site?  At least on Microsoft's
> >site,
> > > >

No Subject

2000-06-06 Thread Shrisha Radhakrishna

Hi All,
Anybody faced a problem in creating persistent cookies?  IE seems to
keep the cookie, but, netscape kills the cookie upon exit.

Here is how I set the cookie:
Cookie UserCookie=3Dnew Cookie("LoginID",name);
UserCookie.setPath("/");
UserCookie.setMaxAge(Integer.MAX_VALUE);
res.addCookie(UserCookie);

TIA,
Shrisha



__
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



No Subject

2000-06-06 Thread Shrisha Radhakrishna

Ok, I figured it out.  Netscape doesn't like INTEGER.MAX_VALUE.  I put in
900 (1041 days) and it worked!

- Original Message -
From: "Shrisha Radhakrishna" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 8:53 AM


> Hi All,
> Anybody faced a problem in creating persistent cookies?  IE seems to
> keep the cookie, but, netscape kills the cookie upon exit.
>
> Here is how I set the cookie:
> Cookie UserCookie=3Dnew Cookie("LoginID",name);
> UserCookie.setPath("/");
> UserCookie.setMaxAge(Integer.MAX_VALUE);
> res.addCookie(UserCookie);
>
> TIA,
> Shrisha
>
>
>
> __
> 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


__
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



Re: Not able to post message!!

2000-06-07 Thread Shrisha Radhakrishna

U just did  (?)

- Original Message -
From: "Geeta Kottapalli" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 11:18 AM
Subject: Not able to post message!!


> I am not able to post message in this board.
> Please help me out to post.
> Thanks,
> Geeta Kottapalli
>
> __
> 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


__
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



Re: Invoking a servlet via a hyperlink

2000-06-07 Thread Shrisha Radhakrishna

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 works very nicely. However, the whole mechanism does depend on all
> interaction with the controller servlet being performed using FORM
SUBMITS.
> I'm fine with this but there are times when I'll want to interact with the
> controller servlet via a hyperlink - or **via a SUBMIT that looks and
> behaves like a hyperlink.**
>
> SUBMITs will always look like button clicks - the mouse pointer doesn't
turn
> into a finger but remains as an arrow etc. There are ways to make SUBMITs
> resemble hyperlinks using IE4 style tags but these don't work for
netscape.
>
> Anyone encountered this sort of problem before? I'd prefer to keep
> everything as a SUBMIT so that I'm always routing through the servlet. I'd
> like to compromise and use a real hyperlink only when the target page
> contains static content.
>
> Any ideas thoughts really welcome.
> Thanks,
> Ferghil O'Rourke
> USMoving.com - chief programmer
>
>
===
> 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


__
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://ja

Re: Invoking a servlet via a hyperlink

2000-06-07 Thread Shrisha Radhakrishna

You could use multiple request.getParameter("parameterName") 's to get all
parameters.

--Shrisha

- Original Message -
From: "Ferghil O'Rourke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 07, 2000 6:47 PM
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
>
> 
href="servlet/controllerServlet?name=RetrieveVendors.do¶m1=value1..">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 works very nicely. However, the whole mechanism does depend on
all
> > interaction with the controller servlet being performed using FORM
> SUBMITS.
> > I'm fine with this but there are times when I'll want to interact with
the
> > controller servlet via a hyperlink - or **via a SUBMIT that looks and
> > behaves like a hyperlink.**
> >
> > SUBMITs will always look like button clicks - the mouse pointer doesn't
> turn
> > into a finger but remains as an arrow etc. There are ways to make
SUBMITs
> > resemble hyperlinks using IE4 style tags but these don't work for
> netscape.
> >
> > Anyone encountered this sort of problem before? I'd prefer to keep
> > everything as a SU

Re: Invoking a servlet via a hyperlink

2000-06-07 Thread Shrisha Radhakrishna

It sure does... :-))

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


> I was using req.getParameters() to get the parameter list from
> a normal FORM POST. Work fine. But when from a href getParameters()
> just returns one big flat string.
> A call to getParameter("name") will parse thru the '?' in the href for me?
>
> Off to try it!
> -F
>
> -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:59 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Invoking a servlet via a hyperlink
>
>
> You could use multiple request.getParameter("parameterName") 's to get all
> parameters.
>
> --Shrisha
>
> - Original Message -
> From: "Ferghil O'Rourke" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, June 07, 2000 6:47 PM
> 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
> >
> >  >
>
href="servlet/controllerServlet?name=RetrieveVendors.do¶m1=value1..">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 FO

Re: need help on setting cookies to a URL object

2000-06-09 Thread Shrisha Radhakrishna

Did you try "http://www.myvideoshare.com/members/join/index.asp"?
Also, the .asp file might be setting a dummy cookie and reading it back to
see if the client is cookie enabled.  Note that this is not a static HTML
page...

- Original Message -
From: "Yunyun Cai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 09, 2000 9:27 AM
Subject: need help on setting cookies to a URL object


> Hi,
> I used such code as follows to get a page using the URL object:
><%
> URL url=new URL("http://www.myvideoshare.com/members/join");
>
> BufferedReader rd=new BufferedReader(new
> InputStreamReader(url.openStream()));
> String s="";
> while((s=rd.readLine())!=null)
> out.println(s);
> %>
> But instead of the sign-up page, what I got is a "Cookies Required" page.
> Could anybody help me on this?
> 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


__
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



Re: how to stop this, please help.

2000-06-09 Thread Shrisha Radhakrishna

Read the footer...

To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".


- Original Message -
From: "rupesh bharad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 09, 2000 10:10 PM
Subject: Re: how to stop this, please help.


> Hello9 friends,
>
> Please save me from this mass mailing its going to
> crash my mail account.
>
> How to stop this pleas suggest me.
>
> i wiil be very very thankful to you.
>
>
> Rupesh
>
>
>
> --- Hitesh panchal <[EMAIL PROTECTED]> wrote:
> > Tushar Kuwad <[EMAIL PROTECTED]> wrote:
> > Hi,
> > Can u suggest me a good third party tool(a
> > freeware) for designing
> > html forms.
> > Regards
> >
> > Tushar
> >
> >
> > there is lot of html editor  best is at html editor
> > from macromedia
> > you can search at macromedia .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 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
>
>
> __
> 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


__
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



Re: Passing spaces in query strings

2000-06-20 Thread Shrisha Radhakrishna

Hmmm.. I am not quite sure abt this.  Its perfectly valid for parameters to
contain spaces.  Do not use URLEncoder.encode() on the whole URL.. Here's
what I fo and it works beautifuly

<%String temp_url="servlet/SetCustomerForSession?cust_id=" +
URLEncoder.encode(cust_info) + "&redirect=" + redirect;%>
Link

--Shrisha

- Original Message -
From: "Tamanna Kher" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 20, 2000 3:50 AM
Subject: Re: Passing spaces in query strings


> the correct way to pass the parameters having spaces in between is to put
> the values in the single or double quotes. That'll solve your problem.
>
>
>
>
> "Vinay K.V. Menon" <[EMAIL PROTECTED]> on 06/20/2000 05:01:02
> PM
>
> Please respond to A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: Kher Tamanna-SWD-ITIL-UB/Itilmail)
>
> Subject:  Passing spaces in query strings
>
>
>
>
> Hi all!
> I am having a problem passing parameters with spaces in the middle
> to
> servlets.
> I tried encodeUrl but it does not seem to encode the spaces with
> +'s. So I
> looked up the archive and found that I could use the URLEncoder.encode
> method. Well, this method seems to be working fine as far as converting
the
> spaces to +'s go but when I try to do an encodeUrl of that string and a
> sendRedirect it seems to be failing. Here is what I am trying to do,
>
>
response.sendRedirect(response.encodeUrl(java.net.URLEncoder.encode(sURL)))
> ;
>
> And for one of the cases with spaces here is what I get,
>
> 500 Internal Server Error
>
> The servlet named invoker at the requested URL
>
>
>
http://localhost/servlet/polyx.application.FileDeleteServlet?AREAID=A1&DOCU
> M
> ENTID=4&FILENAME=Article+Writer+Functional+Specifications.doc
>
> reported this exception
>
>
polyx.application.FileDeleteServlet?AREAID=A1&DOCUMENTID=4&FILENAME=Article
> +
> Writer+Functional+Specifications.doc:
>
>
polyx.application.FileDeleteServlet?AREAID=A1&DOCUMENTID=4&FILENAME=Article
> +
> Writer+Functional+Specifications.doc. Please report this to the
> administrator of the web server
>
> when I click the URL[above url that comes in the error message] in the
> browser it works! Can somebody tell me how to go anbout handling spaces?
>
> IE seems to encode the URL directly without the use of the
> URLEncoder but
> including the URLEncoder.encode methid it does not work in IE either.
>
> Thanks and advance
>
> Vinay
>
>
===
> 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!?
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



Re: Passing spaces in query strings

2000-06-20 Thread Shrisha Radhakrishna

Oh, BTW, use encodeRedirectURL for all redirects...

- Original Message -
From: "Vinay K.V. Menon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 20, 2000 3:31 AM
Subject: Passing spaces in query strings


> Hi all!
> I am having a problem passing parameters with spaces in the middle
to
> servlets.
> I tried encodeUrl but it does not seem to encode the spaces with
+'s. So I
> looked up the archive and found that I could use the URLEncoder.encode
> method. Well, this method seems to be working fine as far as converting
the
> spaces to +'s go but when I try to do an encodeUrl of that string and a
> sendRedirect it seems to be failing. Here is what I am trying to do,
>
>
response.sendRedirect(response.encodeUrl(java.net.URLEncoder.encode(sURL)));
>
> And for one of the cases with spaces here is what I get,
>
> 500 Internal Server Error
>
> The servlet named invoker at the requested URL
>
>
>
http://localhost/servlet/polyx.application.FileDeleteServlet?AREAID=A1&DOCUM
> ENTID=4&FILENAME=Article+Writer+Functional+Specifications.doc
>
> reported this exception
>
>
polyx.application.FileDeleteServlet?AREAID=A1&DOCUMENTID=4&FILENAME=Article+
> Writer+Functional+Specifications.doc:
>
>
polyx.application.FileDeleteServlet?AREAID=A1&DOCUMENTID=4&FILENAME=Article+
> Writer+Functional+Specifications.doc. Please report this to the
> administrator of the web server
>
> when I click the URL[above url that comes in the error message] in the
> browser it works! Can somebody tell me how to go anbout handling spaces?
>
> IE seems to encode the URL directly without the use of the
URLEncoder but
> including the URLEncoder.encode methid it does not work in IE either.
>
> Thanks and advance
>
> Vinay
>
>
===
> 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!?
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



Re: Hyperlinks.

2000-06-22 Thread Shrisha Radhakrishna

click here

- Original Message -
From: "krishna srinivasan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 22, 2000 8:16 AM
Subject: Hyperlinks.


> I have a hyperlink that looks like this...
>
> click here
>
> if the value of username='xyz abc'[ie.two words],i'm not able to get both
> the words in the hyperlink.Instead it's just 'xyz .How do i send both the
> words to the next page if user clicks on the hyperlink ?
>
> Regards.
> 
> 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


__
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



Re: bug with array casting within a JSP process

2000-06-29 Thread Shrisha Radhakrishna

Here is the answer!  You are trying to instantiate a custom class that is
not inside any package from within a .java that is inside a package.  When
your JSP is translated into a java file, the compiler automatically puts it
in a package.  (in weblogic, it is jsp_package;).

- Original Message -
From: "George Ludwig" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 29, 2000 10:33 AM
Subject: Re: bug with array casting within a JSP process


> Sachin,
>
> Ah, you caught my little example blunder.
>
> Unfortunately, in the actual code, the hastable is in fact instantiated.
The real
> code was a little long and complicated, so for my post I distilled it into
> something that just described the casting problem.
>
> But hey, thanks for being awake! ;)
>
> George
>
> "Sachin S. Khanna" wrote:
>
> > One Observation :
> > You donot instantiate the myVec object in your code, that means
you
> > are trying to call the add method on a null object which is going to
throw a
> > NPE.
> > Instantiating the myVec object might just bring an end to your grief
:-).
> > Have a nice day.
> > With regards,
> > Sachin S. Khanna.
> > www.emailanorder.com
> > - Original Message -
> > From: George Ludwig <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, June 29, 2000 12:26 AM
> > Subject: bug with array casting within a JSP process
> >
> > > I have a javabean that's called from a JSP page. The bean compiles
fine,
> > but at
> > > runtime JSP fails with no real explanation. The method code is
something
> > like
> > >
> > > Vector myVec ;
> > >
> > > MyCustomObject mco = new MyCustomObject() ;
> > >
> > > myVec.add(mco) ;
> > >
> > > Object[] o = myVec.toArray() ;
> > >
> > > return (MyCustomObject)o ;
> > >
> > > I'm pretty sure I've done this before in other cases, but in JSP it
just
> > fails.
> > > BTW, it fails in both the JSWDK as well as WebLogic (both under Linux
> > 6.1).
> > >
> > > Obviously, I worked around it be just returning the array without
casting
> > it, then
> > > casting each array element as I used it. But that's not clean and it
> > pisses me off.
> > >
> > > Is this a known bug? Where can I report it if it is?
> > >
> > > Cheers,
> > >
> > > George
> > >
> > >
> >
===
> > > 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: HttpSession

2000-07-06 Thread Shrisha Radhakrishna

Sessions depend on a small cookie (sessionID) on the client's browser.  IP
address doesn't matter.

--Shrisha

- Original Message -
From: "ramdurs kanakangi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 06, 2000 11:08 AM
Subject: HttpSession


> Hi, I've a simple question.
>
> Since a HttpSession is maintained between a
> client IP & a server IP, how does it work in case
> of the client being behind a firewall/proxy server?
>
> Scenario: lets say we have 2 clients C1 & C2 whose
> requests are routed throught their proxy server P to
> an external webserver W.
>
> In this scenario, does W have just one HttpSession
> with P (for both C1 & C2)?
>
> Or, does W use some other info (like cookies) to
> maintain seperate HttpSessions for C1 & C2?
>
> Thx, Ram.
>
> __
> 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: FTP From JSP

2000-07-07 Thread Shrisha Radhakrishna

I have developed 7 projects with ASP/COM and I have to say that this
combination certainly outperforms the JSP/EJB/Servlet design I am currently
working with.

--Shrisha

- Original Message -
From: "Kyle Cordes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 07, 2000 7:35 PM
Subject: Re: FTP From JSP


> > MS' arguments that ASP may perform well in certain environments (MS NT
> IIS
> > with MS SQL 7) seem reminiscent of PC developer's defending dBase...
> > ultimately, product viability rests in advantages, not in yeah'but
> > arguments.
>
>
> I'm far from a raving MS fan, but I will point out that ASP apps written
> as recommended (with the heavy lifting in COM objects in a real
> language) can be very fast, scalable, etc.  It's also considerably
> easier to get an ASP/IIS system up and running than a comparable Java
> app server.
>
>
===
> 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: escaping single quotes in JSP embedded SQL

2000-07-19 Thread Shrisha Radhakrishna

Use a preparedStatement for your INSERT.

--Shrisha

- Original Message -
From: "Suhas Mehta" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 19, 2000 1:07 PM
Subject: Re: escaping single quotes in JSP embedded SQL


> Hi! Julia,
> Try using the escape characters like \' (backslash and a immediate
> Quote.) This is because finally when the class file is constructed it
would
> recognize it as a single quote.
>
> So far. Enjoy Coding.
> Suhas.
>
> -Original Message-
> From: Julia Reynolds [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 19, 2000 12:55 PM
> To: [EMAIL PROTECTED]
> Subject: escaping single quotes in JSP embedded SQL
>
>
> This is a basic question!  When you have a SQL INSERT statement embedded
> directly in a page, and some of the insert values include single quotes,
> how in JSP
> do we handle the need to escape (double up) the single quotes to avoid
> an ODBC
> error.  In VB we just replace the single quotes with two single quotes.
> Is it the same
> in JSP?  Should I just append in another single quote?
>
> Julia
>
>
===
> 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