Re: Creating a JSP function

2001-08-29 Thread Shawn Zhu
Yeah, pass in a double as the parameter. And declare it in %! % tags. -Original Message- From: Gustavo Gallas [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 10:59 AM To: [EMAIL PROTECTED] Subject: Re: Creating a JSP function When calling a function dbToMoney I declared,

Re: Trouble with Forward...

2001-08-29 Thread Shawn Zhu
You should be able to forward with those params in it. However, you may need to properly encode them. Try using URLEncode -Original Message- From: Moganna, Prasad [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 3:17 PM To: [EMAIL PROTECTED] Subject: Re: Trouble with

Re: Developing for scalability..HttpSession fail-over...

2001-08-21 Thread Shawn Zhu
That's one reason to use EJB. =) -Original Message- From: Kevin Duffey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 9:50 AM To: [EMAIL PROTECTED] Subject: Developing for scalability..HttpSession fail-over... Hi all, Just wanted to see if anyone has developed an

Re: How can i pass the value(object) in jsp to javabean ?

2001-08-21 Thread Shawn Zhu
your exerBeanId is not instantiated, hence the NullPoint Exception. the exerBeanId from *jsp:useBean id=exerBeanId scope=session class=jp1.exerBean /* is not the same in % ... exerBeanId.setValues(v); ... % They are of different scope. It's been discussed in the JSP-Interest Archive.

Re: JSP session recognized in Netscape not in IE.

2001-08-20 Thread Shawn Zhu
In JSP, you don't have to create the session as in % HttpSession vSession = request.getSession(true); % It's there for your use already, the name is *session*. And are you still using JSP 1.0? The getValue and putValue methods for HttpSession are deprecated, use getAttribute and setAttribute

Re: ASP to JSP converstion

2001-08-09 Thread Shawn Zhu
An example I found in a jsp page: %@ page contentType=application/vnd.ms-excel % %-- Note that there are tabs, not spaces, between columns. --% 19971998199920002001 (Anticipated) 12.313.414.515.616.7 -Original Message- From: lee hwaying [mailto:[EMAIL

Re: ASP to JSP converstion

2001-08-09 Thread Shawn Zhu
on that note, I agree with Celeste, that any decent c/c++ coder will have no problem with the whole Java/Jsp/Servlet stuff. ASP can be equally good, however, I prefer coding in JSP/Java. -Original Message- From: Haseltine, Celeste [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 09,

Re: Working with multiple WAR files in a single container?

2001-08-06 Thread Shawn Zhu
have you tried simply: request.getRequestDispatcher("/index.jsp").forward(reuqest,response); I am assuming you are not doing outside_server-forwardto-inside_server. -Original Message-From: Duffey, Kevin [mailto:[EMAIL PROTECTED]]Sent: Monday, August 06, 2001 12:19 PMTo:

Re: WebLogic

2001-07-24 Thread Shawn Zhu
I was looking for the same thing. Using /servlet/ was the way I found. However, it doesn't seem to pick up new changes. You can play around with and see if you can get it to work. If it doesn't pick up new changes it's the same as registering each servlet and restart the server.

off-topic: just a technical discussion about naming

2001-07-13 Thread Shawn Zhu
It's off-topic, but I think for programmers this may be sort of interesting discussion. Lets start with a few questions: What do you think it's a good practice for documenting your code? What does it means to have self-documenting code? There are people who believes using absolutely english

Re: How to install a service on a NT server?

2001-07-12 Thread Shawn Zhu
Actually, Sio, all you need to do is have jrun running as a NT service. And your application will be accessible since it's served up by JRun. for example, your application virtual path is /myapp. And your JRun server is //ServerName, then you can access your application from the browser as

Re: Basic Object Reference Question

2001-06-13 Thread Shawn Zhu
Now here's where pointers come in handy. However, getString() returns a String object, not a reference to the String object (from looking at the api doc). So in essence it's no difference assigning it to a String object. correct me if I am wrong. Hi, I am having a basic object reference

Re: How to get rid of objects ( beans) when the user abandons the site

2001-06-13 Thread Shawn Zhu
If the user leaves your site, and before the session times out he/she comes back, the session object (your worker bean) will still be there. So yes, the worker bean will be waiting for the session to expire. -Original Message- From: Lenin Lopez [mailto:[EMAIL PROTECTED]] Sent:

Re: How to get rid of objects ( beans) when the user abandons the site

2001-06-13 Thread Shawn Zhu
.. but if you open a new browser window with crtl_n does the session extend to that window? yep. ..if you open a new window other than as above what happens. you start a new session. -Original Message- From: Shawn Zhu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 13, 2001

Re: jsp related

2001-06-12 Thread Shawn Zhu
Hi: anybody knows this question? j/k =) Anyway, this what you can do: break the text with br tags. -Original Message- From: Carol Geng [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 12, 2001 1:18 PM To: [EMAIL PROTECTED] Subject: jsp related Hi: anybody knows this problem?

Re: display results in many pages

2001-06-07 Thread Shawn Zhu
Yes it's very easy, tell me how you do that in ASP. and I'll show you how to convert it. -Original Message- From: kaab kaoutar [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 07, 2001 11:47 AM To: [EMAIL PROTECTED] Subject: display results in many pages Hi! I HAVE TWO PAGES, int

Re: submit from more than a page ?

2001-06-06 Thread Shawn Zhu
easy, treat each next as a submit. collect each page's infor and store them in a bean. pass it down the pages and do a final process on the bean -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 11:25 AM To: [EMAIL PROTECTED] Subject:

Re: tracking email-off topic

2001-06-06 Thread Shawn Zhu
I read there's a code snippet or macro you can embed in your email message, and send back vital info to the sender. I've never seen it though. -Original Message- From: Thakkar yahoo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 06, 2001 11:04 AM To: [EMAIL PROTECTED] Subject:

Re: off topic (javascript popup window selection) ???

2001-06-01 Thread Shawn Zhu
Sufi, I assume you know how to create the popup window and lay out the selection boxes. So what you do is after clicking the select button, you can either: 1. use Javascript to populate fields in the parent window something like, window.opener.document.[whatever].value or 2. pass the check boxes

Re: Storing encryption key in web.xml

2001-05-31 Thread Shawn Zhu
Other place can be in the DB -Original Message- From: Mohammed Ali [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 9:47 AM To: [EMAIL PROTECTED] Subject: Storing encryption key in web.xml Hello, I am writing a web application using the MVC in jsp/servlet. The data in

Re: jsp mysql error ?

2001-05-31 Thread Shawn Zhu
lol, seen way too many of that sort. -Original Message- From: Joseph Ottinger [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 31, 2001 7:48 AM To: [EMAIL PROTECTED] Subject: Re: jsp mysql error ? Maybe you should try the obvious. Oh wait, you probably can't tell what that means.

Re: jrun:sendmail

2001-05-31 Thread Shawn Zhu
If using CDONTS worked for you on the same machine, that means you have a smtp server. now you just need to figure out what to put in props.put(mail.smtp.host, smtp.jspinsider.com); You need to substitute mail.smtp.host to the hostname of your smtp server. -Original Message- From:

Re: how to get notified of session timeout

2001-05-31 Thread Shawn Zhu
LOL, didn't I send you an response? And since the mail-list is all wacked, like it kept sending all emails out; other's reply may have been delayed. Besides, aren't you glad that you've figure out the solution? You've just stepped up a level in your JSP/Java programming. -Original

Re: what's gnu/regexp/ ??

2001-05-30 Thread Shawn Zhu
ditto, also the impression of being lazy, has no analytical skill, not self-motivated, lack of investigative skill, etc. =) -Original Message- From: Christopher K. St. John [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 29, 2001 11:36 PM To: [EMAIL PROTECTED] Subject: Re: what's

Re: Excel and Servlets

2001-05-30 Thread Shawn Zhu
write the exact syntax in a JSP first. Then I'll tell you. -Original Message- From: Lorena Carlo [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 30, 2001 1:24 AM To: [EMAIL PROTECTED] Subject: Excel and Servlets Hello all, Can yot tell me how can I construct an excel sheet

Re: extra urgent problem

2001-05-23 Thread Shawn Zhu
lol, this interest list is the most fun. Not only you get tech answers, you get dramas. =) I think it's pretty fun here just as long as none of you go off and gun people. hehe. It's very comical in a way, don't you think? -Original Message- From: sandarbh [mailto:[EMAIL PROTECTED]]

Re: JSP-JSP Invocation

2001-05-23 Thread Shawn Zhu
yes you can pass an object between jsps. % request.setAttribute(empHT, empHT); % notice no quote for the second parameter. empHT is a String whereas empHT is the real object you want. -Original Message- From: Randy San Miguel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001

Re: problem in jdbc-odbc driver

2001-05-23 Thread Shawn Zhu
hmmm...So SQL server doesn't support scrollable, updatable feature eh? I know that MS Access doesn't definitely don't support that. Didn't know that SQL server is not up to date for it. Good to know, thanks. -Original Message- From: bipin sabhani [mailto:[EMAIL PROTECTED]] Sent:

Re: problem in jdbc-odbc driver

2001-05-23 Thread Shawn Zhu
: problem in jdbc-odbc driver No, no, no. It just means that the sun.jdbc.odbc.JdbcOdbcDriver doesn't support it. It tells you NOTHING about the capabilites if the SQL Server. -Original Message- From: Shawn Zhu [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 12:27 PM

Re: The End of the World is Coming

2001-05-23 Thread Shawn Zhu
ummm...no Thanks in advance? anyway, maybe you should change it back to hello.NameHandler not hello.nameHandler? besides did you change it at one place or in all occurrances? -Original Message- From: [Qari Qasim] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 9:30 AM To:

Re: when to query vs when to use a 'model' bean?

2001-05-23 Thread Shawn Zhu
Set a limit on the number of records you are willing to keep in memory. once that limit hits, switch to querying the DB. Choose the right limit will help your sites performance. -Original Message- From: Rich Diaz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 23, 2001 2:16 PM To:

Re: Good Morning !!!

2001-05-22 Thread Shawn Zhu
So you are working in a project eh. =) It doesn't matter what the database was done in. It's a database in sql? You can always access it as long as the language provide connectivity to that kinda database. You can always use java's jdbcodbc drivers. You can create a DBManager Bean(model) that

Re: Please Help a Beginner!

2001-05-22 Thread Shawn Zhu
ahhh...you guys should have used JRun3.0. Its seamless installation and ease of use are great for standalone and dev purperse. I have it installed on my wkstation, and I've been developing a small app with access db. Gives me no trouble. -Original Message- From: Ruaidhrí Fernandes

Re: How to handle errors from a Java Bean

2001-05-22 Thread Shawn Zhu
Have the bean throw exception. That way you can catch them in the JSP -Original Message- From: Lenin Lopez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 22, 2001 2:14 PM To: [EMAIL PROTECTED] Subject: How to handle errors from a Java Bean Hi all, I have an appliation that works

Re: IE5 and cached jsp pages?

2001-05-21 Thread Shawn Zhu
how do you expire the pages once you go to a new page? syntax please. -Original Message- From: Hari Yellina [mailto:[EMAIL PROTECTED]] Sent: Saturday, May 19, 2001 10:59 PM To: [EMAIL PROTECTED] Subject: Re: IE5 and cached jsp pages? Hi, If you are submitting a form. it should

Re: Clearing form fields after a submit?

2001-05-18 Thread Shawn Zhu
interesting, on a form submission the visible fields automatically clears. So what did you do? -Original Message- From: Ruaidhrí Fernandes [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 11:03 AM To: [EMAIL PROTECTED] Subject: Clearing form fields after a submit? Hi all,

Re: Cache Control Question?

2001-05-18 Thread Shawn Zhu
Hi Ruaidhri, how's your project going? Looks like you are almost done. did you get your db problem sovled? As for the back bottun. One solution is to reset your form during form onload event. You should be able to figure out what to do now. comment on others' suggestion: 1. disabling the

Re: where to store my servlet

2001-05-16 Thread Shawn Zhu
That is not true. You don't have to put you servlets under the servlet folder. If you have a Application on JRun mapped to /myApp. So you usually call your applciation as follows http://server:port/myApp/index.jsp then if you have a servlet written for that Application, you can just put that

Re: java.awt.List error

2001-05-16 Thread Shawn Zhu
you've included class java.awt.* and java.util.* they both have a List class, therefore declaring private List studentList is Ambiguous (as the error message states, read it! lol). so you need the full qualified declaration as: private java.awt.List studentList; or private java.util.List

Re: important ..................

2001-05-15 Thread Shawn Zhu
How come when calling in a similar fashion to long gmtTime = gmtCalendar.getTimeInMillis(); the compiler complains that == TestCases/dataBase/DBManager.java [441:1] getTimeInMillis() has protected access in java.util.Calendar long tRightNow = c.getTimeInMillis();

Re: Can I adminster multiple instances of tomcat?

2001-05-09 Thread Shawn Zhu
lol -Original Message- From: King Maurice [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 4:11 PM To: [EMAIL PROTECTED] Subject: Re: Can I adminster multiple instances of tomcat? yes - Original Message - From: A Stephen [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: Database locked?

2001-05-07 Thread Shawn Zhu
close your admin application that's using your Access database on machine 'RUI'. -Original Message- From: Justin Owens [mailto:[EMAIL PROTECTED]] Sent: Monday, May 07, 2001 9:05 AM To: [EMAIL PROTECTED] Subject: Re: Database locked? You are running into a deadlock. You are try

Re: Database locked?

2001-05-07 Thread Shawn Zhu
? Confusing stuff, i know. Let me know if you know anymore on this, and thanks for helping. Cheers Rui --- Shawn Zhu [EMAIL PROTECTED] wrote: close your admin application that's using your Access database on machine 'RUI'. -Original Message- From: Justin Owens [mailto:[EMAIL

Re: Passing a string from a JSP to a Java class and back.

2001-05-04 Thread Shawn Zhu
lol, you have getGoo() defined not getFoo(). What's your error message? Why do you have the constructor private? (just curious) -Original Message- From: Arcady [mailto:[EMAIL PROTECTED]] Sent: Friday, May 04, 2001 12:31 PM To: [EMAIL PROTECTED] Subject: Passing a string from a JSP

Re: Passing a string from a JSP to a Java class and back.

2001-05-04 Thread Shawn Zhu
Your JSP needs to create the new instance of Test ... % Test test = new Test() % Then you can do the rest of the JSP and it should work Actually this is specificly what I need to avoid. I need to have only one instance of test running for the during of the time the server is up. The

Re: URL Encoding

2001-05-03 Thread Shawn Zhu
Why don't you use response.encodeURL()? -Original Message- From: Nishit Trivedi [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 9:19 AM To: [EMAIL PROTECTED] Subject: Re: URL Encoding king, String firstName = King Maurice; String encodedFName =

Re: forte for java ie

2001-05-01 Thread Shawn Zhu
except it has some nasty memory leak. sometimes hidden text gets added into your source code. you have to becare to remove them. However, it's a nice IDE, I am waiting for them to fix the bugs -Original Message- From: Jim Rueschhoff [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01,

Re: Session variables

2001-05-01 Thread Shawn Zhu
I think this is a problem either with the browser or the webserver. I had experience with this as well. If you are running two browsers on the same machine, something about the session gets screw up. -Original Message- From: Lenin Lopez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May

Re: MS Access

2001-05-01 Thread Shawn Zhu
Hi I keep getting my message rejected by the list server. Do you guys get that? I don't think I have any offending words in my email. Or is it just a bug in the server? The truth is People can not get along. -Original Message- From: King Maurice [mailto:[EMAIL PROTECTED]] Sent:

Re: Session variables

2001-05-01 Thread Shawn Zhu
now that is weird. Which JSP server are you using? I'll remember not to get that. Try using session.setAttribute, and session.getAttribute see if it makes a difference. -Original Message- From: Lenin Lopez [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 01, 2001 1:57 PM To: [EMAIL

Re: frame problem

2001-04-30 Thread Shawn Zhu
problem Shawn, Don't be so mean. Everybody has the first time doing things. You know something doesn't give you the right to tease other people. Yes, I am the beginner at jsp. But you sure are the beginner as a decent human being. So work on that. Shirley From: Shawn Zhu [EMAIL

Re: How to get URL of the original servlet after forwarding to a JSP page?

2001-04-27 Thread Shawn Zhu
use request.getHeader() -Original Message- From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 10:52 PM To: [EMAIL PROTECTED] Subject: How to get URL of the original servlet after forwarding to a JSP page? Hi all, I have forwarded from a servlet to

Re: How to get URL of the original servlet after forwarding to aJ SP page?

2001-04-27 Thread Shawn Zhu
to (only one HTTP request means only one HTTP header). Thus request.getHeader(referer) will return the URI of the page that referred the client to the servlet. Why don't you want to set an attribute? Shawn Zhu wrote: use request.getHeader() -Original Message- From: Thai

Re: How to get URL of the original servlet after forwarding to aJ SP page?

2001-04-27 Thread Shawn Zhu
) will return the URI of the page that referred the client to the servlet. Why don't you want to set an attribute? Shawn Zhu wrote: use request.getHeader() -Original Message- From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 10:52 PM To: [EMAIL

Re: frame problem

2001-04-27 Thread Shawn Zhu
Hey Shirley, So basically you never knew how to program in JSP (and maybe Java), and your company just suddenly assigned you a JSP/Java project which requires you to finish in 2 weeks? I am curious because, lets say if you knew OOP, then it'll take your 1 week to learn JSP/Java. Okay, it may

Re: calling other classes

2001-04-27 Thread Shawn Zhu
In formBean.java try including project_name.Log -Original Message- From: Limin Zhang [mailto:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 3:04 PM To: [EMAIL PROTECTED] Subject: calling other classes hello, everyone: i'm kind of new to jsp. here is a entry-level question:

Re: Error: Attempt to reference method in interface ...

2001-04-26 Thread Shawn Zhu
Are the following two statements really the same? if(a.equals(avar)) if(avar!=null avar.equals(a)) -Original Message- From: Richard Yee [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 2:00 PM To: [EMAIL PROTECTED] Subject: Re: Error: Attempt to reference method in

Re: Sessions in Servlets

2001-04-26 Thread Shawn Zhu
Just define the variable first. HttpSession Session; then use it. -Original Message- From: drew w [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 3:46 PM To: [EMAIL PROTECTED] Subject: Sessions in Servlets I can access sessions in JSP. But I can't seem to write or

Re: Who is using it , notification ??

2001-04-25 Thread Shawn Zhu
This can not be done. Not do-able. -Original Message- From: sufi malak [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 8:32 AM To: [EMAIL PROTECTED] Subject: Who is using it , notification ?? if you are giving a CD that has some multimudia or art works or anything,

Re: How can I pass the value of a session to an interface

2001-04-24 Thread Shawn Zhu
If String Session is a member variable of the class. declare your function as ... showStatus() { if(this.Session!=null) { ... } ... } -Original Message- From: drew w [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 24, 2001 11:35 AM To: [EMAIL

Jar doesn't behave correctly

2001-04-24 Thread Shawn Zhu
Hi, when I do jar xvf0 some.jar a.class to update a.class in some.jar file. I wanted to keep the jar file uncompressed, however, jar will always compress the rest of the jar file but stores a.class only. Is it possible with jar to update a jar file and not change it's compression method?

Re: Caching problem

2001-04-13 Thread Shawn Zhu
The solution is not good because what if the number of records is huge? The server will choke just attempting to retrieve them. Lets say it actually can retrieve the records into memory (after probably a long time), and you put them in the session. Then suddenly your sever will break because

Re: urgent help needed on checkbox property!!!!

2001-04-13 Thread Shawn Zhu
I had to ask, what kinda of service does TCS offer? -Original Message- From: Agarwal, Shekhar (MED, TCS America) [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 12, 2001 2:31 PM To: [EMAIL PROTECTED] Subject: urgent help needed on checkbox property hi all i need a

Re: JSP Vs Servlet

2001-04-11 Thread Shawn Zhu
JSP = Servlet -Original Message- From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 11, 2001 3:54 PM To: [EMAIL PROTECTED] Subject: JSP Vs Servlet Hi All, I have a basic doubt. I would like to know in what way "Servlet" is advantageous over "JSP". I feel

Re: JSP Vs Servlet

2001-04-11 Thread Shawn Zhu
into the output -- but this is also an issue for generating XML, etc, etc, from JSP.] -- Jess Holle -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Shawn Zhu Sent: Wednesday, April 11, 2001 6:24 PM To: [EMAIL

Re: session.getValue - Integer

2001-04-10 Thread Shawn Zhu
the value you put in is a String, just convert it back to Integer when you retrieve it back like Integer pGroupDivCode = Integer.valueOf(session.getValue("GROUP_DIV_CODE")); -Original Message- From: Stanley Tan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 4:21 AM

do you know the difference?

2001-03-26 Thread Shawn Zhu
Hi in a servlet that takes request and response parameters. You can use request.getRequestDispatcher("somefile.jsp").forward(request,response); or getServletConfig().getServletContext().getRequestDispatcher("somefile.jsp"). forward(request,response); Are they the same thing? If they are

Re: PRINT UTILITY PROGRAM

2001-03-08 Thread Shawn Zhu
I am trying to understand why don't you like javascript function for printing the page. It's a simple online code. Are you just trying to do everything in Java only? -Original Message- From: Agarwal, Shekhar (MED, TCS America) [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 08,

Form submission clears request attributes

2001-02-27 Thread Shawn Zhu
Hi correct me if I am wrong. This is what I concluded from experience... If I have a form.jsp file that has action calling a servlet (handleform.srv). whatever request.setAttribute I've done in the form.jsp will not get passed to handleform.srv. For example: Form.jsp: %

Re: Form submission clears request attributes

2001-02-27 Thread Shawn Zhu
I know what you are saying... so would you know anyway around this other than use Session? I have the form need to submit, but also want to forward some request attributes. I guess I can only put them in hidden forms... -Original Message- From: ??? [mailto:[EMAIL PROTECTED]] Sent:

suggestion: a way to encourage better questions

2001-02-21 Thread Shawn Zhu
All these fuss about about off-topic questions. The problem is definitely two sided: one side is people who are lazy and are lack of investigative motivation; the other side is people who are being impatient and sometimes arrogant. =) The fact is that some off-topic questions can be

Re: How to display x rows out of n with back/next buttons.

2001-02-20 Thread Shawn Zhu
Alot people has asked this question over and over again. And there are a few solutions for this. If your data sets are small then it's better to store all returned records in a bean and handle the prev and next with a index. (Save SQL query overhead) However if you anticipate using prev/next

Re: difference between variable declared using %! % and % %

2001-02-20 Thread Shawn Zhu
Is it, in other words, % static int a; % achieves the same thing as %! int a;% but with safe threading? -Original Message- From: Robert Nicholson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 20, 2001 5:18 PM To: [EMAIL PROTECTED] Subject: Re: difference between variable

Re: Using session

2001-02-16 Thread Shawn Zhu
I know why, you should use jsp:include page="/common.jsp" flush="true" / instead of jsp:include page="/body.jsp" flush="true" / -Original Message- From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]] Sent: Friday, February 16, 2001 3:18 PM To: [EMAIL PROTECTED] Subject: Using session

Re: Help !! - Forcing an event

2001-02-14 Thread Shawn Zhu
This will change your selection from 1-2-3-1: By the way if I were asked this in an interview I won't be able to come up with this, so what does this tell? I actually had to check the JavaScript syntax online, but it totalled about 2 minutes for the solution. html head script

Re: A little Grasshopper + JSP ???

2001-02-13 Thread Shawn Zhu
However, dbg consulting sounds like all about money and lots of howevers. lol Joe, don't you be discouraged, the company knows you are still learning and in school with other stuff... -Original Message- From: dbg consulting [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001

Re: A little Grasshopper + JSP ???

2001-02-12 Thread Shawn Zhu
empty promises...And the fact you alienate your group mates shows that you are not a team player. Plus, you have very little confidence in your teammates which is a reflection of lack of self-confidence. =) Anyway, OO programming is about divide and conquer. Hey I just want to critisize,

Re: Java Date Class problem

2001-02-12 Thread Shawn Zhu
hahah...dang, wonder how much his company pays him. This just need some basic debugging and code reviewing. Well I guess if you are frustrated you can just over look certain intricate things. Forgivable. heh -Original Message- From: Daryani Santosh [mailto:[EMAIL PROTECTED]] Sent:

Re: A little Grasshopper + JSP ???

2001-02-12 Thread Shawn Zhu
talking about Forte for J, it seems abit better than Jbuilder IMHO. Daryani, did you ever use Forte's compile all function? It seems that it will stop compiling the rest of the .java files in the project if it encounter some errors compiling the first few. Is there a way to have it continue to

Re: doubt on jsp:usebean

2001-02-09 Thread Shawn Zhu
put our brains for/on/in what??? =) And your question or rather statement sounds more like a statement rather than a doubt. lol. anyway, I believe that class will be instantiated for each client. -Original Message- From: Raghu Movva [mailto:[EMAIL PROTECTED]] Sent: Friday, February

Re: Can anyone tell me how to unsubscribe?

2001-02-06 Thread Shawn Zhu
lol, Ross, go to archives.java.sun.com, and search for "how to unsubscribe jsp-interest group" Actually better yet, just do a search on this email and find all occurrances of "unsubscribe", you'll find your answer. =D -Original Message- From: Ganesh MohanRao [mailto:[EMAIL PROTECTED]]

Re: problem in using out.println in method

2001-02-06 Thread Shawn Zhu
No need to do that, Wayne. =) Just redefine your public method to include the (JspWriter out) %! void aF(JspWriter out){ out.println("testing"); } % ... % aF(out); % -Original Message- From: Ravi Prashanth [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 06, 2001 8:02

Re: Why use Java beans ?

2001-01-18 Thread Shawn Zhu
This question seem to come up over and over in this list...JavaBeans are classes! -Original Message- From: Singh, Jasbinder [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 18, 2001 2:04 PM To: [EMAIL PROTECTED] Subject: Why use Java beans ? Hi, Could someone please explain

Re: Re : how to show timezone specific time

2001-01-16 Thread Shawn Zhu
What do you mean a nightmare to work with? It seems simple enough from the code snippet. I think it'd be better to get the system timezone rather than hardcoding "CST". -Original Message- From: Bhushan Bhangale [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:25 PM To:

Re: arrays

2000-12-20 Thread Shawn Zhu
Why don't you just use Vector? Vector v_queryResult = New Vector(); ... if(tmpString.indexOf('C')!=-1) { v_queryResult.addElement((Object)tmpString); } Then there's no need for Array2. -Original Message- From: Shirley Chen [mailto:[EMAIL PROTECTED]] Sent:

Re: passing data between pages

2000-12-20 Thread Shawn Zhu
post method. -Original Message- From: matt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 1:22 AM To: [EMAIL PROTECTED] Subject: passing data between pages whats the best way to send a username and password between jsp pages?

Re: arrays

2000-12-20 Thread Shawn Zhu
Message- From: Shirley Chen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 20, 2000 1:11 PM To: [EMAIL PROTECTED] Subject: Re: arrays Thanks for replying. But my boss insists that I use array because vector costs more memory and time. From: Shawn Zhu [EMAIL PROTECTED] Reply

Re: a little jsp help please

2000-12-19 Thread Shawn Zhu
man, are you new in HTML as well? I wonder what kinda company you are working for? -Original Message- From: Matthew Hafner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 19, 2000 5:51 AM To: [EMAIL PROTECTED] Subject: Re: a little jsp help please selected worked, what if i

Re: Good JSP Engines

2000-12-18 Thread Shawn Zhu
What's wrong with my Mail? -Original Message- From: Dylan Rosario [mailto:[EMAIL PROTECTED]] Sent: Monday, December 18, 2000 2:13 PM To: [EMAIL PROTECTED] Subject: Re: Good JSP Engines Fix your mail. == =

Re: jsp:include ... a jsp file

2000-11-28 Thread Shawn Zhu
Yeah, some server require *flush="true"* and some you can get away with it. -Original Message- From: Hernandez, Rey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 28, 2000 12:45 PM To: [EMAIL PROTECTED] Subject: Re: jsp:include ... a jsp file No, it should be jsp:include

Re: finally, something interesting!

2000-11-27 Thread Shawn Zhu
C{ public void doShow() { System.out.println("C.doShow()"); } } } Hope this helps Joerg Meister -Ursprüngliche Nachricht- Von: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]Im Auftrag von Shawn Zhu Gesen

Re: Session Size ?

2000-11-22 Thread Shawn Zhu
It depends on the JSP server you are using. From what I heard/read, some JSP servers will use either of the 3 methods depending on which is available. The 3 methods are: 1) cookie 2) hidden form 3) URL rewriting. -Original Message- From: Sunil Roy [mailto:[EMAIL PROTECTED]] Sent:

finally, something interesting!

2000-11-22 Thread Shawn Zhu
Scope: Java Q: if you have three class A, B, and C all have the same method doShow(); We only know that all inherit from Class Object (like all other classes do). Is it possible to have a public function that takes in an Class Object that may belong to A, B, or C, and call doShow()? Something

Re: finally, something interesting!

2000-11-22 Thread Shawn Zhu
Yep Namratha, you got 2 of the 3 ways I know. in summary, I can sort of achieve what I asked in the following: 1. interface 2. class inheritance 3. use of "InstanceOf" I've also thought about using Class and Method classes Like Venkatesh had mentioned, however, that does not work out. Because

Re: JSP page that display 10 result...

2000-11-20 Thread Shawn Zhu
Not standard SQL statement...generates syntax error on Access. -Original Message- From: Antonio W. Lagnada [mailto:[EMAIL PROTECTED]] Sent: Monday, November 20, 2000 8:10 AM To: [EMAIL PROTECTED] Subject: Re: JSP page that display 10 result... In your query use "rowcount" i.e.

Re: Caching variable....

2000-11-20 Thread Shawn Zhu
declare the variable static. -Original Message- From: arun prakash [mailto:[EMAIL PROTECTED]] Sent: Monday, November 20, 2000 3:29 PM To: [EMAIL PROTECTED] Subject: Caching variable Hi All., How can i cache the variables value in memeory in Java ??? For ex if i

No Subject

2000-11-14 Thread Shawn Zhu
Also, If you have a collection of the Beans, can't you just keep a variable or two that keeps the index of the currently shown Beans (here we use one bean for one record whereas Mukesh probably uses one bean that holds all the records returned)? Then you can do some calculation and do the

Re: Re

2000-11-09 Thread Shawn Zhu
maybe the port it's using is being used by some other service/app. -Original Message- From: Modassir Sattar [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 09, 2000 7:27 AM To: [EMAIL PROTECTED] Subject: Re Hi, Can any one help me. I installed JRUN 3.0 on Windows NT

Re: Best JSP Tool

2000-11-06 Thread Shawn Zhu
I was asking the same question earlier about Java,JSP html IDEs. I've evaluated jbuilder(borland), jdeveloper (Oracle, which was build on top of jbuilder), and ForteJ(sun). And I find ForteJ most straight forward and easy to use with. However, it's still hard to find help docs on the product.

Re: Happy Diwali Greetings

2000-10-29 Thread Shawn Zhu
jsp:include -Original Message- From: Mukka, Srikanth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 25, 2000 3:47 PM To: [EMAIL PROTECTED] Subject: Re: Happy Diwali Greetings Hi All, How to pass value from one jsp to other jsp which are displayed on different frames.

  1   2   >