JSP forward tag

2000-02-02 Thread Ravindranath Yagatili Venkata
Hi ! I would like to use the JSP forward tag to transfer the request from for.jsp to for1.jsp when data is submitted from f1.html I have put the following piece of code in for.jsp viz., at the top of the page jsp:forward page="for1.jsp"/ But it does not forward to the for1.jsp page. Any

about chinese characters in JSP

2000-02-02 Thread Jiang Patrick
hello,everyone i meet a problem in my program which include chinese characters in the jsp page: 1,variable "subType" is a string which i read from database represent some chinese characters. i use "System.out.println(subType);" to print the string. it's correct. 2,String

Graphs using JSP?

2000-02-02 Thread SANJEEVMITTAL
Hi Friends, Can we generate graphs using JSP? Lets say, I have 4 values: 10%, 30%, 55%, 5%. Can I get a Pie chart or Bar chart using JSP? TIA, Sanjeev === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff

About JSP

2000-02-02 Thread Naresh Singh Chhonker
Hello all I am New to JSP, i have just downloaded JSDK1.0 from sun site Now according to Configration file i Put tool.jar in Class path But Now i am facing Problem : On clicking Startserver.bat it flash Dos screen for fraction of seconds and server will not start So how can i get rid of this

Re: JSP Architectural Question

2000-02-02 Thread Daniel Lopez
Hi Damian, I can't answer how Craig does it, but I use a very similar approach and that's how I do it: My controller servlet reads its configuration from an XML file that, among other things, has a portion like this: SUFFIX VALUE="myapp" / ... OPERATION NAME = "ShowMenu"

Re: What is the difference between Import and useBean

2000-02-02 Thread SoftLiban KEYROUZ Charbel
It is not the style that bothers me rather what is really the difference between using import and useBean, for example useBeanwill instantiate the object, plus you have the ability to giveit a scope and we shouldn't forget the get and setProperty. The problem is, which is better import or

Calling servlet from JSP

2000-02-02 Thread Stéphan Benichou
Can anyone explain me how to call a servlet from a JSP page. The princip is: JSP pageServlet == % jsp code ... % Call the servlet --

Re: Calling servlet from JSP

2000-02-02 Thread Lee Elenbaas
use the include tag: jsp:include page="/servlet/Test" flush=true -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Stéphan Benichou Sent: Wednesday, February 02, 2000 12:01 PM To: [EMAIL PROTECTED] Subject:

Re: JSP Architectural Question

2000-02-02 Thread Jari Worsley
I too followed the thread, some good ideas here - keep them "open" in this forum and we can all use them :) As we're back onto this, I've got a few questions below about responsibilities and behaviour. It'd be good to get opinions of those "at the coal face" who have written large jsp projects.

Method calling itself

2000-02-02 Thread Paul Medcraft
I am developing a threaded message board. Each message has an ID, a parentID (if it is a reply) and a threadID. To display the children of the current message (and their children, and so on), I have written the method below. %! public void showChildren(int p_id, int level, ResultSet r, JspWriter

Re: New JSP Book

2000-02-02 Thread D. J. Patil
it is perfect === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html

Re: WML and JSP

2000-02-02 Thread Jens Andersen
Hi, What about dynamic generation of WBMP files! Is there any classes available?? Regards, Jens Andersen -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Magnus Bjorkman Sent: 2. februar 2000 08:31 To:

Re: JSP NewBie Question

2000-02-02 Thread Bill White
Try the following: Allaire Homesite Beta 4.51 (www.allaire.com) -This is a good HTML editor with JSP tag coloring support Pramati Studio (www.pramati.com) -This is an enterprise Java environment which support JSP creation and debugging. I've used the beta and it is really cool.

Re: JSP Architectural Question

2000-02-02 Thread Daniel Lopez
Hi Jari, Well, I can't tell you I have written very big JSP projects, but I have a couple of them working now (I can give the URL's but they are in Catalan, not even Spanish, so...) and the last of them might get you some answers. Comments are intermixed for clarity's sake. Jari Worsley wrote:

Calling a JSP from a servlet

2000-02-02 Thread BASAR DALDAL
Department: Genel Mdrlk/Bilgi lem Hi, I have a question about JSP invocation. The following causes the client browser to call MyPage.jsp, am I right? response.sendRedirect ("MyPage.jsp"); Is there a method for drectly calling the JSP page, I mean, on the server side, without sending the

Re: Graphs using JSP?

2000-02-02 Thread Bail . Jeff
Bar charts are easy to generate as HTML tables. For example: TABLE TR TD align=center table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=3 WIDTH="100%" tr % int red = p.getRedPercentage(); int yellow =

Access to HttpServletRequest within JavaBean?

2000-02-02 Thread Jeff Aldrich
A couple of questions for the group: 1) Is it possible to access the HttpServletRequest object from within a JavaBean in a JSP page without passing it in explicitly with a method such as % bean.processRequest(request); %? 2) What is the best/cleanest way to gain access to the real path to a

Re: Looking for a hosting service that supports JSP

2000-02-02 Thread Siegel, Craig
Tristar Web has licensed the Jrun servlet engine from Allaire to support the latest Servlet API from Sun. http://www.tristarweb.com/ === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP

Re: JSP Architectural Question

2000-02-02 Thread Craig R. McClanahan
See below for inserted comments. Jari Worsley wrote: I too followed the thread, some good ideas here - keep them "open" in this forum and we can all use them :) As we're back onto this, I've got a few questions below about responsibilities and behaviour. It'd be good to get opinions of

Re: Global Properties

2000-02-02 Thread David Mossakowski
All the previous answers about loading from properties files and using servlet context are valid but I think you mean that you have _physically_ separated servers which have physically separated servlet engines attached to them. It is a much bigger problem in such a case. The servlet API does

Re: Method calling itself

2000-02-02 Thread Craig R. McClanahan
Paul Medcraft wrote: I am wary of using methods that call themselves, so I would like to know if this approach is safe and if anyone can suggest a better way of doing this. Recursive calls (methods that call themselves) are quite appropriate for an application like this. The only thing you

Model 2 Architecture and jsp:setProperty tag question

2000-02-02 Thread Sreekumar Pillai
1. How do you use jsp:setProperty tag along with form action=Model2Servlet? class userInfoBean { String userName; String userpassword; // Get and set methods for userName and password. // .. } I have a jsp page which accepts a userName and password. jsp:useBean

Re: Global Properties

2000-02-02 Thread Craig R. McClanahan
David Mossakowski wrote: All the previous answers about loading from properties files and using servlet context are valid but I think you mean that you have _physically_ separated servers which have physically separated servlet engines attached to them. It is a much bigger problem in such a

Emacs lisp package

2000-02-02 Thread Lindskog, Fredrik (Stockholm)
Hi! Does anyone know of a lisp package for handling jsp-files in Emacs ? /Fredrik Lindskog === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at:

Re: Access to HttpServletRequest within JavaBean?

2000-02-02 Thread Craig R. McClanahan
Jeff Aldrich wrote: A couple of questions for the group: 1) Is it possible to access the HttpServletRequest object from within a JavaBean in a JSP page without passing it in explicitly with a method such as % bean.processRequest(request); %? No. Servlets (and the servlets generated by

Re: Calling a JSP from a servlet

2000-02-02 Thread Craig R. McClanahan
BASAR DALDAL wrote: Department: Genel Müdürlük/Bilgi Ýþlem Hi, I have a question about JSP invocation. The following causes the client browser to call MyPage.jsp, am I right? response.sendRedirect ("MyPage.jsp"); Is there a method for dýrectly calling the JSP page, I mean, on the

Re: Model 2 Architecture and jsp:setProperty tag question

2000-02-02 Thread Craig R. McClanahan
Sreekumar Pillai wrote: 1. How do you use jsp:setProperty tag along with form action=Model2Servlet? class userInfoBean { String userName; String userpassword; // Get and set methods for userName and password. // .. } I have a jsp page which accepts a userName and

Re: JSP Architectural Question

2000-02-02 Thread David S. Soleno
My company would like to develop a JSP/Servlet based applications. All our developers know JSP, Servlet, and JavaBeans well, but no one is very strong in the design of the application architecture. Since there are no JSP-specific application architecture books available, we're looking for good

Bookmarks and jsp

2000-02-02 Thread Mircea Moisei
Hi all, I tried to use bookmark in call of a jsp file. Something like file.jsp#jump Of course in html file generated by file.jps there is a bookmark named jump a name="jump"jump/a My problem is if I try to call this page from outisde Let's say an external link a href = "file.jsp#jumpJUMP/a.

Bookmark and jsp

2000-02-02 Thread Mircea Moisei
Hi all, Sorry. I was wrong because I tried to call a frame and not the pae that contains the bookmark. Regards, Mircea === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found

Cookie.getDomain() always returns null. The Cookie.getMaxAge() always returns -1

2000-02-02 Thread Tom Preston
Running WebLogic4.5.1 Jdk 1.2.2 I create cookies on client using Cookie class. Before doing add, I setDomain and I setMaxAge. When I read the cookies in on a later page: Cookie myCookies[] = request.getCookies(); if (myCookies != null) { for (int i=0; i myCookies.length; i++) {

Re: Model 2 Architecture and jsp:setProperty tag question

2000-02-02 Thread Brian Schaefer
Yes, but the jsp:useBean.. tag takes care of not creating a new instance of the Bean if one already exists, whereas the Servlet method as described by Craig below replaces the instance with a new one on each call. If other properties are needed, this make a difference. Brian Sreekumar Pillai

Re: Model 2 Architecture and jsp:setProperty tag question

2000-02-02 Thread Duffey Kevin
Hi, In Model2Servlet, I can definitely get the values from the request object or write a method in UserInfoBean to process the request. But I want to use jsp:setProperty tag to populate bean data with the form data. I dont believe you can. Using Model 2, your form action goes to a servlet. The

Re: Servlets and tools...

2000-02-02 Thread Eduardo Pelegri-Llopart
Hi Jason, see intermixed belw. Jason Hunter wrote: Jason says later... The standard tag library will likely make this point moot. Maybe. The taglib will be designed by committee. Watch out! The tag library will be designed using the JCP process. That is the same way we have

Re: extra returns in generated page

2000-02-02 Thread George Pearson
I am still interested in the answer to the question I originally posed, but the answer is no longer important to me. Vague wording in WML documentation led me to believe that the wml *source* was to be kept below 1200 bytes in order that the compiled size be guaranteed less than 1400-some.

Re: JSP Architectural Question

2000-02-02 Thread Craig R. McClanahan
Damian Fauth wrote: "Craig R. McClanahan" wrote: The general organization of request processing in my apps goes like this: [..] What I normally do is use a single servlet per web application, and then map it to a filename extension (I like ".go" because it implies motion). Now, if I

Re: What is the difference between Import and useBean

2000-02-02 Thread Craig R. McClanahan
SoftLiban KEYROUZ Charbel wrote: It is not the style that bothers me rather what is really the difference between using import and useBean, for example useBean will instantiate the object, plus you have the ability to give it a scope and we shouldn't forget the get and setProperty.The

Re: Global Properties

2000-02-02 Thread Tim Fox
Be careful though using patterns (eg Singleton) that utilise class scope (ie statics) in a servlet engine. The class scope is exposed to everything in that instance of the JVM, whereas a single JVM can host multiple web applications. So, if you do end up wanting to host two different instances

sign off JSP-INTEREST

2000-02-02 Thread Moreau, Francis
"signoff JSP-INTEREST". === To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". FAQs on JSP can be found at: http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.html

JSP Architectural Question

2000-02-02 Thread Mohan Radhakrishnan
Hi, Java has really boosted the interest in pattern modeling techniques. I used to read the GOF book but I found that there are more interesting distributed modeling patterns on the net. When I worked with RMI I used to gather some patterns from the user subscription list. Now

Re: Model 2 Architecture and jsp:setProperty tag question

2000-02-02 Thread Craig R. McClanahan
Brian Schaefer wrote: Yes, but the jsp:useBean.. tag takes care of not creating a new instance of the Bean if one already exists, whereas the Servlet method as described by Craig below replaces the instance with a new one on each call. If other properties are needed, this make a difference.

Entry to WebApp

2000-02-02 Thread onet-servlets
Hello, HowcanI ensure exactly one entry to my web application - through an 'authentication page' ? What should I do to make other pages directly inaccessible ? Krzysztof Marcinowicz