jakarta jdbc taglib problem....

2001-04-06 Thread Padmakar Neelapareddy
Hi dudes, I am new to usage of taglibs in jsp pages.As of my first attempt I tried to use jakarta jdbc taglib to retrieve values from a table. At the begening of the page I wrote like this %@ taglib uri="http://jakarta.apache.org/taglibs/jdbc" prefix="sql" % but I try to execute the jsp page

Re: How can I catch an JSP error ????

2001-04-06 Thread BERWART Thierry
Thanks you for your answers It's sure that the javascript is more efficient to check the fields before sending to the server but my boss don't want to use javascript because he want that the checking will be realised on the server side :( ... Thanks you Thierry -Message d'origine- De

Re: How can I catch an JSP error ????

2001-04-06 Thread BERWART Thierry
Thanks you Nils ! It seems to be a good alternative... but i loose the benefit of the setProperty method... Yes sure but my boss don't want to use javascript for field verification :/ I found something on http://www.jsptut.com/Taglibs.html It talk about Blazix server. This server have a tag

Re: JAVASCRIPT PROBLEM

2001-04-06 Thread Stefan Murariu
If you want the control of the client software (i.e. browser or other stuff) then sign the script. The philosophy is that if the client trust the server then the server (the page instead) could get the control of client behavior. See also the IE philosophy of trusted/untrusted zones. enjoy,

Re: generating report in Excel

2001-04-06 Thread Stefan Murariu
CREATING MS EXCEL DOCUMENTS VIA SERVLETS, PART 1 Suppose your accounting department wants to load information from an employee database into its employee Excel spreadsheet. How could you deliver that information? One method is to provide a file of the Employee table information,

Re: generating report in Excel

2001-04-06 Thread Konstantinos Damianakis
Hi, There is a commercial tool called "formula one" for java that will allow you to do anything Excel does in Java and will produce, via its gui tool or its API, an XLS file. Check http://www.tidestone.com/home/default.jsp Regards, Konstantinos Damianakis Kinitron Enterprises Limited ---

No Subject

2001-04-06 Thread Namal Gunasekera
hi all, i have apache and jrun servers how can i run jsp,ejb and servlets thanx Namal === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set

Cookie problem

2001-04-06 Thread Sebouh
Hello everyone, i have the following code in a jsp file, i want to set a cookie to remember the loginname and the checkbox value, if the checkbox value is null (is not checked) i want to kill/destroy the cookie... if it's not null i want it to set the cookies... when i use the following line

generating a excel page in the browser

2001-04-06 Thread Carlos
in a jsp page if i put: %@page contentType="application/vnd.ms-excel"% the browser shows me a excel page. but there is a problem. It show me a jsp page if i say to it for shown and not to save. when i want to see this page it asks me if i want to save or show the page. What must i to write in the

No Subject

2001-04-06 Thread Hoorn, Michiel van
By reading the getting started guide and the manual. Michiel; -- From: Namal Gunasekera[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Friday, April 06, 2001 8:32 AM To: [EMAIL PROTECTED]

Getting the name of the server.

2001-04-06 Thread Stefán F. Stefánsson
Hi. I'm trying to access the name of the web server as it is published on the web. I'm creating links and actions for forms and I need to be able to know what the name of the server is that the JSP is coming from. For example: FORM name="smuForm" method="POST"

Re: Cookie problem

2001-04-06 Thread G Sivarajagopal
When ever you use forward tag ensure that the forward is done before any response is sent to the client using the response object. this seems to be the problem in your case, as this response never reaches the client. cheers Sivarajagopal -Original Message- From: Sebouh [mailto:[EMAIL

How do I set up a JSP alias with Tomcat standalone ?

2001-04-06 Thread Eric Bouchut
Hello, How do I set up an alias for a JSP using Tomcat in standalone mode ? Here is an excerpt of my web.xml configuration file. servlet servlet-namerouterJsp/servlet-name jsp-file/some/where/CiscoRouterBoInfo.jsp/jsp-file /servlet servlet-mapping

Re: Getting the name of the server.

2001-04-06 Thread Marie Josephe Plainecassagne
Try something like : % StringBuffer sbu = javax.servlet.http.HttpUtils.getRequestURL(request); String uri = request.getRequestURI(); String ssbu = sbu.toString(); int indx = ssbu.indexOf(uri); ssbu = ssbu.substring(0,indx); % getRequestURL() returns the full URL while getRequestUri()returns the

Re: Getting the name of the server.

2001-04-06 Thread Stefán F. Stefánsson
wow... thanks for the tip... but I went with request.getServerName() :o) obviously I didn't look hard enough before asking :o( sorry about that. Regards, Stefan. p.s. one thing about the getServerName() though, it does exactly that, just the server name, not the scheme (http or https) or the

Jakarta configuration

2001-04-06 Thread [Qari Qasim]
Does anyone know how to configure Jakarta server's content-types so it can understand wml content-type === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with

web stress tool

2001-04-06 Thread Kishor K
hi, can anyone suggest a good web stress tool for testing jsp applications in apache-tomcat server . regards kishor _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com

Re: generating a excel page in the browser

2001-04-06 Thread Stefan Murariu
Is a user-defined behavior (to use Ole in place, open another application or save to disk). So, if you want an answer just for you, change the behavior of YOUR browser. Also you can control the behavior from page (jsp, html, asp, jhtml or whatever) with a client-side scripting language. Regards,

Taglib question

2001-04-06 Thread Atilio Ranzuglia
Hey everybody: I'm learning about Tag Libraries, but I have the following problem: (in my jsp file) ... % String username = request.getParameter("name"); % ... sample:hello name="%= username %" / Instead of getting (if I use 'Ati' as name): Hello Ati I'm getting: Hello %= username % This is

argghh my object is null ... why ????

2001-04-06 Thread BERWART Thierry
Hello, I have 2 simple JSP page : one for recording the datas and the other to display these datas : GetName2.jsp %@ page import="UserData" % jsp:useBean id="Tuser" class="UserData" scope="session"/ jsp:setProperty name="Tuser" property="username" param="pusername"/ jsp:setProperty

RES: Taglib question

2001-04-06 Thread Rodrigo Gevaerd
In your model.tld file you must add rtexprvaluetrue/rtexprvalue inside attribute, to specify that your attribute value may be a runtime expression to be evalutated. []'s, Rodrigo. -Mensagem original- De: Atilio Ranzuglia [mailto:[EMAIL PROTECTED]] Enviada em: Sexta-feira, 6 de

Re: RES: Taglib question

2001-04-06 Thread Atilio Ranzuglia
Thanks, I finally understand what 'rt' inside 'rtexprvalue' means. Bye --- Rodrigo Gevaerd [EMAIL PROTECTED] wrote: In your model.tld file you must add rtexprvaluetrue/rtexprvalue inside attribute, to specify that your attribute value may be a runtime expression to be evalutated.

Re: argghh my object is null ... why ????

2001-04-06 Thread Marie Josephe Plainecassagne
setProperty must be done in the page called by the submit not before, otherwise the parameters do not exist so the values are empty. MJ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For

Re: jakarta jdbc taglib problem....

2001-04-06 Thread sufi malak
Did you put jdbc.jar in your classpath ? From: Padmakar Neelapareddy [EMAIL PROTECTED] Reply-To: A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: jakarta jdbc taglib problem Date: Fri, 6 Apr 2001 07:59:41 +0200 Hi

Re: Jakarta configuration

2001-04-06 Thread Kare Nuorteva
Hello, Add mime mappings to web.xml file. !-- MIME type mappings -- mime-mapping !-- WML Source -- extensionwml/extension mime-typetext/vnd.wap.wml/mime-type /mime-mapping mime-mapping !-- Compiled WML -- extensionwmlc/extension mime-typeapplication/vnd.wap.wmlc/mime-type

Re: argghh my object is null ... why ????

2001-04-06 Thread BERWART Thierry
Thanks you !! It's working :) Thierry -Message d'origine- De : Marie Josephe Plainecassagne [mailto:[EMAIL PROTECTED]] Envoy : vendredi 6 avril 2001 15:00 : [EMAIL PROTECTED] Objet : Re: argghh my object is null ... why setProperty must be

Re: Jakarta configuration

2001-04-06 Thread M. Simms
mime-mapping extension wml /extension mime-type text/wml /mime-type /mime-mapping Place this in the web.xml file.either in the %TOMCAT_HOME%\CONF or the \WEB-INF\ of the webapp -Original Message- From: A mailing list

Re: How do I set up a JSP alias with Tomcat standalone ?

2001-04-06 Thread M. Simms
servlet servlet-namerouterJsp/servlet-name servlet-classCiscoRouterBoInfo.jsp/servlet-class /servlet servlet-mapping servlet-namerouterJsp/servlet-name url-pattern/RouterInfo/*/url-pattern /servlet-mapping Will this work ? -Original Message- From: A mailing list about

Re: Jakarta configuration

2001-04-06 Thread [Qari Qasim]
Thanks. Actually this is exactly what I did last time, but when I try to display my wml page on a wap browser, I get the following error: " Content-Type Error ...found Content-type: text / plain. No translator for Content-type: text/plain." I hope you can help -Original Message-

Re: session variables

2001-04-06 Thread Ortiz, William J
The JSP 0.91 Specification does not provide support for session objects by default. This was implemeted in JSP 1.0 and above (correct me if wrong). You can still create HttpSession objects in your JSP code and work with them as usual. You can do something like this: % HttpSession

Connection to the database

2001-04-06 Thread Sriram R
I am not able to connect to the database. I have a HTML page where i capture a employee code. I have to fetch the employee name from the database for the corresponding employee code. The output (viz the employee name) should be displayed in a JSP page. How do i do this. Any pointers. Regards

Re: Connection to the database

2001-04-06 Thread Maurice M
First Create a form that passer the employee code, then the receiving page (jsp page) have the request.getparameter, whatever you call the value to pass on the form, then connection to the database where you are retreive the value and in your sql statement , do a select employee_name, where =

Organizing Application Constants

2001-04-06 Thread Rodrigo Gevaerd
I got an application that has several constants (for example, database url). The application consists of several JSPs for presentation and classes for the persistence. How can I keep the application constants, so that 2 applications of this type (with different constants values) can co-exist in

Re: Organizing Application Constants

2001-04-06 Thread Rob L'Estrange
I usually put my constants in a class called Constants. I implement them as final and static. I'd then deploy the class in my location accessible to all web applications running in my JSP/Servlet server. I think this location would be server specific (but I could be mistaken). From any web app, I

Re: Organizing Application Constants

2001-04-06 Thread Basuki, Rendra
Do you have to use a constant? (i.e.: Does your applciation has to have a static vars?) If not, try to use a regular var, that way the variable won;t be shared among the apps that is instantiated. I hope this is according to what you want. -Original Message- From: Rodrigo Gevaerd

JNI with JSP and JavaBeans

2001-04-06 Thread Tello, Fredy Ramiro
Hi, I had developed a dll file with VC++ for read data of parallel port (JNI). I had developed a JSP with a JavaBean and I need to call the native method in my bean but I obtain the followin error Error: 500 Localizacion: /examples/tesis/database/demo.jsp Error interno del servlet:

Re: web stress tool

2001-04-06 Thread sun_king
check here for a good selection: http://www.softwareqatest.com/qatweb1.html this is good: http://www.velometer.com/ and here: http://www.geocities.com/SiliconValley/Peaks/3649/JHttpServerTester.html Kishor K wrote: hi, can anyone suggest a good web stress tool for testing jsp

Servlet debug

2001-04-06 Thread Tonny Liu
hi,I can't find any good debug tools for servlet. can anybody give a hand? thanks in advance. Using jdb remote debug? === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL

remote debug

2001-04-06 Thread Tonny Liu
Hi, all, maybe such question shouldn't be post here. but I really need some help. I want to remot debug an application, so I run the following command:(Linux, JDK1.2.2): java -Xdebug -Xbootclasspath:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar \ -Djava.compiler=NONE TestRuntime It

Re: Getting the IP of server

2001-04-06 Thread Hamid
Hi, Can we get the IP of server from which the page is coming(Webserver). e.g If Webserver IP = 192.168.0.20 and its Name = www.JSP.com then how will we get its IP in jsp page. Hamid Hassan -Original Message- From: A mailing list about Java Server Pages specification and reference

Re: JSP and Databases

2001-04-06 Thread Hamid
Hi, make conection with DB and access data in following way from any DB. -- Connection con = null; Statement stmt = null; ResultSet rst1 = null; String url = "jdbc:odbc:DSN-Name";

Re: How to encript file

2001-04-06 Thread Hamid
Hi, I want to read global info (like global.asa in asp) from some static text file. but it also contains some imp info which i dont want to give to client, so want to do some encryption on it. Is there any facility in JSP/Java Beans that i will encrypt that text file and decrypt while reading

Re: Getting the IP of server

2001-04-06 Thread OK Prakasan
Hi Hamid, u can use request.getRemoteHost() and request.getServerName() to get the Server Name and Server IP Hamid [EMAIL PROTECTED]@java.sun.com on 04/07/2001 10:33:33 AM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] Sent