How can I get MessageResources in jsp

2004-03-09 Thread Billy Ng
); Thanks! Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http://info.mailfrontier.com

Use MessageResource in taglib

2004-03-07 Thread Billy Ng
Hi folks, I need to get a value from the properties file. I can easily do it in action subclass with the getResource().getMessage() and in jsp with the bean:message tag. However, how I can it in a taglib? Billy Ng This mailbox protected

Re: Using ApplicationResources.properties problem

2004-03-05 Thread Billy Ng
Vincent, I found out what's going on. I have set up the Chinese(Taiwan) (zh_TW) for my input method in Windows. The Java was too smart to pick it up as my default locale. Billy Ng This mailbox protected from junk email by Matador from

Using ApplicationResources.properties problem

2004-03-04 Thread Billy Ng
I am going to localize the product. The getResources().getMessage() method just works fine with the following properties files. ApplicationResources.properties ApplicationResources_en_US.properties ApplicationResources_fr_FR.properties However, if I add the

Re: Using ApplicationResources.properties problem

2004-03-04 Thread Billy Ng
Sorry, I misunderstood your email. Let me try to set the default locale with LOCALE_KEY in the session. It will be great if you have any example that oyu can show me, thanks! Billy Ng This mailbox protected from junk email by Matador from

Re: How to set charset UTF-8

2003-08-22 Thread Billy Ng
You know what, I was using the template. As long as I added % request.setCharacterEncoding(UTF-8); % in the template. It works now. Thanks everybody Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http

How to set charset UTF-8

2003-08-21 Thread Billy Ng
; charset=UTF-8 Thanks! Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http://info.mailfrontier.com

MIME decoding

2003-08-20 Thread Billy Ng
Hi folks, I need to display a String that is MIME encoded. When I call java's MimeUtility.decodeText(str), it returns me ?. Do I need to set any charset in Struts to make work correctly? Billy Ng This mailbox protected from junk email

persisting session id

2003-08-15 Thread Billy Ng
Hi folks, This is really a tomcat related question, but I have no luck in tomcat ailing list. My question is I will lose the session everytime I close the browser. Is there a way to persist the session even I close the browser? Thanks! Billy Ng

where is JSESSIONID?

2003-08-15 Thread Billy Ng
Hi folks; Anybody knows where is the JSESSIONID cookie is? I search the whole Cookies folder, I can't find it. Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http://info.mailfrontier.com

Re: persisting session id

2003-08-15 Thread Billy Ng
Can I put the JSESSIONID in the persistent cookie? When user hit the page, will the serlvet pick up the JSESSIONID from the cookie instead of memory? Billy Ng This mailbox protected from junk email by Matador from MailFrontier, Inc. http

Re: extending Action problems

2003-07-07 Thread Billy Ng
Hey Andrew, in fact, your hacky way works out pretty well. I use the hastable to hold the ActionContexts. I am going to do the hammer test to see if it hurts anything on the performace. Thanks, Andrew! Billy Ng private final static HashTable threadTable = new HashTable(100); public

Re: IE 6 SP-1 won't session

2003-07-05 Thread Billy Ng
But my app works for all customers except one. Billy Ng - Original Message - From: sander-martijn [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 04, 2003 12:26 PM Subject: Re: IE 6 SP-1 won't session I was having a similar issue - check your

Re: Is Action Instantiated Once?

2003-07-04 Thread Billy Ng
I think I know what is happening. I have some getter methods that hold the memeber variables in the ActionBase class. Thank you guys! Billy Ng - Original Message - From: Kwok Peng Tuck [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 8:15

extending Action problems

2003-07-04 Thread Billy Ng
I make a mistake on extending the Action. I have the following code to set the parameters in the perform() to the setters. At first, I wanted whichever the classes that extends ActionBase can get the parameters by simply calling the getters. However, the Action is a singleton, the instance

Re: Struts-bean.tld

2003-07-04 Thread Billy Ng
I normally use it to get the value from the properties file. a href=bean:message key=home.link/ In the Applications.properties file, you can define home.link=http://www.home.com How handy, right? You should look at the Struts' doc Billy Ng - Original Message - From: Jagannayakam

Re: extending Action problems

2003-07-04 Thread Billy Ng
on that! /drop-name -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED] Sent: Friday, 4 July 2003 17:06 To: Struts Users Mailing List Subject: extending Action problems I make a mistake on extending the Action. I have the following code to set the parameters in the perform

Re: extending Action problems

2003-07-04 Thread Billy Ng
running application that is using this method? Thanks Andrew! Billy Ng - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Sent: Friday, July 04, 2003 3:49 AM Subject: RE: extending Action problems Almost - but the getRequest(ac) is redundant - you would

IE 6 SP-1 won't session

2003-07-04 Thread Billy Ng
that the app returns user back to login page. Anyone have seen this before? Thanks! Billy Ng

Is Action Instantiated Once?

2003-07-03 Thread Billy Ng
action extends a ActionBase that extends Strut's Action. Would anybody tell me if Strut will instantiates a new acton everytime it is called? Did I miss something on the configuration to make it thread dependent? Thanks! Billy Ng

Re: Is Action Instantiated Once?

2003-07-03 Thread Billy Ng
I don't think I used instance variables for referencing the address book entries, but the last guy always wins. The screen of the guy who first clicks on the next button will not display anything until the screen of the guy who clicks later finishes. Billy Ng - Original Message - From

IE 6 timeout session

2003-06-04 Thread Billy Ng
Hi folks; I have a customer complains the IE 6 sp1 times out the session after he is logged in the app. I tried to reproduce it but I can't. Have anybody experienced this? Billy Ng

Re: IE 6 timeout session

2003-06-04 Thread Billy Ng
It does not care the timeout in the server.xml. After the guy logged in to the app, he would be returned to the login page if he clicked on anything. This means his session expired or the session is null. It only happens on the IE 6 SP-1. Billy Ng - Original Message - From: Chen, Gin

Re: IE 6 timeout session

2003-06-04 Thread Billy Ng
Are you sure? I changed my IE to Block cookies, but it still let me in without sessing the read eye in the status bar. If I go to yahoo to log in to my account, the red eye shows up. I think java session is different from simply writing cookie to the client. Billy Ng - Original Message

How to detect Input Image

2003-01-13 Thread Billy Ng
() and set() methods that I can use in ActionForm to get x and y int? Thanks! Billy Ng

Re: How to detect Input Image

2003-01-13 Thread Billy Ng
Wow, looks cool! However, if I can get the request object in the ActionForm, the code can be much shorter. Billy Ng - Original Message - From: Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, January 13, 2003 11:21 AM Subject: RE: How

Re: Precompiling JSPs

2003-01-13 Thread Billy Ng
I used Ant to precompile the JSPs before. It was very good but took much longer to compile a build. If you have 2,000 JSPs, mm... And I can tell how hard to maintain 2000 entries in the web.xml. Billy Ng - Original Message - From: William W [EMAIL PROTECTED] To: [EMAIL PROTECTED

Forward to a servlet

2002-12-15 Thread Billy Ng
=accounts path=/WEB-INF/ui/AccountsHTML_jsp/ /action Would anybody knows how can I make this work? Thanks in advance! Billy Ng

Re: Forward to a servlet

2002-12-15 Thread Billy Ng
files? Billy Ng - Original Message - From: Andrew Hill [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Sunday, December 15, 2002 11:05 PM Subject: RE: Forward to a servlet I thought that even with precompiling you would just point the forward at the .jsp file

Re: Forward to a servlet

2002-12-15 Thread Billy Ng
Ng - Original Message - From: David M. Karr [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 15, 2002 11:25 PM Subject: Re: Forward to a servlet Billy == Billy Ng [EMAIL PROTECTED] writes: Billy Hi folks, Billy In my Struts app, I am using the Action to call

Stop auto fill in html:password

2002-10-26 Thread Billy Ng
Hi folks, IE will auto fill the password if user enables it. Is there a way to clear the history in the html:password? Billy Ng

Re: Stop auto fill in html:password

2002-10-26 Thread Billy Ng
I got the answer in the previous email. Please ignore this one. Billy Ng - Original Message - From: Billy Ng [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, October 26, 2002 3:00 PM Subject: Stop auto fill in html:password Hi folks, IE will auto fill

Re: RedirectingActionForward?

2002-10-23 Thread Billy Ng
I posted a question earlier regarding the redirect. I notice I can't do the sendRedirect after the mapping.findForward is called. Oterwise, it works very good with return null. Billy Ng - Original Message - From: Eddie Bush [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Image path question

2002-10-23 Thread Billy Ng
or Apache thing? Thanks! Billy Ng

Redirect Question

2002-10-22 Thread Billy Ng
? HttpServeletResponse.sendRedirect(url); return null; Thanks! Billy Ng

error page for jsp

2002-10-14 Thread Billy Ng
Hi folls; I don't want to see the exception error if anything goes wrong in jsp. Should I use % page errorPage=errorpage.jsp %? or Struts has better mechanism to handle the exception is thrown in jsp? Thanks! Billy Ng

help on validate attribute

2002-10-10 Thread Billy Ng
Hi folks, If I put validate=true in the action tag, the form will be validated once it is load. Is it a right behavior? Since there is no data in the form bean, some madatory fields that I specify in the validate method will be treated as error. How should I handle it? Billy Ng

Re: Cannot find bean error

2002-10-07 Thread Billy Ng
Make sure your clsoing tag is right. I had the similar error message when I had an incorrect closing /html:form tag. Hope this helps! Billy Ng - Original Message - From: Anoop [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, October 07, 2002 12:55 AM

Re: Business Logic Bean Question

2002-10-05 Thread Billy Ng
Thanks all of you, I think I got the picture! Billy Ng - Original Message - From: Pavel Kolesnikov [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, October 04, 2002 10:47 AM Subject: Re: Business Logic Bean Question On Fri, 4 Oct 2002, Billy Ng wrote

Business Logic Bean Question

2002-10-04 Thread Billy Ng
question is if I should do the business logic in Action? Am I supposed to hand down the job to a business logic bean? It will be helpful if anyone can provide me samples or links for how a business logic looks alike. Thanks in advance! Billy Ng

Problem with JDBC Connector 2 driver

2002-10-03 Thread Billy Ng
My app still hangs once in a while. I am supsecting the problem comes from the JDBC driver becuase it only stalls on the pages that need database access. Would anybody please tell me if you have experieneced the same problem with using Linux, mysql, and Connector 2 driver. Thanks! Billy Ng

set ContentType to application/msword

2002-10-03 Thread Billy Ng
I am trying to let user to open the HTML with MS Word. I changed the content type to ContentType=application/msword in the jsp, but it still did not bring up the Word. Does Struts set the content type to text/html somewhere? Thanks! Billy Ng

RE: Access JSP in the WEB-INF

2002-09-30 Thread Billy Ng
I was told I could do this; action name=aPage .. [put the jsp file here] /action action forward name=aPage path=aPage.do / /action Billy Ng From: Andrew Hill [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts [EMAIL PROTECTED] Subject: RE: Access JSP in the WEB-INF Date: Mon

Re: taglib url problem

2002-09-28 Thread Billy Ng
? If not, I need to move things to after the /WEB-INF. Thanks! Billy Ng -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: xml transformation

2002-09-27 Thread Billy Ng
After I used the JTSL's x:transfom tag, it is working now. Thanks a lot, Eddie! Billy Ng -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

taglib url problem

2002-09-27 Thread Billy Ng
=${xslt}/ Would anybody please tell me why? Thanks! Billy Ng -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

use Jakarta TagLibs in Struts

2002-09-26 Thread Billy Ng
) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107 ) at java.lang.Thread.run(Thread.java:536) Thanks! Billy Ng -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

preserve Forward order

2002-09-21 Thread Billy Ng
When I use mapping.findForwards(), it returns me the sorted forward names. How can I get the forward names in the same order as in the struts-conf.xml? Thanks! Billy Ng

Re: preserve Forward order

2002-09-21 Thread Billy Ng
++) { ActionForward forward = mapping,findForward(forwards[i]); out.print(A href=\+forward.getPath()+\+forward.getName()+/A; } I know I am lazy, but it works very good except the sorting. That's why I want the elements of the String[] has the order I put in struts-conf.xml Billy Ng - Original

Re: preserve Forward order

2002-09-21 Thread Billy Ng
Good idea! I won't go for hacking Struts either. By the way, I heard you guys talking about plugin so many times (I know, I am a slower learner). Any web site I can look at. I am very interested in learnig it. Billy Ng - Original Message - From: Eddie Bush [EMAIL PROTECTED

Re: preserve Forward order

2002-09-21 Thread Billy Ng
Thanks! I ask you more when I am stuck. Billy Ng - Original Message - From: Eddie Bush [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Saturday, September 21, 2002 9:50 AM Subject: Re: preserve Forward order Here's what I would do: - grab source from CVS

Re: Possible memory leak in Tomcat 4.1.10

2002-09-11 Thread Billy Ng
Good pointer, I will do it. Thanks, Craig! Billy Ng - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, September 10, 2002 8:16 PM Subject: Re: Possible memory leak in Tomcat 4.1.10 What you observe is what

Re: Possible memory leak in Tomcat 4.1.10

2002-09-11 Thread Billy Ng
Craig, I did it as you said. I ran the Hello World page on the Tomcat's Servlet Examples, then kept refreshing it. The free memory is continuously going down. I will report this to Tomcat team. Billy Ng. - Original Message - From: Craig R. McClanahan [EMAIL PROTECTED] To: Struts

Servlte-level Resource Files

2002-09-10 Thread Billy Ng
some points for how to do it. Thanks! Billy Ng

Possible memory leak in Tomcat 4.1.10

2002-09-10 Thread Billy Ng
anything about the 4.1.10. I am wondering if anyone experienced the same problem before. If you are using any version of Tomcat that you feel it is stable, please let me know. Thanks! Billy Ng

Re: Possible memory leak in Tomcat 4.1.10

2002-09-10 Thread Billy Ng
I have already mailed to Tomcat mailing list before. I mailed here because there are some Struts users might experience this before. Sorry, I am using Linux and the top command. I just keep track on the free memory reading evey time I hit the servlet. Billy Ng - Original Message

Re: Detect errors in Action

2002-09-05 Thread Billy Ng
thanks! I thought there was a method or a way to see the ActionError is not null or its length larger than 0 in the Action before the view with error displayed Billy Ng - Original Message - From: John Yu [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday

Re: Detect errors in Action

2002-09-05 Thread Billy Ng
I did that. But the object I set in the Action before would be lost when the ActionForm's validate method find the errors and then return to the view. Billy Ng - Original Message - From: Dan Walker [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday

The app freezes with plenty free memory

2002-09-05 Thread Billy Ng
. Does anyone have the same problem? Billy Ng

Re: Need help in struts-config.xml file

2002-09-04 Thread Billy Ng
I ran into the same problem, but I brand it in the properties file and I have a URL object to pick it. So you just need to change it in one place if the app name is changed. Billy Ng - Original Message - From: Ashish Kulkarni [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL

Not using JSP as the view

2002-09-04 Thread Billy Ng
Hi folks, I am thinking to repsonse the XML instead of HTML. In Struts, how can I response to the browser without displaying the JSP as the view? Thanks! Billy Ng

Re: Not using JSP as the view

2002-09-04 Thread Billy Ng
ic, I thought the ActionForward had to be jsp file. Thanks a lot! Billy Ng - Original Message - From: Ted Husted [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, September 04, 2002 2:25 PM Subject: Re: Not using JSP as the view The Struts Action

Detect errors in Action

2002-09-04 Thread Billy Ng
Hi folks, Would anybody tell me if I can detect any errors occur in the Action? It is because i have some objects created in the Action. If there is error, I need to set the objects into the request becuase the view displayed. Thanks! Billy Ng

Re: Hanging Struts

2002-09-03 Thread Billy Ng
failed over time. One more thing, you may try the Connect/J mysql driver, it takes less memory. Hope this help! Billy Ng From: Alex McLintock [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Hanging Struts Date: Tue, 03 Sep 2002 17:44:29

Re: confusion about view part!!!

2002-08-29 Thread Billy Ng
I am working on very large scale b2b portal containing Jsp pages which usus javascripts and style sheets in bulk. So, I am confused that view pages should be made directly using struts tag or it should be easy to make in html and then convert into struts. I am confused too. Since you have

First time penatly

2002-08-29 Thread Billy Ng
how to do pre-compile, thanks! Billy Ng _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL

Re: senfing query strings in action forward

2002-08-29 Thread Billy Ng
business logic before you load the page. so my version will be ActionForward af = mapping.findForward(forward_name); af.setPath(path/myAction.do?user_id=100); af.Redirect(true); return af; Billy Ng From: dmitry [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL

Re: First time penatly

2002-08-29 Thread Billy Ng
declaration in the jsp files? Billy Ng - Original Message - From: Karr, David [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, August 29, 2002 10:36 AM Subject: RE: First time penatly -Original Message- From: Billy Ng [mailto:[EMAIL PROTECTED

Re: html:options tag help ASAP

2002-08-29 Thread Billy Ng
Open the struts-exercise-taglib/html-select.jsp, there are 2 examples to show you how to use Collection to deal with html:option Billy Ng From: Ashish Kulkarni [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject

Memery Leak

2002-08-28 Thread Billy Ng
Hi folks, I am using Tomcat 4.0.3, Struts 1.0.2, and Debian Linux 2.2.19. I notice the size of the free memory is going down everytime there is a user hitting my app. It will never go back up. Anybody having the same problem? Billy Ng

Re: Memery Leak

2002-08-28 Thread Billy Ng
I am a beginner here. Would you please tell me how to ensure the tags/servlets are garbage collected correctly, thanks! Thanks! Billy Ng - Original Message - From: Martin Samm [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 1:53 AM

Re: Memery Leak

2002-08-28 Thread Billy Ng
I don't know. Yes, the memory usage is getting higher and higher. Billy Ng - Original Message - From: Cliff Rowley [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 2:15 AM Subject: RE: Memery Leak Could it be the old javac memory

Re: Memery Leak

2002-08-28 Thread Billy Ng
the session. What about the user exit the program without click on Log Out. Will the object being holding in the session forever? How should I hamdle this? Thanks! Billy Ng - Original Message - From: Cliff Rowley [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent

Re: Run out of Memeory

2002-08-28 Thread Billy Ng
. Billy Ng - Original Message - From: Donald Ball [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 28, 2002 7:15 AM Subject: RE: Run out of Memeory On 8/27/2002 at 4:48 PM Billy Ng wrote: I should say the app is hung silently. It won't do anything when I click on any links

Re: Memery Leak

2002-08-28 Thread Billy Ng
Good info. I like to use static for those frequently acesss objects. I think I need to revisit them. Very high chance it leaks from there. Thanks! Billy Ng - Original Message - From: Michael Lee [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Cc: [EMAIL PROTECTED

RE: Memory Leak

2002-08-28 Thread Billy Ng
Thanks everybody! I found where my app caused the memory leaks already. Somebody is right (sorry, I forget your name)! It is from a singleton call. I will be very careful for the static calls next time. This mailing lists is great! Thanks! Billy Ng

Run out of Memeory

2002-08-27 Thread Billy Ng
Hi folks, I have a Linux box that has only 64MB for the beta testing of my Struts app. The app died silently after a while. I believe it runs out of memory. Would anybody tell me how much the RAM I should put? Thanks! Billy Ng

RE: Run out of Memeory

2002-08-27 Thread Billy Ng
again. When I look at the tomcat log, it has no expection logged. Do you think it is the memory issue? Billy Ng Considering that the JVM tries to grab ~40 MB of memory as soon as it initializes, I'm not surprised. If you run your Linux box without a windowing system (no KDE or Gnome), you

Re: connecting to a database

2002-08-27 Thread Billy Ng
I am new to Struts. I don't know if your syntax is right or not. However, some other users used my way and it works. You may read this http://nagoya.apache.org/eyebrowse/ReadMsg?[EMAIL PROTECTED]msgId=432989 Billy Ng From: Jim Conrad [EMAIL PROTECTED] Reply-To: Struts Users Mailing List

Re: Problem with Proxy Pass

2002-08-21 Thread Billy Ng
Thanks Adrain! I'm interested in learning how to work around with properties lookup. Please shoot me the info. Thanks again! Billy Ng - Original Message - From: Adrian Brown [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, August 20, 2002 7:51 PM

Re: Problem with Proxy Pass

2002-08-21 Thread Billy Ng
! Billy Ng From: Adrian Brown [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Problem with Proxy Pass Date: Wed, 21 Aug 2002 12:51:47 +1000 (EST) Hi Billy, This might not be optimal for you, but try altering

Problem with Proxy Pass

2002-08-20 Thread Billy Ng
view the html form action=/myApp/logon.do method=POST ... This will break the url. Would anybody please me how can tell Struts not to add the app name? Thanks! Billy Ng _ Send and receive Hotmail on your mobile device: http

error handling in jsp

2002-08-15 Thread Billy Ng
handle this, thanks! Billy Ng _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto

RE: Unable to return error to jsp page

2002-08-15 Thread Billy Ng
Would you please tell me how did you get the errors in the Action? Is there a method to call? Thanks! Billy Ng From: Martin Cooper [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Unable to return error

exception handling in jsp

2002-08-12 Thread Billy Ng
Hi folks, Would you anybody tell me what is the simplest way to catch the exception is thrown in the jsp file so that I can display a error page. Thanks! Billy Ng _ Join the world’s largest e-mail service with MSN Hotmail

RE: App will hang if it runs over night

2002-08-09 Thread Billy Ng
minCount=2 user=ie password=foobar url=jdbc:mysql://localhost:3306/ieDB?autoReconnect=true/ /data-sources Billy Ng From: [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: App will hang if it runs over

Re: redirect

2002-07-26 Thread Billy Ng
I ddi try this forward name=action2 path=/action2.do redirect=true / in the struts-config.xml, it will hit the Action2's perform(). However, how can I put the query string in the path? Thanks in advance! Billy Ng - Original Message - From: Billy Ng [EMAIL PROTECTED] To: Struts Users

Re: redirect

2002-07-26 Thread Billy Ng
to do it, thanks! Billy Ng - Original Message - From: Erich Meier [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, July 26, 2002 3:01 AM Subject: Re: redirect On Fri, Jul 26, 2002 at 11:07:14AM +0800, Tuck Wai wrote: Hi, ActionForward newAF=new

Define Pre-selected items in html:select

2002-07-22 Thread Billy Ng
I have tried so many different ways to pre-selected multiple items in the html:select tag, but no luck. Would any body please tell me how to do it, thanks! Billy

Re: Define Pre-selected items in html:select

2002-07-22 Thread Billy Ng
Hey, Martin! You've saved my life, thanks a million! Billy Ng - Original Message - From: Martin Cooper [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, July 22, 2002 2:49 PM Subject: RE: Define Pre-selected items in html:select As long as you don't

multiple selected values

2002-07-18 Thread Billy Ng
to mark a pre-selected item. But if I have more than 1 item to be selected, what variable should I pass to the value attribute? Thanks in advance! Billy Ng

[off topic] how to define array to jsp

2002-07-10 Thread Billy Ng
I have a array that needs to pass from the Action page to jsp. e.g. Agent[] agents = getAgents(); session.setAttibute(agents, agent); In jsp, I try to do this, but it doesn't work jsp:useBean id=agents scope=session class=[com.myApp.Agent / Would anybody please tell how to define the array

how to render query string in html:link

2002-07-05 Thread Billy Ng
Hi folks, Would anybody please provide me some sample code for how to make a link with multiple parameters in the href's url with using html:link tag. Thanks in advance! Billy Ng _ Chat with friends online, try MSN Messenger

RE: how to render query string in html:link

2002-07-05 Thread Billy Ng
how to use it with multiple parameters. Billy Ng From: Kamholz, Keith (corp-staff) USX [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: how to render query string in html:link Date: Fri, 5 Jul 2002 12:41:54

query string

2002-07-02 Thread Billy Ng
is the right way to put the query string to html:link tag? Thanks! Billy Ng _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e

Re: html:img ... problem!

2002-06-24 Thread Billy Ng
You may try href attribute instead of page Billy Ng From: Struts Newsgroup (@Basebeans.com) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: html:img ... problem! Date: Fri, 21 Jun 2002 16:10:01 -0700 Subject: html:img ... problem! From

RE: Why Tiles?

2002-06-24 Thread Billy Ng
Sorry for my ignorance! Since Struts has the struts-template.tld, why Tiles? Billy Ng From: Trieu, Danny [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Why Tiles? Date: Mon, 24 Jun 2002 10:20:50 -0700

Re: debug

2002-06-22 Thread Billy Ng
Never mind. I find it in the catalina.out Thanks! Billy Ng - Original Message - From: Billy Ng [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, June 21, 2002 10:08 PM Subject: Re: debug How come I do not see the System.out result

url object

2002-06-22 Thread Billy Ng
in advance! Billy Ng

debug

2002-06-21 Thread Billy Ng
Would anybody share with me how you debug the program? I am using simply emacs. Is the getServlet.log() my only choice if I just want to do something equivalent to System.out.print()? Thanks! Billy Ng

  1   2   >