[help] couldn't upload file with utf-8 name :(

2006-10-13 Thread Pham Anh Tuan
Hi all, I got a problem when I use File Upload to upload 1 file with utf-8 name, ex: あのひと.jpg :( who has experience in this problem, plz help me :| thanks in advance, bowlkhin - To unsubscribe, e-mail: [EMAIL PROTECTED]

[HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework

2006-09-26 Thread Pham Anh Tuan
Hi all, I got a trouble when I submit the unicode form by ajax. when I test the submitted url, it gives me the right unicode value for each parameter I sent. ex: .do?st1=tốivềst2=ngàyvề but when I retrieve it from bean, it was not unicode value :( this trouble happens only when I submit

Re: [HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework

2006-09-26 Thread Pham Anh Tuan
Antonio, would you mind showing an example how to use POST method with AJAX ? thanks in advace bowlkhin - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, September 26, 2006 4:16 PM Subject: Re: [HELP] Can't

Re: [HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework

2006-09-26 Thread Pham Anh Tuan
not submit unicode form by ajax action in Struts + Velocity framework Pham Anh Tuan ha scritto: Antonio, would you mind showing an example how to use POST method with AJAX ? Your question is too generic. Maybe you need simply JavaScript, in this case I suggest to read this piece

Re: [HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework

2006-09-26 Thread Pham Anh Tuan
- From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, September 26, 2006 2:09 PM Subject: [HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework Hi all, I got a trouble when I submit the unicode form by ajax

Re: [HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework

2006-09-26 Thread Pham Anh Tuan
Subject: Re: [HELP] Can't not submit unicode form by ajax action in Struts + Velocity framework Pham Anh Tuan ha scritto: when I test the submitted url, it gives me the right unicode value for each parameter I sent. ex: .do?st1=tốivềst2=ngàyvề but when I retrieve it from bean

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-22 Thread Pham Anh Tuan
are you using? You can search the JIRA database of Tomcat to check whether it's a bug ot Tomcat. Pham Anh Tuan wrote: yes, I had set contentType=text/html; charset=UTF-8 but there's no effect :( - Original Message - From: Truong Xuan Tinh [EMAIL PROTECTED] To: Struts Users Mailing List user

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-21 Thread Pham Anh Tuan
couldn't submit 1 form with unicode information! :( Did you set the page directive in you JSP files like this? %@ page pageEncoding=UTF-8 contentType=text/html; charset=UTF-8% Pham Anh Tuan wrote: Sorry all you, I don't intend to flood the mailling list, but yesterday, after I had sent this email

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

[HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
Hi all, I use Struts framework + Velocity, and I have a form with a text field, something like below: form method=POST action=$link.setAction(/saveIt) table tr td input type=text name=something /td /tr /table /form in

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Pham Anh Tuan
fit for this: byte[] temp = originalString.getBytes(ISO-8859-1); String result = new String (temp, UTF8); Hope this may help. PS: Do not flood the mailing list with duplicate message, you'll get ignored quickly. Pham Anh Tuan wrote: Hi all, I use Struts framework + Velocity, and I have a form

Re: [URGEN] Validation in Action and using redirection to view result page :(

2006-04-13 Thread Pham Anh Tuan
that helps. Adam Pham Anh Tuan on 12/04/06 07:42, wrote: Hi all, case: I use Tiles and Velocity for presentation layer com.project.GeneratedKeyAction: will generated and register information of code or capcha (or do something here - retrieve list of user type from DB, etc) to session scope. !-- go

[URGEN] Validation in Action and using redirection to view result page :(

2006-04-12 Thread Pham Anh Tuan
Hi all, case: I use Tiles and Velocity for presentation layer com.project.GeneratedKeyAction: will generated and register information of code or capcha (or do something here - retrieve list of user type from DB, etc) to session scope. !-- go to Information Registration page - this page

Re: [HELP] Problem with redirect attribute of forward tag

2006-04-11 Thread Pham Anh Tuan
] Problem with redirect attribute of forward tag On 4/10/06, Dave Newton [EMAIL PROTECTED] wrote: Pham Anh Tuan wrote: I got problem with redirect attribute in forward tag. after MyRegistration is processed, it register some values in request scope (some messages to inform that Registration

Re: [HELP] Problem with redirect attribute of forward tag

2006-04-11 Thread Pham Anh Tuan
ooh ... I do validation in Action, so, okie, I will save all messages in a property of form bean. is it okie :-? - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, April 11, 2006 3:30 PM Subject: Re: [HELP

Re: [HELP] Problem with redirect attribute of forward tag

2006-04-10 Thread Pham Anh Tuan
hiz ... thank you very much Dave :) - Original Message - From: Dave Newton [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, April 10, 2006 10:11 PM Subject: Re: [HELP] Problem with redirect attribute of forward tag Pham Anh Tuan wrote: I got

Re: [HELP] how do I catch url like http://www.myweb.com/mysite :(

2006-04-10 Thread Pham Anh Tuan
://www.myweb.com/mysite :( Pham Anh Tuan wrote: I just think that we can check request object, after that we check db for specific username (360.yahoo.com/username), if it's exist, we will view homepage of that username. The problem here, I don't know how to do that :( I had to recreate this usecase

Re: [HELP] how do I catch url like http://www.myweb.com/mysite :(

2006-04-09 Thread Pham Anh Tuan
. -Ted. On 4/7/06, Pham Anh Tuan [EMAIL PROTECTED] wrote: Hi all, I don't know how to catch the url like http://www.myweb.com/myweb --- I wanna do a action with this url, something like 360o yahoo did. ex: with url: 360.yahoo.com/myusername --- you can go to my page. who know how, help me plz

[HELP] Problem with redirect attribute of forward tag

2006-04-09 Thread Pham Anh Tuan
Hi all, I got problem with redirect attribute in forward tag. after MyRegistration is processed, it register some values in request scope (some messages to inform that Registration was successful), but after redirecting to Summary action, all values which registered in request scope is empty

[HELP] how do I catch url like http://www.myweb.com/mysite :(

2006-04-07 Thread Pham Anh Tuan
Hi all, I don't know how to catch the url like http://www.myweb.com/myweb --- I wanna do a action with this url, something like 360o yahoo did. ex: with url: 360.yahoo.com/myusername --- you can go to my page. who know how, help me plz :( thanks in advance, bowlkhin

[help] examples of multi files upload

2006-03-08 Thread Pham Anh Tuan
Hi all, I'm looking for example of multi files upload in struts, help me plz ... thanks in advance! bowlkhin

Re: [help] examples of multi files upload

2006-03-08 Thread Pham Anh Tuan
Hi all, yep, I'm looking for a solution to upload muti files at one time. I have a form with 3 input type=file..., and FormBean like below: FormFile upload1; FormFile upload2; FormFile upload3; and in reset() method, I set upload1 = null, do the same thing for upload2 and upload3. and

[HELP] checking upload file is exist or not ...

2006-03-01 Thread Pham Anh Tuan
hi all, I don't know how we can get the fullpath of the upload file :( input type=file name=uploadFile size=40 I want to check whether or not the upload file is exist, so, I use fullpath to create File, and use exist method of File to check file is exist or not. help me! thanks in advance

Re: [HELP] i80n :(

2006-02-20 Thread Pham Anh Tuan
thank you L, but ... hiz, more details plz :( ... - Original Message - From: Laurie Harper [EMAIL PROTECTED] To: user@struts.apache.org Sent: Tuesday, February 21, 2006 4:25 AM Subject: Re: [HELP] i80n :( Pham Anh Tuan wrote: Hi all, I got a problem, so I need all your help

[HELP] i80n :(

2006-02-19 Thread Pham Anh Tuan
Hi all, I got a problem, so I need all your help :( i18n, I want my Struts app to have default language is Vietnamese, but I couldn't :( I have 3 files below: + mylanguage.properties --- Vietnamese file + mylanguage_ja.properties --- Japanese file + mylanguage_en.properties --- English file I

Re: [HELP] Problem when update 1 unicode form

2006-02-08 Thread Pham Anh Tuan
again, plz help me! - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, February 07, 2006 4:30 PM Subject: [HELP] Problem when update 1 unicode form hi all, I got a problem when I update unicode form :( so

[HELP] Problem when update 1 unicode form

2006-02-07 Thread Pham Anh Tuan
hi all, I got a problem when I update unicode form :( so, I have already tested my web application (Struts-ibatis-velocity-tiles) on my PC (tomcat 5.5.12, mysql 4.1 - utf8 default, JDK 5.0), everything was okie. I could update 1 unicode form (the form which contains unicode characters -

Re: struts html:checkbox value

2006-01-26 Thread Pham Anh Tuan
Dear Vidya, there's a solution, in reset method of your form bean, you should set all your checkbox to false. ;) - Original Message - From: Vidya (Suvarna) Mahavadi [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, January 26, 2006 4:37 PM

Re: struts html:checkbox value

2006-01-26 Thread Pham Anh Tuan
-Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Thursday 26 January 2006 11:53 To: Struts Users Mailing List Subject: Re: struts html:checkbox value Dear Vidya, there's a solution, in reset method of your form bean, you should set all your checkbox to false

Re: [HELP] Can't not get parameter when submit a form form method=POST enctype=multipart/form-data

2006-01-26 Thread Pham Anh Tuan
@struts.apache.org Subject: Re: [HELP] Can't not get parameter when submit a form form method=POST enctype=multipart/form-data Pham Anh Tuan wrote: Hi all, I got a problem when I submit a form with setting like below form name=postEditFrm method=POST enctype=multipart/form-data input type=submit

Re: [HELP] Can't not get parameter when submit a form form method=POST enctype=multipart/form-data

2006-01-26 Thread Pham Anh Tuan
=multipart/form-data Why would you want it in the reset method? You can do a request.getAttribute(property); Shawn -Original Message- From: Pham Anh Tuan To: Struts Users Mailing List Sent: 1/26/2006 8:15 PM Subject: Re: [HELP] Can't not get parameter when submit a form form method=POST

[HELP] Can't not get parameter when submit a form form method=POST enctype=multipart/form-data

2006-01-24 Thread Pham Anh Tuan
from request.getParameter(myNum) or request.getParameterMap.containsKey(myNum); I want to get the parameter here because I want to user that parameter myNum in reset method of ActionBean. help me :( thanks in advance! bowlkhin * Pham Anh Tuan

[HELP] the problem with I18n

2005-11-08 Thread Pham Anh Tuan
 hi all, I got a problem with I18n, the browser couldn't automatically turn UTF-8 encoding on when jsp page is showed, so, the content is showed incorrectly :( ... If I want the content to show correctly, I must change the encoding setting of the browser to UFT-8, I tested on IE, Firefox,

Re: [HELP] the problem with I18n

2005-11-08 Thread Pham Anh Tuan
. Java requires them to be in ASCII with Unicode escapes. You can use the native2ascii utility to convert your UTF-8 files to the correct format. 2) your JSP page needs to set the content-type to correctly identify the encoding: %@ page contentType=text/html; charset=UTF-8% L. Pham Anh Tuan wrote

[Help] how to erase jsessionid in URL

2005-11-07 Thread Pham Anh Tuan
Hi all, I got a problem when I use Struts Framework, everytime I do a action, Struts automatically appends jsessionid parameter in URL something like below: http://localhost:8080/test/index.do;jsessionid=5DF06EA.. plz help me and show me how to erase jsessionid parameter and I don't know

Re: [Help] how to erase jsessionid in URL

2005-11-07 Thread Pham Anh Tuan
thanks to MC, but ... it still doesn't work, jsessionid is still available in URL after I add redirect to forward tag :( help me plz :( * Pham Anh Tuan Java Developer, HR Assistant ICHI Corporation Vietnam. Room #1001, 37 Ton Duc Thang, Dist. 1

Re: [Help] how to erase jsessionid in URL

2005-11-07 Thread Pham Anh Tuan
thank you, Wendy :) It's just because my client don't want to see jsessionid in the url :( ... * Pham Anh Tuan Java Developer, HR Assistant ICHI Corporation Vietnam. Room #1001, 37 Ton Duc Thang, Dist. 1 Ho Chi Minh City, Vietnam. Phone: (+84

Re: [Help] how to erase jsessionid in URL

2005-11-07 Thread Pham Anh Tuan
:( thank you for ur reply * Pham Anh Tuan Java Developer, HR Assistant ICHI Corporation Vietnam. Room #1001, 37 Ton Duc Thang, Dist. 1 Ho Chi Minh City, Vietnam. Phone: (+84) (08) 9105732 Fax: (+84) (08) 9105734 Cell: (+84) (0) 989 505897 Email: [EMAIL

Re: [Help] how to erase jsessionid in URL

2005-11-07 Thread Pham Anh Tuan
thanks Frank ... but :( ... I turned cookie accept on in my browser (Firefox, IE), but jsessionid still be appended URL :( ... what happened, hiz :( * Pham Anh Tuan Java Developer, HR Assistant ICHI Corporation Vietnam. Room #1001, 37 Ton Duc

Re: [Help] how to erase jsessionid in URL

2005-11-07 Thread Pham Anh Tuan
you have any document which instruct me how to reconfig container :(, if you had, plz show me, uh :) ... thank you :) * Pham Anh Tuan Java Developer, HR Assistant ICHI Corporation Vietnam. Room #1001, 37 Ton Duc Thang, Dist. 1 Ho Chi Minh City

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Pham Anh Tuan
2005 Pham Anh Tuan wrote : Hi all :) I use Tomcat and Struts framework to build my web app. I lay jsp document file at web app root.Such as cart and user. something like: /cart /user /WEB-INF/ When I run my web app, I could access /webapp/cart folder and /webapp/user folder from browser

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Pham Anh Tuan
Tremal, you said: it doesn't work for Strut's ActionServlet, what you mean ? - Original Message - From: Tremal Nailk [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, August 02, 2005 3:30 PM Subject: Re: [HELP] How can deny access to folders at web

Re: [HELP] How can deny access to folders at web app root

2005-08-02 Thread Pham Anh Tuan
Subject: Re: [HELP] How can deny access to folders at web app root 2005/8/2, Pham Anh Tuan [EMAIL PROTECTED]: Tremal, you said: it doesn't work for Strut's ActionServlet, what you mean ? I mean, Paul's example is valid for Catalina DefaultServlet: servlet-class

Re: [HELP] Web hosting for JSP Struts+iBatis+DAO?

2005-08-01 Thread Pham Anh Tuan
Thanks Vic, I will try it :) again, thank you very much :) Pham - Original Message - From: Vic [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Cc: Struts Users Mailing List user@struts.apache.org Sent: Monday, August 01, 2005 7:52 PM Subject: Re: [HELP] Web

Re: [HELP] Web hosting for JSP Struts+iBatis+DAO?

2005-08-01 Thread Pham Anh Tuan
oh, my god, I TIE MY HANDS BY YOU :D Pham - Original Message - From: Vic [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Cc: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, August 02, 2005 9:46 AM Subject: Re: [HELP] Web hosting for JSP

[HELP] How can deny access to folders at web app root

2005-08-01 Thread Pham Anh Tuan
Hi all :) I use Tomcat and Struts framework to build my web app. I lay jsp document file at web app root.Such as cart and user. something like: /cart /user /WEB-INF/ When I run my web app, I could access /webapp/cart folder and /webapp/user folder from browser. All files in 2 folders

Re: [HELP] How can deny access to folders at web app root

2005-08-01 Thread Pham Anh Tuan
Thanks to Tamas, if do like what you instruct me, what about Image resources? I couldn't access to view them if I use code in jsp file. Such as: img src=/ :( The solution of Paul solved my problem :) HTTP Status 404 - /auctionsystem/images/

[HELP] Web hosting for JSP Struts+iBatis+DAO?

2005-07-31 Thread Pham Anh Tuan
Hi all, I'm buiding a commercial website, which uses Struts+iBatis+DAO. I'm live in Viet Nam and I'm looking a web hosting for a commercial website like above. plz help me Pham

[HELP] Can or can not call a specific message group in *.properties file?

2005-07-24 Thread Pham Anh Tuan
Hi all, I wonder whether or not the Messages files (*.properties) in Struts support a message definition form like a config file of Smarty or not? in Smarty config file: [loginForm] username=User name: firstname=First name: [userHome] hello=Hello ... so, with above definition form, we can

[HELP] Who have ever used Quartz in Struts, help me :(

2005-07-03 Thread Pham Anh Tuan
Hi all, I got error when I use Quartz as a plugin in Struts. For more details. I will show all you 2 files which I defined like below: MyBot.java: import java.text.ParseException; import org.quartz.CronTrigger; import org.quartz.JobDetail; import org.quartz.Scheduler; import

[HELP] I couldn't trim() 1 japanese String (charset UTF-8)

2005-06-21 Thread Pham Anh Tuan
Hi all, I got 1 problem when I trying to eliminate spaces at ride side and left side of 1 japanese String. In mySQL I set UTF-8 for both database and my Jsp pages. But in Action, I can't not trim() japanese string, so, when I insert that string to database, spaces are exist. Plz help me

Re: [HELP] I couldn't trim() 1 japanese String (charset UTF-8)

2005-06-21 Thread Pham Anh Tuan
Pham Anh Tuan [EMAIL PROTECTED] 宛先:Struts Users Mailing List user@struts.apache.org rp.jp cc: 件名:[HELP] I couldn't trim() 1 japanese String (charset UTF-8

[HELP] I couldn't trim() 1 japanese String (charset UTF-8)

2005-06-21 Thread Pham Anh Tuan
Pham Anh Tuan [EMAIL PROTECTED] 宛先:Struts Users Mailing List user@struts.apache.org rp.jp cc: 件名:[HELP] I couldn't trim() 1 japanese String (charset UTF-8

Re: Can't not reference to property of object which is property of Bean

2005-06-01 Thread Pham Anh Tuan
reset method and initialize privateMessage again if u follow second option. On 6/1/05, Pham Anh Tuan [EMAIL PROTECTED] wrote: Hi all, I have 1 problem: I tried to do something like below: test.jsp includes: html:form action=/user/sendPrivateQuestion.do styleId=userBean html:text property

Re: Can't not reference to property of object which is property of Bean

2005-06-01 Thread Pham Anh Tuan
) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254) java.lang.IllegalArgumentException: No bean specified what's wrong ??? help me! Anh Tuan - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org; [EMAIL

Re: Can't not reference to property of object which is property of Bean

2005-06-01 Thread Pham Anh Tuan
Hi all, I got the answer for my problem. Because I don't initialize properties which are objects :D - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, June 01, 2005 4:31 PM Subject: Re: Can't not reference

Can't not reference to property of object which is property of Bean

2005-05-31 Thread Pham Anh Tuan
Hi all, I have 1 problem: I tried to do something like below: test.jsp includes: html:form action=/user/sendPrivateQuestion.do styleId=userBean html:text property=privateMessage.subject name=userBean/ /html:form I've already defined privateMessage in my userBean like below: /**

Re: [HELP] Couldn't include bean:write tag in onClick in html:radio

2005-05-20 Thread Pham Anh Tuan
)rId% onclick='javascript:whichAuctionType(#34;MESSAGE#34;);' / If it does work, I will then explain to you why :) -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: 20 May 2005 05:46 To: Struts Users Mailing List Subject: [HELP] Couldn't include bean:write tag

Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-19 Thread Pham Anh Tuan
have a link on web for this but i think you can find easy with google. i hope this solve your problem. Catalin On 5/19/05, Pham Anh Tuan [EMAIL PROTECTED] wrote: Thank Aladin, I'm Alibaba :D, So, the first thing I want to say here I don't know exactly how to use security-constraint, maybe

Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-19 Thread Pham Anh Tuan
Hi Leon, Would you like to give me any example of ur solution? Anh Tuan - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, May 20, 2005 9:37 AM Subject: Re: Fw: [HELP] How to restrict access to certain mapping

[HELP] Couldn't include bean:write tag in onClick in html:radio

2005-05-19 Thread Pham Anh Tuan
Hi all, I couldn't include bean:write tag in onclick attribute of html:radio like below: html:radio name=exhibit_item_request property=auctionTypeId value=%= (String)rId% onclick='javascript:whichAuctionType(#34;bean:write name=rule property=auctionTypeId/#34;);'/ and the result: html source

[HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Pham Anh Tuan
Hi all, I don't know how to restrict access to certain mapping action? Ex: I have action: /user/myaction.do and I don't want user directly access to above action. Could I use web.xml to solve this problem. something like: security-constraint web-resource-collection web-resource-name

Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Pham Anh Tuan
Hi all, This is the second time I post this message for help :(. I don't know how to restrict access to certain mapping action? Ex: I have action: /user/myaction.do and I don't want user directly access to above action. Could I use web.xml to solve this problem. something like: security-constraint

Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-18 Thread Pham Anh Tuan
:49 AM Subject: Re: Fw: [HELP] How to restrict access to certain mapping action ??? Hi Pham, I think this was mentioned earlier. There are two things you can do: 1) Use a filter with a url-map to your action 2) Use security constraints Aladin Pham Anh Tuan wrote: Hi all, This is the second time I

[HELP] action mapping for welcome page?

2005-05-08 Thread Pham Anh Tuan
Hi all, I need your help. When I want to map my index page with a action, there's something makes me confuse. Ex: I have a website www.myweb.com I want to use 1 action: /user/index.do to map to my page is home.jsp in my web.xml servlet-mapping servlet-nameaction/servlet-name

Re: [HELP] action mapping for welcome page?

2005-05-08 Thread Pham Anh Tuan
page? You can't have a link to an action as your welcome file, It must be a physical file. You could always have a JSP with a forward to your action as your welcome file. Jonathan Wright - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user

[HELP] Flash load so low ?

2005-05-08 Thread Pham Anh Tuan
hi all, I got a problem when I include 1 html page contains 1 flash file I use bean:include id=tp1 page=/share/Header.html/ bean:write name=tp1 filter=false/ Header.html file contains 1 flash file. my main jsp file which contains bean above, all text in Header file appear, but only Flash

[AGAIN, PLZ HELP] Experiences using Struts with Japanese?

2005-04-19 Thread Pham Anh Tuan
This is the second times I post this topic, I'm in stuck of Struts with Japanese. I use html:text to input and show Japanese characters and save them to mySQL (set charset sjis). The jsp page which contains html:text above, I set charset is sjis. If everything does right, japanese character

Re: [AGAIN, PLZ HELP] Experiences using Struts with Japanese?

2005-04-19 Thread Pham Anh Tuan
the information in Unicode in the database would simplify your problems. I am trying to find a link that had a good explaination of the steps. The web page has disappeared but can be viewed here: http://web.archive.org/web/20040619054137/http://www.anassina.com/struts/i18n/i18n.html Pham Anh Tuan

Re: [AGAIN, PLZ HELP] Experiences using Struts with Japanese?

2005-04-19 Thread Pham Anh Tuan
Thank you very much, Jason, my work is completed with ur help :) Pham - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, April 20, 2005 10:00 AM Subject: Re: [AGAIN, PLZ HELP] Experiences using Struts

Re: [HELP] html:text encodes special characters automatically?

2005-04-15 Thread Pham Anh Tuan
set the filter attribute of html:text On 4/15/05, Pham Anh Tuan [EMAIL PROTECTED] wrote: Hi all, I got a problem, again :) when I input special characters like japanese or vietnamese character into html:text, html:text automatically encodes that characters Decimal NCRs before mapping to bean

Re: [HELP] html:text encodes special characters automatically?

2005-04-15 Thread Pham Anh Tuan
=multipart/form-data acceptCharset=ISO-8859-1 This way we are sure the encoding used by borwser is the same as the one fileupload tool defaults to. Le Vendredi 15 Avril 2005 07:19, Pham Anh Tuan a crit : Hi all, I got a problem, again :) when I input special characters like japanese or vietnamese

Re: Struts UTF-8 (POST working, GET not)

2005-04-15 Thread Pham Anh Tuan
Just try URLEncoder class of Java. by the way, would you mind telling me the way u use String defaultEncode = UTF-8; HttpServletRequest req = (HttpServletRequest) request; HttpServletResponse res = (HttpServletResponse) response; req.setCharacterEncoding(defaultEncode);

Re: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-14 Thread Pham Anh Tuan
elements among the various layers. Brandon On 4/12/05, Pham Anh Tuan [EMAIL PROTECTED] wrote: Right, like Mark said, I'm following JPetStoreExample, Rick :), when you use DAO, ur Bean must extends from Basebean of DAO pattern. So, if I want to do Validation, I only do it on Server. So, if I want do

[HELP] html:text encodes special characters automatically?

2005-04-14 Thread Pham Anh Tuan
Hi all, I got a problem, again :) when I input special characters like japanese or vietnamese character into html:text, html:text automatically encodes that characters Decimal NCRs before mapping to bean property. Example 1: meta http-equiv=Content-Type content=text/html; charset=iso-8859-1

[HELP] bean:write tag can not write Japanese or Vietnamese

2005-04-13 Thread Pham Anh Tuan
Hi all, I got a problem when I write out data on jsp. I have a String = #12431;#12383;#12375 which means in Japanese I use bean:write name=myStr/ it only shows #12431;#12383;#12375 plz show me how to solve this problem. thanks.

Re: [HELP] bean:write tag can not write Japanese or Vietnamese

2005-04-13 Thread Pham Anh Tuan
"/ (B bean:write name = "myStr" locale="myLocale"/ (B (B NOTE: Assuming browser locale is Japanese. (B (B (B -Original Message- (B From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] (B Sent: Wednesday, April 13, 2005 12:11 PM (B To: Struts Users Mailing List (

Re: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-12 Thread Pham Anh Tuan
by extending the validate() method of BaseBean. Then you can set validate=true in your struts-config. Mark On Apr 12, 2005 12:54 AM, Rick Reumann [EMAIL PROTECTED] wrote: Pham Anh Tuan wrote the following on 4/11/2005 4:02 AM: Hi all, I don't know how to do Validation in Struts + iBatis + Dao. Because

[HELP] How to do validation in Struts + iBatis + DAO???

2005-04-11 Thread Pham Anh Tuan
Hi all, I don't know how to do Validation in Struts + iBatis + Dao. Because when I use above Structure, I must extends from BaseBean to create my own Bean. As you know, if we want to use Validator of Struts, our ActionForm must extends from ValidatorForm. So ... help me. bowl

Re: [HELP] How to do validation in Struts + iBatis + DAO???

2005-04-11 Thread Pham Anh Tuan
not sure why this is a problem, unless you are passing your action form into iBATIS. If that is the case, that is a really, really, really bad idea. What I would recommend (beyond not using validator) is nesting your model bean on the action form. Larry On Apr 11, 2005 2:02 AM, Pham Anh Tuan [EMAIL

[HELP] How can javascript reference to 1 html:hidden tag or html:text ???

2005-03-30 Thread Pham Anh Tuan
Hi, I don't know how javascript reference to 1 html:hidden tag or html:text tag of struts tag lib and change their value. for example: I have html:hidden property=userId How can I change the value of tag above by javascript. Maybe document.all.userId.value=somevalue -- like this ??? help me

Re: [HELP] How can javascript reference to 1 html:hidden tag or html:text ???

2005-03-30 Thread Pham Anh Tuan
Thank you all :), my problem is solved! - Original Message - From: Mark Benussi [EMAIL PROTECTED] To: 'Struts Users Mailing List' user@struts.apache.org Sent: Thursday, March 31, 2005 12:05 AM Subject: RE: [HELP] How can javascript reference to 1 html:hidden tag or html:text ???

[HELP] Error ...is null or not an object when using Struts+iBatis+DAO ?

2005-03-28 Thread Pham Anh Tuan
Hi all, I need your help :( Like my subject, I use Struts + iBatis + DAO. I get error message document.all.cateInfoFrame is null of not an object but ... my action is done ??? my code line is: Main.jsp: contains 2 IFrames: 1 called iframe1 (IFrame1.jsp) and 2 called cateInfoFrame

Re: [HELP] Error ...is null or not an object when using Struts+iBatis+DAO ?

2005-03-28 Thread Pham Anh Tuan
Hi, sorry all, this is my mistake :) I have just predefined 1 javascript below header tag and I put it into onLoad in body tag and I ... forgot that script :) ... Sorry all Thank u for ur reading :) - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List

Re: [HELP] How could I catch and process Errors in Struts + iBatis + DAO?

2005-03-24 Thread Pham Anh Tuan
example at http://www.reumann.net/struts/ibatisLesson1.do about this. download the sample war and look inside. cheers On Wed, 23 Mar 2005 17:31:53 +0700, Pham Anh Tuan [EMAIL PROTECTED] wrote: Hi, I don't know how to catch and process errors in Struts + iBatis + DAO. Anyone here can help me, plz

[HELP] How could I catch and process Errors in Struts + iBatis + DAO?

2005-03-23 Thread Pham Anh Tuan
Hi, I don't know how to catch and process errors in Struts + iBatis + DAO. Anyone here can help me, plz :( thank for ur reading. Tuan

Re: [HELP] What's wrong with my html:link syntax... :(

2005-03-16 Thread Pham Anh Tuan
Nico. Pham Anh Tuan a écrit : Hi all, I got a problem when I code like below: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/Go/html:link I can not get value of treetag:nodeId node=tree.node/ if my code is incorrect, plz help me solve it. thanks Bowl

[HELP] What's wrong with my html:link syntax... :(

2005-03-15 Thread Pham Anh Tuan
Hi all, I got a problem when I code like below: html:link page=/student/getScore.jsp?id=treetag:nodeId node=tree.node/Go/html:link if my code is incorrect, plz help me solve it. thanks Bowl

Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-10 Thread Pham Anh Tuan
Thank you very much, Rick :) - Original Message - From: Rick Reumann [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Thursday, March 10, 2005 5:07 AM Subject: Re: [Help] I need tutorial which tells us how to integrate Struts and Hibernet Pham Anh Tuan wrote

[Help] I need tutorial which tells us how to integrate Struts and Hibernet

2005-03-09 Thread Pham Anh Tuan
Hi all, Who can help me or show me where I can get tutorial which tells me how to integrate Struts and Hibernet. thanks for advance Anh Tuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[NEED] I need example and document about DispathAction

2005-02-20 Thread Pham Anh Tuan
Hi, I'm looking for some tutorial or document of Dispath Action. Who knows where I can find it, plz show me! thanks for advance! Anh Tuan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [HELP] Understanding clearly about function of Nested Tags

2005-02-18 Thread Pham Anh Tuan
of Nested Tags Pham Anh Tuan wrote the following on 2/17/2005 10:56 PM: I don't know clearly about functions of Nested Tags. I have not used it before. I read in struts.apache.org about it, and all I know is it's somthing like logic ... plz, show me the powerful ability of Nested Tags Well, I'll

Re: [HELP] Understanding clearly about function of Nested Tags

2005-02-18 Thread Pham Anh Tuan
Sorry about my mistake... Thank you, Rick! - Original Message - From: Pham Anh Tuan [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Saturday, February 19, 2005 9:07 AM Subject: Re: [HELP] Understanding clearly about function of Nested Tags Oh, thank you very

[HELP] Understanding clearly about function of Nested Tags

2005-02-17 Thread Pham Anh Tuan
Hi all, I don't know clearly about functions of Nested Tags. I have not used it before. I read in struts.apache.org about it, and all I know is it's somthing like logic ... plz, show me the powerful ability of Nested Tags Thanks for advance Anh Tuan

[NEED] tutorials about Security in Struts

2005-02-16 Thread Pham Anh Tuan
Hi all, I'm looking for tutorial about security in Struts, plz help me to find them quickly ... thanks for advance Anh Tuan

Re: [HELP] Using scriptlet to to generate a property

2005-02-16 Thread Pham Anh Tuan
: html:link href='%= / + name + /index.jsp %' -Original Message- From: Pham Anh Tuan [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 8:46 PM To: Struts Users Mailing List Subject: [HELP] Using scriptlet to to generate a property html:link href='%= / + name + /index.jsp %' I don't

  1   2   >