Reusing jsp code

2000-04-20 Thread Miller Thomas
Hi, can someone tell me how to effectively reuse jsp code? I have seen three techniques: i) put the code into a bean - needs more access to the web server than I have ii) call another jsp - screen flickers iii) cut and paste - the usual problems Is there another way that I have missed? Yours

Re: Error inserting in DataBase

2000-04-20 Thread Sachin S. Khanna
Declare your getConn( ) method inside the declaration tag i.e. %! .your code here % instead of the scriptlet tag. This could be one reason for the error. Have a nice day. With regards, Sachin S. Khanna. www.emailanorder.com - Original Message - From: Jose Castro [EMAIL PROTECTED]

JSP FAQ Resource Information

2000-04-20 Thread Anil K. Vijendran
This is a weekly informative posting to the jsp-interest list. Before asking questions of a general nature, please check out the resources available online to see if your question already has an answer. The best place to start

Re: how to give parameters from a jsp to another?

2000-04-20 Thread Veronique Dupierris
If you use a link you can just write: A HREF="bbb.jsp?useris=value"... If you use a form, you could use a hidden field Hope this help Veronique Hui Du a écrit : There is a String userid in aaa.jsp, how can I tansfer it to bbb.jsp?

SSL and user identification

2000-04-20 Thread Mazza Mauro
How can I get user informations from jsp when I use SSL with client authentication? E.g. if I use OAS with SSL requiring client authentication via certificate request, how can I know in my jsp script which is user connected to my page? Thank's in advance Mauro

Re: Reusing jsp code

2000-04-20 Thread Olivier Mangez
%@ include file="filename" % includes the file content at compilation time - Original Message - From: Miller Thomas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 20, 2000 8:39 AM Subject: Reusing jsp code Hi, can someone tell me how to effectively reuse jsp code? I

Re: how to give parameters from a jsp to another?

2000-04-20 Thread chandra
- Original Message - From: Veronique Dupierris [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 20, 2000 5:16 PM Subject: Re: how to give parameters from a jsp to another? If you use a link you can just write: A HREF="bbb.jsp?useris=value"... If you use a form, you

Re: Error inserting in DataBase

2000-04-20 Thread Robo ilka
You can use rather PreparedStatement. Here is (JavaDoc) examle: PreparedStatement pstmt = con.prepareStatement("UPDATE EMPLOYEES SET SALARY = ? WHERE ID = ?"); pstmt.setBigDecimal(1, 153833.00) pstmt.setInt(2, 110592) RoBo Zilka /EuroWeb a.s. /www.euroweb.sk /mailto:[EMAIL

Re: Resin from Caucho

2000-04-20 Thread Vyacheslav Pedak
About Resin benchmarks, see here http://forum.swarthmore.edu/epigone/modperl/snahquandzhu/Pine.BSI.3.96.10002 [EMAIL PROTECTED] Vyacheslav Pedak - Original Message - From: Geert Van Damme [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 20, 2000 4:05 PM Subject: Re: Resin

Architectural dilemma

2000-04-20 Thread Tim Fox
We're developing a site using the now familiar 'model 2' architecture. Ie we have a controller servlet through which all requests are routed, and then, depending on the action requested a "web action" classes is instantiated and a method is called on it. This, in turn instantiates any business

Re: Resin from Caucho

2000-04-20 Thread Geert Van Damme
OK, that's what I meant when I said the results could be a bit biased because they are their own test results. Anyway, even given that, Resin performs remarkably well compared to other servlet engines. The fact that it's written in Java is no problem at all, and that was the original question

Re: How to dynamicaly include files in jsp, not using%@ include file=filename%?

2000-04-20 Thread Arnab Acharya
Dear Group, I'm afraid I'm not fully into this but, in our project we've done something similar. We used : jsp:include page="top.jsp" flush="true" Here, we were able to take up the changed file. However, as far as dynamism was concerned, the file was fixed i.e., top.jsp and not any other

Re: com.sun.image.codec.jpeg

2000-04-20 Thread Holmes III, William S
Hi Pradeep, It's part of the jdk. You'll see it if you unzip the src.jar Good luck. Bill -- From: Pujari, Pradeep Kumar (GEA, 081970)[SMTP:[EMAIL PROTECTED]] Reply To: A mailing list about Java Server Pages specification and reference Sent: Wednesday, April

Problems with sessions...

2000-04-20 Thread Franck Rageade
Hello everyone, Perhaps you may find my questions trivial, but I am not an experimented JSP addict yet... I'm developping a JSP based intranet portal using Resin 1.1 as servlet motor. When a user is authenticated, a User object is instanciated with the user's configuration and this objet

Re: Resin from Caucho

2000-04-20 Thread Karl Avedal
Hello Geert, I don't agree, Check out their own performance benchmarks (I know, it's their own ;-) It appears that Resin is miles faster than anything else, only Orion server comes in the same range. (and that's also a java solution ;-) vendor As a note, the Orion version tested was

Re: Architectural dilemma

2000-04-20 Thread Jon Baer
I dont really see why you wouldnt use your a) solution since its technically not part of the "presentation" @ all. The value you are returning is simply a different type and inside a page you could call on both: %= customer.getName() % %= customer.getParsedName() % I personally find more value

Re: how to give parameters from a jsp to another?

2000-04-20 Thread Arnab Acharya
I think that it should be like: jsp:forward page="bbb.jsp" jsp:param name="user" value="name" jsp:param name="id" value="0001" /jsp:forward * Yes, it works! We did it on our project -- an autoportal. Arnab * But I get the feeling that this doesnt work (taken from a model from ATG

Re: how to give parameters from a jsp to another?

2000-04-20 Thread Arnab Acharya
Extremely sorry! It was for include, not forward! -Original Message- From: Arnab Acharya [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 20, 2000 3:40 PM To: [EMAIL PROTECTED] Subject: Re: how to give parameters from a jsp to another? I think that it should be like:

Re: JSP Performance?

2000-04-20 Thread Arnab Acharya
Could u specify? How freely available r they? Ultimately, what matters, initially, is deadlines to customers! -Original Message- From: Karl Roberts [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, April 19, 2000 2:47 PM To: [EMAIL PROTECTED] Subject: Re: JSP Performance? Hi, Many

2 ques about servlets-urgent!!

2000-04-20 Thread abhishek shodhan
Hi all... 1. We have bought some web space on a web server that is running RedHat Linux 2.0.2.27. The problem with this is that they are running an open Web Server and therefore the administrator does not know how to configure the Server to support servlets. Please guide me as to how I can tell

maintaining information using JSPs.

2000-04-20 Thread Bilal Ali Nawaz
hi all, i'll be grateful if some of you can take the time out to answer my following questions: i know that using the scope property of a bean, we can maintain some information but what approach, if any, should be adopted if want to maintain some multiple session information like a log

Re: java web server with simplified chinese character.

2000-04-20 Thread RZILKA
Support only version 0.92, I think. iPlanet 4.1 support JSP ver. 1.1. RoBo Zilka /EuroWeb a.s. /www.euroweb.sk /mailto:[EMAIL PROTECTED] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 20, 2000 12:38 PM To: [EMAIL PROTECTED]

problems running my first servlet

2000-04-20 Thread paurnima sabne
I am having problem running my first servlet... i have loaded jsdk2.0 and javawebserver2.0 can you tell me how to configure my machine in order to run a servlet? i tried to follow the readme instructions but servletrunner.exe file is not executing...i am not able to find the solution can you

Model 2 Refs

2000-04-20 Thread Dzenan Ridjanovic
http://www-4.ibm.com/software/ebusiness/pm.html http://www.brainopolis.com/Jsp/book/jspBook_Architectures.html http://archives.java.sun.com/cgi-bin/wa?A2=ind9904L=jsp-interestF=S=P=32567 http://www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc_p.html

Re: how to give parameters from a jsp to another?

2000-04-20 Thread Jon Baer
Can I ask what JSP Engine you used? Im still trying to figure out if this works with JRun 2.3 (since I think it was part of their own scripting language and even called it JRun Server Pages), see, I have an account @ Servlets.Net and not on my own and I dont think they will be upgrading to 3.0

Re: Session on start

2000-04-20 Thread Bruno C. Reded Tinoco
Use the Servlet init() method for do that! []s Bruno Reded - Original Message - From: "anderson" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 19, 2000 10:48 PM Subject: Session on start How can I put a code to run when a session starts ? Like ASP global.asa ...

Re: java web server with simplified chinese character.

2000-04-20 Thread Ritesh Sinha
Hi, JSWDK1.0.1 supports JSP 1.0 and Servlet 2.1. JRun 2.3 also supports JSP 1.0 HTH, Ritesh RZILKA [EMAIL PROTECTED] on 04/20/2000 04:23:16 PM Please respond to A mailing list about Java Server Pages specification and reference [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc:

Re: problems running my first servlet

2000-04-20 Thread Sajeendra
Hai.. You have to do the followong things to run your servelet..in your machine.. First you have to store your servlet program in the servlet directory of your Java Webserver...ie C:\JavaWebServer\servlets\...directory. 2. Compile the Servlet prg..there itself.. 3. Run Your

Re: downloading images

2000-04-20 Thread Vin Lisciandro
This is something that is *supposed* to be possible by setting MIME types for the file, but you'll run into some problems. If you have a servlet that downloads the file, you can "fool" the browser into using the right file extension by appending your servlet with extra 'path info'

AW: IIS+ JSP+RESIN = 404 !!

2000-04-20 Thread Nestel, Frank
We are doing a large comparison on servlet engines here. I have tested ServletExec, JRun, JServ the SUN JSWDK, some both on WIN-NT and a Linux Environment if applicable. Resin was one of the harder engines to put to work under Windows-NT. The description of the installation of the ISAPI Filter

Re: JSP Security using SecurityManager and java.policy

2000-04-20 Thread Sajjad Muzammil
there is no engine yet found which can simultaneously take care of data communication as well as security manager.. u have to write ur own security manager class.. will let u know if found any thing new... till yet keep : ) Muzammil

Jsp directory

2000-04-20 Thread John Gbur
Is there a way to specify another directory path when forwarding a jsp file from a servlet? The RequestDispatcher insists on looking in /apps/netscape/server4/docs for the jsp file (we are using NES 4.0 SP3). We have already added the other directory as an additional servlet path. Any

Re: Architectural dilemma

2000-04-20 Thread Chris Colebourn
Instead of using a utility method I would use delegation of the JSPWriter to write the output in the JSP page. That way a developer doesn't add new code and "forget" to call the utility method on the output text. For example You can create a class as follows: public class SafeHtmlWriter

Re: How to dynamicaly include files in jsp,not using%@ include file=filename%?

2000-04-20 Thread Veronique Dupierris
As Craig just told you in the previous mail , you habe to use : jsp:include page="%= pathname %" flush="true"/ where pathname is the path and/or name of a file that could be depending on few parameters at runtime if(blabla) pathname= toto.jsp else pathname= titi.jsp regards veronique

Re: Problems with sessions...

2000-04-20 Thread Veronique Dupierris
Hi, I have exactly the same application : - A UserInfo beans with session scope, where i also have static objects to share some info between all users and I have a logOff button which call session.invalidate(). I also use the HttpSessionBindingListener interface to know when the session

Re: Java Division Problem

2000-04-20 Thread Richard Yee
Geneva, This isn't a problem. The same behavior exists in C, Pascal, or most any other programming language. It is caused by the limitations of representing floating point numbers using a binary number. Floating point numbers should not be tested for equality. If you need the result of your

having trouble using password field box in jsp

2000-04-20 Thread Peter Choe
i am trying to pass a value from a password type input box in a form using post method to a jsp file. but for some reason, the value is not being sent across. in my bean that is suppose to set a value, the value being set is null. doesn't jsp allow for values to be passed from a password input

Re: having trouble using password field box in jsp

2000-04-20 Thread Jim Michael
i am trying to pass a value from a password type input box in a form using post method to a jsp file. but for some reason, the value is not being sent across. i am using tomcat3.1. can it be an issue with tomcat? More than likely a syntax error. Post the offending code.

Flat files driver

2000-04-20 Thread Jean de Lavarene
Does anyone know a 'flat files' driver for JDBC (like the one for ODBC) that I could use in my servlets? Jean === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on

date/file last modified question

2000-04-20 Thread Rick Reumann
The following code works fine in my page to convert the last modified date into a mm-dd- format. %@ import="java.text.*, java.io.*, java.util.*;" % % String logFileDate = null; File logFile = new File( "/app/webdocroot/insidectm/logs/coxdirect/2000/cdcor2000report.ht m" ); if(

Re: Java Division Problem

2000-04-20 Thread Davis, Geneva
Thank you for your help. Your response and the sample code are greatly appreciated! -Original Message- From: Richard Yee [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 20, 2000 11:01 AM To: [EMAIL PROTECTED] Subject: Re: Java Division Problem Geneva, This isn't a

passing lots of text from servlet to JSP

2000-04-20 Thread Nathan Hoover
How can I pass a large amount of text from my servlet to a JSP page? I know that I can pass parameters on the query string but that is generally limited to like 256 bytes or something, and the data that I want to pass is a lot (2-3k) of text. N

[sorry] ignore post date/file last..

2000-04-20 Thread Rick Reumann
Sorry I didn't realize I could just add extra 'M's' to the MM part of the simple date format method to create "text" instead of the number representation. Ignore my last question to the list. I apologize. Rick === To

Software Architects

2000-04-20 Thread job job
We are a start-up here in the bay area and are looking for software architects to lead technology development efforts at Exend. Our technology is a next generation platform that will change the way we obtain information and conduct transactions on the Net. The product is intuitive and user

JSP Debugging Experiences

2000-04-20 Thread Kevin McEntee
Friends, Attached is note I posted on a Visual Age for Java newsgroup without getting much response. I am posting it to this group in the hope that people will share their JSP debugging experiences. Friends, Today is my first day evaluating VAJEE.

Re: Architectural dilemma

2000-04-20 Thread Craig R. McClanahan
Tim Fox wrote: We're developing a site using the now familiar 'model 2' architecture. Ie we have a controller servlet through which all requests are routed, and then, depending on the action requested a "web action" classes is instantiated and a method is called on it. This, in turn

Re: Architectural dilemma

2000-04-20 Thread Arun Thomas
This probably will not work with a JSP because the JSPWriter object out is used to output all the text in the JSP page, the standard HTML, as well as the code generated by scriptlets, etc. If this SafeHtmlWriter class is used in a JSP page, all occurrences of '', '', '' which occur in the page

Re: 2 ques about servlets-urgent!!

2000-04-20 Thread Jesse Clark
If the sys. admin of your ISP doesn't know how to configure the server for servlets you will probably run into more problems than it is really worth. That is also assuming that it a server that supports servlets. It would probably be easier just to use an ISP that supports servlets/jsp etc.

Re: Resin from Caucho

2000-04-20 Thread Scott Ferguson
I don't normally like responding to the vendor comparison messages because it doesn't really seem to be appropriate to the list and has the potential to turn into a useless vendor war. The model 2 architecture stuff is much more interesting. But I did try very hard to make those benchmarks

Re: String Compares in JSP

2000-04-20 Thread Piotr Wierzbicki
Hi, Why don't you try to use String.equals()? ... // Following code is for debugging purposes - doesn't work at the moment String strError = request.getParameter("error"); if (strError.equals( LOGIN ) == 0) // === ? { out.println(strError + "::"); } out.println(strError); % body ...

New JSP books

2000-04-20 Thread robert young
the Softpro bookstore web site now lists both the Fields/Kolb and Pekowsky [didn't know this one was coming] JSP books. any thoughts yet on which is better? thanx, robert young === To unsubscribe: mailto [EMAIL PROTECTED]

Re: Architectural dilemma

2000-04-20 Thread Hans Bergsten
Tim Fox wrote: [...] So... most strings that we display on jsp pages have to first be put through a method which converts all these 'strange characters' to their html escape sequences ( goes to amp; goes to lt;) - the method is just a big case statement. The question is: Where do I call

Re: String Compares in JSP

2000-04-20 Thread Kevin Duffey
JRUN build 153 was buggy! Get build 157 immediately. It fixed some of the buggy problems in 153. === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found

Re: Resin from Caucho

2000-04-20 Thread Kevin Duffey
Can you explain why? Most app servers are mostly java written, and thus far I have seen BETTER performance and no crashes from them, over using IIS and/or Apache. Is there a reason you say not to use a Java based web/app server? If its for performance reasons, I think you'd have to really try it

Re: Resin from Caucho

2000-04-20 Thread Kevin Duffey
Much agreed. I can vouch for Orion. I have both Orion and Resin 1.1 set up running the same app. Orion is beating Resin by about 25% in most tests. Being that they are the same price, other than the fact that Resin is open-source and Orion isn't (yet...come on boys..make it open source. :), Orion

Re: New JSP books

2000-04-20 Thread Vimal Kansal
Fields/Kolb is by far the best book. You will love it. Vimal robert young wrote: the Softpro bookstore web site now lists both the Fields/Kolb and Pekowsky [didn't know this one was coming] JSP books. any thoughts yet on which is better? thanx, robert young

Re: Resin from Caucho

2000-04-20 Thread Osvaldo Pinali Doederlein
- Original Message - From: "Scott Ferguson" [EMAIL PROTECTED] Resin/IBM 620 529 553 4384 Orion/JDK1.2 192 190 428549 Resin/JDK1.2 267 212 234671 I just put in production a JSP app running on TomCat 3.1, which performance looks very good

Model 2 forwarding and combining JSPs on the same HTML page

2000-04-20 Thread Shun, Vadim
Hi, I have a question as to how to combine multiple JSPs in model 2. This is rather typical situation: input form (JSP 1) at the top of the page, while JSP 2 containing resulting data (table, etc) is at the bottom of the page. This JSP 2 is handed over the data by Command/Action class. In

Re: IIS+ JSP+RESIN = 404 !!

2000-04-20 Thread Mokashi, Swanand
I tried ServletExec ..It works perfectly ..with IIS !!No more frustrations ,no more hassles ...also at 495 $ its not all that much !! Has a trial edition ...u can try it ..I hope it works for you! -Original Message- From: Nestel, Frank [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 20,

Re: 2 ques about servlets-urgent!!

2000-04-20 Thread Jon Baer
The best one I have found to be www.servlets.net. They are pretty good, you can set up an account and run your servlets in a matter of hours since the JavaMail 1.1 is already included. - Jon Jesse Clark wrote: If the sys. admin of your ISP doesn't know how to configure the server for

Re: User Authentication

2000-04-20 Thread Duane Fields
I'll add my 2cents with regard to the "use servlets as controllers" and "extend them from a base class that implements access control" method of solving this problem. What I do is allow my base servlet class to accept init properties like "requiresLogin=true" and "loginPage=/login.jsp", allowing

To watch for help in enterprise development...

2000-04-20 Thread Dzenan Ridjanovic
To watch for help in enterprise development: http://www.gemstone.com/javasuccess/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at:

Cookies

2000-04-20 Thread Kishore Raghavan
Hi Scott, Does JRun support URL based cookies ? Thanks === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". Some relevant FAQs on JSP/Servlets can be found at:

Re: param not work

2000-04-20 Thread piyush raj jain
hi all .. same question for jswdk1.0 i have posted sometimes back .. but couldn't get any reply.. 1. jsp:forward page="bb.jsp" jsp:param name="userid" value="g" / /jsp:forward giving the compile time error :com.sun.jsp.compiler.ParseException: unterminated jsp:forward tag

No Subject

2000-04-20 Thread Arnab Acharya
Check on your session's scope. -Original Message- From: Aruna Sreeram [SMTP:[EMAIL PROTECTED]] Sent: Thursday, April 20, 2000 9:10 PM To: [EMAIL PROTECTED] Subject: Hi I am just starting off using JSP with Sun's J2EE server on a Windows NT Workstation.Although the default