Re: variable passing????

2000-07-16 Thread pranav kumar

Hi,
 This is very late reply but u can use URLEncoder() for this problem.
PRanav

- Original Message -
From: subramanian Athimoolam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 07, 2000 8:49 PM
Subject: variable passing


> hi friends
>
> here i am passing variable form one jsp page to another page.
> single string means no problem.  its passing.
>
> ex.
>   value=category
>   
>
> it will give error..
> how can i correct it??
>
> thanks
> subu
>
> **
> Learnet India Ltd.,
> Bangalore
> **
>
>
>
>
>
>
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: General Error problem in jdk1.3

2000-07-02 Thread pranav kumar

hi,
I think that you are missing a '{' for hile loop.
Pranav
- Original Message -
From: Kim <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 03, 2000 9:28 AM
Subject: General Error problem in jdk1.3


> I get this error on & off after moving from jdk1.2.2 to jdk1.3:
>
> java.sql.SQLException: General error
>  at sun.jdbc.odbc.JdbcOdbc.throwGenericSQLException(JdbcOdbc.java:6160)
>  at sun.jdbc.odbc.JdbcOdbc.SQLFreeEnv(JdbcOdbc.java:2742)
>  at sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(JdbcOdbcDriver.java:838)
>  at sun.jdbc.odbc.JdbcOdbcConnection.close(JdbcOdbcConnection.java:736)
>  at
>
_0002fpending_0002ejsppending_jsp_4._jspService(_0002fpending_0002ejsppendin
> g_jsp_4.java:187)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:174)
>  at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
>  at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
>  at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
>  at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:160)
>  at
>
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> )
>  at java.lang.Thread.run(Thread.java:484)
>
> Can someone tell me why, please??
> this is my jsp:
>
> 
> <%@ page import="java.sql.*, java.util.*, user.UserHandler"%>
> 
> 
> <%
> // get parameters from request object
> String userid = userbean.getUserid();
> if (userid == null)
> {
>  response.sendRedirect("login.jsp?msg=Session%20Timeout");
> }
>
> Database db = new Database();
> Connection conn1 = null;
> Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ).newInstance();
> conn1 = DriverManager.getConnection( "jdbc:odbc:FROGGODB", "sa", "");
> while (conn1 == null )
> {
>  conn1 = DriverManager.getConnection( "jdbc:odbc:FROGGODB", "sa", "");
> }
>
> Statement stmt = conn1.createStatement();
>
> %>
> 
> 
> Results
>
> 
> a:link {font:Helvetica; text-decoration:none; color:blue}
> a:visited {font:Helvetica; text-decoration:none; color:purple}
> a:active {font:Helvetica; text-decoration:none; color:blue}
> a:hover {font:Helvetica; color:red; text decoration:none; }
> 
> 
> 
>
> 
>  color=#EAEAAE size=5>
>  Search Results
>  
> 
>  href=result.jsp>Done
>face=verdana size=2>Pending
>    
> 
> 
>
>  bordercolor=#639C39>
> 
>
> 
> <%
> ResultSet rsreq = stmt.executeQuery(
>  "SELECT * FROM Request WHERE member_id LIKE '" + userid +
>  "' AND status < 60 ORDER BY date_issued DESC");
> if (!rsreq.next())
> {
>  out.println(" ");
>  out.println("No search
> request(s) in process");
>  out.println(" ");
> }
> else
> {
> %>
>
> 
> 
>  
> Search requests still in
> process:
>   Cancel
>
> <%
>  rsreq.close();
>  rsreq = stmt.executeQuery(
>  "SELECT * FROM Request WHERE member_id LIKE '" + userid +
>  "' AND status < 60 ORDER BY date_issued DESC");
>  int i=1;
>  while(rsreq.next())
>
>   int rid = rsreq.getInt("request_id");
>   String keywords = rsreq.getString("keywords");
>   String docpath = rsreq.getString("doc_paths");
>   String requesturl = rsreq.getString("urls");
>   int status = rsreq.getInt("status");
>
>   if(keywords != null && !(keywords.equals("")) &&
> !(keywords.equals("null"))){
>out.println("(" + i + "). kw: " + keywords +
> "");
>   }
>   else if(docpath != null && !(docpath.equals("")) &&
> !(docpath.equals("null"))){
>out.println("(" + i + "). dp: " + docpath +
"");
>   }
>   else {
>out.println("(" + i + "). url: " + requesturl +
"");
>   }
>
>   if (status < 20)
>   {
> out.print("");
>   }
>   else
>   {
> out.print("Can't
cancel(Processing...)");
>   }
>
>   i++;
>  }
>  out.println(" ");
>  out.println(" An email will be
sent to you when the request(s) has been
processed.");
>
> }
> rsreq.close();
> stmt.close();
> conn1.close();
> %>
>
> 
> 
> 
> 
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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.co

Re: Getting Multiple HTML Select values from a posted form

2000-06-29 Thread pranav kumar

Hi,
 You Can do one thing.
 Let us suppose that You have 3 select box.
Now Please give same name to all of these 3 Select Box. Let's Say
'select'.
Now when you get the value of 'select' by String
myVar=request.getParameter("select");
Then 'myVar' gives you values like myVar="1,2,3". (Here 1 is for select
box 1, 2 is for select box 2 and so on..);
I think that It'll Helpful for u.
PRanav
- Original Message -
From: Jon Thomas <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 29, 2000 11:57 PM
Subject: Getting Multiple HTML Select values from a posted form


> Does anyone know if there is a simple way to get all the values for a
> multiple select box using the request object?
> Curently if I use request.getParameter("paramName") I only get the first
> parameter.
> I'm sure I could figure out how to get this using a sring tokenizer on the
> querystring but this is one of those situations that I cannot believe I am
> the first to face, yet I can't seem to find documentation on
>
> To put it another way if I have in the querystring
> "¶mName=1¶mName=2¶mName=3" is there a simple way in JSP to
> return these from the posted form as myVar = "1,2,3".  Any help is
> appreciated.
>
> Thanks,
> Jt.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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: any function in java.sql to give no of rows?

2000-06-29 Thread pranav kumar

HI,
  You can Do this as:
   ResultSet rs=null;

//   here is your query and other syntax of Java with Jdbc
 rs.afterLast();
 rs.previous();
 int nor = rs.getRow();
 out.println("No. of rows"+nor);
//   other code line
Now this 'nor' gives you the Total Number of Rows which your query returns.
But for this you need a Type-4 JDBC Driver.
I hope that it'll helpful for u
PRanav


- Original Message -
From: Medha Rangnekar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 30, 2000 5:07 AM
Subject: any function in java.sql to give no of rows?


> I need to know the total no of rows a query returns in my JSP application.
I
> am new to JSP. I know that in ColdFusion there is such function like
> queryname.recordcount
> I looked on sun site for Resultset methods and also for resultSetMetaData
> methods. I did not find one. I found one GetFetchSize but seems like it
> gives the buffer size.
> Any help is appreciated.
>
> Thanks,
> Medha
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: Problem displaying data in list box thro jsp

2000-06-29 Thread pranav kumar

Hi,
You should wirte result.next() as the fisrt statement.
 The modified version of your code is as follows:-
 .
 
 <%@ page import="java.sql.*" %>
 <%! String dbURL="jdbc:odbc:bdayorcl";
 String dbCon="sun.jdbc.odbc.JdbcOdbcDriver";
 ResultSet result=null;
  %>
 
 
 

 
 <% try{ dbbean.setDbDriver(dbCon);
   dbbean.setDbURL(dbURL);
   dbbean.connect();
   result=dbbean.execSQL("select * from dept");
 %>
 Tables Available :
  
 <% while(result.next()) // here i made the correcitons


  %>
 <%=result.getString(2)%>
 <%
  }
 %>

 
 <% result.close();
   dbbean.close();
 }catch(SQLException e)
   { throw new ServletException(e);
 }
 %>
 
 


- Original Message -
From: Sanjay Gomes <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 29, 2000 6:20 PM
Subject: Problem displaying data in list box thro jsp


> I want to display my results into a listbox  which I am unable to do so it
> gives invalid cursor state
>
> I tried the same code that I had used for displaying the contents of a
table
> ,with the neccessary changes
> for displaying it in a listbox
> Please can anybody give a hint as to what could be the problem .
>
>
> .
> 
> <%@ page import="java.sql.*" %>
> <%! String dbURL="jdbc:odbc:bdayorcl";
> String dbCon="sun.jdbc.odbc.JdbcOdbcDriver";
> ResultSet result=null;
>  %>
> 
> 
> 
> 
> 
> <% try{ dbbean.setDbDriver(dbCon);
>   dbbean.setDbURL(dbURL);
>   dbbean.connect();
>   result=dbbean.execSQL("select * from dept");
> %>
> Tables Available :
>  
> <%= result.getString(2)%>
><% while(result.next())
>{ %>
> <%=result.getString(2)%>
>   <% } %>
>
> 
> <% result.close();
>   dbbean.close();
> }catch(SQLException e)
>   { throw new ServletException(e);
> }
> %>
> 
> 
>
> P.s- the bean works since I tried it with my other code n works fine
>
> TIA
> Sanjay
> 
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: DB Conn

2000-06-27 Thread pranav kumar

HI,
  For this u have to import the java.sql.* API.
 Then first use the Class.forName() method for installing your driver
class file, then intialize a Connection object using
DrvierManager.getConnection() method. After this u can apply the commands of
JDBC API for getting the data from database.
  Now u can also do one thing that please make a Class for the DB
Connection and then import this class in your JSP page where you want.
I hope that it'll helpful for you.
PRanav
- Original Message -
From: Mutahar Qayum <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 27, 2000 10:15 PM
Subject: DB Conn


> What are the real steps in Making DB connection.
> And can i make some include file so that i can use it in many other pages?
>
> thnx
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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: Values Passing Through Session

2000-06-24 Thread pranav kumar

We tried putting the Meta tags in html. It did'nt work. then we used
response.setHeader("","---"). Even it did'nt work. Sometimes the browser
just picks up the very old file which already has been removed. When we
refresh the page, it shows the correct information. Does that means that the
values are being transfered to this page but somehow my browser is not
picking up the latest values? We are not using any static variables in the
files.
  All these problems are begin noticed only in IE5.0. In NC4.7, the
files runs smoothly without any problems picking up the apporiate latest
values.
  We have emptied the IE cache even it did'nt help.
   Is there any thing wrong in our apporach? I wish somebody has
encountered this sort of problem. We have not been able to diagnose the root
cause. Is it the browser specific?
Please help us out.

Pranav
- Original Message -
From: Pratik <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 24, 2000 7:06 PM
Subject: Re: Values Passing Through Session


> Yes Nagrajan is Right.
> You have to give html meta tags to not to cache page.
> try putting the following in your html head:
> <%
> response.setHeader("Cache-Control","no-store"); file://HTTP 1.1
> response.setHeader("Pragma","no-cache"); file://HTTP 1.0
> response.setDateHeader("Expires","0"); file://prevents caching at the
proxy
> server
> %>
>
>
>
> If you wnat to more info then please search this mailing list of
> redirection.
> - Original Message -
> From: Gunaseelan Nagarajan <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, June 24, 2000 5:43 PM
> Subject: Re: Values Passing Through Session
>
>
> > hi pranav,
> >
> > your problem could be that the previous jsp
> > file was cached by the browser. you could
> > add the html meta tags to force the browser
> > not to cache the page.
> >
> > regards
> > Nagaraj
> >
> > --- pranav kumar <[EMAIL PROTECTED]> wrote:
> > > Hi All,
> > >   I using the JavaWebserver 2.0 on Windows
> > > NT with IE5.0. Let's Say
> > > there are 2 pages a.JSP and b.jsp. IN the A.JSP a
> > > session is created, some
> > > values are put into the session and then by
> > > response.sendRedirect(b.jsp), I
> > > call the B.JSP page. Here at B.JSP, I am retrieving
> > > the values from the
> > > Session and displayed them. Now here the actual
> > > problem is start. When I go
> > > back to the A.JSP page through the back button and
> > > A.JSP call's the B.JSP
> > > ith new values in the Session, B.JSP shows me the
> > > previous results not the
> > > new One.
> > > Is this the problem with the session. One
> > > more thing I want to clear
> > > that at 2nd time, when I get the previous results,
> > > if I refresh the B.JSP by
> > > click on the refresh button then it show me the
> > > correct results.
> > > Please help me. Also these two files more
> > > very well with Netscape
> > > 4.7.
> > > Thanks in Advance
> > > With Regards,
> > > Pranav
> > >
> > >
> >
>
===
> > > To unsubscribe: mailto [EMAIL PROTECTED] with
> > > body: "signoff JSP-INTEREST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.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!?
> > Get Yahoo! Mail - Free email you can access from anywhere!
> > http://mail.yahoo.com/
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Values Passing Through Session

2000-06-24 Thread pranav kumar

Hi,
As you suggest me I am given the following tags :---



  But still I am facing the problem. Please Tell me that whether I am
correct or not.
Pranav
- Original Message -
From: Gunaseelan Nagarajan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, June 24, 2000 5:43 PM
Subject: Re: Values Passing Through Session


> hi pranav,
>
> your problem could be that the previous jsp
> file was cached by the browser. you could
> add the html meta tags to force the browser
> not to cache the page.
>
> regards
> Nagaraj
>
> --- pranav kumar <[EMAIL PROTECTED]> wrote:
> > Hi All,
> >   I using the JavaWebserver 2.0 on Windows
> > NT with IE5.0. Let's Say
> > there are 2 pages a.JSP and b.jsp. IN the A.JSP a
> > session is created, some
> > values are put into the session and then by
> > response.sendRedirect(b.jsp), I
> > call the B.JSP page. Here at B.JSP, I am retrieving
> > the values from the
> > Session and displayed them. Now here the actual
> > problem is start. When I go
> > back to the A.JSP page through the back button and
> > A.JSP call's the B.JSP
> > ith new values in the Session, B.JSP shows me the
> > previous results not the
> > new One.
> > Is this the problem with the session. One
> > more thing I want to clear
> > that at 2nd time, when I get the previous results,
> > if I refresh the B.JSP by
> > click on the refresh button then it show me the
> > correct results.
> > Please help me. Also these two files more
> > very well with Netscape
> > 4.7.
> > Thanks in Advance
> > With Regards,
> > Pranav
> >
> >
>
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.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!?
> Get Yahoo! Mail - Free email you can access from anywhere!
> http://mail.yahoo.com/
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Values Passing Through Session

2000-06-24 Thread pranav kumar

Hi All,
  I using the JavaWebserver 2.0 on Windows NT with IE5.0. Let's Say
there are 2 pages a.JSP and b.jsp. IN the A.JSP a session is created, some
values are put into the session and then by response.sendRedirect(b.jsp), I
call the B.JSP page. Here at B.JSP, I am retrieving the values from the
Session and displayed them. Now here the actual problem is start. When I go
back to the A.JSP page through the back button and A.JSP call's the B.JSP
ith new values in the Session, B.JSP shows me the previous results not the
new One.
Is this the problem with the session. One more thing I want to clear
that at 2nd time, when I get the previous results, if I refresh the B.JSP by
click on the refresh button then it show me the correct results.
Please help me. Also these two files more very well with Netscape
4.7.
Thanks in Advance
With Regards,
Pranav

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

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



0 KB .Java File

2000-06-19 Thread pranav kumar

Hi all,
 Some time working with the Jsp (using Windows Nt, JavaWebServer
2.0) I am facing a very strange problem. Problem is that the Servelt file,
which'll create after compilation of .JSP file, is of 0 KB in size. Due to
this my program shows me a HTTP-500 error. Now my question is that why this
all happens? Now if I shutDown the System and after rebooting I execute the
.JSP file, it works.
Please help me.
With Regards,
Pranav

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

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



Query String problem with Netscape

2000-06-01 Thread pranav kumar

Hi EveryOne,
 I am facing very strange problem. When i passing a
query string like
  http://localhost/t.jsp?name="pranav kumar" between two jsp pages using IE5
then it works fine but using NetScape 4.7 it shows me error  Bad Request
(400).
  Please help to sort out this problem.
  Thanks in advance.
With Regards,
Pranav

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

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



Session TimeOut

2000-05-27 Thread pranav kumar

Hi EveryBody,
How can we increase the session timeout in the JSP?
I am using the JavaWebServer 2.0 on Windows NT.
 Thanks in Advance.
With Regards
Pranav

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

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

2000-05-22 Thread pranav kumar

Hi EveryBody,
   Can any one send me some example of using the Jsp
with Xml. I want to use the XML with a jsp. So if any one have some examples
about this then please tell me.
Thanks is advance.
Pranav
[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



problem with the forward tag

2000-05-16 Thread pranav kumar

Hello EveryBody,
I am facing a very strange Problem.
  I am using the following code for transfer some values on the next page.

<%@ page import="java.io.*, java.util.*" %>

  


This code shows the error Http 500 Internal Error.
Please give me some solution about this problem.
I am using the Javawebserver2.0, Windows NT and IE5
Thanks in advance.
Pranav

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 parameters from servlet to jsp page

2000-05-03 Thread pranav kumar

Hi,
 Use the request.sendRedirect() method. It might be helpful for u.
Pranav
- Original Message -
From: Matt Brown <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 03, 2000 6:16 AM
Subject: passing parameters from servlet to jsp page


> I am writing a jsp page with a basic form that collects some personal
> information. When the user submits the form, my servlet checks to see that
> all the fields have been filled out. If fields are empty, I want to
> redisplay the jsp form page with a different message at the top, like "fix
> the form".
>
> I pass my parameters to the servlet which it receives, but I cannot
forward
> back to the jsp page with a parameter that tells it to display the new
> message. My servlet code looks like this:
>
> String inc= "incomplete";
> RequestDispatcher rd =
>
>
this.getServletContext().getRequestDispatcher("/rev.1.0.1/new_user.jsp?compl
> ete="+inc);
> rd.forward(request,response);
>
> My jsp page is then supposed to check the paramter "complete" to see if
the
> new message should be displayed.
>
> The jsp page is redisplayed, but the parameter is not sent and the page
> displays the original message. I have other code where this works, but for
> some reason it does not here and I am mystified.
> Any advice is appreciated,
> Matt
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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: Emailling within JSP

2000-05-03 Thread pranav kumar

Hi,
 Using Javamail Emailing becomes easy. That's why we use it.
PRanav
- Original Message -
From: Charles Tam <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 03, 2000 12:08 PM
Subject: Emailling within JSP


> Hi JSP Developers
>
> For email functionality, I hear that we should not be using the package
> "sun.net.smtp" due to platform dependent issue.
>
> Instead we should be using JavaMail.
>
> Is that right? Has anybody experienced JavaMail as an alternative?
>
> Kind Regards
>
> Charles Tam
> [EMAIL PROTECTED]
>
> Operational Solutions Management
> Software Developer
> Office AUSTRALIA: +61 2 9438 2777
> Fax AUSTRALIA: +61 2 9901 3411
>
> ==
> This E_Mail transmission contains information which is OSM Proprietary /
> Commercial - In - Confidence, is legally privileged, and is intended for
> the use of the addressee.  If you think you have received this E_Mail
> in error, or the transmission is incomplete, please immediately advise OSM
> by telephone or reply E_Mail.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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



Passing object between the jsp pages

2000-04-26 Thread pranav kumar

Hello Everbody,
   Is  there any method by which we can pass the a
collection object from one Jsp Page to another Jsp page?
Thanks in Advance.
With Regards
Pranav

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

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



problem with the length of url

2000-04-25 Thread pranav kumar

Hello Everyone,
 This is very strange problem with me. I am using
the Javawebserver2.0 and giving the URL of calling JSP file as :-
  http://hostname/examples/samples/dir1/dir2/dir3/dir4/dir5/file.jsp
This gives the error  "can't write the data file"
But if put my jsp file (file.jsp) in the directory 'dir4' then jsp file is
running.
Is Really this is a problem or this is only my mistake ?
Please tell me some method for resolving this problem
With Regards
Pranav

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

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



Re: problem with passing value througn query string

2000-04-24 Thread pranav kumar

Hello Nathan,
  Thanks for your valuable help
Pranav
- Original Message -
From: Nathan Hoover <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 25, 2000 2:31 AM
Subject: Re: problem with passing value througn query string


> just use getParameter instead.
>
> for instance blah.jsp?status=Very%20Nice
>
> then request.getParameter("status") == "Very Nice"
>
> N
>
>
>
> -Original Message-
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of pranav kumar
> Sent: Monday, April 24, 2000 9:54 AM
> To: [EMAIL PROTECTED]
> Subject: problem with passing value througn query string
>
>
> Hello Everybody,
>My problem is about the value passing through
the
> querystring method.
>   For Ex.
>   click on the following links
>   1. Very Good
>   2. Very Bad
>   3. Very Nice
> Now what I want that when user click on any one of the above links then
> value should pass to the next page (Like 'Very Good' or 'Very Nice' or '
> Very Bad').
>   On the next page I am using the getQueryString() method for getting the
> value. But the problem is that I get the value Like ' Very%20Good'.
>  Is there any method or way by which I can get the original value
> without '%20' it means 'Very Good' . Please give some another solution
> except Java String manipulations (like substring() etc.).
>Query String doesn't have a fixed format. It may contain any number of
> spaces or '-' or any character.
> Thanks in Advance.
> With regards
> Pranav
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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: problem with passing value througn query string

2000-04-24 Thread pranav kumar

Hello Hans,
   Thanks for your Suggestion. It was very help for me.
Pranav
- Original Message -
From: Hans Bergsten <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 25, 2000 12:17 AM
Subject: Re: problem with passing value througn query string


> pranav kumar wrote:
> >
> > Hello Everybody,
> >My problem is about the value passing through
the
> > querystring method.
> >   For Ex.
> >   click on the following links
> >   1. Very Good
> >   2. Very Bad
> >   3. Very Nice
> > Now what I want that when user click on any one of the above links then
> > value should pass to the next page (Like 'Very Good' or 'Very Nice' or '
> > Very Bad').
> >   On the next page I am using the getQueryString() method for getting
the
> > value. But the problem is that I get the value Like ' Very%20Good'.
> >  Is there any method or way by which I can get the original
value
> > without '%20' it means 'Very Good' . Please give some another solution
> > except Java String manipulations (like substring() etc.).
> >Query String doesn't have a fixed format. It may contain any number
of
> > spaces or '-' or any character.
>
> I suggest that you use the getParameter() or getParameterValues() methods
> instead. They handle the decoding of parameter values for you, and they
> work no matter if the parameter is sent in a query string or as part of
> the request body (i.e. using a POST request).
>
> An even better approach is to develop a bean that takes care of all
> parameters. If the parameter name is "message", a simple bean with
>
>   public void setMessage(String message)
>   public String getMessage()
>
> methods can be used to handle all of it for you without any Java code in
> the JSP page:
>
>   
>   
>
>   You selected: 
>
>
> 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

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

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



problem with passing value througn query string

2000-04-24 Thread pranav kumar

Hello Everybody,
   My problem is about the value passing through the
querystring method.
  For Ex.
  click on the following links
  1. Very Good
  2. Very Bad
  3. Very Nice
Now what I want that when user click on any one of the above links then
value should pass to the next page (Like 'Very Good' or 'Very Nice' or '
Very Bad').
  On the next page I am using the getQueryString() method for getting the
value. But the problem is that I get the value Like ' Very%20Good'.
 Is there any method or way by which I can get the original value
without '%20' it means 'Very Good' . Please give some another solution
except Java String manipulations (like substring() etc.).
   Query String doesn't have a fixed format. It may contain any number of
spaces or '-' or any character.
Thanks in Advance.
With regards
Pranav

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

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



SMTP host name

2000-04-19 Thread pranav kumar

Hello EveryBody,
  I am using the Javamail API and JAF in a mail
sending JSP Application. Now, EveryBody knows that we have to define the
SMTP HOST (MAIL SERVER) name explicitly for esatblishing the connection. Is
there any method by which we can automatically detect the SMTP HOST name and
use it our program for establishing the Connection.
 Thanks in advance.
With Regards
Pranav

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

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