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
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 !
==
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
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
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
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:
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
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
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
=
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
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
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
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
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..
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
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
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
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
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
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
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
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
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,
===
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
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.
> 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
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
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
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
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 !!
>
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:
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
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 !