Re: accesing images from another server

2001-04-06 Thread Sachin S. Khanna
http:\\www.geocities.com\somepage\someimage.jpg Use this http://www.geocities.com/somepage/someimage.jpg Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Antillon Reyes Rafael Martin - EXT <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Th

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]> S

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 from

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"; S

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 [mai

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

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

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 applicati

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: javax.servle

Re: Organizing Application Constants

2001-04-06 Thread Steven Owens
Rodrigo Gevaerd [mailto:[EMAIL PROTECTED]] wrote: > 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 >

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 [mailt

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

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

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 Srir

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 currentSessio

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

Re: Jakarta configuration

2001-04-06 Thread M. Simms
wml text/wml 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 about Java Server Pages specification and reference > [mailto:

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

2001-04-06 Thread M. Simms
routerJsp CiscoRouterBoInfo.jsp routerJsp /RouterInfo/* Will this work ? > -Original Message- > From: A mailing list about Java Server Pages specification and reference > [mailto:[EMAIL PROTECTED]]On Behalf Of Eric Bouchut > Sent: Friday, April 06, 2001 6:22 AM > To:

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 d

Re: Jakarta configuration

2001-04-06 Thread Kare Nuorteva
Hello, Add mime mappings to web.xml file. wml text/vnd.wap.wml wmlc application/vnd.wap.wmlc wmls text/vnd.wap.wmls wmlscriptc application/vnd.wap.wmlscriptc wbmp image/vnd.wap.wbmp Cheers, Kare On Fri, 6 Apr 2001, [Qa

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

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 dige

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 > true inside > , to specify that your attribute value > may be a runtime > expression to be evalutated. > > []'s, > > Rodrigo. > > >

RES: Taglib question

2001-04-06 Thread Rodrigo Gevaerd
In your model.tld file you must add true inside , 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 Abril de 2001 09:15 > Para: [

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" %> What's your name? What's your e-mail address? What's your age? **

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"); %> ... Instead of getting (if I use 'Ati' as name): Hello Ati I'm getting: Hello <%= username %> This is an example of Oreilly, but as you

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, S

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

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

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 po

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

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. routerJsp /some/where/CiscoRouterBoInfo.jsp routerJsp /RouterInfo When I direct my browser to the JSP URL, /RouterInfo it

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 PRO

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: > > https://smuServer.smu/bla"> > ... > > > This is

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] > Impo

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 th

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 witho

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 JSP-I

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 Regards, Konstantinos Damianakis Kinitron Enterprises Limited --- Deba

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, whi

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, Stef