);
Thanks!
Billy Ng
This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com
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
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
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
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 ApplicationResources_zh_TW.properties
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 M
the contentType to
"text/html; charset=UTF-8"
Thanks!
Billy Ng
This mailbox protected from junk email by Matador
from MailFrontier, Inc. http://info.mailfrontier.com
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
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
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
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
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
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
&
t the app returns user back to login page.
Anyone have seen this before?
Thanks!
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 -
d mentioning in a reply to some post of mine
> that he used a similar technique quite often - but it may have been
someone
> else so don't quote me on that!
>
>
>
> -Original Message-
> From: Billy Ng [mailto:[EMAIL PROTECTED]
> Sent: Friday, 4 July 2003 17:06
&
I normally use it to get the value from the properties file.
"
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" <[EMAIL
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 v
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 PROTEC
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 -
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
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
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
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
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]
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
rgly. Is there any get() and set() methods that I can use
in ActionForm to get x and y int?
Thanks!
Billy Ng
So, should I do this?
web.xml
=
AccountHTML_jsp
com.mydomain.AccountHTML_jsp
AccountHTML_jsp
/AccountHTML.jsp
struts-config.xml
===
Billy Ng
- Original Message -
From: "
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 j
vance!
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
Hi folks,
IE will auto fill the password if user enables it. Is there a way to clear the
history in the ?
Billy Ng
mcat or Apache thing?
Thanks!
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 U
ction?
HttpServeletResponse.sendRedirect(url);
return null;
Thanks!
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
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
Make sure your clsoing tag is right. I had the similar error message when I
had an incorrect closing tag.
Hope this helps!
Billy Ng
- Original Message -
From: "Anoop" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]&g
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 Questi
r, my 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
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
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
I was told I could do this;
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, 30 Sep 2002 23:43:12 +0800
>
>Im in
o avoid users to see the directory tree? 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]>
irectory to root, it will work
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %>
<%@ taglib prefix="x" uri="http://java.sun.com/jstl/xml"; %>
Would anybody please tell me why?
Thanks!
Billy Ng
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
After I used the JTSL's 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]>
s(HttpProcessor.java:
1012)
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]>
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
> H
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" <[EM
(int i=0; i< forwards.length; i++) {
ActionForward forward = mapping,findForward(forwards[i]);
out.print(""+forward.getName()+"";
}
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
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
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 PROTE
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 To
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
hear 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
se give me some points for how to do it.
Thanks!
Billy Ng
. Does anyone have the same problem?
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
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"
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
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 usin
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
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: "Stru
found in
the validate method, it will reload the JSP. However, all objects in the
request scope are gone by that time and it will throw NullPointerException.
In your remedy, do you mean I could re-set the objects to the request in the
reset method too?
Thanks!
Billy Ng
>From: Rick Reum
ime.
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
Open the struts-exercise-taglib/html-select.jsp, there are 2 examples to
show you how to use Collection to deal with
Billy Ng
>From: Ashish Kulkarni <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: Struts Users Mailing List <
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
> > -Origina
some 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&qu
ll me how to do
pre-compile, thanks!
Billy Ng
_
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <
>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 hav
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
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" <[
.
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 wo
m 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
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: Meme
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]>
Se
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
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]&
lly and startup
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
>wind
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
hanks!
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)
>
&
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]>
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://mobile.msn.com
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional co
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
e error_content.jsp if any eception is
thrown in content.jsp is caught. Would anybody please share how you handle
this, thanks!
Billy Ng
_
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/supp
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 worlds largest e-mail service with MSN Hotmail
The problem is totally gone after I added the autoReconnect parameter in
the mysql's url. Here is the example
Billy Ng
>From: [EMAIL PROTECTED]
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: RE: App will
uld you
please tell me how 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 1
I ddi try this
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 Mailing List"
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
I have tried so many different ways to pre-selected multiple items in the
tag, but no luck. Would any body please tell me how to do it, thanks!
Billy
I have a html:select that enabled multiple attribute.
I know I can use the 's value attribute 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!
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
Would anybody please tell how to define the array object in jsp, thanks!
Billt Ng
It is because I need get the parameter data from a bean. I have tried
something like:
but it won't work. Some said I need to use the param* attributes. I know
it is easy for 1 parameter, but I don't know how to use it with multiple
parameters.
Billy Ng
>From: "Kamh
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 tag.
Thanks in advance!
Billy Ng
_
Chat with friends online, try MSN Messenger:
I try to use the html:link tag
Product
1
to render the link like
Product 1
However, it becomes
Product 1
What did I do wrong? What is the right way to put the query string to
html:link tag?
Thanks!
Billy Ng
_
Chat with
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
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: problem!
>Date: Fri, 21 J
Thanks in advance!
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: R
1 - 100 of 108 matches
Mail list logo