Re: Window pop-up problem!....

2004-07-28 Thread Sandeep Kachalia
Manish,
Find my comments below.
Manish Malhotra wrote:
Hi All,
My Requirement is:
Im creating one web application.
I have one screen say S1. There is a link on this screen which needs to
open a pop-up window.
But the form needs to be submitted to send a parameter and on the server
side we check this paramater as its 'true' or 'false'. Depends on that
It decides that pop-up has to be open or not.
   The problem is not clear, if the decision has to be taken at server
side then you need to submit the page, there is not alternative to it.
If  decision can be taken at client side then the parent child
window relationship can be used  in JavaScript.
And my second requirement is this parent-child window relationship should be
modal view. As its in swing. So, that user can't access the parent one until
child is open. And no new child will be pop-up if one already open.
   As per my understanding you need to create a modal window. I.E.
supports Modal window where as other browser doesn't. Here is a
JavaScript function which might help you out.
function ShowWindow(url,name,height,width)
{
   if (window.showModalDialog) //for  IE
   {
   window.showModalDialog(url,name,'status:no;
dialogWidth='+width+'px;dialogHeight='+height+'px')
   }
   else //for others
   {
   var windowHeight = getWindowHeight();
   var windowWidth = getWindowWidth();
   var top = windowHeight/2 - height/2;
   var left = windowWidth/2 - width/2;
   window.top.captureEvents(Event.CLICK|Event.FOCUS)
   window.top.onclick=IgnoreEvents
   window.top.onfocus=HandleFocus
   winModalWindow =
window.open(url,name,"scrollbars=yes,toolbar=no,status=no,menubar=no,directories=no,location=no,dependent=yes,width="+width+",height="+height+",left="+left+",top="+top)
   }
}
So, can you please help me out.
I need this help urgently. Actually I know something is there in DHTML for
thei modal.
But actually is it possible through JavaScript. So, that without submitting
the parent window
I can acheive this goal.
Many Thanks. Your input is required.
regards,
Manish Malhotra
===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant archives, FAQs and Forums on JSPs can be found at:
http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


built-in webserver

2004-03-19 Thread Sandeep Kachalia
Hi,

I want to write an application that will embed the webserver in itself.
The application will accept all HTTP request. In turn it will pass on
the request to webserver libraries to get response and the same response
will be pass on to requester client.
In short I need a built-in webserver. So my question is how can I access
the webserver libraries to do this job. I am currently using Tomcat4.1,
suggest any built-in webserver, the webserver should preferably be an
open source so that I can change the source as per my application
requirements.
Thanks for consideration.

Sandeep

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

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com


Re: How to transfer information between JSP and Javascript?

2003-03-23 Thread Sandeep Kumar Agrawal, Noida
Hi Buddies,

My views regarding this topic are somewhat different.
I think it is not good to reload the page every time you want to access the
next element in the array.

The reason of "index" not getting auto-incremented is that array is being
constructed on Server side. So every time page is getting re-loaded using
PageNext() function.

So a better solution will be to store the array on the page or in Session
and access that array using Javascript without re-loading the page.

Hope that helps.

Regards,
Sandeep


-Original Message-
From: sathish [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 10:48 AM
Subject: Re: How to transfer information between JSP and Javascript?


> 
the function u have return in the javascript PageNext() is incrementing
java variable so u need to add the tag like <%index++%>; again what will
happen is every time it gets incremented while page gets load and u will
see the output as peter and when click next it'll show kate.

i u like to work it out properly ,don't use default submit instead use
some document.location property and send the index value in the url.


-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED] On Behalf Of jay halvorson
Sent: Sunday, March 23, 2003 9:47 PM
To: [EMAIL PROTECTED]
Subject: Re: How to transfer information between JSP and Javascript?

Not really a javascript guy, but how about using
document.thisform.index.value++ instead of index++ .

I believe index++ would be referencing a javascript
variable local to the PageNext function.



- Original Message -
From: "Edward King" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, March 22, 2003 10:38 PM
Subject: How to transfer information between JSP and Javascript?


>   I have a question about transfer information between JSP and
Javascript.
I have a Vector variable,it has several values,such as
"Peter","John","Kate". I show it in the table and show one each time.I
provide a link,when click this link,show next value.For example: first
time
show "Peter",when I click this link,it shows "John" and so on.But I
encounter a question.I don't know how to transfer value back to JSP. I
write
code to realize it,but when I click link,I found the value don't
changed!
Why?
> My code is follows:
>
> /*test.jsp*/
> <%@ page import="java.util.Vector" %>
> <%!
>int index=0;
> %>
> <%
>Vector v=new Vector();
>String username;
>String name="Peter";
>v.add(name);
>name="John";
>v.add(name);
>name="Kate";
>v.add(name);
>username=(String)v.get(index);
> %>
> 
> <!--
> function PageNext()
> {
>index++;
>document.thisform.submit();
> }
> -->
> 
> 
> <%
>username=(String)v.get(index);
> %>
> 
>   
> 
>   
>   Name
>   <%=username%>
>   
>
>   
> 
>   Next
Page 
>   
> 
>   
> 
> 
>
> How to realize it?
> Any idea will be appreciated!
>
> Best Regards,
> Edward
>
>

===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
>
> Some relevant archives, FAQs and Forums on JSPs can be found at:
>
>  http://java.sun.com/products/jsp
>  http://archives.java.sun.com/jsp-interest.html
>  http://forums.java.sun.com
>  http://www.jspinsider.com


===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com


Re: exit from the current loop

2003-01-23 Thread Sandeep Gain
ya of course
same break statement .
break label;

check out this url http://java.about.com/library/tutorials/bltut-014-2.htm

-Original Message-
From: karthik s [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5:22 PM
To: [EMAIL PROTECTED]
Subject: exit from the current loop


hi all,
  Is there any thing to exit from the current loop in Java as we hav
break in c++.
Rgds,
Karthik




_
Add photos to your e-mail with MSN 8. Get 2 months FREE*.
http://join.msn.com/?page=features/featuredemail

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com



Re: hi pblm in JSP form

2003-01-07 Thread Sandeep Gain
not just that
the line
<%=choose[i]%>

should have been
<%=choose[n]%>


-Original Message-
From: Adrian Janssen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 1:57 PM
To: [EMAIL PROTECTED]
Subject: Re: hi pblm in JSP form


 missing

> -Original Message-
> From: arun s [SMTP:[EMAIL PROTECTED]]
> Sent: 06 January 2003 04:30
> To:   [EMAIL PROTECTED]
> Subject:  hi pblm in JSP form
>
> hi all,
>   I hav a pblm in HTML + JSP form. I want to generate a pulldown menu
> based
> on a Database values dyanmically. Im able to retrive and set the values to
> a
> array. But Im unable to put it in a pulldown menu where it displays null
> instead of that value. Im able to understand the pblm y its so but I dont
> know how to solve it. Can some one just recode my coding so that I get a
> correct output at pulldown menu.
>
>
>
> <%@page session="true"%>
> <%@page import="javax.servlet.*"%>
> <%@page import="javax.servlet.http.*"%>
> <%@page import="java.io.*"%>
> <%@page import="java.sql.*"%>
> <%@page import="java.lang.*"%>
>
> <%
> Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
> Connection con=
> DriverManager.getConnection("jdbc:db2:track","","");
> Statement stmt=con.createStatement();
>
> ResultSet rs=stmt.executeQuery("select * from user");
> String[] choose=new String[100];
> int i=0;
> try{
> while(rs.next()){
> choose[i]=rs.getString("uname");
> out.println(""+choose[i]);
> i++;
> }
> }
> catch(Exception e){}
> out.close();
> %>
>
> 
> 
> 
> <%
> for ( int n = 0; n %>
> <%=choose[i]%>
> <%
> }
> %>
> 
> 
> 
>
>
> thanks in advance.
> urs,
> karthik
>
> _
> Help STOP SPAM: Try the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com
--

It is the strict policy of Truworths that its e-mail facility and all
e-mail communications emanating therefrom, should be utilised for
business purposes only and should conform to high professional and
business standards.   Truworths has stipulated certain regulations in
terms whereof strict guidelines relating to the use and content of
e-mail communications are laid down. The use of the Truworths e-mail
facility is not permitted for the distribution of chain letters or
offensive mail of any nature whatsoever.   Truworths hereby distances
itself from and accepts no liability in respect of the unauthorised
use of its e-mail facility or the sending of e-mail communications
for other than strictly business purposes.   Truworths furthermore
disclaims liability for any  unauthorised instruction for  which
permission was not granted.Truworths Limited accepts no liability
for any consequences arising from or as a result of reliance on this
message unless it is in respect of bona fide Truworths business for
which proper authorisation has been granted.

Any recipient of an unacceptable communication, a chain letter or
offensive material of any nature is requested to notify the Truworths
e-mail administrator ([EMAIL PROTECTED]) immediately in order that
appropriate action can be taken against the individual concerned.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: JSP Exception

2003-01-03 Thread Sandeep Gain
Use executeUpdate method instead of executeQuery.
I have read somewhere that if the query does not return a result set (the
insert, update and delete statements) , one should use
executeUpdate.
Try this and tell us whether it worked or not.

cheers,
Sandeep K Gain


-Original Message-
From: Ritesh Gupta [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 03, 2003 1:15 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP Exception


Hi Karthik,

Here is a link with some info :
http://www.websina.com/bugzero/faq/exception-db2-tab.html

Q: What is this COM.ibm.db2.jdbc.DB2Exception?
   [IBM][JDBC Driver] CLI0637E  QUERY cannot be found

A: This is a known bug in the JDBC driver in DB2 PF5, it occurs when a SQL
   statement contains TAB or new-line characters. You need upgrade the
   JDBC driver.



Regards,
Ritesh

- Original Message -
From: "arun s" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 03, 2003 12:15 PM
Subject: JSP Exception


> hi,
>   Here Im connecting to DB2 database and Im able to retrieve datas from
data
> base but the pblm is Im unable to update the table.
> I use the query
>
> ResultSet rs1=stmt.executeQuery("update user set pass='india' where
> eno=1001");
>
> in my JSP page. I get exception as
>
>
> 500 Servlet Exception
> COM.ibm.db2.jdbc.DB2Exception: [IBM][JDBC Driver] CLI0637E  QUERY cannot
> be found.
> at
> COM.ibm.db2.jdbc.app.SQLExceptionGenerator.throwInvalidQueryError(Unknown
> Source)
> at COM.ibm.db2.jdbc.app.DB2Statement.executeQuery(Unknown Source)
> at _final._cpass__jsp._jspService(/final/cpass.jsp:31)
> at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
> at com.caucho.jsp.Page.subservice(Page.java:497)
> at
> com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
> at com.caucho.server.http.Invocation.service(Invocation.java:312)
> at
com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
> at
com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:244)
> at
> com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
> at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> at java.lang.Thread.run(Thread.java:536)
>
>
>
>
>   Can any one say how to solve it plz.
>
> rgds,
> karthik
>
> _
> Help STOP SPAM: Try the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: Problemas con la recursividad

2002-07-03 Thread Sandeep Kumar Agrawal, Noida

Hi!!

are you talking of Javascript/vbscript code?
If that is the case, you wont be able to access implicit jsp objects like
Sesssion because
client-side scripts get excuted on client side only. While these objects,
which you are talking of,
are available when the page is executed on server side.

Hope this helps.
Regards,
Sandeep


-Original Message-
From: Francisco Manuel Martínez Suárez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 3:14 PM
Subject: Re: Problemas con la recursividad


Could you pass these objects as arguments inside your recursively function?
I have to do this when I use beans which use session and out objects...

Fran
 

> -Mensaje original-
> De:   Manuel Rodriguez Diaz [SMTP:[EMAIL PROTECTED]]
> Enviado el:   martes 2 de julio de 2002 10:29
> Para: [EMAIL PROTECTED]
> Asunto:   Problemas con la recursividad
> 
> Hi,
> I have write a function inside the <%! %> tags of a JSP page that is
> called recursivelly.
> The fact is that i'm not able to access implicit JSP objects like
> session or out.
> ¿Is that true or am i doing something wrong?
> ¿How can i bypass this problem?
> 
> Thankyou
> 
> ==
> =
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: how to pass current value in function of jsp?

2002-07-03 Thread Sandeep Kumar Agrawal, Noida

Hi!

This task is cerainly feasible, though not advisable to do so.
Performing these kind of checks on client-side means that you need to hold
some data
in your page in form of some variables ( as part of  tag).

So you can first query for all the employee-ids in your jsp page and store
those
employee-ids in an array of hidden variables.
Then you can modify your code as follows:



  function change(){
var value1;
var loopCounter;

// This line will automatically pick up the run-time value
from your text-box
value1=documet.formname.emp_no.value;

for(loopCounter=0; loopCounter<
document.formname.hiddenArrayName.length; loopCounter++)
{
if
(document.formname.hiddenArrayName[loopCounter].value=value1)
{
alert("Employee allready exists");
//write some logic to handle this situation
and exit out of loop from here
}
}
}


This method is advisable only when data is quite less.

But Bhushan is right in saying that it is mostly advisable to go to server
because that strategy is
more efficient.

Hopefully that clears your doubt.

Rg,
Sandeep



Disclaimer:
This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.




-Original Message-
From: Bhushan_Bhangale [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 2:01 PM
Subject: Re: how to pass current value in function of jsp?


No shortcut you have to go serverside to check whether that employee already
exists or not.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 10:27 AM
To: [EMAIL PROTECTED]
Subject: Re: how to pass current value in function of jsp?


Yes bhushan u r right
i did check this today only and got the point
actually i wanted to do something like shortcut so i do not have to submit
my page
but no alternate is there i suppose and i have to go for it.
right?

Thanks
Vaishali
Reliance Ind Ltd
A'bad




  Bhushan_Bhangale
  cc:
  Sent by: A mailing Subject:  Re: how to pass
current value in function of jsp?
  list about Java
  Server Pages
  specification and
  reference
  


  07/02/02 10:34 AM
  Please respond to A
  mailing list about
  Java Server Pages
  specification and
  reference






Hello Vaishali,

I guess you are doing something wrong here. Tell me are you thinking that
when the onBlur event will occur your code will execute the
checkemp(String) method? If yes then you are wrong as the checkemp method
will execute when the JSP will get served. So in the source of generated
html you will see onBlur="change(true/false)" already written there. This
way you can't pass the emp_no value tho that method. To do so you need to
submit the form to serverside.

-Original Message-
From: Vaishali S. Pandya [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 5:01 PM
To: [EMAIL PROTECTED]
Subject: how to pass current value in function of jsp?


<%!
  public static boolean checkemp(String emp){
MyConnection con=new MyConnection();
Statement stmt = null;
ResultSet rs = null;
try{
  stmt = con.getCon(1);
  rs = stmt.executeQuery("select * from hrm_employee_mas
where emp_employee_no = " + emp);
  if (rs.next()){
return (true);
  }
  else{
return (false);
  }
}
catch(Exception e){
  System.out.println(e);
}
return (true);
  }
%>

  function change(res){
if (res==true){
  alert("Employee allready exists");
  document.femp.emp_no.focus();
}




what should i write here ?
i want to pass curren

slightly offtopic

2002-06-27 Thread Sandeep Kumar Agrawal, Noida

Hi All,
I am working over SQL Server7.0 and ASP.
Whenever I open a database connection from ASP using the command

strDBURL = "Driver={SQL Server};Server=;Database=;Uid=sa;Pwd="

Set m_conDB = Server.CreateObject("ADODB.Connection")
m_conDB.Open(strDBURL)

Now if I checks the value of m_conDB.errors.count, it gives me a value 2.
That means it throws 2 errors. These errors are:

1)[Microsoft][ODBC SQL Server Driver][SQL Server]Changed database context to
''.
2) [Microsoft][ODBC SQL Server Driver][SQL Server]Changed language setting
to us_english.

Can anyone please suggest what is the cause of these errors?
If I ignore these errors, program works fine. But I want to know the exact
cause aand significance of these errors?

Any suggestion in this regard is welcome.

Thanks and Regards,
Sandeep



Disclaimer:
This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: mending-error 500

2002-06-27 Thread Sandeep Kumar Agrawal, Noida

hi!

most probably the reason of your problem is that strings are not properly
taken care of in your program.
Modify the line  <%=sel%>> <%=dd%> as follows:

> <%=dd%>

Because the variable d may conatin strings with spaces.
Hope this helps.

Regards,
Sandeep



Disclaimer:
This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.




-Original Message-
From: Vaishali S. Pandya [  <mailto:[EMAIL PROTECTED]>
mailto:[EMAIL PROTECTED]]
Sent: Friday, June 28, 2002 10:19 AM
Subject: mending-error 500


i can't understand this error
u know what?
my jsp was running very nicely and suddenly it did stop to work
i fill a select with my dept_master
the rs fetches some rows and then give me this mending error -500 and
terminate the program
plus not on perticuler row, every time it fetches random no of rows like 5,
10, 12 or n and just stop
no error is there in my code i think
here it is


  style="width=100%" name=dept tabindex=47>


<%
cmd="select * from hrm_dept_master order by dpt_dept_name";
rs1=stmt.executeQuery(cmd);
rs1=stmt.executeQuery(cmd);
while(rs1.next()){
  String d=rs1.getString(1);
  String dd=rs1.getString(2);
  if (d.equals(jdept)){
sel="selected";
  }
  else{
sel="";
  }
  %>
   <%=sel%>> <%=dd%>
  <%
}
rs1.close();

pls can any one help?
Regards
Vaishali
Reliance Ind Ltd
A'bad

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How to redirect JSP to Servlet by clicking button?

2002-06-12 Thread Sandeep Kumar Agrawal, Noida

Hi!!

The solution suggested by Gin is good. Here is one more easy way to do this.
You can place these 3 buttons in 3 different forms. Make these buttons as
"Submit" type. Set the "action" parameter of these forms as per your
relative path of the destination servlet.
e.g.

  value="<%=button1%>"
style="width:200px">



Hope this helps.
Sandeep

Disclaimer:
This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.




-Original Message-
From: Chen, Gin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 8:53 PM
Subject: Re: How to redirect JSP to Servlet by clicking button?


use javascript.
have onclick events in all 3 buttons with different locations as the
parameter to a function call.
use something like window.location = destination for the body of ur
script.
the concept is so easy that i will not include code.
(actually i had a late night and i'm too tired right now to put
code)
this should be enough anyways. you can go to
msdn.microsoft.com/library and look under webdevelopment for more info.
-Tim

-Original Message-
From: Edward [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:40 AM
To: [EMAIL PROTECTED]
Subject: How to redirect JSP to Servlet by clicking button?
Importance: High


   I want to call Servlet from JSP,In JSP,I have three button,named
"button1","button2","button3",for example:
 value="<%=button1%>"
style="width:200px">
 value="<%=button2%>"
style="width:200px">
 value="<%=button3%>"
style="width:200px">
When I click button1 with mouse,I want to redirect to a servlet,it locates:
/servlet/login1;when I click button2 with mouse,I want to redirect to
servlet:/servlets/login2;when I click button3,I want to redirect to
servlet:/webapp/welcome. How to realize this function?
Thanks in advance!
Edward

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: How can I write the result of the request in another window?

2002-06-03 Thread Sandeep Kumar Agrawal, Noida

Hi !!

Here is the solution to your query.
Here are the contents of the file Test.jsp:






function doTest()
{
var vHandle;
vHandle=window.open("");
vHandle.document.writeln("Hello . It is magic");
}











Hope this helps.

Regards,
Sandeep

Disclaimer:
This document is intended for transmission to the named recipient only.  If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.




-Original Message-
From: Brian P Bohnet [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 03, 2002 7:45 PM
Subject: Re: How can I write the result of the request in another
window?


Luca,
My first thought would be to try to include javascript in your response
that
would be called by using ''. This way, in your
servlet you can use any dynamic data you wish to include in the javascript
function that will write to the new window from the existing response.
I have not written code to do it, but if you need some help I may have a
little time to experiment. Let me know.

Brian

Luca Ventura wrote:

> Hello everybody!
>
> I have the following problem with my web application...
>
> I would like to send all the data of a request to a servlet through an
HTML
> form (it can be present in a JSP page) and write the result in another
> window (not that one where the form was displayed), in some words the
things
> I want to do are:
>
> 1)To send my requerst to the servlet through an HTML form
> 2)Read the result of the request
> 3)Open a new window
> 4)Write the result in the new window just opened
>
> I know how to send the HTML form to the servlet but I don't know how I can
> read the result (that can be a string or html code) returned by the
servlet
> and write it in another window:-(
>
> In fact the servlet returns the result string (or html code) through this
> java code:
>
> PrintWriter Out=new PrintWriter(res.getOutputStream());
> res.setContentType("text/html");
> Out.println(risultato);
> Out.close();
>
> In this way the result is displayed in the current window after deleting
the
> old page, but I would like
> the result is written in ANOTHER window: so if something in sending the
form
> goes wrong I can send the form to the servlet a second time without
> inserting the data in the form a second time.
>
> How can I do?
>
> Thank you very much in advance!
>
>   Luca
>
>
===
> 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://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Excel to SQL Server

2001-10-21 Thread Sandeep Kumar Agrawal

Hello friends ,

Have you ever done these things?

1. Suppose you have an Excel File(.xls file) or an .dbf file. Now you need
to read this file and store the data in SQL server
database. I know how to do it visually, using Enterprise Manager utilty
of SQL Server. But I still need to explore how to
do it programmatically in ASP/JSP.

2. Suppose some data is being displayed on a web page( which is an ASP/JSP
page) in the form of a table. Now the user
clicks a button, which stores the data (which is being displayed) in the
form of .xls (i.e. Excel file) or a .csv file?


Even if you done this task using some other database e.g. Oracle or using
JSP/ASP, please do send your suggestions.

Thanks and Regards,
Sandeep

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



How to close

2001-10-17 Thread Sandeep Kumar Agrawal

Hello Friends,

   Sorry, I have a different opinion on this issue. I think that
self.close() and window.close() functions will not able to close
the window, which has been opened as part of a frame. For that you will need
to break frames, if you are trying to close
a window from itself.

I have tested the following code, so can try on at your end too and let me
know if you have any different viewpoint on this matter.

  

function doJob()
{
if (window != top) top.location.href = location.href;
self.close();

}


Regards,
Sandeep



-Original Message-
From: Mendez Yanes JI [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 17, 2001 11:18 AM
Subject: Re: Help on close form


Hi Dick,

If I remember well maybe U can even do it from the same window using

self.close()

Hope it works
Joe

--- Oliver Wood <[EMAIL PROTECTED]> wrote:
> create the window.
>
> var newWin = open.window('link','name','params');
>
> to close this window
>
> newWin.close();
>
> hope this helps
>
> Oli
>
>
>
> --- Dick Wong <[EMAIL PROTECTED]> wrote: > When I
> click the "Search Button" in customer Master
> > form , it will pop up a
> > new windows ( A Frame Window) that allow me to input
> > the customer name and
> > then press the search button and display the result
> > in the lower part of
> > Frame Window.
> > My question is how can I close this frame form when
> > I choose one of the
> > customer in lower part of Frame window.
> >
> > I tried to use window.close() but it had no effect.
> >
> > Please help.
> >
> >
>

===
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://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com



Re: jsp app performance

2001-09-26 Thread Sandeep Kumar Agrawal

Hello Reto,

   I donot know how many of the following  tips you are using right now, but
I am sure that a fresh look at these will
   help you out.

   1. Ensure that you manually free connection objects, when they are no
more needed.
   2. Try to use the concept of caching data in your objects in form of
static member variables. Store these
   objects in Session.
   3. Minimise the no. of database queries. ( as you have said  the site
makes heavy use of the database)
   4. Use stored procedures of database.
   5. Optimize your queries.  Donot use Select * from employeTable. Use
specific column names.
   6. Use indexes in your tables. But use only optimized indexes.
   7. Read the book "Java Design Patterns for better performance and
architecture.

I hope if you look at your application as a critic, keeping in mind the
above points, you will get the purpose solved.

Sandeep


***
Reply to :

hello all,

we build a application with jsp/servlets. the site makes heavy use of the
database through jdbc datasources, that are bound to a jndi context, so the
db shouldn't be a bottleleck. We're using the webserver resin from caucho
tech. the web traffic is not so big (less than 20'000 pageviews per day).
The OS is FreeBSD4.2 on a P-III900/512ram.

>From time to time the (1-5 days) site is slowing down and with 'top' i see
that the java-process(webserver) is taking more than 98% of the CPU. And
there is no free memory left. Restart the webserver is the only possibilty
to get all things work normal.

It worked better when i replaced all strings with StringBuffers / append().
But the problem is still not solved.

Are there any other hints / tips to speed up our application and use the
server memory more efficient.

- should I use scriptles/html in the jsp pages or try to write all the
html-code directly to the JspWriter?
- any other ideas?

thanks for any help.

regards,
reto

===
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: Null Pointer handling in bean

2001-09-24 Thread Sandeep Kumar Agrawal


Hello,

   You can try the following:

<% if( htmlcSession==null or htmlcSession.guiEngine==null or
htmlcSession.guiEngine.pageManager= null
   or   htmlcSession.guiEngine.pageManager.statusPage== null
) { %>



<% } %>

 Now the servlet should check value of "mustReInitialize" parameter
from Request and should forward the request to
 JSP page again after setting the values (using setAttributes()) in
the response.

 Sandeep



-Original Message-
From: Peter Claesson (EUS) [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 21, 2001 7:36 PM
Subject: Null Pointer handling in bean


I have a dilemma. The application I'm working on depends on a poller
mechanism being active on the
client browser. This works fine, even the timeout on the server for
detecting if the poller stops.
The problem arises when the client hits the Browser Stop button. The server
correctly detects this
condition and invalidates the session. However, since the page is still
visible in the client browser,
the user can press a button which posts a form to the server. The action
form, message.jsp,
initializes a bean and tries to access some data. But since the session is
gone, Null Pointer
pop up.

To summarize my question, is there a way to catch the null pointer exception
in the JSP page
and then redirect to another JSP page which correctly can re-initialize the
session?

My action page looks like this.

<%@ page import="com.upfront.htmlc.*"%>
<%@ page import="com.upfront.htmlc.gui.*"%>

<%
StatusPage thisPage = htmlcSession.guiEngine.pageManager.statusPage;
<- NullPointer exception
if( htmlcSession.custMessagingEngine != null )
htmlcSession.custMessagingEngine.processMessagePost( request );
%>



<%=thisPage.getPageDomainScript()%>




<%=thisPage.statusMessage.toHTML()%>



I indicated where the NullPointer occurr.

/Peter

===
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: how to access java classes from jsp

2001-09-19 Thread Sandeep Kumar Agrawal



Hello,
 
Try this
approach.
 
1.Ensure that the
sytem classpath variable is correct and it contains the path upto
'hellopackage' directory, not upto hello
class.
2.. Set the action
of the form.
 
Sandeep
 
 - Original Message -


  
From:
nadia 
To: [EMAIL PROTECTED] 
Sent: Friday, September 14, 2001 12:33
AM
Subject: how to access java classes
from jsp

Hi there all.
I have just started learning jsp and am not
sure how to access a class file from within a jsp page.
I have heard that it should be a Bean and u
access it by doing the following.
class="hellopackage.Hello" /> 
 
My problem is that I have created the following
bean..
package hellopackage;
 
public class Hello{private String
username;
 
public Hello(){   
username=null;}public void setUserName(String
name){username=name;}public String
getUsername(){ return username;}}
and I am trying to access it with the folowing
page..
<%@ page
import="hellopackage.Hello"%>
 
class="hellopackage.Hello" />
 
Hello,User
 
What is your name ?
 
<% if(request.getParamater("username") !=
null){%><%@ include file="response.jsp"
%><% }%>
 
I keep getting the following error
jsp:useBean can't find class
`hellopackage.Hello'
 
I am realy stuck cause how do u let the jsp see
the bean..
I have even tried putting the bean in a jar
file called hellopackage...
Pls help
Thanking you all in
adavance


how to get the URL of previous page

2000-09-25 Thread SANDEEP UPPAL

how do we get URL of previous page

regards,

Sandeep

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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 you use costom tags in jsp.

2000-09-25 Thread SANDEEP UPPAL

it would have been more human of you if you would have given link of that
page where i will get the info rather than a lecture.

chers,

Sandeep
- Original Message -
From: ralhan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 4:47 PM
Subject: Re: how to you use costom tags in jsp.


> hi
> thsi is hieght
> have you just got some new assignment on jsp that you are askign all the
> questions which can be answered ont he sun site very peacefully as well
from
> an y book ( if you care to buy)
> donlt case unnecessary noise on lists
> how to create pleae see tutorial
> advanrtages are to removes the code form the  pages as it is cumbersome to
> have them together
> and also you can change bo with out changing the other sides
> so it lookes neater
> cheers
> ralhan
>
> > -Original Message-
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of SANDEEP UPPAL
> > Sent: Monday, September 25, 2000 4:16 PM
> > To: [EMAIL PROTECTED]
> > Subject: how to you use costom tags in jsp.
> >
> >
> > how to create costum tags with jsp. What are there advantages
> >
> > regards,
> >
> > Sandeep Uppal
> >
> > ==
> > =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.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



how to you use costom tags in jsp.

2000-09-25 Thread SANDEEP UPPAL

how to create costum tags with jsp. What are there advantages

regards,

Sandeep Uppal

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: what is advantage of using useBean tag

2000-09-25 Thread SANDEEP UPPAL

can u explain introspection what is it.

regards,

Sandeep

- Original Message -
From: Rathna <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 2:10 PM
Subject: Re: what is advantage of using useBean tag


> hi sandeep,
>
> There are few advantages by using useBean tag over normal instance,
>
> * scope (page,request,session and application)
> *introspection
>
> with regards,
>rathna.
>
> SANDEEP UPPAL wrote:
>
> > what is advantage of using useBean tag when same thing can be done
without
> > that?
> >
> > regards,
> >
> > Sandeep Uppal
> >
> >
===
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.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: difference between <%!...%> and <%....%>

2000-09-25 Thread SANDEEP UPPAL

can we declare a variable like <% public int = 1;%>

regards,

Sandeep
- Original Message -
From: Rathna <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 2:19 PM
Subject: Re: difference between <%!...%> and <%%>


This <%! ...%> scriptlet is used to define a global functions
and variables, means out side the serivce method.The second
one is to declare the functions and variables inside the service
method ...

hope this helps,

with regards,
   rathna.


SANDEEP UPPAL wrote:

> both <%!...%> and <%.%> can be used for declaring variables.
>
> What is the difference between both and which to use ?
>
> regards,
>
> Sandeep Uppal
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

--
Cheers,
rathna


ø¤°`°¤ø,¸¸¸,ø¤°`°¤ø,¸¸»«¸,ø¤°`°¤ø,¸¸,ø¤°`°¤ø

  P Rathinavel
  Sr.Systems Engineer - eCommerce Division
  Wipro Technologies
  Electronic City
  Bangalore 561229, India
  Tel  : 8520420/416/424/408  Extn : 1313
  E-mail: [EMAIL PROTECTED]
  www.wipro.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: doGet and doPost

2000-09-25 Thread SANDEEP UPPAL

doGet processes HTTP get request in this all the data is passed in header

and doPost HTTP post request in this form data goes in http request body.

regards,

Sandeep
- Original Message -
From: Celal Ceken <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 1:39 PM
Subject: doGet and doPost


> what is the difference between doGet and doPost. Thanks for your help...
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: difference between <%!...%> and <%....%>

2000-09-25 Thread SANDEEP UPPAL

all the processing code we write is in jsp_Service method so how does it
make a difference.

regards,

Sandeep
- Original Message -
From: Shibu Up <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 25, 2000 1:56 PM
Subject: Re: difference between <%!...%> and <%%>


> Hi,
>  becomes a servlet class). <% is for normal local variables  in the
> jsp_Service method.
>
> -Shibu
>
>
>
>
>
> SANDEEP UPPAL <[EMAIL PROTECTED]> on 09/25/2000 02:55:55 PM
>
> Please respond to A mailing list about Java Server Pages specification and
>   reference <[EMAIL PROTECTED]>
>
> To:   [EMAIL PROTECTED]
> cc:(bcc: U P Shibu/LTITL)
>
> Subject:  difference between <%!...%> and <%%>
>
>
>
> both <%!...%> and <%.%> can be used for declaring variables.
>
> What is the difference between both and which to use ?
>
> regards,
>
> Sandeep Uppal
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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



what is advantage of using useBean tag

2000-09-25 Thread SANDEEP UPPAL

what is advantage of using useBean tag when same thing can be done without
that?

regards,

Sandeep Uppal

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

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



difference between <%!...%> and <%....%>

2000-09-25 Thread SANDEEP UPPAL

both <%!...%> and <%.%> can be used for declaring variables.

What is the difference between both and which to use ?

regards,

Sandeep Uppal

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: serving an image from a JSP file with Resin 1.2.b2

2000-09-23 Thread SANDEEP UPPAL

hi,

does that mean we can't use out.print in jsp 1.1

then how are we supposed to replace those statements.

regards,

Sanndeep Uppal

- Original Message -
From: Craig R. McClanahan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 23, 2000 1:33 AM
Subject: Re: serving an image from a JSP file with Resin 1.2.b2


> Matthew Hixson wrote:
>
> > I need to be able to serve up an image to a customer based upon the
branding of
> > their site.  For example, they should get their logo when they ask for
> > logo.gif.  I'm doing this by making the src attribute of the img tag
point them
> > to "imageServer.jsp?name=logo.gif".  This way I can serve up their image
> > without them being able to find out who our other customers are.
> >   In the code below I've tried to remove all newlines because they were
getting
> > inserted into the stream that goes back to the browser and causing the
> > resulting file to appear as something other than a gif image.  Now the
problem
> > is that the data which is sent to the browser is always exactly one byte
larger
> > than the actual file as it sits on the hard drive.  If I use 'lynx -dump
> > http://url/to/imageServer.jsp?name=logo.gif > /tmp/logo.gif' the file
will be
> > one byte larger than it is on the web server.  This extra byte must be
getting
> > appended to the file because the browser will still display the gif
correctly.
> > I think that the JSP server (Resin 1.2.b2) is appending one carriage
return to
> > the end of the file.
> >   I've considered leaving it alone as it appears to be working, but
that's just
> > not my style.
> >   I realize I could write this as a servlet, but I would prefer to use a
JSP.
> > If anyone has any ideas on how I can tell Resin to stop sending that
extra byte
> > I'd really like to hear it.
> >   Thanks,
> > -M@
> >
>
> See the JSP 1.1 spec, section 2.5.4, page 41:
>
> "JSP page authors are prohibited from writing directly to
> either the PrintWriter or OutputStream associated with
> the ServletResponse".
>
> If you want to create dynamic images like this, you need to use a servlet
instead
> of a JSP page.
>
> Craig McClanahan
>
> 
> See you at ApacheCon Europe !
> Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
> Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
> Applications to Tomcat
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: jsp with javabeans, a must?

2000-09-23 Thread SANDEEP UPPAL

no
- Original Message -
From: Chin Sung Kit <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 23, 2000 11:46 AM
Subject: jsp with javabeans, a must?


> hi,
>
> need you opinion, is it a must to use javabeans in jsp?
>
> thanks.
>
> ced
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

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

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



Re: serving an image from a JSP file with Resin 1.2.b2

2000-09-22 Thread SANDEEP UPPAL

does that mean that we can't use out.print in our jsp 1.1?


- Original Message -
From: Craig R. McClanahan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 23, 2000 1:33 AM
Subject: Re: serving an image from a JSP file with Resin 1.2.b2


> Matthew Hixson wrote:
>
> > I need to be able to serve up an image to a customer based upon the
branding of
> > their site.  For example, they should get their logo when they ask for
> > logo.gif.  I'm doing this by making the src attribute of the img tag
point them
> > to "imageServer.jsp?name=logo.gif".  This way I can serve up their image
> > without them being able to find out who our other customers are.
> >   In the code below I've tried to remove all newlines because they were
getting
> > inserted into the stream that goes back to the browser and causing the
> > resulting file to appear as something other than a gif image.  Now the
problem
> > is that the data which is sent to the browser is always exactly one byte
larger
> > than the actual file as it sits on the hard drive.  If I use 'lynx -dump
> > http://url/to/imageServer.jsp?name=logo.gif > /tmp/logo.gif' the file
will be
> > one byte larger than it is on the web server.  This extra byte must be
getting
> > appended to the file because the browser will still display the gif
correctly.
> > I think that the JSP server (Resin 1.2.b2) is appending one carriage
return to
> > the end of the file.
> >   I've considered leaving it alone as it appears to be working, but
that's just
> > not my style.
> >   I realize I could write this as a servlet, but I would prefer to use a
JSP.
> > If anyone has any ideas on how I can tell Resin to stop sending that
extra byte
> > I'd really like to hear it.
> >   Thanks,
> > -M@
> >
>
> See the JSP 1.1 spec, section 2.5.4, page 41:
>
> "JSP page authors are prohibited from writing directly to
> either the PrintWriter or OutputStream associated with
> the ServletResponse".
>
> If you want to create dynamic images like this, you need to use a servlet
instead
> of a JSP page.
>
> Craig McClanahan
>
> 
> See you at ApacheCon Europe !
> Session VS01 (23-Oct 13h00-17h00):  Sun Technical Briefing
> Session T06  (24-Oct 14h00-15h00):  Migrating Apache JServ
> Applications to Tomcat
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.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



question

2000-09-22 Thread SANDEEP UPPAL

what is the difference between


and=20
<%@ include file=3D"relative URL">

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

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

2000-07-26 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

JRun Studio. Its in beta currently. Also Homesite evaluation copy
downloadable from allaire.com

-Original Message-
From: wap@asl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 3:15 AM
To: [EMAIL PROTECTED]
Subject: Development Tool


Hi All,

I just read in some previous mail that JRun has a scripting tool with
debugging facility.

I am operating on NT4, IIS4 with New Atlanta's ServletExec webserver.  Can I
use the same JRun tool with my existing setup?

Is any other tool available to write jsp files having dubugging facility?

Thanx :-) & Regards,

Kaushal

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: Slow JSP or slow JDBC?

2000-07-20 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

I had a similar problem, then realized that it was only happening on
Netscape and in IE it was working fine irrespective of size of the table.

-Original Message-
From: Yan Pei [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 14, 2000 5:34 PM
To: [EMAIL PROTECTED]
Subject: Slow JSP or slow JDBC?


Hello,

I use JDBC in JSP to connect ORACLE database (thin driver). Sometimes, the
page
shows up very slowly, sometimes it does very quickly. The big tables, which
will
be display on the brower, have higher slow possibility than the small
tables. I
don't know what the proplem is. Networking? JSP? JDBC interface? Any
thoughs?
Thank you in advance.

Any helps will be highly appreciated!

Yan

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

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



Connection Pool Implementation using poolman

2000-07-20 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

I am trying to implement Connection Pooling using Poolman for our Intranet
portal. If anyone has experience in implementing it (or some other way) in
JSP please help.

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

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



Re: How to send mail from .jsp with a HTML body?

2000-06-23 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

we have used JavaMail to send mail with HTML body. Check out on sun site.

-Original Message-
From: Hensley, Zachary [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 23, 2000 11:13 AM
To: [EMAIL PROTECTED]
Subject: Re: How to send mail from .jsp with a HTML body?


Taglibs.com did not resolve for me. Is that the right address

-Original Message-
From: Pratik [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 23, 2000 1:16 AM
To: [EMAIL PROTECTED]
Subject: Re: How to send mail from .jsp with a HTML body?


best is to use mail tag from taglibs.com
And set content type to text/html

bye

- Original Message -
From: Patricio Otamendi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 23, 2000 12:51 AM
Subject: How to send mail from .jsp with a HTML body?


> How to send mail from .jsp with a HTML body?
>
> I can just send plain/text mails, but I can´t send mail with HTML body.
> Please help!
> I don't know if I need another package from javax.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

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

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



Need help to implement Tree View in JSP

2000-06-22 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

If anyone has implemented TreeView in JSP for displaying the file structure
(similar to Window Explorer) which allows to add files/folders or knows
about any site which has done it please let me know.

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

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.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: setting the list value to the bean

2000-06-22 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

In the options for the list box, your code will look something like this:

>May


-Original Message-
From: kavitha ramasamy [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 21, 2000 10:56 AM
To: [EMAIL PROTECTED]
Subject: setting the list value to the bean


Hello,

   I have list box in my page. If i choose that value(on click), I need
to call javascript function where I am getting the chosen list field value.

  I need to set the selected list value to the my bean variable in the same
page.

  How can I do this.

Any help,

Kavitha


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: DreamWaver UltraDev

2000-06-19 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

You may also get first error if file size is too large. If so, place some
codes in include files/.js files. Else check for syntax errors.

-Original Message-
From: Efrain Gtz [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 16, 2000 6:02 PM
To: [EMAIL PROTECTED]
Subject: DreamWaver UltraDev


Someone how has made a sucesfully JSP Page with
DB Objects..???
I can make run.. it's mark me an two errors ..

500 Internal Server Error

com.livesoftware.jsp.JSPServlet:

javax.servlet.ServletException:
 JSP Parse error
/article.jsp:
Lexical error at line 53, column 77.  Encountered: "(" (40), after : ""

and

500 Internal Server Error

com.livesoftware.jsp.JSPServlet:

java.lang.NoSuchMethodError: javax.servlet.ServletRequest: method
setAttribu=
te(Ljava/lang/String;Ljava/lang/Object;)V not found



but the ASP with a DB Objects run fine..!!!

Why..???

TIA


Ing. Jose Efrain Gutierrez Cervantes.
IS Programmer Engineer
Information System Department
Corning Cable Systems SA de CV
Phone: + 52 89 210987
Phone: + 52 89 210900 Ext 8448
[EMAIL PROTECTED]
Reynosa Tamaulipas.Mexico

'Resentment is like taking poison and
waiting for the other person to die'
Malachy McCourt

ICQ #2293612
http://efrain.go.to

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

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

2000-06-16 Thread Chaturvedi, Sandeep (GEAE, Foreign National, Mastech)

Use out.println instead of System.out.println

-Original Message-
From: Vinay Kulkarni [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 16, 2000 3:18 PM
To: [EMAIL PROTECTED]
Subject: Need Help Urgent


Hi Guys,

I wma using Websphere & Jsp with beans. I have placed my beans on websphere.
How do I debug my beans. Suppose i give a System.out.println in my beans,
how can i see the message displayed ?

Please can anyone inform me asap.

Regards


Vinay

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



infrastucture requirements for JSP

2000-06-08 Thread Sandeep Devarchetti

Hello Gurus

Can anybody please tell me, where can I get information
about
the infrastucture requirements(Softwares only, not hardware)
for running JSP applications, with or without EJB?

Sandeep

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

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



Re: Urgent HELP!!!

2000-06-06 Thread sandeep

In the first case u must have forget to close one bracket and in other case
u must have mentioned a wrong name to the file.


Bye!
Sandy.

- Original Message -
From: Tarun Dewan <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 06, 2000 2:59 PM
Subject: Urgent HELP!!!


> Hi,
>
> I'm using Java Web Server but when I try to execute my JSP following
errors
> occured :
>
> D:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_alps\_Hello.java:22:
'}'
> expected.
> static char[][] _jspx_html_data = null;
>^
> D:\JavaWebServer2.0\tmpdir\default\pagecompile\jsp\_alps\_Hello.java:20:
> Public class pagecompile.jsp._alps._hello must be defined in a file called
> "_hello.java".
> public class _hello extends HttpJspBase {
>  ^
>
> Any ideas?
>
>
>
>
> Tarun Dewan
> Software Engineer
> Nucleus Software Exports Ltd.
> 33-35, Thyagraj Nagar Market,
> New Delhi - 110003.
> Tel.: 4627552 Ext. 342
> E-Mail : [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



infrastucture requirements

2000-06-05 Thread Sandeep Devarchetti

Hi Gurus,

Can you please tell me, where can I get information about
the infrastucture requirements(Softwares only, not hardware)
for running JSP applications, with or without EJB?

TIA

Sandeep

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

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

2000-06-01 Thread Sandeep Yarramreddy

Brad,

Cookies are sent as part of the header. So if your
cookie is being set after some output has been written
then the cookie may not be sent. You probably want
to do your cookie processing at the beginning of your page.
Hope this helps.

Thanks.
Sandeep.

Brad Miley wrote:
>
> I have a sign in form whose action is a jsp page named action.jsp
> In action.jsp I want to create a cookie, that stores the user's name and
> then have the user go to a page that says Welcome "so and so"
> The cookie is not being created though. Does anyone know what the problem
> could be? Thank you
> in action.jsp:
>
> user.setLoggedIn( true );
> Cookie id = new Cookie("name", "test");
> id.setMaxAge( 7 * 24 * 60 * 60 );
> id.setVersion(0);
> id.setSecure( false );
> id.setComment( "This cookie is used to remember your name" );
> response.addCookie( id );
> %><%
>
> 
> 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: Calling Stored Procedures in Oracle

2000-05-05 Thread Sandeep Yarramreddy

jose,

you sure can. call them using jdbc.

Sandeep.

Jose Castro wrote:

> Does anyone knows if it is possible to call Stored Procedures with JSP's.
>
> I'm using Stored Procedures in Oracle, and some of them return values, but
> another ones don't.
>
> Thanks in advance,
> José Castro
>
> ===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: Question about Cookies in jsp pages.

2000-04-21 Thread Sandeep Yarramreddy

Venkat,

I am trying to get the domain name and not the host name.
I already know the host name. I looked up the URL class
and i dont see any method for getting the domain name.

Thanks.
Sandeep.

Venkat Kethababoyina wrote:
>
> Sandeep,
>
> You should be able to get host and domain names from
> java.net.URL class.
>
>  Check out
>
> http://www.rfc-editor.org/rfc/rfc1738.txt
> for a complete description of the syntax for various
> schemes.
>
> hope it helps,
> Venkat
>
> --- Sandeep Yarramreddy <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > I have a couple of questions about cookies in jsp
> > pages.
> >
> > 1. When is the cookie flushed from the server to the
> > client browser.
> > I think it would be part of the header. I have
> > written a jsp page
> > which generates around 40k html file and i am trying
> > to set some
> > cookie towards the end of jsp page. This seems to
> > have no effect.
> > The cookie is not sent to the browser. I tried
> > increasing the
> > page buffer size to 256Kb, but it did not help.
> > is there something that needs to be done.
> >
> > 2. In general how is the domain of the webserver
> > determined.
> > One way might be to take the domain upto 2 levels
> > from the
> > host name, but what happens if the domain ends with
> > country
> > codes like say .us .uk etc. The host name would be
> > something
> > like xx.yy.co.uk, in this case we would need to take
> > the
> > domain upto 3 levels. Is there a generic method for
> > this.
> >
> > Thanks in advance.
> >
> > Regards,
> > Sandeep.
> >
> >
> ===
> > To unsubscribe: mailto [EMAIL PROTECTED] with
> > body: "signoff JSP-INTEREST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.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 online invitations with Yahoo! Invites.
> http://invites.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



Question about Cookies in jsp pages.

2000-04-21 Thread Sandeep Yarramreddy

Hi,

I have a couple of questions about cookies in jsp pages.

1. When is the cookie flushed from the server to the client browser.
I think it would be part of the header. I have written a jsp page
which generates around 40k html file and i am trying to set some
cookie towards the end of jsp page. This seems to have no effect.
The cookie is not sent to the browser. I tried increasing the
page buffer size to 256Kb, but it did not help.
is there something that needs to be done.

2. In general how is the domain of the webserver determined.
One way might be to take the domain upto 2 levels from the
host name, but what happens if the domain ends with country
codes like say .us .uk etc. The host name would be something
like xx.yy.co.uk, in this case we would need to take the
domain upto 3 levels. Is there a generic method for this.

Thanks in advance.

Regards,
Sandeep.

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

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



Re: Tomcat: The Emperor's New Clothes?

2000-02-19 Thread C_Sethi, Sandeep

that's not platform independence. is it ?

> -Original Message-
> From: Matt Halpin [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, February 15, 2000 4:01 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: Tomcat: The Emperor's New Clothes?
>
> David,
> I had a similar problem with the taglib examples, although I
> received a different error message.  What I did was to download the source
> for tomcat and recompile it with the java compiler I had installed.  After
> that the taglib examples worked fine
>
> Regards,
> Matt
>
> -Original Message-
> From: David Geary [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 15, 2000 12:22 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat: The Emperor's New Clothes?
>
>
> I've been working with the Resin server, which I have found to be quite
> reliable. I have also had mostly positive experiences working with the
> Orion server. Tomcat however, is a different story:
>
> 1. Tomcat's own servlet examples do not work. Every example I try gives
> me a 404 or 500 error.
>
> 2. Tomcat's JSP examples work, except for the JSP-Servlet-JSP example,
> which results in a 404 error. Also, the simple custom tag example
> doesn't work either; that results in a 500 error.
>
> 3. My own JSP tags don't work either. For those I get the following
> error:
>
> Error: 500
>
> Internal Servlet Error:
>
> org.apache.jasper.JasperException: Unable to open taglibrary taglib.tld
> : Parse Error in the tag library descriptor: Relative URI
> "web-jsptaglib_1_1.dtd"; can not be resolved without a document URI. at
> org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseE
> ve
> ntListener.java,
> Compiled Code) at
> org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingLi
> st
> ener.java:110)
> at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java,
> Compiled Code) ...
>
> Can anyone shed some light on these problems? I have been able to get
> the servlet examples to work by editing the server.xml file and adding
> the appropriate tags, but it seems ridiculous that one should have to
> edit configuration files just to get tomcat's own examples to work. I
> have found no solution for problems 2 and 3 listed above.
>
> Thanks,
>
>
> david
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

===
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: new comer for JSP

2000-02-10 Thread C_Sethi, Sandeep

I'm exploring the same too.
The people on this list, helped me get started

Here's what one of them (Cristi) had to say -
To get started I downloaded the Tomcat release from java.sun.com ( and of
course any other files related to it , i.e. help files, tutorials ).
I extracted the files from the zip I downloaded on my hard drive and there
was a
readme file that told me how to get started. There is a server that I
started up
with startup.bat and then in a browser window at address I wrote :
http://127.0.0.1/ and I got a page with all sort of examples and stuff.
I work on NT and I have the Microsoft Peer Web Server installed as an active
service.




> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, February 10, 2000 3:28 AM
> To:   [EMAIL PROTECTED]
> Subject:  new comer for JSP
>
> Hi,
> I am a new comer for JSP, but I have many experience for ASP.
> I need to known that how to buld the development environment for JSP,
> include the web server, tool kits, how to test JSP.
> grace

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



rookie question.

2000-02-03 Thread C_Sethi, Sandeep

Hey List-o-rama !

Got a sec. for a rookie ?

Out of curiousity, I'd like to port some of our applications
(WindowsNT/IIS/ASP/MTS/COM) to either:
- WindowsNT/IIS/JSP
or
- Linux/JSP
and see how they work.


* I'm stuck where I don't quite understand what software gets me started
  (I've got a Windows NT machine running IIS. I've installed Java2 on
it)
   What next ? How does my IIS server understand and interpret JSP files?


*  What do I need to create beans (or servlets ?)

* And while we're at it, any suggestions for a good IDE for this platform ?


thanks,
Sunny.

===
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: Question Regarding HttpSessionBindingListener.

1999-11-22 Thread Sandeep Yarramreddy

Thanks all for the replies.

Sandeep.


- Original Message -
From: Jeffrey DeLeo <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 22, 1999 6:35 PM
Subject: Re: Question Regarding HttpSessionBindingListener.


> file://Define a listener like this:
>
> class CustomBindingListener implements HttpSessionBindingListener {
>
>   public CustomBindingListener() {
>   }
>
> /** Called when bound to a new session. Creates and stores a database
> connection.
>  */
>   public void valueBound(HttpSessionBindingEvent event) {
>   System.out.println("BOUND as " + event.getName() + " from " +
> event.getSession().getId());
>   }
>
> /** Called when a session is invalidated. Closes the stored database
> connection.
>  */
>   public void valueUnbound(HttpSessionBindingEvent event) {
>   System.out.println("UNBOUND as " + event.getName() + " from " +
> event.getSession().getId());
>
>   }
> }
>
> file://Use it like this:
> HttpSession session;
>
> session.putValue("bindings.listener", new CustomBindingListener());
>
>
> At 05:00 PM 11/22/99 -0800, Sandeep Yarramreddy wrote:
> >hi,
> >has anyone used HttpSessionBindingListener class. I do not see any
> >examples of
> >its usage in the tutorial on suns web site. can some one please show an
> >example of how to use it.
>
>
===
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>

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



Question Regarding HttpSessionBindingListener.

1999-11-22 Thread Sandeep Yarramreddy

hi,
has anyone used HttpSessionBindingListener class. I do not see any
examples of
its usage in the tutorial on suns web site. can some one please show an
example of how to use it.

Thanks in advance.
Sandeep.

===
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: Question on jsp:forward.

1999-01-16 Thread Sandeep Yarramreddy

hi,
that is exactly what i quoted to my colleague. though he states that
"Though the JSP spec is definitive, the spec it references is not."
The current jsp engine(Oracle JSP engine) we have does not supports this
and i
am not sure if the jsp engine with Java Web Server supports it??

Thanks.
Sandeep.


"Craig R. McClanahan" wrote:
>
> Sandeep Yarramreddy wrote:
>
> > hi,
> > i have a question on jsp:forward.
> > Does the jsp 1.0 spec say that the request parameters are carried on
> > from one
> > page to another when a jsp:forward is invoked.
> > for ex.
> > page1.jsp  there is some form. action sends it to page2.jsp.
> > in page2.jsp you forward to page3.jsp. so in page3.jsp can i look
> > up the parameters defined in page1.jsp. my understanding of
> > the spec says that it does, but my colleague says the spec
> > does not. Can somebody please clarify.
> >
>
> For servlets, the 2.2pr2 spec is not incredibly clear on this point, but my
> interpretation of Section 8.1.1 is that the original request parameters are
> included.  You are allowed to add additional ones by including them in the string
> you pass to getRequestDispatcher.
>
> For JSP, the 1.1 spec is quite a bit more clear, in Section 2.13.6 which discusses
> :
>
> When doing jsp:include or jsp:forward, the included
> page or forwarded page will see the original request
> object, with the original parameters augmented with
> the new parameters ...
>
> in other words, the original parameters are still defined and visible in the
> forwarded-to page.
>
> >
> > Thanks.
> > Sandeep.
> >
>
> Craig McClanahan

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



Question on jsp:forward.

1999-01-16 Thread Sandeep Yarramreddy

hi,
i have a question on jsp:forward.
Does the jsp 1.0 spec say that the request parameters are carried on
from one
page to another when a jsp:forward is invoked.
for ex.
page1.jsp  there is some form. action sends it to page2.jsp.
in page2.jsp you forward to page3.jsp. so in page3.jsp can i look
up the parameters defined in page1.jsp. my understanding of
the spec says that it does, but my colleague says the spec
does not. Can somebody please clarify.

Thanks.
Sandeep.

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