Re: Online docs messed up

2010-05-14 Thread nuwan chandrasoma
Hi All, I also noticed that, i think the wiki .css is messed up, Thanks, Nuwan On Fri, May 14, 2010 at 11:03 PM, Greg Lindholm wrote: > Still looks messed up. I've cleared my browsers cache and forced a reload. > > > When I navigate in from http://struts.apache.org/ I get the 2.1.8.1 > versio

Re: Struts2 session problem (after migrating behind reverse proxy)

2010-08-03 Thread nuwan chandrasoma
Hi Tim, what is your apache webserver version? i have you tried with a ProxyPassReverse declaration? Thanks, Nuwan C. On Mon, Aug 2, 2010 at 9:05 PM, Tim Dellas wrote: > Hi there! > > > > I store session parameters in a Struts2 session map that I get in my > actions > using the SessionAware i

Re: struts2-ssl-plugin problem

2009-08-14 Thread Nuwan Chandrasoma
Louis Voo wrote: Hi, I download this plug-in and put into my /lib, and in my struts.xml has this when I start the tomcat, it throw error : Caused by: Unable to find interceptor class referenced by ref-name secureStack What else I need to configure to use this plug-in? Th

Re: Struts2 ... SecurePlugin?

2007-09-28 Thread Nuwan Chandrasoma
Hi, you can write your own interceptor., there was posting few months back regarding this. Thanks, Nuwan Mufaddal Khumri wrote: Hello, In Struts old we used to do this in struts.xml: What is the struts 2 way of securing your actions? Is there a predefined interceptor

[OT]Re: Exadel Studio is showing Evalution version Expired why?

2007-10-02 Thread Nuwan Chandrasoma
This is not related to struts. msg2ajay wrote: Hello friends, I just downloaded ExadelStudio 4.0.4 for Eclipse 3.2.2 .But when i tried to do Struts project, i am geting a message as Evalution Version Expired. Why it is showing like that. ThanQ in Adv, Ajay ---

Re: how to make ActionForm in session scope in Struts2

2007-10-11 Thread Nuwan Chandrasoma
Hi, what you mean by ActionForm? in struts2 there is no such as ActionForm, you can access the session from your action class and add any object to the session as an attribute. http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html http://struts.apache.org/2.x/docs/how-can

Re: [S2] Simple loop 1..20 with with iterator tag?

2007-10-11 Thread Nuwan Chandrasoma
Hi, why dont you use JSTL Thanks, Nuwan Igor Vlasov wrote: In documentation thre is an example:

Re: Struts Getting Started Help

2007-10-19 Thread Nuwan Chandrasoma
welcome... http://struts.apache.org/2.x/docs/home.html radhika bondada wrote: Hi... I am new to Struts2 hope some help Thanks and Regards Radha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-m

Re: Getting started--mapping URLs to pages

2007-10-29 Thread Nuwan Chandrasoma
Hi, do you have your struts.xml file inside WEB-INF/classes folder? Thanks, Nuwan Troy S wrote: Struts fans. I am trying to add to the struts 2.0.9 blank application. I tried adding actions based on the excellent book in progress Struts2 in Action. I tried loading the URL http://ashanti:80

Re: jQuery plugin for Struts 2?

2007-11-20 Thread Nuwan Chandrasoma
i would like to see one :) emartin24 wrote: Ted Husted wrote: On Nov 20, 2007 1:53 PM, wrote: I've been working with Struts 2 for a few months and have some questions that I was hoping you would be interested in discussing with me. I see that Struts 2 uses Dojo for it's Ajax capabil

Re: Struts+JavaScript i18n

2007-11-22 Thread nuwan chandrasoma
Hi, Sorry i replied to the mail you have sent to the dev list which is used by the struts developers to communicate about struts, sorry dev list guys :) As you have included the struts tag inside a .js file it will not be recognize as an jsp tag. therefore you need to include this inside the .jsp

Re: Could not load class org.apache.struts2.s1.ActionFormValidationInterceptor

2007-11-26 Thread Nuwan Chandrasoma
Hi, If your not using the strus1 pluging for you can remove the struts1-plugin-2.0.9.jar from your WEB-INF/lib directory Thanks, Nuwan vijay vijay wrote: Hi i am getting the fallowing error when i try to run my program. """Could not load class org.apache.struts2.s1.ActionFormVali

Re: [Struts 2] Unable to access resources

2007-12-01 Thread Nuwan Chandrasoma
Hi, Based on your struts.xml, i dont think you have a URL configured like this /EcoSim/web/welcome.action so why don't you type this URL in the browser and see what is the outcome /EcoSim/WelcomeAction.action Thanks, Nuwan thecyth wrote: I get this error message when I try to access ANY of

Re: [Struts 2] Unable to access resources

2007-12-01 Thread Nuwan Chandrasoma
/WelcomeAction.action) is not available. nuwan chandrasoma-2 wrote: Hi, Based on your struts.xml, i dont think you have a URL configured like this /EcoSim/web/welcome.action so why don't you type this URL in the browser and see what is the outcome /EcoSim/WelcomeAction.action Thanks,

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Nuwan Chandrasoma
Hi, Its returning a string array. :) Thanks, Nuwan Ray wrote: I tried to use getInvocationContext.getparameters this method return a Map. when I use Map's get method by key"username" I got a result like "@1c98b2" what's going on? Thx --

Re: How my own Interceptor get the parameters from JSP

2007-12-04 Thread Nuwan Chandrasoma
t;); System.out.println("datenow in the page is:"+datenow[0]); return SUCCESS; } Thanks, Nuwan Ray wrote: Nuwan Chandrasoma Wrote: Hi, Its returning a string array. :) Thanks, Nuwan - To unsubscribe,

Re: Struts2 examples for request parameters

2007-12-04 Thread Nuwan Chandrasoma
Hi, Have a look at this blog.. http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor Thanks to Mark :) Thanks, Nuwan Ray wrote: pavan kumargss 写道: Hai i am working struts2 i used the ServletRequestAware,ServletResponseAware, SessionAware Interfaces .. But i don' t

Re: How my own Interceptor get the parameters from JSP

2007-12-05 Thread Nuwan Chandrasoma
http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletRequest.html#getParameterMap() Ray wrote: The return value is a String array! It's really supprised me. May this experience is meaningful for freshman to Struts2 like me. Thx everyone. --

Re: example to use fiel download in struts 1.x

2007-12-18 Thread Nuwan Chandrasoma
Hi, http://wiki.apache.org/struts/StrutsFileDownload Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin) john lee wrote: Could anyone tell me where i can find the example for using file download feature of Struts 1.x? tks john -

Re: Struts 2.1.x

2007-12-19 Thread Nuwan Chandrasoma
Hi, I think the below link has a test build of struts 2.1 http://people.apache.org/builds/struts/2.1.0/ Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) Frans Thamura wrote: i am seeking the S2 2.1.x binary anyone can share your binary so i can use and test the feature F

Re: Loading dojo.js in struts2.0.9 is very slow

2007-12-19 Thread Nuwan Chandrasoma
Hi, i think this mail thread will help you. http://www.mail-archive.com/user@struts.apache.org/msg67703.html Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) Yoge wrote: My App is using ajax theme of struts2.0.9. It takes more than 3 seconds to load /struts/ajax/dojoRequire.js and

Re: Struts 2 and SSL

2007-12-19 Thread Nuwan Chandrasoma
Hi, take a look at this plugin and code. i hope it will help you http://code.google.com/p/struts2-ssl-plugin/ Thanks, Nuwan. Filipe David Manana wrote: Hi, I am novice in Struts 2 and web development in general. I want to know the following: 1) How can an action know what is the protocol

Re: Why two struts2 projects can not exsits in one server at one time

2007-12-22 Thread Nuwan Chandrasoma
Hi, Any reason to say like this? Thanks, Nuwan. (http://code.google.com/p/struts2-ssl-plugin/) Ray wrote: > hello everyone, > Why two struts2 projects can not exsits in one server at one time. > I use Jboss 4.0 > thank u > > -

Re: HNY

2007-12-31 Thread Nuwan Chandrasoma
Happy new year everyone.. , Thanks Al, for including ppl like me ;) Regards, Nuwan Al Sutton wrote: No, it's the nice part he fails on :). Only kidding (love ya really dave). Happy new early Friday... I mean new years to everyone (dumb and nasty people included). Al. -Original Messa

Re: Secure ajax call using prototype to a struts action ....

2008-01-12 Thread nuwan chandrasoma
Hi, what is the port number you have configured to run SSL in your server? if its other than 443 you need to specify it in your URL. try to see your URL is working in with out ajax. if you like have a look at this plugin http://code.google.com/p/struts2-ssl-plugin/ Thanks, Nuwan On 1/11/08

Re: File upload using Dyna Action Form

2008-01-21 Thread nuwan chandrasoma
http://wiki.apache.org/struts/StrutsFileUpload this link will help you. its just a matter of configuring the same from bean in struts-config as a dyna action from Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) On Jan 21, 2008 9:55 AM, Vikash Manoranjan <[EMAIL PROTECTED]> wrote: >

Re: How to create a new Struts2 project with maven2?

2008-01-22 Thread nuwan chandrasoma
Hi, mvn archetype:create -DgroupId=com.s2.anu -DartifactId=s2proj -DarchetypeGroupId=org.apache.struts-DarchetypeArtifactId=struts2-archetype-starter -DarchetypeVersion= 2.0.11 -DremoteRepositories= http://people.apache.org/builds/struts/m2-staging-repository why dont you try this. i think this m

Re: [S1] json and Action execute()

2008-01-23 Thread nuwan chandrasoma
Hi, I haven't used ExtJS., but we i have done is i just writhe the json string to the output stream and from my js i convert it to JSON and used it. i used Dojo Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) On Jan 23, 2008 12:26 AM, auz <[EMAIL PROTECTED]> wrote: > > this is str

Re: Java Script in JSP pages

2008-01-23 Thread nuwan chandrasoma
Hi, yes, you can, what is the issue you are facing? just add the tag inside your page and write your javascript code there and just use them in your page. Thanks, Nuwan On Jan 23, 2008 2:10 PM, naveen k <[EMAIL PROTECTED]> wrote: > Hi, > >I am in a development of struts web application

Re: How To deploy struts showcase application in Netbeans

2008-01-24 Thread Nuwan Chandrasoma
Hi, for my understanding NetBean is an IDE and if you have the project setup in NetBean you can run it with the application server/ servlet container you have configured in there. what i would suggest is to deploy this .war file in Tomcat. Thanks, Nuwan (http://code.google.com/p/struts2-ssl

Re: is it possible to pass a parameter to an interceptor from the xml file?

2008-01-24 Thread Nuwan Chandrasoma
Hi, yes it is possible., just implement a setter and getter method for the parameter you have in the struts.xml file. and it will be available to you in the intercept method. eg:- // in the intercept class.. private String httpPort; public String getHttpPort() { return httpPort;

Re: [ANN] Apache Struts Tops OpenLogic Open Source Leaders List with a 71% Share

2008-01-25 Thread Nuwan Chandrasoma
Hi, Congratulations guys. you guys rock. Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) Ted Husted wrote: "Hibernate and Struts topped the list with more than 71 % of customers using each. JasperReports is the only newcomer to the list this year ..." * http://press-releases.te

Re: How to create a new Struts2 project with maven2?

2008-02-02 Thread Nuwan Chandrasoma
Hi, The command i have given to you work for me, i dont know what is wrong here.. any maven guru can help you on this. Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) Thai Dang Vu wrote: I tried what you suggested, but still got error: mvn -e archetype:create -DgroupId=home.s

Re: [S2] ParametersInterceptor: Error setting expression

2008-02-05 Thread Nuwan Chandrasoma
Hi, struts-default.xml Thanks, Nuwan hezjing wrote: Actually, I'm following the tutorial described at http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor. May I know which file that is showing the Struts2 default interceptor stack? Thanks for your help! On 2/5/08, J

Re: struts polish application

2008-02-07 Thread Nuwan Chandrasoma
hi, where do you have these messages? is it in the .properties file? if its in a property file i think it should be in UTF-8 and your jsp page charset also should be in UTF8 Thanks, Nuwan (http://code.google.com/p/struts2-ssl-plugin/) Raghuveer wrote: I have an application that needs to

Re: Struts2 sesionExpired page

2008-02-07 Thread Nuwan Chandrasoma
Hi, Why dont you check for a particular attribute you have added to the session in your interceptor. eg:- when a user login you add the attribute logedin to true. session.setAttribute("logedin","true"); and in the incerceptor you check if its there or null, if its not there or nu

Re: i18N jsp application on linux and windows

2008-02-13 Thread Nuwan Chandrasoma
Hi, Why dont you try putting UTF-8, i think this character set is not in Linux may be. Thanks, Nuwan. Raghuveer wrote: This is regarding the damage of polish messages from struts application deployed on Tomcat on Linux and Windows XP . I get polish messages from SAP that to be displ

Re: Struts2 Validaions

2008-02-13 Thread Nuwan Chandrasoma
Hi, Your issue is not clear. can you please tell. what is the theme now your using? are you using javascript validation? what is the theme that didnt have this issue? Thanks, Nuwan Sanjeewa Saman wrote: Hi All, We have a problem in using validations. I have tried both xml based

Re: Using Variables with Messages in Struts

2008-02-19 Thread Nuwan Chandrasoma
Hi, why dont you try the tag with filter attribute as false. Thanks, Nuwan Jeromy Evans wrote: Oh, sorry, I assumed you were using Struts 2. That's a feature of the default tag library. Sorry, I don't know the answer for Struts 1.x Asad Habib wrote: Hello Jeromy. What tag library are you

Re: Struts2 connection pooling using MySQL

2008-02-20 Thread Nuwan Chandrasoma
Hi, Why do not you give a try with Spring. as struts2 has built in support for spring, you can use springs connection pooling very easily. Thanks, Nuwan. RajiR wrote: Hi All, Since struts1 has connection pooling mechanism using tag,what is the procedure of connection pooling mechanism i

Re: expression validator

2008-02-29 Thread Nuwan Chandrasoma
Hi, yes. this is what i did for one of the project i am bit involved. 1. wrote a custom validator public class PasswordConfirmValidator extends FieldValidatorSupport { private static Log log = LogFactory.getLog(PasswordConfirmValidator.class); private String fieldName2; public St

Re: redirect-action to https

2008-03-04 Thread Nuwan Chandrasoma
Hi, take a look at this plug-in and code, it may be helpful to you. http://code.google.com/p/struts2-ssl-plugin/ Thanks, Nuwan David Loup wrote: Hi, I'm trying to have Struts 2 redirect over HTTPS protocol. On submit of a form calling editPerson.action (on a page already on HTTPS),

Re: Resource Bundle per session

2008-11-16 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/how-do-i-set-a-global-resource-bundle.html Instead of this ServletContextListener you can have a HttpSessionListener, just a suggestion, i haven't tried it. Thanks, Nuwan C. Ram

Re: Something special about action named "logout"

2008-11-16 Thread Nuwan Chandrasoma
I have done a similar thing in one of my applications. i don't have any issue. i am using version 2.0.12 and struts-default package without any modification to the interceptor stack. Adam Ruggles wrote: I logged bug for this https://issues.apache.org/struts/browse/WW-2873 ---

Re: html:link define the href from a bean property

2008-11-17 Thread Nuwan Chandrasoma
struts el tags would do this to you. http://struts.apache.org/1.3.8/struts-el/index.html http://struts.apache.org/1.3.8/struts-el/tagreference.html#html:link Thanks, Nuwan C. Cappelletti Marc wrote: Hi, Maybe an old problem, sorry for the redundance but: I'd like to define that:

Re: BeanUtils.copyProperties not working. Pls suggest

2008-11-19 Thread Nuwan Chandrasoma
Hi, DynaValidatorForm use a Map to keep its value to my understanding. I am not sure BeanUtils.copyProperties would work on this secnario. i may be wrong :) Thanks, Nuwan C. Sasanka wrote: Hi, I am trying to use BeanUtils.copyProperties(dest, source) to automatically populate my model bean

Re: How can I "parameterize" include files?

2008-12-17 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/include.html why don't you try to assess it as a request param?. :) Thanks, Nuwan James Carr wrote: Hi all, I have a common navigation bar I have at the top of a bunch of pages, but I'd like for certain butto

Re: A complete listing of velocity struts 2 tags?

2008-12-17 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/velocity-tags.html James Carr wrote: No one knows? Any ideas where I could find their definitions? The source I downloaded only seems to contain velocity macros for form tags, not i18n. Thanks, James On Tue, Dec 16, 2008 at 3:44 PM, James Carr wrote: Is t

Re: How can I "parameterize" include files?

2008-12-17 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/include.html why don't you try to assess it as a request param?. :) Thanks, Nuwan James Carr wrote: Hi all, I have a common navigation bar I have at the top of a bunch of pages, but I'd like for certain buttons to not be present on some pages. I tried using

Re: Dynamic s:checkbox name?

2009-01-17 Thread Nuwan Chandrasoma
Thanks, Nuwan C KE LI wrote: Dear All, I am confusing about how to write dynamic s:checkbox names in s2. For example, I want to achieve the result as: etc. The main problem is that i dont know how to write the right ognl expression in the code above(

Re: Exception while upgrading from S 2.0.11 to 2.1.6

2009-01-27 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/file-upload.html ManiKanta G wrote: Hi, Today I've upgraded my application from 2.0.11 to 2.1.6, and I've added only the 5 basic libraries (commons-logging-1.0.4.jar, freemarker-2.3.13.jar, ognl-2.6.11.jar, struts2-core-2.1.6.jar, xwork-2.1.2.jar) required for

Re: how to redirect error page to struts action

2009-01-28 Thread Nuwan Chandrasoma
Hi All, does this work with jetty?. I couldn't get this working with jetty sometime back :) Thanks, Nuwan ManiKanta G wrote: to which filter mapping? FilterDispatcher's mapping? And could give sample snippet of web.xml using .action for http 404 error? Well I got it... yes, for Filt

Re: how to redirect error page to struts action

2009-01-28 Thread Nuwan Chandrasoma
Ok, got it working, i was using the convention plugin. but i had to manually define the action which take care of the error in struts.xml Thanks, Nuwan Nuwan Chandrasoma wrote: Hi All, does this work with jetty?. I couldn't get this working with jetty sometime back :) Thanks,

Re: Problem with ArrayList's add() function

2009-02-02 Thread Nuwan Chandrasoma
casePapers must be null? sd9 wrote: Hi, This problem has been driving me mad! I have this code (below), which isn't going beyond the "casePapers.add(cp)" line. It displays the string "--before4--" But doesn't display this string "--after-

Re: S2 + Ajax Validation + JQuery

2009-02-11 Thread Nuwan Chandrasoma
alvins wrote: Hi guys, We recently implemented the above and it is quite funky. If anyone is interested I can post some of the pieces needed. You can see some of it in action here - http://www.truelocal.com.au/secure/submissions/submission-addBusiness.do. Cheers, Alvin any blogs where we c

Re: Please help to get Arabic i18n(internationalization) using struts2.1.6

2009-02-26 Thread Nuwan Chandrasoma
Hi, you have to convert the arabic into Unicode and put to the message properties file, Thanks, Nuwan sajidbigler wrote: Hi Friends, I tried struts2-blank-2.1.6.war example and its working fine.but when i tried to make it arabic locale i am not able to make it :( with reference to below li

Re: Please help to get Arabic i18n(internationalization) using struts2.1.6

2009-02-27 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/how-do-i-add-i18n-to-a-ui-tag-like-the-textfield-tag.html sajidbigler wrote: Hi, have you tried this. Thanks, Nuwan Hi Nuwan, I tried and i got it as you said to

Re: Session Expires too early! Help!

2007-05-16 Thread Nuwan Chandrasoma
Hi, look at you web.xml, you may have specified session time out time as 2 mins. 30 if you set this as 30, the session will time out after 30 min of idle time, Thanks Nuwan - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: Sent: Thursday, May 17, 2007 4:47 AM

[OT]Re: Session Expires too early! Help!

2007-05-16 Thread Nuwan Chandrasoma
)) { System.out.print(" userType SESSION ATTRIBUTE IS NULL in LOGOUT Action !!!"); On 5/17/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: Hi, look at you web.xml, you may have specified session time out time as 2 mins. 30 if you set this as 30,

Re: [OT]Re: Session Expires too early! Help!

2007-05-16 Thread Nuwan Chandrasoma
the web.xml or the struts-config.xml On 5/17/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: This is not a struts related issue, check your logic in the code, the attribute userType may be not in the session. Thanks, Nuwan - Original Message - From: "vikas rao&q

Re: Struts 2 migration ISSUES- missing properties in ...

2007-05-16 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/textfield.html you must be looking at the wrong , tag Thanks, Nuwan - Original Message - From: "tom tom" <[EMAIL PROTECTED]> To: "struts 2.0 forum users" Sent: Thursday, May 17, 2007 1:30 AM Subject: Struts 2 migration ISSUES- missing properties in

Re: RE Displaytag

2007-05-16 Thread Nuwan Chandrasoma
Hi, They are inside the .jar files that comes with the struts dist, Thanks, Nuwan - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Thursday, May 17, 2007 2:04 AM Subject: Re: RE Displaytag Where does one download the struts-bean.tld

Re: checkboxlist formatted vertically?

2007-05-16 Thread Nuwan Chandrasoma
Hi, Is this struts 2 or 1.x? in struts 2., we can create a theme , i think this may help you, but i am not sure this is the best solution for your problem http://www.vitarara.org/cms/struts_2_cookbook/creating_a_theme Thanks, Nuwan - Original Message - From: "Allen Gilliland" <[E

Re: Session Expires too early! Help!

2007-05-17 Thread Nuwan Chandrasoma
i warned you about this :) - Original Message - From: "vikas rao" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, May 18, 2007 2:59 AM Subject: Re: Session Expires too early! Help! No, I didnt use URL rewriting or cookies, session.setAttribute() was used, but that

Re: formatKey negative numbers

2007-05-17 Thread Nuwan Chandrasoma
Hi, the is using the http://java.sun.com/j2se/1.4.2/docs/api/java/text/DecimalFormat.html to format number, you can get a idea from this page how to format numbers, Thanks, Nuwan - Original Message - From: "chamal desilva" <[EMAIL PROTECTED]> To: Sent: Friday, May 18, 2007 2:11

Re: How can I access a collection of object using struts tags?

2007-05-21 Thread Nuwan Chandrasoma
Hi, if you are using struts 1.x you can use nested tags, look at this link for a sample http://www.laliluna.de/struts-nested-iteration-tutorial.html Thanks, Nuwan - Original Message - From: "hk" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 22, 2007 12:57 AM Subject: How can I acce

Re: [OT] Connection Pooling

2007-05-22 Thread Nuwan Chandrasoma
hi, i just had a look, i think your url is wrong. where is the DB name? eg:- you have it like jdbc:mysql://localhost:3306 but should be like: jdbc:mysql://localhost:3306/akr_db Thanks, Nuwan - Original Message - From: "Balazs Michnay" <[EMAIL PROTECTED]> To: "Struts Users Maili

Re: Access to MessageResource from action.

2007-05-22 Thread Nuwan Chandrasoma
hi, ServletActionContext.getServletContext(); Thanks, Nuwan - Original Message - From: "Michał Letyński" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, May 22, 2007 7:06 AM Subject: Re: Access to MessageResource from action. Michał Letyński napisał(a): How to

Re: [OT] Connection Pooling

2007-05-22 Thread Nuwan Chandrasoma
Container But still nothing :( Thanks, BM - Original Message ---- From: Nuwan Chandrasoma <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Tuesday, May 22, 2007 2:33:34 PM Subject: Re: [OT] Connection Pooling hi, i just had a look, i think your url is wrong. where is the

[OT]Re: [S2] Deploy error

2007-05-22 Thread Nuwan Chandrasoma
hi, are you sure you have the applicationContext.xml file inside the WEB-INF directory of the .ear file? http://www.springframework.org/docs/api/org/springframework/web/context/support/XmlWebApplicationContext.html hope this would help you. Thanks, Nuwan - Original Message - Fro

Re: [s2] Best method of passing ActionErrors through a redirect

2007-05-22 Thread Nuwan Chandrasoma
Hi, if its struts2, take a look at this... http://struts.apache.org/2.x/docs/message-store-interceptor.html Thanks, Nuwan - Original Message - From: "Al Sutton" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" Sent: Tuesday, May 22, 2007 4:21 PM Subject: [s2] Best method of p

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Nuwan Chandrasoma
Hi, I would go for JSTL tags, but i dont really get what you trying to say! Thanks, Nuwan - Original Message - From: "hk" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 22, 2007 4:37 PM Subject: How can I access an attribute of session using JSP tags? I tried to check and output an

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Nuwan Chandrasoma
o scope is provided, so it's probably a bug in your code. Nuwan Chandrasoma wrote: Hi, I would go for JSTL tags, but i dont really get what you trying to say! Thanks, Nuwan - Original Message - From: "hk" <[EMAIL PROTECTED]> To: Sent: Tuesday, May 22, 2007 4:37

Re: How can I access an attribute of session using JSP tags?

2007-05-22 Thread Nuwan Chandrasoma
I am saying the standard struts tags do check session scope if scope="session" or no scope is provided, so it's probably a bug in your code. Nuwan Chandrasoma wrote: Hi, I would go for JSTL tags, but i dont really get what you trying to say! Thanks, Nuwan - Original Messag

Re: [ANN] "Starting with Struts2" Book

2007-06-02 Thread Nuwan Chandrasoma
Just finished reading this.., thanks Ian.., good job. - Original Message - From: "Caine Lai" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, June 02, 2007 6:40 AM Subject: Re: [ANN] "Starting with Struts2" Book Hmmm... I registered but when I try to download the

Re: Getting the path attribute of tag inside Action class

2007-06-04 Thread Nuwan Chandrasoma
hi, you can getting from the ActionMapping object that is available from the action. Thanks, Nuwan - Original Message - From: "prabath" <[EMAIL PROTECTED]> To: Sent: Monday, June 04, 2007 1:06 PM Subject: Getting the path attribute of tag inside Action class Hi, I like to

Re: html:hidden

2007-06-10 Thread Nuwan Chandrasoma
Hi, Use plain told HTML and use your script tag. Thanks, Nuwan - Original Message - From: "john lee" <[EMAIL PROTECTED]> To: Sent: Sunday, June 10, 2007 3:49 PM Subject: html:hidden How to assaign value to html:hidden field? request.getAttribute("loginid")%>> but give me the

Re: [S2] Accessing HTTP Header

2007-06-12 Thread Nuwan Chandrasoma
http://struts.apache.org/2.x/docs/how-can-we-access-the-httpservletrequest.html - Original Message - From: "chengas123" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 12, 2007 2:23 PM Subject: [S2] Accessing HTTP Header Hi, How do I access the request variable or HTTP request headers

Re: response.addCookie not working inside Struts action class

2007-06-12 Thread Nuwan Chandrasoma
Hi, Why dont you load a jsp page after this action and have the below tag in the page and do a bean write and see Thanks, Nuwan - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Tuesday, June 12, 2007 4:42 PM Subject: Re: respo

Re: response.addCookie not working inside Struts action class

2007-06-13 Thread nuwan chandrasoma
I also agree with you Dave, +1 Does any one need a guy for a Struts2 project?, i am ready to quit my current job :)) On 6/12/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- Chris Pratt <[EMAIL PROTECTED]> wrote: > Sorry, for some reason I was stuck on Struts 2. It's 'cuz it's so much better :

Re: Struts Help ME PLSSSS

2007-06-19 Thread nuwan chandrasoma
hi, you dont have struts jar in your classpath, try to add all the struts jar's in your classpath and compile. Note: this is not a good way to build applications, try to use a IDE or a Ant script to build your application and minimize the adding of jars to your classpath. Thanks, Nuwan On 6/

Re: Form Upload throwing null pointer. cannot retrieve the file in action class..HELP URGENT!!!

2007-06-26 Thread Nuwan Chandrasoma
Hi, try removing the .do from your action in the form and just put the action name what is in the struts-config.xml. Thanks, Nuwan - Original Message - From: "vbharath19" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 26, 2007 4:03 PM Subject: Form Upload throwing null pointer. cann

Re: help me...

2007-06-26 Thread Nuwan Chandrasoma
Hi, Do you have a form property in your struts-config. that is a array?, if there is one you should set the size or initial property. size The number of array elements to create if the value of the "type" attribute specifies an array, but there is no value specified for

Re: Struts 1.2.9 missing validator.xml and validator-rules.xml.

2007-06-29 Thread Nuwan Chandrasoma
Hi, If you have used the validator plug-in in you struts-confg, you need these 2 files, i dont think its a must if you havent used the plug-in Thanks, Nuwan - Original Message - From: "Søren Blidorf" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, June 29, 2007

Re: How to set a label position of a select tag

2007-06-29 Thread Nuwan Chandrasoma
Hi, Try to add a   infront of the label and see, i havent dont it but just give a try. You can remove the ":" just edit the select tag template, i think is in the controlheader-core.ftl file, but not sure :) Thanks, Nuwan - Original Message - From: "TonyD" <[EMAIL PROTECTED]> To:

Re: Struts 2 EventDispatcherAction ?

2007-07-02 Thread Nuwan Chandrasoma
Hi, http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-WildcardMethod Thanks, Nuwan - Original Message - From: <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 02, 2007 8:14 AM Subject: Struts 2 EventDispatcherAction ? HI, Is t

[s2] Performance of Ajax theme in SSL mode

2007-07-05 Thread nuwan chandrasoma
Hi All, Has anyone used the ajax theme in SSL mode?, i have a struts1 application in SSL mode and when i used dojo liberary i faced some performace issues and pages were rendering slow. As s2 is using dojo for ajax theme, will there be a performace issues in ajax theme in SSL mode? Thanks, Nuwa

Re: Radio Button - setting a to 'checked'

2007-07-06 Thread Nuwan Chandrasoma
Hi, Set the property that is associated with the tag to with the value you want to be checked. Thanks, Nuwan - Original Message - From: "yitzle" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Friday, July 06, 2007 4:14 PM Subject: Radio Button - setting a to 'checked

Re: Params on Actions in Struts.xml

2007-07-07 Thread Nuwan Chandrasoma
Hi, http://cwiki.apache.org/WW/how-do-we-access-static-parameters-from-an-action.html Thanks, Nuwan - Original Message - From: "Chris Pratt" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, July 07, 2007 6:49 AM Subject: Params on Actions in Struts.xml After lo

Re: How do I make a checkbox initially checked?

2007-07-07 Thread Nuwan Chandrasoma
Hi, If you want the check box to be checked initially you can use the tag like this: are you calling the prepare method to initialized you backing object?, according to my understanding the backing object will not be created and initiallized if you havent done in the prepare method, the fo

Re: How to display message from resource bundle using Struts EL tags

2007-07-12 Thread Nuwan Chandrasoma
key="${stringvar}"/>http://struts.apache.org/1.3.8/struts-el/index.html- Original Message - From: "semaj.najraham" <[EMAIL PROTECTED]> To: Sent: Friday, July 13, 2007 5:49 AM Subject: Re: How to display message from resource bundle using Struts EL tags Any idea, guys!! semaj.naj

Re: How to display message from resource bundle using Struts EL tags

2007-07-13 Thread Nuwan Chandrasoma
r servlet jsp threw exception javax.servlet.jsp.JspException: Missing message for key "" in bundle "(default bundle)" for locale en_US Any idea? Thanks, semaj nuwan chandrasoma-2 wrote: http://struts.apache.org/1.3.8/struts-el/index.html- Original Message - From:

Re: Migrate Struts 1 EventDispatchAction to Struts 2

2007-07-13 Thread Nuwan Chandrasoma
Hi, you can have a action mapping like this. and in your action class have 2 method according to you example public String add1() { // your logic return SUCCESS; } public String add2() { // your logic return SUCCESS; } if a call like this eg: /sample_add1.action the m

Re: [s2]dojo version

2007-07-14 Thread Nuwan Chandrasoma
Hi, its 0.4 Thanks, Nuwan - Original Message - From: "Pedro Herrera" <[EMAIL PROTECTED]> To: Sent: Saturday, July 14, 2007 1:22 PM Subject: [s2]dojo version wich version of dojo tookit in struts2.0.8 is embedded ? 0.4 or 0.9 ? Herrera -- View this message in context: http://

Re: How to display message from resource bundle using Struts EL tags

2007-07-14 Thread Nuwan Chandrasoma
service() for servlet jsp threw exception javax.servlet.jsp.JspException: Missing message for key "" in bundle "(default bundle)" for locale en_US has attribute named bundle. Do I need to mention anything there? Thanks, semaj nuwan chandrasoma-2 wrote: Hi, I think it sho

Re: Help!_no Action mapped for action name HelloWorld

2007-07-16 Thread Nuwan Chandrasoma
Hi, struts.xml should be inside the classes dir in the WEB-INF folder, Thanks, Nuwan - Original Message - From: "lupus" <[EMAIL PROTECTED]> To: Sent: Monday, July 16, 2007 5:23 PM Subject: Help!_no Action mapped for action name HelloWorld Hi all, I am tring to integrate Struts

Re: Struts Resource Bundles (i18n)

2007-07-17 Thread Nuwan Chandrasoma
Hi, You can define multiple resource bundle in struts config., one would be a default and other ones you should give a key. eg:- Thanks, Nuwan - Original Message - From: "Saravanan Vijayappan" <[EMAIL PROTECTED]> To: "struts user" Sent: Tuesday, July 17, 2007 3:38 AM Subject

Re: How can I add ActionErrors when do the interceptor's intercept() method?

2007-07-17 Thread Nuwan Chandrasoma
Hi, hope this code will help you. Object action = invocation.getAction (); if (action instanceof com.opensymphony.xwork2.ValidationAware) { ((com.opensymphony.xwork2.ValidationAware) action).addActionError ("Username or password incorrect."); } Thanks, Nuwan. - Original

[OT]Re: automating the generating of web.xml and struts-config.xml

2007-07-18 Thread Nuwan Chandrasoma
Hi, Try xdoclets Thanks, Nuwan - Original Message - From: "Antoine Solomon" <[EMAIL PROTECTED]> To: Sent: Wednesday, July 18, 2007 10:54 PM Subject: automating the generating of web.xml and struts-config.xml Hello all, I just wanted to know if there are any technologies used fo

Re: Setting application properties

2007-07-18 Thread Nuwan Chandrasoma
Hi, Add a property file to your classpath, read it from your java code. this is what i got from google :) http://www.exampledepot.com/egs/java.util/Props.html http://www.javaworld.com/javaworld/javaqa/2003-08/01-qa-0808-property.html?page=1 Thanks, Nuwan - Original Message - From

  1   2   3   >