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: 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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 butto

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: 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: 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: 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: Call a forward or a redirect inside an interceptor.

2008-09-09 Thread Nuwan Chandrasoma
you can use response.sendRedirect() method inside an interceptor. Ahmed ALAMI wrote: Hello everybody, Is there a way using the struts 2 API to forward or redirect to a url inside an interceptor instead of making a actionInvocation.invoke(). Thanks for reply. -

Re: Doubt about form with select and texfields

2008-09-03 Thread Nuwan Chandrasoma
Hi, You may have to use JavaScript, this will only work at the time of page rendering only. Thanks, Nuwan Francisco Exposito wrote: Hi, I am trying to create a form where I have a select, and depending of my selection, I make visible or not some others textfields in the same page. How c

Re: [S1] Global Error Page: Exception available?

2008-08-27 Thread Nuwan Chandrasoma
The value stack will have 2 properties called exception and exceptionStack, Thanks, Nuwan Jari Fredriksson wrote: Heya! Does Struts save the exception anywhere in the request before loading a global-error-page? I would not like to catch exceptions in my Action and save the error message, a

Re: [S2] Using SSL, HTTP, HTTPS and invoking Action classes

2008-07-23 Thread Nuwan Chandrasoma
Hi, Have a look at this plug-in, it may help you http://code.google.com/p/struts2-ssl-plugin/ Thanks, Nuwan Anastasios Patrikis wrote: Hi, I have problem in switching my application context from http to https an back again. Because I am new to Struts I am not sure if I use the framework t

Re: how to use logical operator in struts logic:equal

2008-07-16 Thread Nuwan Chandrasoma
Hi, Why dont you give a try with JSTL tag. it has more control over the logic you want to check. Thanks, Nuwan hmkmajeed wrote: Hi All, I need to translate: if ( a == 'option1' || a == 'option2' ) to struts code I don't know how to put || or && in ---

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Nuwan Chandrasoma
s is probably not the ideal way to do this, but it works great for me. jk On Tue, Jul 1, 2008 at 12:33 PM, David Ogasawara <[EMAIL PROTECTED]> wrote: This is exactly what I needed. I was avoiding checkboxlist because I wanted the options to be displayed vertically, but it looks to be

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Nuwan Chandrasoma
there are five check boxes and the user selects three of them and submits the form, how do I automatically check the three boxes when the user returns the next day? It appears that returning a string array with the users selections is not working. Thanks, Dave -Original Message- From: N

Re: [S2] Pre-populating Checkboxes

2008-06-30 Thread Nuwan Chandrasoma
Hi, This is how i do it, i have implemented the prepreable interface in my action and in prepare method, i populate the list i wanted to display in as check box values. eg:- private List skills; public List getSkills() { return skills; } public void prepare() throws E

Re: Validation

2008-03-29 Thread Nuwan Chandrasoma
Hi, Simple theme doesn't support Validation and error reporting. you may have to use some other theme like xhtml theme http://struts.apache.org/2.x/docs/xhtml-theme.html Thanks, Nuwan Rodrigo Pereira wrote: Hi, how can I position validation message on the screen? Also, when I have a simple

Re: struts- validation messages

2008-03-29 Thread Nuwan Chandrasoma
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Thanks, Nuwan Sonu S wrote: Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validatio

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Nuwan Chandrasoma
I am using jboss-4.0.5-GA Dave Newton wrote: --- Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: This is my xml file. when we run in a local machine that has internet access this works fine. http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd";> Hmm, AFAICT

Re: Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Nuwan Chandrasoma
Dave Newton wrote: Is your DTD correct? As a trivial test I turned off my WiFi and restarted a webapp that uses a validation configuration file and no issues throught he startup or validation process. Dave --- Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: Hi All, Has any one co

Struts2 validation issue when internet is not available in the application server.

2008-03-26 Thread Nuwan Chandrasoma
Hi All, Has any one come across this issue? . we dont have internet in our app server and the struts2 validation fails as it cant access www.opensymphony.com. Thanks, Nuwan. Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Meth

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: 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: 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: 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 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: 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: 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: [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: 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: [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: 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: 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: 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: [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: 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: 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: 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: 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: 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: 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: 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.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: 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: 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: 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-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: 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: [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: [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: 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+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: 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: 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: 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: [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: 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

[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: 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

Re: Spring tutorial

2007-09-23 Thread Nuwan Chandrasoma
Hi, you can use the same approach you used in servlets. if you use spring it will help you write the code in more elegant way :) Thanks, Nuwan rama krishna yalagandula wrote: Yes... Exactly that is the my question... I am **New** to Struts I do not know How to do the "Database Conn

Re: Struts2 with AJAX

2007-09-08 Thread Nuwan Chandrasoma
Hi, In your action class you have to return null after you write the response for eg:- public String ajax() throws Exception { respone.getWriter().println("hello"); respone.getWriter().close(); return null; } and also i dont think you need to specify the full URL

Re: Formating dates and numbers

2007-09-04 Thread Nuwan Chandrasoma
My ApplicationResources.properties file: format.baseValue = {0,number,R$##0.00} baseValue is of type BigDecimal. Is there anything wrong? Thanks in advance. On 9/4/07, Nuwan Chandrasoma <[EMAIL PROTECTED]> wrote: http://www.roseindia.net/struts/struts2/struts-2-format.shtml Marcos Men

Re: Formating dates and numbers

2007-09-04 Thread Nuwan Chandrasoma
http://www.roseindia.net/struts/struts2/struts-2-format.shtml Marcos Mendonça wrote: Hello How do I format dates and numbers with Struts2? I tried following this tutorial found on documentation but it didn't work. Could anyone point me to a working example or tell me how to do it. I did not wa

Re: reading properties file in action class

2007-08-31 Thread nuwan chandrasoma
Hi, use getResources() method in the action Thanks, Nuwan On 8/31/07, Ashish Kulkarni <[EMAIL PROTECTED]> wrote: > > Hi > I have abc.properties and abc_fr.properties file, > if i have to print values from properties file in jsp i use tag > and it will print value depending > on locale, > But w

Re: How to give a text field name dynamically?

2007-08-31 Thread Nuwan Chandrasoma
Hi, try something like this and see Question value="route" /> Thanks, Nuwan Subhani Shaik wrote:u Hi, I have the following code... Question value="route" />

[OT] Re: ant, maven and creating war's

2007-08-29 Thread nuwan chandrasoma
Hi, Just google it, here are some of the links that may be useful to you http://www.roseindia.net/jboss/buildingwebapplicationwithant.shtml http://www.onjava.com/pub/a/onjava/2003/01/08/tomcat4.html?page=1 Thanks, Nuwan On 8/29/07, sp4rc <[EMAIL PROTECTED]> wrote: > > Hello listmembers, > > I

Re: Newbie Question?

2007-08-28 Thread Nuwan Chandrasoma
Hi, You can use window.open() if you like to open this page in a popup window, or else use to open this page. Thanks, Nuwan Cenk wrote: Hello, I want to open another page when user click on a link. Lets say, i have a link "Open Page" on main.jsp and i want to open child.jsp when user cli

Re: Problem about the hello world struts2 example.

2007-08-25 Thread Nuwan Chandrasoma
t factory caused the problem. I copied all the configuration files from the portlet sample bundled with struts2 and made some change. Thanks again for your kind reply. Regards. 2007/8/26, Nuwan Chandrasoma <[EMAIL PROTECTED]>: Hi, This can be due to many reasons, do you see any error mess

Re: Problem about the hello world struts2 example.

2007-08-25 Thread Nuwan Chandrasoma
Hi, This can be due to many reasons, do you see any error messages in the console of the app server?, just a guess, have you included the struts-tag declaration in you jsp? Thanks, Nuwan Kun Niu wrote: Dear all, I wonder if anyone has ever met the problem like me. Now I've come to the fi

Re: action being re-executed when target page is refreshed

2007-08-19 Thread Nuwan Chandrasoma
Hi, use the struts token to avoid multiple form submits or else do something like submit and re-direct, that will change the URL in the browser and will not all the same action mapping again. Thanks, Nuwan abhiram wrote: hi i have a little problem.. i am using struts 1.2. when i refresh

Re: tag

2007-08-18 Thread Nuwan Chandrasoma
I think you should give the file extensions Thanks, Nuwan Sandip Gaikwad wrote: hi, I want to know how I can use tag to accept only Microsoft Word files. But it is not working. Please help me. Thank you. - To unsubscr

Re: [S2] session question

2007-08-17 Thread nuwan chandrasoma
Hi, 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-we-access-the-httpservletresponse.html Thanks, Nuwan On 8/17/07, Eugen Stoianovici <[EMAIL PROTECTED]> wrote: > > how do i get a handle to Session / Request from an action i

Re: How to check an action variable with s:if

2007-08-07 Thread Nuwan Chandrasoma
Hi, I think you have to write it like this. Thanks, Nuwan Session A Mwamufiya wrote: Hi, I've been trying for some time to get the following logic to work: where "freshSmigFlag" is a variable in my action, and there is a getter and setter defined for it. I also tried to surr

Re: populating input fields on page load

2007-08-06 Thread Nuwan Chandrasoma
Hi, Implement the prepare method in your action class and add the code in that method. Thanks, Nuwan Session A Mwamufiya wrote: Hi, I have a page with input fields, and would like my action to populate those fields before they get displayed. This page is handled by a certain action, bu

Re: html:text inside logic:iterate

2007-08-01 Thread Nuwan Chandrasoma
Hi, You dont have a getter method for bitrateTxt property in the bean your trying to access (item1). Thanks, Nuwan Hiroyuki Suzuki wrote: hello guys..Im Hiroyuki and im new here.. Hope you could help me with some of my inquiries. I have this JSP property="items1">

Re: [S2] Parameterized File Downloading

2007-07-31 Thread Nuwan Chandrasoma
Hi, Is it a typo, I dont see a tag in ur code? Thanks, Nuwan Grish wrote: I studied the struts showcase sample of file downloading. I wanted to do something similar but instead of setting the inputPath paremeter in struts.xml I wanted to pass it in the url. I was thinking of using the same a

Re: How to format the actionerrors and actionmessages in the jsp page?

2007-07-28 Thread Nuwan Chandrasoma
Hi, I think you have to change the actionerror.ftl and actionmessage.ftl file to customize the error/message display. i am not sure there may be some other way to do this also. Thanks, Nuwan Bhuwan wrote: Hey! I am having the same issue. Have you found out a solution for it by any chance?

Re: Struts 2 scope

2007-07-28 Thread Nuwan Chandrasoma
Hi, why don't you implement the SessionAware interface, so you have access to the session. then you can add what every objects you want to the session.hope this will help you. http://struts.apache.org/2.0.8/docs/how-do-we-get-access-to-the-session.html Thanks, Nuwan Bhuwan wrote: I am ha

Re: [S2] Ajax performance optimisation

2007-07-28 Thread Nuwan Chandrasoma
other architectural changes, so the improvement we saw isn't strictly what we did with Dojo. But, myself and another senior guy spent all week measuring and benchmarking and testing and I can say for sure that the biggest improvement was in fact the Dojo changes. hth, Frank Nuwan Chandrasoma

Re: [S2] Ajax performance optimisation

2007-07-28 Thread Nuwan Chandrasoma
Hi, we also had the similar problem, we had a s1.x application with dojo and we did all the performance enhancements that was recommended by dojo, but we could not achive what we want and our application was running in https mode. it add more performance problem to the application. Thanks,

Re: Finding size of an array in iterator tag

2007-07-27 Thread Nuwan Chandrasoma
Hi, you can use a tag to check the size of the array and display the message accordingly Thanks, Nuwan Himanshu Ranavat wrote: Hi I have a string array in my Java Backend. I am trying to use a Struts 2.0 iterator tag in my JSP to display the result. Is there a way to obtain the size o

Re: Invoking Servlets from JSP

2007-07-27 Thread Nuwan Chandrasoma
MyServlet in my web.xml web.xml MyServlet com.myapp.servlets.MyServlet MyServlet /MyServlet Thanks, Nuwan John Mammen wrote: Hi Nuwan, Can you tell me how you did that? A code snipet would do nicely :) Thanks, John. -Original Message- From: Nuwan Chandras

Re: Invoking Servlets from JSP

2007-07-27 Thread Nuwan Chandrasoma
Hi, I have a struts app which has servlets also , i just call the servlet mapping in my web.xml from my jsp. Thanks, Nuwan John Mammen wrote: Hi, What is the best way to invoke a Servlet from a JSP in the struts framework? I have a login page. When the user clicks 'Log-in', the control

[s2] Can i access global reults from an interceptor

2007-07-22 Thread Nuwan Chandrasoma
Hi All, Is it possible for me to access the global results from an interceptor? Thanks, Nuwan

Re: struts-conf.xml Quesitons.

2007-07-18 Thread Nuwan Chandrasoma
Hi, Have you looked at the struts-config.xml DTD file, i think it has the descriptions of the elements in struts-config. Thanks, Nuwan - Original Message - From: "jiangfan shi" <[EMAIL PROTECTED]> To: Sent: Thursday, July 19, 2007 4:03 AM Subject: struts-conf.xml Quesitons.

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

[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: 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

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

  1   2   3   >