Re: Some JSP Questions..

2002-06-13 Thread vijay

hi Ramesh,

THANKS FOR UR ANSWERS...IT CLEARED MY DOUBTS..

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Kesav, Ramesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 10:31 AM
Subject: Re: Some JSP Questions..


I have some questions in JSP. Could any one one has answers for these
questions..

1. Difference between Include and Forward tags.?
   action :
   <%@ include file = filename>
   Include action is used to include resources at runtime. The file
included is parsed at translation time.
   Most jsp containers keep track of included file and recompile if it
changes.
   if you change the included file then you need to recompile the
includer file also to get the result on the page.

directive

 you can use this  if your resource is not going to change
frequently


 teh resource to which you are forwarding should also have the same
jsp context
 execution in the current jsp page is stopped when it encounters
this tag , buffer is cleared
 if output stream is not buffered then IllegalStateException is
thrown

2. Difference between Class and beanName in UseBean tag.?

class is the name of the class name fully qualified
beanName - name as you would suypply to instantiate() method in
java.bean.Beans class
you can have type and bean Name and omit class
attribute
eg: 
you should have a class called
public Class LanguageBean{}
id is basicaly to refer this bean in the page

3. Does a bean has to be put in a package to be used from a JSP page.?
 need not be always but as such java language prefers to have a
class in a package
 package serves like the directory service in JNDI.

   hope this helps


Regards

Ramesh Kesavanarayanan

* [EMAIL PROTECTED]

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



Some JSP Questions..

2002-06-13 Thread vijay

Hi all,

I have some questions in JSP. Could any one one has answers for these questions..

1. Difference between Include and Forward tags.?
2. Difference between Class and beanName in UseBean tag.?
3. Does a bean has to be put in a package to be used from a JSP page.?

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

==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 get an Hashtable from a servlet..

2002-05-30 Thread vijay

hi,

I have designed a jsp page which calls an servlet. In that servlet, i have an 
hashtable which has come beans in it. I need to access these beans from jsp page. Iam 
redirecting to that jsp from servlet. How to access the servlets hastable objects from 
the rdirected jsp page.

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-'-.
  (o  ) ) ('o'  )
=(,,)=(,,)=(,,)==(,,)=

==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: date service contd

2002-05-15 Thread vijay

ok thanks bhusan,
iam trying that...

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Bhushan_Bhangale" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 16, 2002 11:37 AM
Subject: Re: date service contd


Vijay,

There is nothing like InvalidDateException in Java. Kesav might have created
his own exception. You need to define that or just remove it from the code.

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 11:14 AM
To: [EMAIL PROTECTED]
Subject: Re: date service contd


hi,

i tried to compile the program.. but iam getting the following error..

D:\TestJavaPrograms\DateService.java:47: cannot resolve symbol
symbol  : class InvalidDateException
location: class DateService
 public static String format(Date date, String simpleFormat) throws
InvalidDateException
   ^
1 error

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Kesav, Ramesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 4:39 PM
Subject: date service contd


public final static java.util.Date getTime(int hours, int min, int sec)
throws InvalidDateException {
try {
Calendar cal = Calendar.getInstance(); java.util.Date today =
cal.getTime();
int year = getYear(today); int month = getMonth(today) - 1;
int date = getDay(today); cal.clear();
cal.set(year, month, date, hours, min, sec);
return cal.getTime();
} catch (Exception e) {
if (e instanceof InvalidDateException)
throw (InvalidDateException) e;
else {
String input = "" + hours + ':' + min + ':'+ sec;
}
}
}
public final static java.util.Date getTime(int year,int month,int day,int
hours,int min,intsec)
throws InvalidDateException {
try {
Calendar cal = Calendar.getInstance();   cal.clear();
cal.set(year, month-1, day, hours, min, sec);   return
cal.getTime();
} catch (Exception e) {
if (e instanceof InvalidDateException)
throw (InvalidDateException) e;
else {
String input = "" + hours + ':' + min + ':' + sec;
}
}

}
public static String getXML(Date date) throws InvalidDateException{
return getXML(date, "Year", "Month", "Day");
}
public static String getXML(Date date, String yearTag, String monthTag,
String dayTag) throws InvalidDateException{
try {
Calendar cal = Calendar.getInstance();cal.clear();
cal.setTime(date);StringBuffer buffer = new
StringBuffer(41);
 buffer.append("<");
buffer.append(yearTag);buffer.append(">");

buffer.append(cal.get(cal.YEAR));buffer.append("");buffer.append("<");buffer.append(monthTag);
buffer.append(">");buffer.append(cal.get(cal.MONTH) +
1);buffer.append("");buffer.append("<");buffer.append(
dayTag);

buffer.append(">");buffer.append(cal.get(cal.DATE));buffer.append("");return
buffer.toString();
} catch (Exception e) {}
}
 public static int getYear(Date date) throws InvalidDateException{
try {
Calendar cal = Calendar.getInstance();cal.clear();
cal.setTime(date);int yy = cal.get(Calendar.YEAR);
if (yy < 100)
yy += 1900;
return yy;
} catch (Exception e) { }
}
public static boolean isSameDay(Date date1, Date date2) {
if ( date1 == null && date2 == null ){
return true;
}
if ( date1 == null || date2 == null ){
return false;
}
Calendar cal1 = Calendar.getInstance();   cal1.setTime(date1);
Calendar cal2 = Calendar.getInstance();   cal2.setTime(date2);
return (cal1.get(Calendar.DAY_OF_MONTH) ==
cal2.get(Calendar.DAY_OF_MONTH)
&& cal1.get(Calendar.MONTH) == cal2.get(Calendar.MONTH)
&& cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR));
}
   public static Date parse( String date, String simpleFormat ) throws
InvalidDateException
   {
  try
  {
return new SimpleDateFormat(simpleFormat).parse(date);
  }
  catch ( Exception e )
  { }
   }
public static Date toStandardDate(String date) throws InvalidDateException{
try{
return dateFormatter.parse(date);
} catch 

Re: date service contd

2002-05-15 Thread vijay

hi,

i tried to compile the program.. but iam getting the following error..

D:\TestJavaPrograms\DateService.java:47: cannot resolve symbol
symbol  : class InvalidDateException
location: class DateService
 public static String format(Date date, String simpleFormat) throws
InvalidDateException
   ^
1 error

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Kesav, Ramesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 15, 2002 4:39 PM
Subject: date service contd


public final static java.util.Date getTime(int hours, int min, int sec)
throws InvalidDateException {
try {
Calendar cal = Calendar.getInstance(); java.util.Date today =
cal.getTime();
int year = getYear(today); int month = getMonth(today) - 1;
int date = getDay(today); cal.clear();
cal.set(year, month, date, hours, min, sec);
return cal.getTime();
} catch (Exception e) {
if (e instanceof InvalidDateException)
throw (InvalidDateException) e;
else {
String input = "" + hours + ':' + min + ':'+ sec;
}
}
}
public final static java.util.Date getTime(int year,int month,int day,int
hours,int min,intsec)
throws InvalidDateException {
try {
Calendar cal = Calendar.getInstance();   cal.clear();
cal.set(year, month-1, day, hours, min, sec);   return
cal.getTime();
} catch (Exception e) {
if (e instanceof InvalidDateException)
throw (InvalidDateException) e;
else {
String input = "" + hours + ':' + min + ':' + sec;
}
}

}
public static String getXML(Date date) throws InvalidDateException{
return getXML(date, "Year", "Month", "Day");
}
public static String getXML(Date date, String yearTag, String monthTag,
String dayTag) throws InvalidDateException{
try {
Calendar cal = Calendar.getInstance();cal.clear();
cal.setTime(date);StringBuffer buffer = new
StringBuffer(41);
 buffer.append("<");
buffer.append(yearTag);buffer.append(">");

buffer.append(cal.get(cal.YEAR));buffer.append("");buffer.append("<");buffer.append(monthTag);
buffer.append(">");buffer.append(cal.get(cal.MONTH) +
1);buffer.append("");buffer.append("<");buffer.append(
dayTag);

buffer.append(">");buffer.append(cal.get(cal.DATE));buffer.append("");return
buffer.toString();
} catch (Exception e) {}
}
 public static int getYear(Date date) throws InvalidDateException{
try {
Calendar cal = Calendar.getInstance();cal.clear();
cal.setTime(date);int yy = cal.get(Calendar.YEAR);
if (yy < 100)
yy += 1900;
return yy;
} catch (Exception e) { }
}
public static boolean isSameDay(Date date1, Date date2) {
if ( date1 == null && date2 == null ){
return true;
}
if ( date1 == null || date2 == null ){
return false;
}
Calendar cal1 = Calendar.getInstance();   cal1.setTime(date1);
Calendar cal2 = Calendar.getInstance();   cal2.setTime(date2);
return (cal1.get(Calendar.DAY_OF_MONTH) ==
cal2.get(Calendar.DAY_OF_MONTH)
&& cal1.get(Calendar.MONTH) == cal2.get(Calendar.MONTH)
&& cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR));
}
   public static Date parse( String date, String simpleFormat ) throws
InvalidDateException
   {
  try
  {
return new SimpleDateFormat(simpleFormat).parse(date);
  }
  catch ( Exception e )
  { }
   }
public static Date toStandardDate(String date) throws InvalidDateException{
try{
return dateFormatter.parse(date);
} catch (Exception e){}
}
public static Date toStandardDateTime(String date) throws
InvalidDateException{
try{
return dateTimeFormatter.parse(date);
} catch (Exception e){  }
}
public static String toStandardString(Date date) throws
InvalidDateException{
try{
return dateFormatter.format(date);
} catch (Exception e){}
}
public static String toStandardTimeString(Date date) throws
InvalidDateException{
try{
return dateTimeFormatter.format(date);
} catch (Exception e){}
}
}


Regards

Ramesh Kesavanarayanan
[EMAIL PROTECTED]

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

Re: JDBC Connection close

2002-05-13 Thread vijay

hi,

if u close the connections in finally block, then it will be closed
successfully. there will be no connections opened. its advisable to close
the connection after closing other things

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Manoj Nahar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 14, 2002 11:38 AM
Subject: JDBC Connection close


Hi there,

Does it make aby difference if i close the JDBC connection without closing
all the resultsets and statements.

I am closing connections is try catch finally. Is it possible that
connections are left open even after closing them in finally

Manoj Nahar
http://www.naharonline.com








---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.361 / Virus Database: 199 - Release Date: 5/7/2002

===
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 use global variable?

2002-05-13 Thread vijay

declare it in <%! StringArray[] str = new StringArray[10] %> tag..

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 13, 2002 10:11 AM
Subject: how to use global variable?


hello all
good morning
as my prev que,
i tried to use function and not able to use out.println in function
so now i want to use a global array and want to add all values in array and
will print that array in main code
but i don't know how to make an array global.

see the code



 Factorial 


<%!
 public static int fact(int i){
//System.out.println(i);
  myval[v++] = i;
  if (i==1){
   return i;
  }
  return i*fact(i-1);
 }
%>
<%
 for(a=0;a



here array myval and int v must be global so i can use it in main code as
well as in function
how?

ThankX
Vaishali
Reliance Ind Ltd
Ahmedabad

===
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 restrict access of my server??

2002-04-29 Thread vijay

after saving the file.. just restart ur tomcat...
thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "[Vaishali S. Pandya]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 1:56 PM
Subject: Re: How to restrict access of my server??


Thanks
i am working in LAN
and the tomcat is on server obviously
this is unix platform
well i am new in this JSP world and would like to know more



is it right?
what to do after saving the file?
execute the xml?
how?

Vaishali




Hai, In tomact's
server.xml  file

set suppress property to true...That's all Done...


   





- Original Message -
From: "Sowbhagyavalli Suryadevara" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 29, 2002 10:22 AM
Subject: How to restrict access of my server??


> HI,
>
> Can anyone tell me how I can stop people from viewing the directory
listings
> and files in the server directories? I use JBoss + Tomcat. If the URL
used
> to access the server has some directory name, then the server displays
the
> whole directory listing. This can cause several security problems.
>
> I need my servlets and JSPs to access these directories but not anyone
else.
>
> Valli
> IIC Technologies Pvt Ltd
> INDIA
>
>
===
> 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

===
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: Logging System.out.print or System.err.print

2002-04-22 Thread vijay

hi,

u can store the errors in a log file.. just write the errors into a
file..

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Ranjan Sarkar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, April 22, 2002 3:23 PM
Subject: Logging System.out.print or System.err.print


Hi All,

Genarally System.out.print prints to the standard output device and
System.err.print prints to standard error device.
Most time, the two devices are same, namely, the console.

My question is can we redirect them to a file?

Actually I want to store all the System.out.println or System.err.println
into a log file for later use,  Can we redirect the content of stadard
output or error device to a file?

-Ranjan

=
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: Another question on JSP & Java Bean adding data to database

2002-04-05 Thread vijay

then befor inserting into the database, check for each value. if it is null
dont send it, . initially set the optional fields values to blank
thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "[Aruniima Chakrabarti]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 8:56 PM
Subject: Re: Another question on JSP & Java Bean adding data to database


Thank you vijay. But the thing is that I want null value or something that
indicates that the user has given no answer for that field as it is an
optional field.

Regards,
aruniima

 -Original Message-
From:   vijay [mailto:[EMAIL PROTECTED]]
Sent:   Friday, April 05, 2002 11:45 AM
To: [EMAIL PROTECTED]
Subject:Re: Another question on JSP & Java Bean adding data to
database

while inserting into the database, u can use NVL function to avoid null
values..
thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "[Aruniima Chakrabarti]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 8:40 PM
Subject: Another question on JSP & Java Bean adding data to database


Posting this question again as not sure that it has been sent properly.
Hello everybody,
I have another question.
The fields in the database are optional. Now when the bean to inserts the
data in the table, it puts in a string which reads as "null"  but  for the
database it is an value equal to the string "null" & not the database NULL
for the field. Hence, when I write my queries, I search for a string equal
to 'null' instead of the field which "Is Null"
Now, my question is that
*   is there a way out of this?
*   what is better programming practice, you allow the null string which
the java bean puts on its own or you put the database NULL value for null
fields by modifying the insert query?

Kindly help .
Thank you in advance.
Regards,
aruniima

-Original Message-
From:   [Aruniima Chakrabarti]
[mailto:[EMAIL PROTECTED]]
<mailto:[mailto:[EMAIL PROTECTED]]>
Sent:   Friday, April 05, 2002 1:12 PM
To: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Subject:Help on parameter begin passed from JSP to Java Bean

Hello everyone,
I have a HTML page which calls a JSP page on submit, which has a 'useBean' &
'setProperty' tags set so that the values from the HTML is passed to the
Bean to be updated in the database. Some of the fields on HTML page & the
corresponding field in the database are optional.
Now the problem I am facing is that if the first time the user puts a value
in the text box & submits page, it gets updated without a problem.  But the
next time if he leaves the text box empty & submits, then the previous
entered value for the textbox is taken instead of null value.  Refreshing of
the page is not solving the problem & closing - opening of the page again is
not feasible. How should I handle this problem?  I tried changing the
'scope' but that is not solving the problem.
Kindly help. Thanks in advance.
Regards,
aruniima



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

==

Re: Another question on JSP & Java Bean adding data to database

2002-04-05 Thread vijay

while inserting into the database, u can use NVL function to avoid null
values..
thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "[Aruniima Chakrabarti]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 8:40 PM
Subject: Another question on JSP & Java Bean adding data to database


Posting this question again as not sure that it has been sent properly.
Hello everybody,
I have another question.
The fields in the database are optional. Now when the bean to inserts the
data in the table, it puts in a string which reads as "null"  but  for the
database it is an value equal to the string "null" & not the database NULL
for the field. Hence, when I write my queries, I search for a string equal
to 'null' instead of the field which "Is Null"
Now, my question is that
*   is there a way out of this?
*   what is better programming practice, you allow the null string which
the java bean puts on its own or you put the database NULL value for null
fields by modifying the insert query?

Kindly help .
Thank you in advance.
Regards,
aruniima

-Original Message-
From:   [Aruniima Chakrabarti]
[mailto:[EMAIL PROTECTED]]

Sent:   Friday, April 05, 2002 1:12 PM
To: [EMAIL PROTECTED] 
Subject:Help on parameter begin passed from JSP to Java Bean

Hello everyone,
I have a HTML page which calls a JSP page on submit, which has a 'useBean' &
'setProperty' tags set so that the values from the HTML is passed to the
Bean to be updated in the database. Some of the fields on HTML page & the
corresponding field in the database are optional.
Now the problem I am facing is that if the first time the user puts a value
in the text box & submits page, it gets updated without a problem.  But the
next time if he leaves the text box empty & submits, then the previous
entered value for the textbox is taken instead of null value.  Refreshing of
the page is not solving the problem & closing - opening of the page again is
not feasible. How should I handle this problem?  I tried changing the
'scope' but that is not solving the problem.
Kindly help. Thanks in advance.
Regards,
aruniima



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

===
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: Help on parameter begin passed from JSP to Java Bean

2002-04-05 Thread vijay

check for ur scope. set ur scope to the page
thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "[Aruniima Chakrabarti]" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 5:41 PM
Subject: Help on parameter begin passed from JSP to Java Bean


Hello everyone,
I have a HTML page which calls a JSP page on submit, which has a 'useBean' &
'setProperty' tags set so that the values from the HTML is passed to the
Bean to be updated in the database. Some of the fields on HTML page & the
corresponding field in the database are optional.
Now the problem I am facing is that if the first time the user puts a value
in the text box & submits page, it gets updated without a problem.
But the next time if he leaves the text box empty & submits, then the
previous entered value for the textbox is taken instead of null value.
Refreshing of the page is not solving the problem & closing - opening of the
page again is not feasible. How should I handle this problem?
 I tried changing the 'scope' but that is not solving the problem.
Kindly help. 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

===
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: Optimised JSPs

2002-04-04 Thread vijay

hi
follow these steps in ur JSP's

? Separate HTML from Java
? Place business logic in JavaBeans
? Factor general behavior out of custom tag handler classes
? Favor HTML in Java handler classes over Java in JSPs
? Use an appropriate inclusion mechanism
? Use a JSP template mechanism
? Use stylesheets
? Use the MVC pattern
? Use available custom tag libraries
? Determine the appropriate level of XML compliance
? Use JSP comments in most cases
? Follow HTML best practices
? Utilize the JSP exception mechanism
? These tips will help you write JSPs that are reusable and easy to
maintain.

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Vibha Jindal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 05, 2002 4:49 PM
Subject: Optimised JSPs


Hi,

Can someone please refer me a document, that describes what all should be in
a JSP and what should be in a servlet? and any other factors that nee dto be
considered while writing a JSP?
Basically, how to write optimised code for a JSP?

Regardsm
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

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



Reg :- Java.....

2002-04-04 Thread vijay

Hi guys,

Is there any site for Java like "[EMAIL PROTECTED]". 
if there, could any one of u can give the address to register myself to that mail 
forum. 

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

==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 draw graphs in JSP

2002-04-02 Thread vijay

hi,

Search for Graphs in Javascripts. U can get lot of free scripts.

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Murali Mohan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 6:42 PM
Subject: How to draw graphs in JSP


Hi,

Any one have idea.
How to draw graphs in JSP?

thanks
Murali

===
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: Regarding Hotkey in JSP page

2002-04-01 Thread vijay

wow, thanks very much Dunwiddie.
This will solve my problem of showing the HOTKEYS in jsp page.

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Dunwiddie, Bruce" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 02, 2002 4:13 AM
Subject: Re: Regarding Hotkey in JSP page


actually, the whole thing together now is
Quit

-Original Message-
From: Dunwiddie, Bruce [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 12:04 PM
To: [EMAIL PROTECTED]
Subject: Re: Regarding Hotkey in JSP page


Quit

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Regarding Hotkey in JSP page


hi Dunwiddie,

Thanks for ur help. But how to get the Hotkey in Html button Display.
For example, if i have a button with value Quit, the letter Q should be
underlined, so that user can know the hotkey by seeing the button itself.
Can u pls help me in this regard.

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Dunwiddie, Bruce" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 4:18 AM
Subject: Re: Regarding Hotkey in JSP page


 sets alt-q to that
button, ie only.

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 12:18 AM
To: [EMAIL PROTECTED]
Subject: Regarding Hotkey in JSP page


Hi gurus,

I am having some buttons in my JSP page. I need to set the hot keys
for those button. For example if i have a Save button, i would display the
button like.. Save. how to do this. can any one help me in this problem..

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

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

===
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: Regarding Hotkey in JSP page

2002-03-28 Thread vijay

hi Dunwiddie,

Thanks for ur help. But how to get the Hotkey in Html button Display.
For example, if i have a button with value Quit, the letter Q should be
underlined, so that user can know the hotkey by seeing the button itself.
Can u pls help me in this regard.

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Dunwiddie, Bruce" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 29, 2002 4:18 AM
Subject: Re: Regarding Hotkey in JSP page


 sets alt-q to that
button, ie only.

-Original Message-
From: vijay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 12:18 AM
To: [EMAIL PROTECTED]
Subject: Regarding Hotkey in JSP page


Hi gurus,

I am having some buttons in my JSP page. I need to set the hot keys
for those button. For example if i have a Save button, i would display the
button like.. Save. how to do this. can any one help me in this problem..

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''''''''''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

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



Regarding Hotkey in JSP page

2002-03-28 Thread vijay

Hi gurus,

I am having some buttons in my JSP page. I need to set the hot keys for those 
button. For example if i have a Save button, i would display the button like.. Save. 
how to do this. can any one help me in this problem..

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=

==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: Exception initializing application (struts) ??

2002-03-18 Thread vijay

hi
check if these jar files are under ur lib folder,
1. struts.jar
2.jdbc2_0-stdext.jar

if not include the jar files into ur lib folder. they can be found in the
zip file which contains struts frame work that u downloaded

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "sufi malak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 4:37 AM
Subject: Exception initializing application (struts) ??


Hi, I just started to experiment with struts framework, but I got this error
:

Apache Tomcat/4.0.1 - HTTP Status 500 - Internal Server Error




type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Exception initializing application data
source org.apache.struts.action.DATA_SOURCE
at
org.apache.struts.action.ActionServlet.initDataSources(ActionServlet.java:10
69)
at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:470)





_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx

===
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: Join requests from more than 1JSP page

2002-03-18 Thread vijay

hi,
 You can do this in different ways.

The best way is to use Beans for the JSPs. List all the parameters in the
Bean from all the three jsps. use set property = * to set all the form
values into the bean. later by using getter method u can get the required
values.

the another way is to use the hidden field for all the fields. based on the
jsp, u can make the hidden fields invisible. and shows only the required
fields.

thanks & regards
vijayanand.R

(),,,()
   ( (.  .) .-''-.
  (o  ) ) ('o'   )
=(,,)=(,,)=(,,)==(,,)=
- Original Message -
From: "Alejo Marcos, Alberto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 19, 2002 1:57 AM
Subject: Join requests from more than 1JSP page


Hi Everyone,

I would like to know How I could pass a unique Request object with
the info of more than one page to my servlet. In summary, I want to do JSP
navigation among pages (i.e.: I want to register a user and I have 3 JSP
pages requesting personal data to the user) and then, at the last one, I
want to send all the user information that I have recollected through my 3
pages to my servlet in my last request object. So my doubt is: Is it
possible to do? Any alternative to do this?

Thanks in Advance!!

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



Uploading file sizes of 20GB

2001-06-22 Thread Polani, Vijay

HI all,
I have a problem here , kindly help me out.
I am working on a project wherein I have to Upload files from
my local HardDisk drives , Mounted drives on the NFS Unix machines
to the HP-UX server. I am working in a intranet spread accross
many servers and locations. The browser display is JSP and the helper beans.
There are lots of problems with the HTTP uploads.
I have gone through FTP uploading also.
Have anyone worked with file mounting or file tranferring in a NFS system by
which I can
use the NFS network to mount, automount the user directories dynamically
instead of copying the
files place to place.The client can be a windows system also.

Thanks
regards
Vijay

===
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 implement carriage return

2001-01-24 Thread Vijay Raghavan

dont encase \n in double quotes:
eg:out.println("Make: Details" +  \n  + "Model : ...");
Thats becoz u encase string in quotes and jsp directives without
quotes. This should work

--Vijay
"The difference between Insanity and Genius is measured only by
Success"


> -Original Message-
> From: Jaspal Muker [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, January 25, 2001 4:10 AM
> To:   [EMAIL PROTECTED]
> Subject:  Re: how implement carriage return
>
> Does not work that way Tushar !!
>
>
>
> - Original Message -
> From: "Tushar Sarmah" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, January 24, 2001 4:07 PM
> Subject: Re: how implement carriage return
>
>
> > put a newline i.e.  \n
> > I mean
> >
> > out.println("Make: Details" + "\n" + "Model : ...");
> >
> > Tushar
> > > --
> > > From: Ian Corner[SMTP:[EMAIL PROTECTED]]
> > > Reply To: A mailing list about Java Server Pages specification and
> > > reference
> > > Sent: Thursday, January 18, 2001 5:20 AM
> > > To:   [EMAIL PROTECTED]
> > > Subject:  how implement carriage return
> > >
> > > Hi
> > > how do you implement a carriage return when using JSP to construct the
> > > body
> > > of an email?
> > >
> > > For example, I want the email to look like this:
> > > Make: Ford
> > > Model: Mustang
> > > Movie: Bullet
> > >
> > > Instead when the form submitting this data is processed and the email
> > > constructed I get this:
> > > Make: FordModel: MustangMovie: Bullet
> > >
> > > Any help appreciated.
> > >
> > > Thanks,
> > > Ian
> > >
> > >
> ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> > >
> ==
> > > =
> > > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> > > JSP-INTEREST".
> > > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> > > DIGEST".
> > > Some relevant FAQs on JSP/Servlets can be found at:
> > >
> > >  http://java.sun.com/products/jsp/faq.html
> > >  http://www.esperanto.org.nz/jsp/jspfaq.html
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> > >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
> > >
> >
> >
> ==
> =
> > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> > Some relevant FAQs on JSP/Servlets can be found at:
> >
> >  http://java.sun.com/products/jsp/faq.html
> >  http://www.esperanto.org.nz/jsp/jspfaq.html
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> >  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
> ==
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

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

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



Re: About user-defined finder methods

2000-07-21 Thread Vijay Rastogi

Will you please specify which app server you are using ?

What are you specifying in the xml files ?


Regards,

-Original Message-
From:   sanjay bhat [SMTP:[EMAIL PROTECTED]]
Sent:   Wednesday, July 19, 2000 6:05 AM
To: [EMAIL PROTECTED]
Subject:About user-defined finder methods

Hi

I am trying to define user defined Finder methods
other than FindByPrimarykey method in Container
managed Entity Bean. I could deploy the bean but when
I am running the Client  program it is giving the
Error  java.lang.Error: NYI. Please  if anybody can
clarify this it would be great help to me.

Thanks
Hemalatha & Sanjay Bhat


__
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

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

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

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

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



Re: error in tmpdir\default\pagecompile\jsp

2000-07-21 Thread Vijay Rastogi

Hi Srinivas,

Will you please mail yr code and the translation error/run error ? This will help in 
providing some help.

Regards,

Vijay

-Original Message-
From:   SRINIVAS RAO [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, July 21, 2000 4:22 AM
To: [EMAIL PROTECTED]
Subject:Re: error in tmpdir\default\pagecompile\jsp

Dear Rastogi,

sorry, I tried modifying my .jsp file to my best and it still did not work
out. I even tried the official sun example. hellouser.jsp response.jsp and a
sample bean NameHandler which i stored both in current directory. But still
the error persists.

urgent help.

regards,
srinivas.



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: error in tmpdir\default\pagecompile\jsp

2000-07-21 Thread Vijay Rastogi

The JWS translates the jsp pages in the servlets which it transalates in the 
\tmpdir\deafault\pagecompile\jsp. Please modify your jsp programs instaed of modifying 
the servlets..


That should help.

-Original Message-
From:   SRINIVAS RAO [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, July 21, 2000 2:05 AM
To: [EMAIL PROTECTED]
Subject:error in tmpdir\default\pagecompile\jsp

Hey folks,

I am getting a unique error.
I am working on jws 2.1, store my jsp files in public_html folder. Now when
i try to run the file in the browser(lets say first.jsp) , i find a file
call _first.java created in the tmpdir\default\pagecompile\jsp directory
with some errors. albeit correcting these errors myself physically by
opening the file, and run the file, The file is not displayed(first.jsp) in
the browser. I get an empty screen.

can someone help me pl. its urgent. thnx in advance.

regards,
srinivas.

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



FW: Out of Office AutoReply: Tag Library for EJB in Weblogic Enterpr ise server.

2000-07-14 Thread Vijay Rastogi

Shouldn't these guys thrown out of the list ???


Regards,

Vijay


-Original Message-
From:   Mark Edgington [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, July 14, 2000 5:51 AM
To: Vijay Rastogi
Subject:Out of Office AutoReply: Tag Library  for EJB in Weblogic Enterpr ise 
server.

I'm out of the office untill 9th August 2000, any queries regarding
Blueyoner should be directed towards John Smith [EMAIL PROTECTED]

Regards, Mark

-Original Message-
From:   Steingoetter, Jochen [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, July 14, 2000 5:48 AM
To: Vijay Rastogi
Subject:Out of Office AutoReply: Tag Library  for EJB in Weblogic Enterpr ise 
server.

I am out of the office until 25.07.2000.
If you have any questions concerning SMART, SMARTScheduler or Broccoli
please contact my colleague Michael Fornoff or Holger Wiedey.

Thanks for your understanding




-Original Message-
From:   LAKHOUNE Mamadou (SDT) [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, July 14, 2000 5:47 AM
To: Vijay Rastogi
Subject:Out of Office AutoReply: Tag Library  for EJB in Weblogic Enterpr ise 
server.

Hi,
I and off and will be back to the office on July, 27th 2000.
Please, for urgent matters, contact Jean-Marie LEICK/SDT-02

M. LAKHOUNE



-Original Message-
From:   Pryor, Michael (MBS) [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, July 14, 2000 5:53 AM
To: Vijay Rastogi
Subject:Out of Office AutoReply: Tag Library  for EJB in Weblogic Enterpr ise 
server.

I will be out of the officeThursday, July 13.

If you need to contact me, please use my cell phone(609.841.4129) or page
me(800.351.0149)

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



Tag Library for EJB in Weblogic Enterprise server.

2000-07-14 Thread Vijay Rastogi

Hi All,

I am exploring the usage of the tag library for accessing the Enterprise Java Beans 
loaded on Weblogic Enterprise server container. What are the options for this ? Can we 
do this or not ?

Please advise.

Thanks in advance.

Regards,

Vijay Rastogi

===
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: where is the Java Mailing list ?

2000-04-22 Thread Vijay Mali

These r the java mailing list,

For Subscribing send blank mail to
[EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]

Bye
Vijay

- Original Message -
From: Vineet Sethi <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, April 23, 2000 1:00 AM
Subject: where is the Java Mailing list ?


> hi
> I am looking for a java mailing list to post questions regarding handling
> files , specifically IO and copy of files / folders..
>
> can someone please point me in the right direction
>
> thanks
> Vineet
>
>
===
> 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



In Digest form ??

1999-11-15 Thread Vijay Bhandari

  Hi,

How to I switch to receiving this mail group in
a message digest form ???

cheers,
Vijay


begin:vcard
n:Bhandari;Vijay
tel;fax:212-793-3605
tel;work:212-559-9626
x-mozilla-html:FALSE
org:Citigroup;Emg. Mkts. Technology
version:2.1
email;internet:[EMAIL PROTECTED]
title:Manager/Applications Development
adr;quoted-printable:;;399 Park Ave.=0D=0A4 floor, Zone 15;New York;NY;10043;USA
x-mozilla-cpt:;-1
fn:Vijay Bhandari
end:vcard



Re: use of display tag

1999-03-31 Thread Vijay Eranti

I felt that the whole purpose of JSP is to separate business logic from
presentation. The presentation should have minimum programming stuff in it
(since html designers are not strong programmers and may not know java). Let the
business logic is done in servlet and let it generate the results which will be
combined with html pages using templates and generate the final output. This is
the whole purpose of the separation. Using these tags make embedding of java
code in the pages. Think of it similar to XML/XSL analogy. The servlet generates
XML output and provides a xsl stylesheet and the XML page to the XSL Engine
which merges both and generates the final page. The XSL doesnt include code
etc.,.

I am not completely against <% %> tags since they provide enormous amount of
flexibility in the dynamic page that is generated but also makes the html jsp
page a little murky.

Regards

Vijay


"Kirkdorffer, Daniel" wrote:

> Why should the usage of <% %> and <%=  %> be discouraged?
>
> Dan
>
> > --
> > From: Vijay Eranti[SMTP:[EMAIL PROTECTED]]
> > Reply To: Vijay Eranti
> > Sent: Wednesday, March 31, 1999 3:39 PM
> > To:   [EMAIL PROTECTED]
> > Subject:  use of display tag
> >
> > Hi guys,
> >
> > I was wondering is there a way to change the display tag syntax.
> >
> > Normally, html designers use DISPLAY tag most  frequently if they are
> > following the standard practice of minimizing the usage of java snippets
> > in the JSP pages which I think they wont be knowing . The syntax for
> > display tag is
> >
> > 
> >
> > This seems too long thing. It would be nice if a shortcut for this is
> > provided as provided by most template languages like
> > <# bean:propertyName>
> >
> > I was surprised to see that such a shortcut is provided for java
> > expressions <% %> and <%=  %> whose usage should be discouraged
> > normally. In 95% of cases, the designer will be using display tag and it
> > is real painful to include whole of the two keywords 
> > and then the property name.
> >
> > Regards
> > Vijay
> >
> > ==
> > =
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > of the message "signoff JSP-INTEREST".  For general help, send email to
> > [EMAIL PROTECTED] and include in the body of the message "help".
> >

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



use of display tag

1999-03-31 Thread Vijay Eranti

Hi guys,

I was wondering is there a way to change the display tag syntax.

Normally, html designers use DISPLAY tag most  frequently if they are
following the standard practice of minimizing the usage of java snippets
in the JSP pages which I think they wont be knowing . The syntax for
display tag is



This seems too long thing. It would be nice if a shortcut for this is
provided as provided by most template languages like
<# bean:propertyName>

I was surprised to see that such a shortcut is provided for java
expressions <% %> and <%=  %> whose usage should be discouraged
normally. In 95% of cases, the designer will be using display tag and it
is real painful to include whole of the two keywords 
and then the property name.

Regards
Vijay

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".



Suggest the best way to include formatting info in displaying presentation data using display tag

1999-03-31 Thread Vijay Eranti

The display tag of JSP seems doesnt have any means of including
formatting information for data.

for instance



Is there any way that I can specify the format of my value in the
display tag like




The only way it seems for me for the time being is to create special
properties in the customer bean like displayStartDate which should
format the info and give it to the bean.

Regards
Vijay

===
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".