Re: Testing HTML by JSP

2002-01-11 Thread Bernard Granier
Hi, A test tool no ? Like stresstool (microsoft), e-Suite, Mercury Interactive and so on ... Bernard Granier Mr Ted 115 rue du Fbg Poissonniere 75009 Paris www.MrTed.com Tel : 33 1 55 31 02 65 mail : [EMAIL PROTECTED] -Original Message- From: A mailing list about Java Server Pages

sendRedirect problem

2002-01-11 Thread Cédric Favier
Hi, When I want to use response.sendRedirect(mypage.jsp) Tomcat sends a redirect response to the client like www.mydomain.net/myapp/mypage.jsp. The problem is that my application works in intranet, so, I prefer Tomcat sends 192.168.168.100/myapp/mypage.jsp. But I don't remember where I give the

Can I declare array in jsp:useBean tag?

2002-01-11 Thread Louis Voo
Hi, I want to declare an array object in jsp:useBean tag, is it possible? for example i can declare jsp:useBean id=msgbeans scope=session class=MessageBean / but how to make the msgbeans variable become array? Regards, Louis

Re: Can I declare array in jsp:useBean tag?

2002-01-11 Thread Rajinder Sandhu
this is compile time, not run time. so this is not possible. -Original Message- From: Louis Voo [mailto:[EMAIL PROTECTED]] Sent: Friday, January 11, 2002 4:40 PM To: [EMAIL PROTECTED] Subject: Can I declare array in jsp:useBean tag? Hi, I want to declare an array object in

Re: sendRedirect problem

2002-01-11 Thread David Mellado Martín
Hi When you use response.sendRedirect(mypage.jsp), the server send a redirect header to the same domain that the jsp that calls the method. By example, if the jsp with the call is redirect.jsp, and you run this jsp from http://192.168.168.100/myapp/redirect.jsp, then sendRedirect would send the

Re: Help getting Tomcat4 to work

2002-01-11 Thread Campano, Troy
Title: Message I've never used the RPM, but maybe you should use the binary .tar.gz file...it's just as easy to install if not easier. Do all this as ROOT.Get the file (http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.1/bin/jakarta-tomcat-4.0.1.tar.gz)Un-Tar it where you

Re: sendRedirect problem

2002-01-11 Thread Cédric Favier
The problem is to delete the information www.mydomain.net I entered, but I don't know where. Because I run this jsp from http://192.168.168.100/myapp/redirect.jsp, but sendRedirect send the client to http://www.mydomain.net/myapp/mypage.jsp. But I want it send the client to

Re: Can I declare array in jsp:useBean tag?

2002-01-11 Thread Haseltine, Celeste
Louis, You don't have to use a bean tag. You can declare an array variable in a jsp page just like you can in a Java class, and then start using it in your jsp page. If you need to pass the data to another jsp page, you just save it in the session object. For example: body % //declare local

Re: %! % (was RE: I want to make code shorter.)

2002-01-11 Thread Zvika Markfeld
I think Shrikant's argument would be more relevant in more cases than Geert's. Let's do some calculation: A typical header + footer may include 5K of content, which might be translated into 10K of servlet compiled code. I don't know exactly what the overhead for loading classes into memory is,

Re: %! % (was RE: I want to make code shorter.)

2002-01-11 Thread Geert Van Damme
Did you do any tests? That's the only relevant thing here. I'm simply saying that I don't know which is faster. I know for sure that (appart from performance) there are problems with static includes. It takes more maintenance Just another point of view: Now if the overhead of calling a

Re: Can I declare array in jsp:useBean tag?

2002-01-11 Thread Hans Bergsten
Louis Voo wrote: Hi, I want to declare an array object in jsp:useBean tag, is it possible? for example i can declare jsp:useBean id=msgbeans scope=session class=MessageBean / but how to make the msgbeans variable become array? jsp:useBean can only be used to create instances of

Re: Difference between html meta tag and jsp page directive

2002-01-11 Thread Joe Cheng
It's probably safer to do the page directive rather than meta tag. If you look at the generated .java file, you'll see that the content type header gets set before your JSP code even starts executing. In my installation of Tomcat 3.2.4 it's this line:

Re: Difference between html meta tag and jsp page directive

2002-01-11 Thread Peter Claesson (EUS)
Title: RE: Difference between html meta tag and jsp page directive Great. I wasn't aware of the setContentType method. If I take this approach, would it cause problems if I remove all characterset info,using the page directive, from my jsp pages and instead insert a bean, which sole function

Re: Difference between html meta tag and jsp page directive

2002-01-11 Thread Joe Cheng
Title: RE: Difference between html meta tag and jsp page directive Hmm, good question. Seems worth a shot. Be sure to try it with different browsers, and if you run into problems try making the bean call happen before any data gets pushed to the browser--including whitespace. Also, you may

Re: MetaTag and MetaData

2002-01-11 Thread Ashish
krithikav wrote: But what is meta data? When I search teh web, it says, metadata is data about data. You said it meta data is data about data! Let me illustrate Author might be a data. Information like what type of data is Author is meta data for example, Author is a string.

Error page

2002-01-11 Thread Yong Chee Keong
Hello there, Putting the line below gave me the exception message %= exception.getMessage() % I want to get the printStackTrace of exceptions in JSP. I read that there is a method for printStackTrace which accepts an output object. I figure that implicit out object in JSP for this. However

Re: Error page

2002-01-11 Thread Hamid
Hi, Use try from start 2 end of ur page Catch the general exception and print its stact trace e.g tr{ ... .. } catch (Exception exp) { %= exp.getMessage() % } Hamid Hassan -Original Message- From: A mailing list about Java Server Pages specification and