Re: jsp error page in email

2001-08-29 Thread Christian Roslawski
Hi Alireza, > In my jsp error page I am sending en email to administrator mentioning the > error. Is there any way to send the trace stack to > this email?. exception.printStackTrace(...) show the stack on the screen > with void return value . Is there any other way to get this stack. You could

Calling a servlet on Frame unload event !

2001-08-29 Thread Abhishek Vishwakarma
Placed At : Hi All, Can anybody plz. tell me... How to Call a servlet from a onUnLoad event of a html frame. But, the problem is, the servlet should not be called through window.open() regards, abhishek ! ==

Re: How to write a scheduler????

2001-08-29 Thread Kevin Duffey
We run separate jvms for things like this. Simple applications that just execute and check the time, then do something at that time. Run them as a service. > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf

Re: How to write a scheduler????

2001-08-29 Thread Christopher K. St. John
Shuja wrote: > > Hi, > > I want to write a scheduler to delete certain records from the database > after a certain time e.g. the expired listings should be removed. > > Should I use it on database level or application servers do support > features like this. Any suggestion ? Thank you in anticipat

How to write a scheduler????

2001-08-29 Thread Shuja
Hi, I want to write a scheduler to delete certain records from the database after a certain time e.g. the expired listings should be removed. Should I use it on database level or application servers do support features like this. Any suggestion ? Thank you in anticipation. From: Shuja Nawaz. So

MVC architecture

2001-08-29 Thread Hardeep Singh
Hi, I want to know about the MVC architecure. Can any one point me to relevant resources? Hardeep Singh http://SeeingWithC.cjb.net === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest:

Re: jsp Requested Page

2001-08-29 Thread SriHari
I forgot to tell u I have to use this method for my entire Project so It would be much better that this function is dynamic SriHari -Original Message- From: Rajinder Sandhu [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 9:57 AM To: [EMAIL PROTECTED] Subject: Re: jsp Requeste

Re: jsp Requested Page

2001-08-29 Thread Rajinder Sandhu
one way is define a hidden variable in Page A and assign the name of the Jsp. Retrieve it in Page B. -Original Message- From: SriHari [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 30, 2001 9:45 AM To: [EMAIL PROTECTED] Subject: jsp Requested Page Hi There I want to know from whi

jsp Requested Page

2001-08-29 Thread SriHari
Hi There I want to know from which page the request has come in a jsp page is there any method for that ex: page A calls Page B then in page B i should know or identify that the request is from page A cheers Sri Hari =

Refreshing pages with Tomcat

2001-08-29 Thread Dinesh Somasundram
Hi guys, I am developing my JSP using IIS and Tomcat 3.2.3. I keep having this problem and it is very irritating and frustrating. First, I do my development and everything seems fine. When I switch off my notebook and start it up again the next morning, what seemed to work fine, give all kinds o

Re: Result Set and Servlet

2001-08-29 Thread Dinesh Somasundram
You might want to check out the Tag-Libs. There is one called DB-Tags from Apache. It is quite easy to use. Alternatively you might want to check out some of the commercial products. Hans Bergsten of Gefion Software has this product call InstantOnline. I am currently trying it out and I must say t

Re: Currency format

2001-08-29 Thread Ashish Shrestha
You can work with double and use java.text.DecimalFormat to display the currency info in the end. Alternatively you can use BigDecimal. Ashish Shrestha === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-IN

Re: Trouble with Forward...

2001-08-29 Thread Richard Yee
David, It took me a while to get it to work. It seems to work fine. What servlet container are you using? Try changing your string from: >"/servlets/GraphServlet?cmd=GtMapStatePayouts&nMonths=27:200012" to "/servlet/GraphServlet?cmd=GtMapStatePayouts&nMonths=27:200012" Note the lack o

Re: Trouble with Forward...

2001-08-29 Thread Shawn Zhu
You should be able to forward with those params in it. However, you may need to properly encode them. Try using URLEncode -Original Message- From: Moganna, Prasad [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 3:17 PM To: [EMAIL PROTECTED] Subject: Re: Trouble with Forward..

Re: Error: JSP Page threw a non-Exception Throwable????

2001-08-29 Thread Andrew Bruno
HI Celeste, what I meant by the bat file was to not use your printing LPxx.exe file, but to do a different command that works on the os. The idea of the hello.bat file was to make sure that the runtime environemnt worked. i.e. create a bat file called hello.bat with the following contents echo

Re: Trouble with Forward...

2001-08-29 Thread Moganna, Prasad
Try passing the query string info. as request attributes. - Prasad > -Original Message- > From: Rice, David [SMTP:[EMAIL PROTECTED]] > Sent: Wednesday, August 29, 2001 5:04 PM > To: [EMAIL PROTECTED] > Subject: Trouble with Forward... > > Is there any way that anyone knows of to d

Trouble with Forward...

2001-08-29 Thread Rice, David
Is there any way that anyone knows of to do the following from a JSP page: String graphletURL = "/servlets/GraphServlet?cmd=GtMapStatePayouts&nMonths=27:200012"; RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(graphletURL); dispatcher.forward

Re: applet code.

2001-08-29 Thread Kumar Majji
Try webfetch at www.webfetch.com /Sreenivasa Kumar Majji On Thu, 30 Aug 2001 09:36:01 +1200, Arun <[EMAIL PROTECTED]> wrote: >Does anyone know how to download the applet code of any given site ?? I had >been thru' one such site...but i dont remember the site name anymore. If >anyone knows that

applet code.

2001-08-29 Thread Arun
Does anyone know how to download the applet code of any given site ?? I had been thru' one such site...but i dont remember the site name anymore. If anyone knows that would be great... thanx in advance G. Arun Prakash Sr. Analyst Programmer Greenwood Technology Level 8 & 9, 110 Symonds St. A

Re: JSP Beans vs. Java Beans

2001-08-29 Thread Jann VanOver
Thanks for the correction, Richard! Your explanation is great! -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 1:59 PM To: [EMAIL PROTECTED] Subject: Re: JSP Beans vs. Java Beans Steve, I would say that the term 'JSP Bean' is useful and

Re: JSP Beans vs. Java Beans

2001-08-29 Thread Richard Yee
Steve, I would say that the term 'JSP Bean' is useful and would disagree with Jann's statement that 'beans is beans'. The beans that are typically used in JSP pages are used on the server side and not on the client side. They are not typically configured using a GUI tool and are not stored in ser

Re: jsp error page in email

2001-08-29 Thread Richard Yee
Alireza, You can try outputting the stack trace to a temporary file using printStackTrace(PrintStream) and then attaching that file to your email. You could also read the contents of the file back into the body of your email message. -Richard At 04:12 PM 8/29/01 -0400, you wrote: >Hi All, >In m

jsp error page in email

2001-08-29 Thread Alireza Nahavandi
Hi All, In my jsp error page I am sending en email to administrator mentioning the error. Is there any way to send the trace stack to this email?. exception.printStackTrace(...) show the stack on the screen with void return value . Is there any other way to get this stack. Thank you, ===

Re: Currency format

2001-08-29 Thread Richard Yee
Gustavo, If you are working with monetary values and accuracy is important, you should use the java.math.BigDecimal class to perform operations (add,subtract,multiply, and divide) on them. Otherwise, you will introduce rounding errors into your intermediate calculations. Another technique is to

Re: Currency format

2001-08-29 Thread J. Babu
Look at Java Locale class, there is dollar format type you can use it. Babu -Original Message- From: Gustavo Gallas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 2:51 PM To: [EMAIL PROTECTED] Subject: Currency format Hi folks.. It's me again.. What's the best way for me

Currency format

2001-08-29 Thread Gustavo Gallas
Hi folks.. It's me again.. What's the best way for me to work with currency values in Java? I need to multiply some money values such as $ 254,00 with values like 0.526835 ... I'm trying to work with double, but at the end I get as result a number like 167.683625 How do I work with 2 decimal d

Re: Creating a JSP function

2001-08-29 Thread Shawn Zhu
Yeah, pass in a double as the parameter. And declare it in <%! %> tags. -Original Message- From: Gustavo Gallas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 10:59 AM To: [EMAIL PROTECTED] Subject: Re: Creating a JSP function When calling a function dbToMoney I declared, I

Re: Creating a JSP function

2001-08-29 Thread Daryani Santosh
Make sure you include the jsp file if the function is not in the same jsp. Another thing you might wanna check is the datatype you are passing. The method may already be available but you may be passing a value other than double. If you still cannot figure it out, send your code , I can take a l

Re: Creating a JSP function

2001-08-29 Thread Gustavo Gallas
I got it... I was getting the error coz I was calling Double, not double (lowercase).. arrrgh :) thanks a lot - Original Message - From: "Gustavo Gallas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 29, 2001 2:59 PM Subject: Re: Creating a JSP function > When cal

Re: Creating a JSP function

2001-08-29 Thread Daryani Santosh
You can create a function a JSP . JSP gets converted by the JSP container into a java file and compiled into a class file. The JSP is converted into a class and not a function. So if you have a function in your JSP it becomes a part of the CLASS and NOT FUNCTION. Here is an JSP code snippet and

Re: Creating a JSP function

2001-08-29 Thread Gustavo Gallas
When calling a function dbToMoney I declared, I'm getting the following error message: 500 Internal Server Error /Eponte/hc_compre2.jsp: javax.servlet.ServletException: Compilation error occured: Found 8 errors in JSP file: E:\\Servers\\JRun\\servers\\default\\default-app\\Eponte\\parametros.js

Introduction to JSP technology

2001-08-29 Thread Kellie Wiginton
Introduction to JSP technology This tutorial introduces the fundamentals of JavaServer Pages (JSP) technology and discusses the elements that define JSP technology: concepts, syntax, and semantics. It also identifies and exemplifies each element and uses short, specifi

Re: JSP Beans vs. Java Beans

2001-08-29 Thread Jann VanOver
no difference. beans is beans. EJB -- now those are different. -Original Message- From: Steve Bang [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 9:58 AM To: [EMAIL PROTECTED] Subject: JSP Beans vs. Java Beans Is the term "JSP Beans" useful? I've noticed that in several

Re: Creating a JSP function

2001-08-29 Thread Rajesh Nair
Jsp allows any valid Java constructs and functions. You can write a funciton within the <%! %> tags. -Original Message- From: Miihir Sahu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 10:18 AM To: [EMAIL PROTECTED] Subject: Re: Creating a JSP function Hi, As far as

Re: Creating a JSP function

2001-08-29 Thread Miihir Sahu
Hi Richard, Sorry about it. I thaught that is how JSP works. Maybe I have to look how the declaration are converted in Servlet. Thanks Regards Mihir -- From: Richard Yee Sent: Wednesday, August 29, 2001 11:49 AM To: [EMAIL PROTECTED] Subject:Re: Creating a JSP

JSP Beans vs. Java Beans

2001-08-29 Thread Steve Bang
Is the term "JSP Beans" useful? I've noticed that in several JSP books, the authors use this term. One book even had an index reference for JavaBeans that said "See JSP Beans." Yet, when I search Sun's site for the use of the term, it doesn't exist. Is this a useful term to distinguish from Jav

Re: Creating a JSP function

2001-08-29 Thread Richard Yee
Mihir, I'm not sure what restrictions your organization may have, but the JSP Specification says: 2.10.1 Declarations Declarations are used to declare variables and methods in the scripting language used in a JSP page. A declaration should be a complete declarative statement, or sequence there

Re: Creating a JSP Function

2001-08-29 Thread Gustavo Gallas
Thanks a lot James. It worked here.. But I'm getting some error messages when I call methods into this new function inserted in the bottom of the source code. Do I have to include again the methods I wish to use in the function? > > How do I create a simply function into a JSP scriptlet? I'm

Re: Error: JSP Page threw a non-Exception Throwable????

2001-08-29 Thread Haseltine, Celeste
Andrew, Thank you for your code sample. I have not tried to put my LWPPrint.exe into a bat file, since the exe launched and ran fine from my Java class when I tested it as a pure Java application. I will try that idea and see if I get the same error. It was when I put the call to the method in

Re: Error 500 ??? (Sealing Violation)

2001-08-29 Thread Richard Yee
Sufi, First, can you turn off the HTML in your emails? It makes them very hard to read. Yes, it appears that there is a conflict with the crimson.jar, xerxes.jar, xalan.jar, and jaxp.jar files It seems that you are using the Xerces 1 jar file which doesn't appear to support namespaces. I'd sugge

Re: Creating a JSP function

2001-08-29 Thread Miihir Sahu
Hi, As far as I know, we cannot have a function in JSP. This is due to the fact that whatever we are writing in the JSP is combined into a function in a servlet. So if we are to write JSP function, that means function within a function, whichi is not possiblethis is what I know from the

Re: Creating a JSP function

2001-08-29 Thread Miihir Sahu
Hi, As far as I know, we cannot have a function in JSP. This is due to the fact that whatever we are writing in the JSP is combined into a function in a servlet. So if we are to write JSP function, that means function within a function, whichi is not possiblethis is what I know from the

Re: Browser Close (Still Problem) !!

2001-08-29 Thread Ron van Pol
I've solved this problem for us some time ago. Bottomline is that you can't prevent a user from leaving a certain page. Sending a form using document.MyForm.submit() won't work. I've tried that. Use a javascript function that is to be called in the onunload event of the html page. In this javascr

Re: SQL / JavaBean mapping

2001-08-29 Thread Nguyen, Thang P
Is there a free java code for building a database browser, similar to what Oracle has. Thanks, tn -Original Message- From: Nguyen, Thang P [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 8:51 AM To: [EMAIL PROTECTED] Subject: Re: SQL / JavaBean mapping thanks for the info, i

Re: SQL / JavaBean mapping

2001-08-29 Thread Nguyen, Thang P
thanks for the info, i have the same question too. BTW, do I need to have Oracle in order to use JDeveloper to build JavaBean. My database is Informix and wonder if there is a quick free tool to build javabean for this database. Thanks, tn -Original Message- From: Isidoros Vacropoul

Re: Creating a JSP Function

2001-08-29 Thread James Childers
> How do I create a simply function into a JSP scriptlet? I'm > developing an application than cannot call a Servlet. Very easy. You need to put the function definition in the bottom of the code. It'll look like this: <%! public String printVomitVolume (boolean isDisgusting) { [function

TagLib Info

2001-08-29 Thread Aaron O'Hara
All, Is there an easy way to create an iterating taglib that accepts a List (arraylist, vector, etc) and the class name of the objects in the list and the method of the class that should be called on each iteration? In the end, I want to have a multi-purpose taglib for populating select lists.

Re: Result Set and Servlet

2001-08-29 Thread James Childers
> I´m a newbie and struggle with the following problem: > I want the RestultSet to write out every database record, > between two horizontal lines, but it doest not work. I have a > method, that converts everything to HTML, and I want a for > loop, to perform this method on every Record in the

Creating a JSP Function

2001-08-29 Thread Gustavo Gallas
Hi all.. I'm new at JSP.. I just know a bit of Java.. How do I create a simply function into a JSP scriptlet? I'm developing an application than cannot call a Servlet. Thanks -gustavo === To unsubscribe: mailto [EMAIL PROTE

Namespace not supported by SAXParser ??

2001-08-29 Thread sufi malak
Hi, I have this line in a jsp file : transformer=factory.newTransformer(new StreamSource(new File("E:/webapps/xmlsundar/emp1.xsl"))); but I got this error : Error: 500 Location: /xmlsundar/XslViews.jsp Internal Servlet Error: javax.servlet.ServletException: Namespace not supported by SAXParser

Re: Browser Close (Still Problem) !!

2001-08-29 Thread Abhishek Vishwakarma
Hi, I tried with setting the window.location property, but didnt worked. Plus i tried with tag, but the problem is the MyUnload() is called, but the form submit or servlet redirection is not happening... ??? I will make my problem more clearer... I want whenever a browser window is closed a s

Re: Browser Close !!

2001-08-29 Thread yilmaz
Though it is not very related JSP :) function testfn { location="the_address_of_your_servlet"; } regards - Original Message - From: "Abhishek Vishwakarma" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, August 08, 2001 8:48 PM Subject: Browser Close !! >

Re: Error 500 ??? (Sealing Violation)

2001-08-29 Thread sufi malak
could you please explain more how did you solve it ? thanks >From: lee hwaying <[EMAIL PROTECTED]> >Reply-To: A mailing list about Java Server Pages specification and >reference <[EMAIL PROTECTED]> >To: [EMAIL PROTECTED] >Subject: Re: Error 500 ??? (Sealing Violation) >Date: Wed, 29 Aug 2001 16:

Re: Error 500 ??? (Sealing Violation)

2001-08-29 Thread sufi malak
here is how I declared the variable xmldoc : <%@page import="javax.xml.transform.stream.*,javax.xml.transform.dom.*,javax.xml.transform.*, java.io.*, jspbeans.*" %> XSL Transformations <% String view=request.getParameter("view"); XMLDocBean xmldoc = new XMLDocBean(); org.w3c.dom.Docume

Browser Close !!

2001-08-29 Thread Abhishek Vishwakarma
Placed At : Hi, Most of you must have done this... Plz. can anybody tell me how to detect browser close event in Javascript... And how to call a servlet on a Brower close...?? I tried out some thing but it didnt solved my purpose !