Re: IDE Comparing JSP

2002-08-11 Thread Kesavanarayanan, Ramesh (Cognizant)

try ultraedit


Regards

Ramesh Kesavanarayanan
*[EMAIL PROTECTED]




> -Original Message-
> From: techhead4life [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, August 09, 2002 11:56 PM
> To:   [EMAIL PROTECTED]
> Subject:  IDE Comparing JSP
>
> Is there an IDE or similar product that lets you compare 2 jsp documents
> to
> see what coding changes are made, similar feature in some cvs systems~
>
> ==
> =
> 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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: "+" sign in query not working

2002-08-12 Thread Kesavanarayanan, Ramesh (Cognizant)

even then donot try to use
request.sendRedirect.
try to use RequestDispatcher.forward("jsp page");

If you are using sendRedirect it creates overhead if that called page
redirects again to calling page.Its like looping back.
Also when ever you are using redirect try to use URLEncoder and then send it
to the calling page. This will reduce max number of errors in the url.
Hope you can get it.
anyway keep the good work going. BTW did you tell srini the medicine for
back pain  just kidding.

Regards

Ramesh Kesavanarayanan
*[EMAIL PROTECTED]




> -Original Message-
> From: Vaishali S. Pandya [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, August 13, 2002 11:18 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: "+" sign in query not working
>
> THANK YOU VERY MUCH
> IT'S WORKING NOW
>
> THIS IS IN REPORT.JSP
> -
> function myreport(){
>   qry='select emp_employee_no,emp_blood_group from hrm_employee_mas
> where emp_blood_group in("O+")';
>   document.frm1.finalqry.value=qry;
>   document.frm1.target="_new";
>   document.frm1.method="post";
>   document.frm1.submit();
> }
>
> 
> <%
>   String fqry=request.getParameter("finalqry");
>   if (fqry==null || fqry.length()==0){
> fqry="";
>   }
>   else
>   {
> response.sendRedirect("crrep.jsp");
>   }
> %>
>
> THIS IS IN CRREP.JSP
> -
> String qry = request.getParameter("finalqry");
> out.println(qry);
>
> IT SHOWS ME "O+" HERE WHICH WAS "O " BEFORE
>
> THANK YOU
>
>
>
>
>   "Kesavanarayanan,
>   Ramesh   To:
> "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>   (Cognizant)" cc:
>   <[EMAIL PROTECTED]Subject:  RE: "+" sign in
> query not working
>   izant.com>
>
>   08/13/02 10:34 AM
>
>
>
>
>
>
> got it. + symbol in url means that it is a way of appending the query
> parameter. so in your case what ever comes after the + symbol will be
> treated as a parameter name.
> try to pass this as a hidden variable and then check if it works and let
> me
> know after that
>
>
> Regards
>
> Ramesh Kesavanarayanan
> *[EMAIL PROTECTED]
>
>
>
>
> > -Original Message-
> > From: Vaishali S. Pandya [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, August 13, 2002 10:38 AM
> > To: [EMAIL PROTECTED]
> > Subject:  Re: "+" sign in query not working
> >
> > from report.jsp I sendRedirect("crrep.jsp")
> > in crrep,jsp I try to getParameter("finalqry")
> > finalqry is a hidden field in report.jsp
> > here the problem is full finalqry it shows in URL [crrep.jsp?(HERE)]
> > I DON'T KNOW WHY THIS HAPPENING
> > I don't pass it with crrep.jsp?..
> > and the problem I think is + sign has it's special meaning in URL
> > so "O+" in finalqry becomes "O "
> > am i right here?
> > what to do ?
> > pls correct me if i am wrong somewhere.
> >
> >
> >
> >
> >   "Kesavanarayanan,
> >   Ramesh   To:
> > "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> >   (Cognizant)" cc:
> >   <[EMAIL PROTECTED]Subject:  RE: "+" sign in
> > query not working
> >   izant.com>
> >
> >   08/12/02 05:33 PM
> >
> >
> >
> >
> >
> >
> > are you working in oracle?
> >
> >
> > Regards
> >
> > Ramesh Kesavanarayanan
> > *[EMAIL PROTECTED]
> >
> >
> >
> >
> > > -Original Message-
> > > From: sreenath.v [SMTP:[EMAIL PROTECTED]]
> > > Sent: Monday, August 12, 2002 5:50 PM
> > > To: [EMAIL PROTECTED]
> > > Subject:  Re: "+" sign in query not working
> > >
> > > hoy madam where were u for long time !
> > > i had asked u to send me th treatment for back pain !
> > > can u send it to me !
> > >
> > >
> > > - Original Message -
> > > From: "Vaishali S. Pandya" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Monday, August 12, 2002 5:06 PM
> > > Subject: "+" sign in query not working
> > >
> > >
> > > > hi friends
> > > > i have a trouble in my query
> > > >
> > > > Select * from EM
> > > > Where blood_grp = "O-"
> > > >
> > > > it gives me proper output all rows having blood group "O-"
> > > >
> > > > but blood_grp="O+"
> > > > is not working.
> > > > same for "A-", "B-" and "AB-" is working fine
> > > > and "A+", "B+" and "AB+" is not working at all and returns zero
> number
> > > of
> > > > rows
> > > > why it is there?
> > > > + sign have any meaning in qry?
> > > > here this query is working fine backend side if i fier it directly
> on
> > > > database.
> > > >
> > > > Thanks in advance
> > > > Vaishali
> > > >
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "s

[no subject]

2002-08-20 Thread Kesavanarayanan, Ramesh (Cognizant)

Hi all,

 I have j2sdk2.1 in my machine. how will i compile a jsp page. I have stored
the jsp page under webpages\web-inf\servlets.

 let me know your comments please.


Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]





This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: JavaMail

2002-08-20 Thread Kesavanarayanan, Ramesh (Cognizant)

you can download mail.jar and activation.jar and set it inyour classpath.
then you can start using javamail.
you can get many smaple programs from sun site.

Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]




-Original Message-
From: Jan Arenö [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 2:09 PM
To: [EMAIL PROTECTED]
Subject: SV: JavaMail


I don't know. I took the code from a JavaGuru answer... that's all I know...
It worked and then I didn't have any reason to change it...

Is JavaMail API something I need to install or is it part of the default
installation?
Please send me some tips on the API

//Jan

-Ursprungligt meddelande-
Från: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]]För Emmanuel Eze
Skickat: den 20 augusti 2002 09:33
Till: [EMAIL PROTECTED]
Ämne: Re: JavaMail


why don't u use JavaMail API?

-Original Message-
From: Jan Arenö [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 10:07 AM
To: [EMAIL PROTECTED]
Subject: JavaMail


Hi

I have a function that sends a JavaMail.

(import sun.net.smtp.SmtpClient;)

   SmtpClient client = new SmtpClient(mailServer);
   client.from(from);
   client.to(to);
   PrintStream message = client.startMessage();
   message.println("To: " + to);
   message.println("Subject: " + subject);
   message.println(mymessage);
   message.println();
   message.println();
   client.closeServer();

But since I am suppost to use our SmtpServer and out clients mailadress,
this is a problem. My SMTPserver don't allow anyone to use it to send a
email, only the ones that have an account.
What I want to do is to either fix so I can email from the right email OR
add an replyadress. How do I do any of this?

// Jan

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: moving of file

2002-08-20 Thread Kesavanarayanan, Ramesh (Cognizant)

You can use ANT.


Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]




-Original Message-
From: RAJESH SINGHANIA [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 2:50 PM
To: [EMAIL PROTECTED]
Subject: moving of file


hello all,

currently i am facing one problem of moving a file from one directory to the
other directory. I have used java.io package for moving a file but by using
this performance is very low.

so, is their any other way of moving a file from java program.

please help me

regards,

rajesh







-
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: moving of file

2002-08-20 Thread Kesavanarayanan, Ramesh (Cognizant)

Try robocopy.


Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]


-Original Message-
From: RAJESH SINGHANIA [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 2:50 PM
To: [EMAIL PROTECTED]
Subject: moving of file


hello all,

currently i am facing one problem of moving a file from one directory to the
other directory. I have used java.io package for moving a file but by using
this performance is very low.

so, is their any other way of moving a file from java program.

please help me

regards,

rajesh







-
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: problem in jsp page rendering

2002-08-26 Thread Kesavanarayanan, Ramesh (Cognizant)


It may be because of the network you are tyring to access. send in the code
and we check in our local environment and let you know

Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]





-Original Message-
From: Narayanan, Prashanth (MED, TCS)
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 1:27 AM
To: [EMAIL PROTECTED]
Subject: problem in jsp page rendering


hello,
  one of the pages iam trying to render comes up blank on the browser
and i can see that the html source is not complete but chopped off
halfway through an innocent looking alert statement in a javascript.
have any you had this problem before and could you offer suggestions as
to why the complete html (which is definitely created because i had a
few System.outs that proved the entire page was being created) is not
being sent to the browser but gets chopped off after exactly a specific
number of characters. (removing some lines at the top of the jsp allows
more html from below to be sent to the browser).
  thanks!
  prash.

~~~
Prashanth Narayanan
Day: 262.544.3777

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



caching images

2002-08-26 Thread Kesavanarayanan, Ramesh (Cognizant)

Hi all,

 In my website i have so many images and so it takes time for me to load all
the images each and every time from the server. Is there a way i can cache
these images so that it saves lot of time for me


Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]





This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



MIME Type for Outlook Item Template (.oft) file

2002-08-26 Thread Kesavanarayanan, Ramesh (Cognizant)


Hi,

Any idea what is the registered mime type for Outlook Item Template (.oft)
file.
We are running Jrun Server and need to download a .oft file through a hyper
link.

When ever I click on the hyper link, the file gets opened through the
browser instead of Outlook.

Thanks in advance,

Ramesh Kesavanarayanan



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: Monitoring Tomcat.

2002-08-30 Thread Kesavanarayanan, Ramesh (Cognizant)

Try using Jprobe..


??Ramesh Kesavanarayanan
 ?[EMAIL PROTECTED]
  

 -Original Message-
From:   Carlos Vicente [mailto:[EMAIL PROTECTED]] 
Sent:   Friday, August 30, 2002 4:19 PM
To: [EMAIL PROTECTED]
Subject:Monitoring Tomcat.

In my enterprise we are considerated to use Tomcat as Servlet Engine in many
proyects. The main lack of the tomcat (in my opinion) is that it don´t have
a system in order to monitor the activity (num used threads, memory
allocation). Anybody knows some tool in order to monitor it. The memory
isn´t problem because the jvm has methos to calculate. The mainly issue are
the threads. I used weblogic in another projects and it has nice tools that
monitor the number of threads busy.

Any clue?
Carlos Vicente
Dirección de Operaciones
--
Ifigenia Plus. Terra Networks S.A.
www.ifigenia.es
Pza. Sta. María Torres Acosta
Madrid, España
Tel. (34)91-594 76 00
Fax. (34)91-594 76 39

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



sessionBinding Event

2002-09-02 Thread Kesavanarayanan, Ramesh (Cognizant)

Hi all,

Somebody was asking about how to capture the sessionbindingevent and get
notified.

Here is the sample code for that. HTH

I am using jsdk2.1 so commented setAttribute()
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class SessionItemNotification extends HttpServlet
{
  public void doGet(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException
  {
HttpSession session = req.getSession();

   // session.setAttribute("cone", new KnowAllItem("snake eyes") );
session.putValue("cone",new KnowAllItem("snake Eyes"));
   // session.removeAttribute("cone");
  session.removeValue("cone");

res.getWriter().println( "check your console..." );
  }
}

/**
 * By implementing HttpSessionBindingListener, KnowAllItem objects get
 * informed when they are added and/or removed from a servlet session
 *
 * Also, remember to make you session items serializable
 */
class KnowAllItem implements HttpSessionBindingListener, Serializable
{
  private String id;

  public KnowAllItem(String theId)
  {
id = theId;
  }

  public void valueBound(HttpSessionBindingEvent evt)
  {
System.out.println( "added KnowAllItem to session -> " + dump(evt) );
  }

  public void valueUnbound(HttpSessionBindingEvent evt)
  {
System.out.println( "removed KnowAllItem from session -> " + dump(evt)
);
  }

  private String dump(HttpSessionBindingEvent evt)
  {
return "\n attribute name: " + evt.getName() + "\n session: " +
evt.getSession() +
//"\n attribute value :"+ evt.getValue() ;
  }

  public String toString()
  {
return id;
  }
}


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



newbie question

2002-09-04 Thread Kesavanarayanan, Ramesh (Cognizant)

Hi all,

I create a URL object and URLConnection objects. But when I opent he
connection, the site presented in URL object asks me for userid and
password. Is there any way I can give the user name and password also while
creating the URL object??/

Regards

RameshKesavanarayanan
[EMAIL PROTECTED] 



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: newbie question

2002-09-04 Thread Kesavanarayanan, Ramesh (Cognizant)

No I get these messages in the error messages.


??Ramesh Kesavanarayanan
 ?[EMAIL PROTECTED]

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 05, 2002 7:09 AM
To: [EMAIL PROTECTED]
Subject: Re: newbie question

Hi,

When you entered the site, was a window asking userid and password popped
up?

so, how about using java.net.Authenticator class?

- Original Message -
From: "Kesavanarayanan, Ramesh (Cognizant)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 7:11 PM
Subject: newbie question


> Hi all,
>
> I create a URL object and URLConnection objects. But when I opent he
> connection, the site presented in URL object asks me for userid and
> password. Is there any way I can give the user name and password also
while
> creating the URL object??/
>
> Regards
>
> RameshKesavanarayanan
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>
>
Nrzf%ຊlz젻j灥w(
%#䜠51$Ţb-٨b-ᳮ.&⁥+anrIH牵
LDDI0D荓J^í½©,rR?䤠^顶   jmì ¶j!ᲊڲ o㲘
mசXmͫ   o鮇nr?젎}ᴪia桳
0z^á¥­í¢Š?‬㲗ڪ;)i畣0祴8.(帛ګu਍cm
#'^&


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: Restricting direct access of jsp's

2002-09-08 Thread Kesavanarayanan, Ramesh (Cognizant)

You can use JAAS or implement Java Security.


??Ramesh Kesavanarayanan
 ?[EMAIL PROTECTED]
  Anger results in delusion, delusion leads to loss in memory,
  memory loss leads to knowledge loss, If knowledge is lost
   you perish

 -Original Message-
From:   Rahul [mailto:[EMAIL PROTECTED]]
Sent:   Monday, September 09, 2002 11:36 AM
To: [EMAIL PROTECTED]
Subject:Restricting direct access of jsp's
Importance: High

Hi,

We are using MVC architecture in our project with j2ee 1.2.
We have a Front Controller which is the only access points for various
modules.
This front controller performs all the authentication and authorization
checks.
If the user is authorized it gives access to the requested resource (lets
say a jsp).

Since there are no authentication/authorization checks in the jsp, anybody
who somehow comes to know of the url of a jsp can access the jsp.

Is there anyway (preferably declarative) to make the jsp's inaccessible when
accessed directly.
They should ofcourse still work when request is forwarded from the
controller servlet.


Thanks & Regards
Rahul

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: JDBC driver for SQL Server 7.0

2002-09-11 Thread Kesavanarayanan, Ramesh (Cognizant)

Try to search n google.


??Ramesh Kesavanarayanan
 ?[EMAIL PROTECTED]
  Anger results in delusion, delusion leads to loss in memory,
  memory loss leads to knowledge loss, If knowledge is lost
   you perish

 -Original Message-
From:   Lorena Carlo [mailto:[EMAIL PROTECTED]]
Sent:   Tuesday, September 10, 2002 6:09 AM
To: [EMAIL PROTECTED]
Subject:JDBC driver for SQL Server 7.0

Hello Everybody,

Can somebody tell me where can I find the JDBC driver for SQL Server 7.0.

Thanks in advance.

Lorena Carlo

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com




Re: Off Topic - forum for DHTML/ JavaScript

2002-09-17 Thread Kesavanarayanan, Ramesh (Cognizant)

check for the website javascript.internet.com or google


Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]




-Original Message-
From: Aruniima Chakrabarti
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 6:20 PM
To: [EMAIL PROTECTED]
Subject: Off Topic - forum for DHTML/ JavaScript


Hi all,
I am stuck on some JavaScript, DHTML - Behavior problems... Is there any
email forums where I could write to...
Thanks In advance

Regards,
aruniima




This message contains privileged and confidential information and is
intended only for the individual named. If you are not the intended
recepient you should not disseminate, distribute, store, print, copy or
deliver this message. Please notify the sender immediately by e-mail if you
have received this e-mail by mistake and immediately delete this e-mail from
your system.


E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses. The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission.  If verification is required
please request a hard-copy version.


--

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: File upload

2002-09-18 Thread Kesavanarayanan, Ramesh (Cognizant)

for file uploading you can take a look at oreily's servlet programming. They
use HttpMessage class . That works very fine.


Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]




-Original Message-
From: Tiago Nodari [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 18, 2002 11:45 PM
To: [EMAIL PROTECTED]
Subject: Re: File upload


 I never had to code it I always used code that was already made,
lot faster...

 I am using http://jakarta.apache.org/commons/sandbox/fileupload/
 which has the src so you can look at it...

 there is also:
 http://www.jspsmart.com/

 and at http://java.isavvix.com/codeexchange.jsp there is one or
two servlets that do the trick


At 04:37 PM 9/18/2002 +0100, you wrote:
>Hello everybody!
>  I'm trying to create a servlet that handles a form via POST with several
>fields: 3 of them TEXT and the other one FILE. So I have to handle the file
>upload in it. I've tried it using an example in www.onjava.com/lpt/a/745,
>but it doesn't work correctly. I'd like to do it via a bean, and not using
a
>library like O'reilly. Anybody can provide me some code to do this, please?
>
>Thanks in advance.
>
>Regards
>   Abel Segador
>
>===
>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

cya,

Tiago Nodari
www.nodari.org

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



generator for JSP

2002-09-24 Thread Kesavanarayanan, Ramesh (Cognizant)

Hi all,

 In my application, I want to generate the jsp page automatically. Like I
have different entities say "student" , "employee".
Each entity will have different but definite set of jsp pages. Like for
"employee" we will have one jsp page for
1)  Create
2)  Search
3)  Modify
The same thing will go for "student". For each of these jsp pages we will be
having a template.

What I planned is
1)  give a properties file which will have all the attributes for HTML
tags like table width , height, colspan etc.,
2)  Label names
3)  Hidden variables
4)  Text Fields
5)  Some hidden variables.


What I wish to know is whether this is a good design. Also for select boxes
I plan to invoke a java bean which will speak with the DB and load the
option values.

I will also give a plugin which the user will modify with the java code in
it.

My client says that they will runt he generator(a java code) and it will
develop this jsp which they might modify later.

Kindly let me know the pros and cons of using this.


Regards

Ramesh Kesavanarayanan
 *   [EMAIL PROTECTED]
 * +91-44- 811 3063 ext 2252


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com




** Message from InterScan E-Mail VirusWall NT **

** No virus found in attached file InterScan_Disclaimer.txt

No Virus detected in the attached file(s).
* End of message ***


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. Any unauthorised review, use, disclosure, 
dissemination, forwarding, printing or copying of this email or any action taken in 
reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com



Re: displaying JAPANESE characters

2002-09-27 Thread Kesavanarayanan, Ramesh (Cognizant)

May be you can change your regional settings.


 -Original Message-
From:   randie ursal [mailto:[EMAIL PROTECTED]]
Sent:   Friday, September 27, 2002 1:55 PM
To: [EMAIL PROTECTED]
Subject:displaying JAPANESE characters

hi list,

   i'm a bit confuse here.

   i have my web aplication run on Solaris 8.0 (English Version OS)
machine, in my application i tried to
   display Japanese characters as data that was generated dynamically.
This works fine, i just place
"charset = shift_jis" on my html tag.

   but, when i deploy it to Solaris 8.0 (Japanese Version OS) my
Japanese characters turn into garbage like
   it displays only like this "".

   does somebody expercience like this problem?

   im using Tomcat 4.0 and jdk1.3.1

thanks

  randie

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


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



need clarification

2002-10-17 Thread Kesavanarayanan, Ramesh (Cognizant)

Hi all,
Forgive me if this is off-topic
 In my application I have the following scenario. Let me know the fine
approach tothis situation.

Scenario - 1
---
1)  The user selects a file consisting of various auto rates.
2)  The system then reads this file (.csv , .xls) andfor each of the
rows in the file, the system validates certain rules.
3)  The system then displays the whole file in the browser in table
format.
4)  All those rows which do not satisfy the rules will be highlighjted
whereas the other rows will be displayed as such.
5)  The user can select one of the row and verify the autorates.

Scenario -2
I have a search screen. The user inputs the search criteria and clicks
Search button. The system retrieves the rows and displays them in multiple
pages 10 rows in each page.

The problem is that each row in a single page has 5 columns. Each column has
2 images one each for ascending and descending.
Default the order is Ascending.
When the user clicks on the descending button of a particular column in  a
page, I need to display the whole page in descending order. This has to be
done for all the columns in all the rows of all the pages.

My problem is basically about the performance issue. My client wants the
whole thing to be displayed in 2 minutes.

Kindly let me know your esteemed suggestions and approach to fit this

Regards

Ramesh Kesavanarayanan


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



stored procs and CachedRowSet

2002-10-25 Thread Kesavanarayanan, Ramesh (Cognizant)
Hi all,

 i have a query based on Stored procs. I also have this implementation based
on CachedRowSet. I just want to know which one of them will be faster.


 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



jsp : include problem

2002-11-06 Thread Kesavanarayanan, Ramesh (Cognizant)
Hi all,

 when i include a page in my jsp

   


i am getting unterminated jsp:include tag error.

i am using VAJ4.0 with jsp1.0 compiler.

any idea why htis happens???

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: How should i proceed with

2002-11-27 Thread Kesavanarayanan, Ramesh (Cognizant)
you can have a boolean value at the DB which will be default to zero. once
he is logged in make that to 1.
when he logs out make that to zero again. in this way if he logs in again
you can check the value in the DB and prevent him.

HTH

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]



-Original Message-
From: V.T.R.Ravi Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: How should i proceed with


Hi ,

I have a situtation where in i have to restrict the access of an user in
such way that the user has just one session . that is if he is logged at
present then don't let him log again from any other pc until he logs of from
the previous window ..

How should i proceed with to achieve this

V.T.R.Ravi Kumar
Engineer,CCX,BHEL, Haridwar
Phone : Office-91-0133-485260
 Res  -91-0133-426121
-

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

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: Can i use session object from jsp in java class

2002-11-28 Thread Kesavanarayanan, Ramesh (Cognizant)
why do you want to pass the session object. each session object will have a
session id. you can get this in jsp by simply invoking session object
but there is no reason why you should set this to a java class.  think can
help you if you are clear in your reqr..

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]



-Original Message-
From: mahesh.kagalkar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: Can i use session object from jsp in java class


Hi
Can i pass the seeion object from jsp page to  a java class and
in java class can i use that session object as in jsp page

give me the details

Thanks you

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

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: How should i proceed with

2002-11-28 Thread Kesavanarayanan, Ramesh (Cognizant)
and this timeout seconds you can store it in a property file to read from
your application.


 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]
 +91-44- 811 3063 ext 2232 VNet- 42425



-Original Message-
From: Peter Dolukhanov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 4:42 PM
To: [EMAIL PROTECTED]
Subject: Re: How should i proceed with


A small concern with this is if the user's network connection dies, or
the user closes his browser without properly logging off. To circumvent
this you should have a method which is called whenever the session
time's out (expires) and performs the same function to reset that value
in the DB.

Regards,
Peter

-Original Message-
From: A mailing list about Java Server Pages specification and reference
[mailto:[EMAIL PROTECTED]] On Behalf Of Kesavanarayanan, Ramesh
(Cognizant)
Sent: 28 November 2002 06:18
To: [EMAIL PROTECTED]
Subject: Re: How should i proceed with

you can have a boolean value at the DB which will be default to zero.
once
he is logged in make that to 1.
when he logs out make that to zero again. in this way if he logs in
again
you can check the value in the DB and prevent him.

HTH

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]



-Original Message-
From: V.T.R.Ravi Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 28, 2002 10:17 AM
To: [EMAIL PROTECTED]
Subject: How should i proceed with


Hi ,

I have a situtation where in i have to restrict the access of an user in
such way that the user has just one session . that is if he is logged at
present then don't let him log again from any other pc until he logs of
from
the previous window ..

How should i proceed with to achieve this

V.T.R.Ravi Kumar
Engineer,CCX,BHEL, Haridwar
Phone : Office-91-0133-485260
 Res  -91-0133-426121
-


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

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



Re: Optimizing an image

2002-12-01 Thread Kesavanarayanan, Ramesh (Cognizant)
make them as zip files or winrar and then upload it.

you can use GZipInputStream and GOutputStream..

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]


-Original Message-
From: Vibha Jindal [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 02, 2002 11:18 AM
To: [EMAIL PROTECTED]
Subject: Optimizing an image


Hi,

I have a site that has images uploaded. I want to optimize the uploaded
images (reduce the file size of the images without reducing the overall
dimensions and without compromizing too much on the quality). I want to
achieve this through a JAVA program.

Can someone please help?

Regards,
Vibha

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

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



writing reports from JSP to text file

2002-12-01 Thread Kesavanarayanan, Ramesh (Cognizant)
CurrencyNumeric Currency  Rate  Hash Total

AED 041 999.99  ###
ATS 010 999.99  ###
AUD 009 999.99  ###
BEF 014 999.99  ###
BHD 012 999.99  ###



Hi all,

 I have a report in this format. now the number oflines may grow even to
10,000.  Now each row will have its own alignment.
Also the column Hash Total is calculated using the formula ( (rate *7 ) +
numeric code );
For EG:
currency length - 15 display size - 3
This means the heading has to be 15 columns while the rows will haev 3
spaces filled with result and remaining fileld with spaces.

similarly for other columns also.
I am basically fetching the result from the Stored Procedures. I presume
that if i start doing this in my application, it will be a sure bottleneck.

Is there a way to makethis faster like writing directly from the stored
procs to a file with all alignments.

your help will be highly appreciated.

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]
 +91-44- 811 3063 ext 2232 VNet- 42425



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



static initialization

2002-12-19 Thread Kesavanarayanan, Ramesh (Cognizant)
Hi all,

 I have a Helper class which has several methods. Each method willspeak
overto the DB and get the values as ArrayList. These values will be loaded
in the HTML pages as option values of the select boxes.


Here is the sample code snippet i have used . I have made the OWNER_LIST as
private static.
  private   static  ArrayList distinctOwner(String tableName)  {
Connection conn = null;
PreparedStatement pstmt = null;
DBUtilities DBUtil = null;
   if(OWNER_LIST == null) {
try
  {
 OWNER_LIST = new ArrayList();
 DBUtil = new DBUtilities();
 conn.setAutoCommit(false);;
 String sql = "select distinct owner_name from "
+ tableName + " order by owner_name";
 ResultSet rs = DBUtil.doSelect(sql);
 while (rs != null && rs.next())
 {
OWNER_LIST.add(rs.getString(1));
 }
rs.close();
  } catch (Exception e) {
   System.err.println("Problem getting distinct
owner from " + tableName + " order by owner name");
}
finally {
try { pstmt.close(); } catch (Exception e) { }
try {
   DBUtil.closeConnection();
} catch (Exception e) { }
   }
 }
  return OWNER_LIST;
}
I have made all these ArrayList  as static so that they will be populated
only once in the server. Typically I amtrying to catch the records.

Some transaction during the application may change the DB records.

 In such scenario i have to call a Refresh such that this makes all the
values of the Helper class again to null so that when next time somebody
clicks on some item Helper class has to fetch the new values from the DB.

 My question is supposing that when a user clicks on the Refresh buton and
at the same time some other user is looping thru the ArrayList in their jsp
pages, it will surely thro an error.

 How to prevent this.

I thought of putting the ArrayList initialization as synchronized but in my
Helper class i have many methods (25). That means i will be having 25
Synchronized blocks which might become too overhead for the webserver.

 Any nice ideas and suggestions to resolve this ishighly appreciated.

 Regards

 Ramesh Kesavanarayanan
 [EMAIL PROTECTED]
 +91-44- 811 3063 ext 2232 VNet- 42425



This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com



problem finding resource bundle

2002-12-31 Thread Kesavanarayanan, Ramesh (Cognizant)


Hi all,

 In this new year let mine be the first doubt for all you guys to clarify.

 I am using VAJ for checking resource bundle.

assume that my root -dir is project
 I have under project com/test/datastore.properties

 In my servlet i write like this.

 ResourceBundle.getBubdle(com.test.datastore);

 I am getting Missing Resource Exception.


i have set the classpath till my root -dir.

but still i am getting this error. Can anyone let me know why i am getting
this.

I tries this in WSAS3.5  also

 i have servlets directory under which i have these file and under my web
directory i have all the jsp pages.

 i have set the classpath to servlets directory and web under appserver. But
still i am getting this exception.

This is very urgent please.


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]


This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message.
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.

Visit us at http://www.cognizant.com