Re: Struts 6.3 Issue Uploading Files

2024-03-03 Thread Zoran Avtarovski
in/java/org/apache/struts2/dispatcher/Dispatcher.java#L110> [2] https://struts.apache.org/core-developers/file-upload.html#request-validation <https://struts.apache.org/core-developers/file-upload.html#request-validation> śr., 28 lut 2024 o 23:28 Zoran Avtarovski mailto:zo...@sparecrea

Re: Struts 6.3 Issue Uploading Files

2024-02-29 Thread Zoran Avtarovski
https://struts.apache.org/core-developers/file-upload.html <https://struts.apache.org/core-developers/file-upload.html> I might also recommend you set to see if anything comes up in the logs. Thanks, Burton -- Original Message -- >From "Zoran Avt

Struts 6.3 Issue Uploading Files

2024-02-28 Thread Zoran Avtarovski
Hi Guys, We are unable to upload files to our first 6.3 application using HTTP requests, but the strange thing is they work with ajax requests. I suspect we are overlooking something in the config which is required in 6.3. We are using 6.3.0.2 running on Tomcat 9. The file object is null

I18N Interceptor Change

2016-08-16 Thread Zoran Avtarovski
HI Guys, We have an old project which has been happily working for years. Recently we updated it to 2.5.x which was surprisingly easy. One issue we did run into which was quite annoying was the I18N Interceptor now validates locales against the list of default available locales in this

Re: Cascading Nature of Templates and Themes

2015-05-05 Thread Zoran Avtarovski
Hi Lucasz, I had copied all the missing simple templates into my mobile template don't do it, Struts will find them. Just override those templates which you need I don¹t think I was clear enough here. If I don¹t include the file the error is thrown. The issue I have is struts doesn¹t find them

Re: Cascading Nature of Templates and Themes

2015-05-04 Thread Zoran Avtarovski
thanks for the help. Z. On 1/05/2015 6:23 pm, Lukasz Lenart lukaszlen...@apache.org wrote: 2015-05-01 1:32 GMT+02:00 Zoran Avtarovski zo...@sparecreative.com: We¹ve started a new project which required a custom theme which we call mobile and we set it to extend the simple theme by creating

Re: Cascading Nature of Templates and Themes

2015-05-04 Thread Zoran Avtarovski
/2015 6:23 pm, Lukasz Lenart lukaszlen...@apache.org wrote: 2015-05-01 1:32 GMT+02:00 Zoran Avtarovski zo...@sparecreative.com: We¹ve started a new project which required a custom theme which we call mobile and we set it to extend the simple theme by creating a theme.properties file and setting

Cascading Nature of Templates and Themes

2015-04-30 Thread Zoran Avtarovski
We¹ve started a new project which required a custom theme which we call mobile and we set it to extend the simple theme by creating a theme.properties file and setting parent=simple. Unfortunately this isn¹t working. It has in the past without any issues. Has something changed in the latest

Re: Stream Result Returns Empty File

2013-11-13 Thread Zoran Avtarovski
Found the issue. I hadn’t set the contentLength parameter. In the latest update to 2.3.15 if the contentLength isn’t set it generates a zero length stream. Once I set contentLength to tempFile.length() it all worked again. Z. On 13/11/2013 3:34 pm, Zoran Avtarovski zo...@sparecreative.com

Stream Result Returns Empty File

2013-11-12 Thread Zoran Avtarovski
I¹m seeing a really strange issue in one of our struts apps with a stream result where the downloaded file is empty (zero bytes). I can¹t see where it is going wrong. I dynamically generate a zip file in tomcat¹s temp folder and then use a Buffered input reader to pass off to the struts stream.

K8 Struts2 Exploit

2013-07-29 Thread Zoran Avtarovski
I've just found a number of new jsp pages on a web app we developed. There was a text file relating to the K8 Struts2 Exploit. We contacted the client and updated the files, but I'd like to know if anybody has further information about this exploit. Basically do we tell the client to wipe the

Re: Localised text tag

2013-05-08 Thread Zoran Avtarovski
or at or something to call static methods, but you get the point.) -Dale On May 7, 2013, at 11:10 PM, Zoran Avtarovski zo...@sparecreative.com wrote: I have a small issue that I'm trying to resolve and I was hoping the someone might have come across it earlier. I'll try to explain as best I can

Localised text tag

2013-05-07 Thread Zoran Avtarovski
I have a small issue that I'm trying to resolve and I was hoping the someone might have come across it earlier. I'll try to explain as best I can: I have a number of objects on the value stack: 1. pojo - a java object with a string attribute called key which links to a DB based localised text

Re: Struts2-jQuery plugin

2012-11-21 Thread Zoran Avtarovski
Hi Lucas, I don't use the plugin as I find using jQuery without a plugin to be simple enough. I suspect that if you look at the generated javascript in your searchResult.jsp page the jQuery binding will be waiting for a document ready trigger which isn't fired for ajax requests. The way I get

Re: Multi dimension array from form

2012-11-02 Thread Zoran Avtarovski
worked through your use-case yet, but it may get you where you want to be. I've used these techniques in my apps. Best, jb On Nov 1, 2012, at 9:47 AM, Zoran Avtarovski zo...@sparecreative.com wrote: I have a two dimension array in my action: Integer[][] dataArray with appropriate getter/setter

Multi dimension array from form

2012-11-01 Thread Zoran Avtarovski
I have a two dimension array in my action: Integer[][] dataArray with appropriate getter/setter. In my form I use the following checkbox tag to pass the data from user to action s:iterator var=attributeType value=someList status=typeStat

Re: s:text encoding issue

2011-10-19 Thread Zoran Avtarovski
Hi Lucasz, Here's the entry from struts.xml constant name=struts.i18n.encoding value=UTF-8/ Z. On 19/10/11 4:23 PM, Łukasz Lenart lukasz.len...@googlemail.com wrote: 2011/10/19 Zoran Avtarovski zo...@sparecreative.com: We are using struts 2.2.2, everything is UTF-8, struts, jsp

Re: s:text encoding issue

2011-10-19 Thread Zoran Avtarovski
It woks fine for the default locale for me as well. Where it fails is when the selected locale is Arabic. Using the getText method in application support works as expected but s:text fails to render the text correctly. Z. On 19/10/11 11:20 PM, Li Ying liying.cn.2...@gmail.com wrote: I tried

Re: s:text encoding issue

2011-10-19 Thread Zoran Avtarovski
? Is it the system locale ? Kind regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ 2011/10/19 Zoran Avtarovski zo...@sparecreative.com: It woks fine for the default locale for me as well. Where it fails is when the selected

s:text encoding issue

2011-10-18 Thread Zoran Avtarovski
I'm having an issue using the s:text tag, in that it is displaying garbage on the screen. But if I use a s:property tag all works well. For example if I use the two following tags and select Arabic: s:property value=getText('language.selection.instructions')/ s:text

Unicode Encoding request parameters

2011-09-20 Thread Zoran Avtarovski
We have a struts2 multilingual web app that requires request parameters be encoded as Unicode (UTF-8). In order to get the POST parameters to work we had to implement a character encoding filter to encode all HTML parameters as UTF-8. I'd like to know if it's possible to do the encoding via S2

Re: implementation of m. and www.

2011-09-13 Thread Zoran Avtarovski
We use a simple interceptor which reads to request URL and sets some base action flags which we then use use with sitemesh to determine template structure. The benefit of an interceptor is that you only make any changes centrally. Z. On 13/09/11 2:00 AM, Frans Thamura fr...@meruvian.org wrote:

Re: Multi Devices and Multilanguage

2011-06-30 Thread Zoran Avtarovski
We use a custom sitemesh decorator for each targeted platform and also a custom struts theme for each. This way we use the same core jsp files across the application. By keeping the JSP functionality simple we find it works really well. I hate to be the one who breaks it to you but you'll have

Re: Struts2 and FTP (php) editors integration

2011-06-14 Thread Zoran Avtarovski
Why don't you use the Java versions of the CK Software. We have no issues with either CKEditor or CKFinder. Z. On 15/06/11 5:27 AM, webmeiker i...@webmeiker.com wrote: I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based in PHP) that allow server file exploration inside a

OT: Arabic Website

2011-06-02 Thread Zoran Avtarovski
We have a multi-lingual website that we have developed using struts that only uses English and European languages. We'd like to add Arabic to the site and was hoping somebody might have some pointers for where to start. Z.

Re: OT: Arabic Website

2011-06-02 Thread Zoran Avtarovski
to start.. also you also have take care of the RTL ( right to left ) layout in ur web app. this explains the RTL http://www.w3.org/International/tutorials/bidi-xhtml/ regards, Tito Cheriachan http://about.me/tito On Thu, Jun 2, 2011 at 10:49 AM, Zoran Avtarovski zo...@sparecreative.comwrote

Re: Pagination using Struts library

2011-05-18 Thread Zoran Avtarovski
You'll need to make some mods for displaytag to work with S2. 1. You'll need to add an acceptableParameterName method to your classes, we just add it to our base class. 2. You have to add the Displaytag responseOverrideFilter to your web.xml for the export to work Having said all that, we are

Extending Template Error

2011-04-26 Thread Zoran Avtarovski
Hi guys, I'm having a couple of issues with my freemarker tempates. One is with extending the 'simple; theme. I have setup a custom theme which has a theme.properties file containing a single line, parent=simple The problem I'm having is that it can't find the simple directory. Freemarker keeps

Re: Struts 2 - s:text garbled

2011-01-09 Thread Zoran Avtarovski
Hi Rubens, I've had a similar issue foreign text was displayed as rubbish) not just with the latest version but the last few. The difference is that we use sitemesh not tiles. In the what I found was that I had to change the filter order in my web.xml. To be honest I couldn't see why this should

Re: execAndWait Interceptor

2010-12-16 Thread Zoran Avtarovski
Sorry about the delayed response. I have been busy with xmas crap (ba humbug). The way we implement an ajax solution is to create a new thread, with a flag stored in the session and poll the server using a jquery ajax call every 10 seconds. The ajax call returns a json response which has the flag

Re: execAndWait Interceptor

2010-12-13 Thread Zoran Avtarovski
We use the interceptor for interrogating a legacy database where we have no control over the execution or timing of the query. We basically have an API we call and then wait in hope. I have to say that I've found the interceptor to be inconsistent at best. For example we have some queries that

Spring 3 Upgrade

2010-12-02 Thread Zoran Avtarovski
I just wanted to check if there were any issues with upgrading spring to version 3 with struts 2.2.1? I notice the complete download still has Spring 2.5 libraries. I'd appreciate any feedback from people who've made the jump and any issues to look out for. Z.

Re: Calling OGNL static method with date issue

2010-12-01 Thread Zoran Avtarovski
I have a feeling you have to use s:property value=@dateutils.datera...@datetest(#today)/ is set with a s:date tag Or s:property value=@dateutils.datera...@datetest(#attr.today)/ if set with a c:set tag. The other option, which I know works, is to expose a method on your action which you can then

Re: Link Display Logic

2010-11-30 Thread Zoran Avtarovski
. Beez r 5347 -Original Message- From: Biesbrock, Kevin Sent: Tuesday, November 30, 2010 11:06 AM To: 'Zoran Avtarovski'; 'Struts Users Mailing List' Subject: RE: Link Display Logic Thank you for the suggestion, Zoran! I guess I'm doing somewhat of a combination of what you and Dave

Re: Link Display Logic

2010-11-29 Thread Zoran Avtarovski
What we have implemented is a set of public authorisation methods in our base action which we call via ognl passing the actionId as the parameter. For example to test if a user should be shown the print report we have a isUserAuthorised(Integer actionId) method which we use as follows: s:if

Re: Character Encoding Error using new filters

2010-10-20 Thread Zoran Avtarovski
I have set UTF-8 as the default everywhere - struts, tomcat, sitemesh. I had a small breakthrough. It looks like it's a 2.1.6 specific issue. I updated a development version to 2.1.8 and 2.2.1 and both worked fine. I now have to find time to test the updated version for unintended consequences.

Re: give suggestion data display base on the Locale

2010-10-18 Thread Zoran Avtarovski
I think you¹re missing the point. Instead of: s:param name=text value=listValue / Use s:param name=text value=%{getText(listValue)} / Z. please understand this: s:iterator value=listObject s:component template=abc.vm s:param name=text value=listValue / s:param name=prefix

Character Encoding Error using new filters

2010-10-17 Thread Zoran Avtarovski
I have a really strange character encoding error that is appearing when I attempt to change my struts2 filter configuration from: filter filter-namestruts-cleanup/filter-name filter-classorg.apache.struts2.dispatcher.ActionContextCleanUp/filter-cla ss /filter filter

Re: Re : s:url tag - multiple params with same name

2010-08-11 Thread Zoran Avtarovski
I haven¹t tried it but I suspect that if you use a list it should work. Something like this: s:url id=xurl value=a.b includeParams=get escapeAmp=false s:param name=pn value='#{Œfirstval¹,¹secondVal¹,¹thirdVal¹}' / /s:url Z. On Fri, 06 Aug 2010 17:12:10 -0400, François Rouxel

OGNL Qurey

2010-07-29 Thread Zoran Avtarovski
I¹m trying to construct a conditional display mechanism for a web app, but I need some help with the OGNL side of things. My app will produce a string like ³object1.attribute == 25 object2. attribute 5² and store it as a parameter in my action called condition. What I want to know if there is

Re: OGNL Qurey

2010-07-29 Thread Zoran Avtarovski
d...@newfield.org wrote: On 7/29/10 9:50 PM, Zoran Avtarovski wrote: What I want to know if there is a way for OGNL to evaluate the expression represented by the string through recursion? I see no reason you can't get a reference to the ValueStack object from within OGNL and call

Re: REST URLs

2010-07-27 Thread Zoran Avtarovski
Another option that doesn¹t tie you down to the REST plugin is to use the URL Rewrite Filter ( www.tuckey.org/urlrewrite/) We¹ve been using this for a while without any issues. Z. Is there anyway we can use /client/{clientId}/business/{businessId} kind of URLs in Struts 2.0? -- AB

Re: how to set default focus field in s:form ?

2010-05-13 Thread Zoran Avtarovski
As a simple solution, why not just modify the form tag template and if the focusElement parameter is set, include a simple javascript block at the close of the form to set the focus. Just keep in mind that if there are two forms on a page and both have the focusElement parameter set only the last

Re: Jquery autocomplete with struts2.

2010-04-22 Thread Zoran Avtarovski
I hate to be the one to say it, but I don¹t think the issue here is jQuery but your understanding of Struts2. I think you first need to get your head around using S2 and then migrating that simple php example will be easy. You fill find the only difference between the PHP example and using a

Re: World¹s Simplest Struts/2 Ajax Pattern

2010-04-06 Thread Zoran Avtarovski
While I appreciate what you¹re saying, we¹ve found that by moving to one of the javascript libraries (we use jQuery, but they all offer pretty much the same range and depth) for all our ajax work, the task has been simplified immensely. Also, by moving away from the S2 ajax tags, we¹ve found that

Re: Pagination with Struts 2.1.8 ?

2010-03-29 Thread Zoran Avtarovski
We use display tag extensively and it ties into S2 really well. We¹ve set it up to use DB based pagination so you only load the items you need and it ties into S2 i18n properties. We also use jqGrid which is based on jQuery and works really well where you want ajax based tables. Z. Thanks. I

Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ?

2010-03-28 Thread Zoran Avtarovski
of this tag? It would be helpful to me, as somehow I've been able to link to the same sction with an empty url tag but unable to retain params. Thanks! Em 24-03-2010 22:42, Zoran Avtarovski escreveu: I wrote a small custom tag which builds the link with the existing action and parameters

Re: Translation Properties

2010-03-28 Thread Zoran Avtarovski
When you get to that scale, I think it makes sense to move to DB based properties. Easier to manage, easier to move and less chance that something will go pear shaped. You can also build yourself a nice interface for managing the translations that will be portable across all you apps. Z. I

Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ?

2010-03-24 Thread Zoran Avtarovski
I wrote a small custom tag which builds the link with the existing action and parameters. This way it just reloads the page. I also included a parameter that wouldn¹t allow the change (a jQuery dialog would give the user feed back) to take place if there might me an issue with system integrity ­

S1 Quirk with html tag

2009-12-09 Thread Zoran Avtarovski
Yesterday I had to go back and update some changes to struts 1 app we developed and are maintaining. It¹s been a while since I¹ve done any struts1 work but it was urgent and resources are thin in the lead up to xmas. Anyway, my question is that I have two identical forms with identical

Re: [Struts 2.1.8] datetimepicker and action: String or Date ??

2009-11-16 Thread Zoran Avtarovski
HI Fernando, For what it¹s worth in applications where we have a diverse range of locales we found that it was best to create our own date converter. The date converter then reads our properties file which contains an entry with a comma delimited list of date formats which the date converters

Re: Using Struts2 JQuery drag drop

2009-11-03 Thread Zoran Avtarovski
Hey Ignacio, I’m not a big fan of integrated ajax functionality. While it provides a simple solution at first when you need something a little more complex or customised it starts to show it’s limitations. Rather than using the sx;div tag why not just use a plain div and then use a jQuery ajax

Re: Using Struts2 JQuery drag drop

2009-11-01 Thread Zoran Avtarovski
Hi Ignacio, It not jQuery specific but more extracting the coordinates of the event using javascript. Depending on what your doing you have six pairs to choose from: clientX,clientY layerX,layerY offsetX,offsetY pageX,pageY screenX,screenY x,y Without knowing exactly what you¹re doing, I can

Re: i18n within dojo attribute

2009-10-29 Thread Zoran Avtarovski
You¹re missing the closing inverted comma on fieldPrompt. Z. It occurred to me to use an OGNL form to do this, but I am still having a challenge getting it to work. I've tried s:textfield key=fieldName dojoType=dijit.form.ValidationTextBox promptMessage=${getText('fieldPrompt)} /

Re: [S2] i18n for lists/maps

2009-09-14 Thread Zoran Avtarovski
Exactly. Using the s:select for your example below would be as follows: s:select name=²loanType² list=²#{1:getText(key.value1), 2, getText(key.value2)}²/ Z. Z, I'll clarify with a simple example : The dropdown must be like : select name=loanTypeoption value=1EnglishType1/optionoption

Re: [S2] i18n for lists/maps

2009-09-08 Thread Zoran Avtarovski
I just want to get a couple things straight: 1. Your state names are in localised properties files 2. The properties files are available to struts2 either via struts.custom.i18n.resources or convention (read don’t ask) If you app satisfies these two points then the method I mentioned will work

Re: [S2] i18n for lists/maps

2009-09-07 Thread Zoran Avtarovski
You don¹t have to have a DB back end. Here¹s a couple of examples from our system: s:radio list=responses listKey=responseKey listValue=%{getText(responseValue)} name=name label=%{getText(responseLabel)} / s:select headerKey= headerValue=%{getText('select')} list=responses listKey=responseKey

Re: possible bug in v2.1.6 ??

2009-09-04 Thread Zoran Avtarovski
For what it¹s worth I was getting some strange results with included jspfs. In my case it was the freemarker encoding that was getting screwed up. What I found was if I included the %@ page contentType=text/html;charset=UTF-8 language=java % tag at the head of my .jspf files it worked fine. I

Re: Freemarker Text Encoding Error

2009-08-26 Thread Zoran Avtarovski
Apologies in advance for the cross post, but it saves on typing. I found that the solution was simple in the end. While testing various options I noticed I had one page that worked. In identifying the difference between that and the others there was a difference in the content jspf for that page,

Re: Freemarker Text Encoding Error

2009-08-26 Thread Zoran Avtarovski
I guess you can, but I was a little reluctant to introduce the freemarker servlet mapping at the web.xml level as the configuration is handled internally by struts and I didn’t really want to run into any issues down the line. I guess I could have also looked at the tomcat configuration and

Freemarker Text Encoding Error

2009-08-25 Thread Zoran Avtarovski
I¹m having trouble displaying Danish text in my forms using the struts tags and I think it related to an error with how freemarker gets the locale. I¹m getting a lot of question marks in the text, but if I set the server local to Danish, all works as expected. Obviously that¹s not a solution as

Re: Freemarker Text Encoding Error

2009-08-25 Thread Zoran Avtarovski
Thanks Martin, I‘m not using a freemarker template, the struts tags are. I’ve set the charset meta tag correctly in my jsp page. The issue is with the freemarker templates the struts tags use. I tried adding the #setting locale=da_DK setting to the top of the control header template with no joy.

Re: Freemarker Text Encoding Error

2009-08-25 Thread Zoran Avtarovski
I knew somebody would say that. I was too lazy to subscribe and I half expected them to ask on the struts list. Thanks Musachy, I’ll subscribe and post now. I guess I was hoping others might have experienced a similar problem. Z. did you try asking the FreeMarker guys? On Tue, Aug 25, 2009

Re: Anyone using the Ajaxtags with Struts 2

2009-08-24 Thread Zoran Avtarovski
Like you I thought I¹d give the ajax tags stuff a whirl in S2, but honestly Musachy is right. You¹re better off using a JS framework directly. That way you can get the control you need. Almost all of the them have some level of tree functionality and I¹ve given up recommending a particular

Re: Re : Re : Re : Re : Struts2 + I18N

2009-08-17 Thread Zoran Avtarovski
the execandWait page. I tried increasing the delay to 1 and the same happens with just a 10 second delay. I¹m hoping that I just haven¹t understood the configuration options, but I haven¹t been able to find more detailed information. Z. Zoran Avtarovski wrote: For what it¹s worth, the I18n

Re: Re : Re : Re : Re : Struts2 + I18N

2009-08-16 Thread Zoran Avtarovski
Hi Julien, I¹m not sure of it¹s too late for you, but what we did was cheat and added a simple interceptor to the stack which set the default struts locale to whatever you need. It was trivial piece of code and then everything worked as expected. For what it¹s worth, the I18n and the execandwait

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-12 Thread Zoran Avtarovski
. -Original Message- From: Zoran Avtarovski zo...@sparecreative.com To: Struts Users Mailing List user@struts.apache.org; CS Wong lilw...@gmail.com Sent: Tue, Aug 11, 2009 9:49 pm Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? I¹m certain that¹s

Re: Internationalization and SEO

2009-08-12 Thread Zoran Avtarovski
Have you seen URLRewrite Filter, it will enable you to set request parameters based on URL. For example you can have www.mydomain.com/en/myPage.htm remap to www.mydomain.com/myPage.htm?locale=en and likewise for the others. It¹s one of the handiest tools for web. Z. Hello, I have a

Re: Configuring SiteMesh for specific action mappings in Struts 2?

2009-08-11 Thread Zoran Avtarovski
I¹m certain that¹s not correct. We use the decorators.xml file extensively and we¹re able to have pretty fine control over the sitemesh decorators. I know in our installation the decorator is based on the action url rather than the resulting jsp file. For example you could include a excludes

Cookies

2009-08-10 Thread Zoran Avtarovski
Two quick questions about cookies: 1. The cookie interceptor definition appears to be missing from the struts-default.xml file on 2.1.6. Is this a sign the the interceptor is on its way out? 2. The interceptor looks like it can only be used to read cookies. Do I need to grab the response object

Re: CSS background images, struts2

2009-08-05 Thread Zoran Avtarovski
We use the tomcat method and have found there are no issues: What you do is that in either your tomcat web.xml or your app xml specify : servlet-mapping servlet-namejsp/servlet-name url-pattern*.css/url-pattern /servlet-mapping Which will treat the css files as jsps and parse any

Re: One Struts2-project to rule them all

2009-07-30 Thread Zoran Avtarovski
We¹ve implemented a similar solution where we have a custom interceptor which sets a domainId value based on the url used to access the site. It¹s then a simple matter of applying the appropriate processing for each of the domains based on the domainId value. I can tell you from our perspective

Re: AJAX Validation

2009-07-29 Thread Zoran Avtarovski
? Is it possible to use the XML Files or annotations provided by Struts ? Cheers, Nicolas On Tue, Jul 28, 2009 at 11:26 AM, Zoran Avtarovski zo...@sparecreative.comwrote: From what I can tell Dojo has been moved out into a plugin, but still exists

Re: AJAX Validation

2009-07-28 Thread Zoran Avtarovski
From what I can tell Dojo has been moved out into a plugin, but still exists. Honestly though, I¹d take the opportunity move away from an integrated solution to using a javascript framework directly. We use jQuery and it integrates with Struts without any major issues and more often than not

Re: Struts vs Other competitors

2009-07-28 Thread Zoran Avtarovski
Sadly, I have kids so I either have no time for video games or can¹t get access to the gear. My past time is daydreaming about having a past time. As for testing, and documentation these tasks are as valid as any others, but again the problem from my perspective, and I don¹t mean that in a

Re: AJAX Validation

2009-07-28 Thread Zoran Avtarovski
by Struts ? Cheers, Nicolas On Tue, Jul 28, 2009 at 11:26 AM, Zoran Avtarovski zo...@sparecreative.comwrote: From what I can tell Dojo has been moved out into a plugin, but still exists. Honestly though, I¹d take the opportunity move away from an integrated solution to using

Re: Struts vs Other competitors

2009-07-27 Thread Zoran Avtarovski
I have to agree. Our touch with the JSF Oracle was both painful and fruitless and lead us to truly appreciate how bad things could be. Having said that, I think Martin has raised some points about how S2 can be improved and I think S2 is at a stage where there needs to be some general discussion

Re: [Struts 2] Date conversion general bug!

2009-07-16 Thread Zoran Avtarovski
I agree that date conversion is a real problem for S2, especially in multi lingual applications. We¹ve had to implement our own converter which either looks for a format value with the date string or picks up a list of default prioritised date formats and tries each one successively until success

Resource Bundle Advice

2009-07-01 Thread Zoran Avtarovski
I have a 2.1.6 App that I want to move the resource bundle away from properties files to a database backed solution and I was hoping I could get some feedback on others experience. I was planning to extend java.util.ResourceBundle and add the requisite methods for accessing keys and properties

Freemarker error generated with CheckBox List

2009-06-22 Thread Zoran Avtarovski
I¹m getting a freemarker error when I use a s:checkboxlist tag and the array which contains my item values is empty. When I had a look at the stack trace it¹s pointing me to the following error: Caused by: java.lang.NullPointerException at

Re: Freemarker error generated with CheckBox List

2009-06-22 Thread Zoran Avtarovski
Thanks Martin, The method won’t error out on null values. The first part of the method returns a false if either obj1 or obj2 are null. I’d already isolated the code. The problem I’m having is that the Array containing my checkbox selected values would occasionally contain a null value in the

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Zoran Avtarovski
It¹s in 2.1.6. In fact I was glad they were there and also to be able to get rid of them. Z. Dave Newton schrieb: Robert Graf-Waczenski wrote: Are there any plans in a (current or) future version of Struts2 to enable such a behavior? That was added a month or two ago. Dave

Re: [S2] - LabelValueBean in struts2

2009-05-15 Thread Zoran Avtarovski
We use them for the ajax calls, by having a standard structure across all ajax calls it makes life easier. It¹s simple enough to construct your own. You can even grab the source from S1. Z. Hi, I am converting an app from Struts1 to Struts2. It is using LabelValueBean. I would like to

Re: [S2 2.1.6] Struts2 sucks wrt. OGNL expressions

2009-05-15 Thread Zoran Avtarovski
=ERROR Z. Zoran Avtarovski schrieb: It¹s in 2.1.6. In fact I was glad they were there and also to be able to get rid of them. Z. In 2.1.6 already? We're using 2.1.6, so then i'd like to know how i would enable this. Thanks, Robert

OT: Good CSV export library

2009-05-08 Thread Zoran Avtarovski
Hi guys, I¹m hoping somebody can help me. I need a java library that will take a List of POJOs and convert to CSV. I¹ve found a truck load that go the other way, CSV mapped to POJO but I can¹t find a good one going my way. I¹m looking for something that produces CSV¹s in the same way that

Re: number formatting (with commas)

2009-05-03 Thread Zoran Avtarovski
Wouldn¹t the appropriate currency symbol be in the locale properties? I expect you would have a separate package.properties file for each locale. Z. akoo wrote: I am not sure actually, it was just an example I pulled the roseindia site. This is all quite new to me. (Be wary of roseindia

Re: determine if iphone user?

2009-05-03 Thread Zoran Avtarovski
If iPhone users are significant enough you¹re better off with an interceptor to check all incoming requests. Z. Cool, so is there a way to add a getter/setter in my action class to automatically pick up the request header, similar to parameters? Date: Fri, 1 May 2009 15:29:03 -0230

Re: What is wrong with my with OGNL Map expression??

2009-04-30 Thread Zoran Avtarovski
Just to reiterate what Dale said, we¹ve taken to using the %{} across the board as we were having problems with conflicts. In my experience this has slowed my hair loss significantly. Z. Michael Griffith wrote: I have a MapString,String in the HttpSession The map is stored in the session

Re: Submitting a Date to an Action

2009-04-30 Thread Zoran Avtarovski
That¹s exactly right but sometimes you want to use a format that isn¹t the short format for the locale and I suspect that¹s what is happening with Richard. He has two choices, either configure his date time picker to produce the date in the required format, or as suggested write your own

Re: Any hint of JQuery on struts2 tutorial, thanks!

2009-04-30 Thread Zoran Avtarovski
We¹ve been using jQuery in a Struts2 project without any real issues. We¹re not using the plugin. If you¹ve got your head around struts and jQuery, I don¹t see what the problem is. Using jQuery with S2 is just like using jQuery anywhere. In fact it¹s quite liberating not to be limited by the

Re: Open an excel in Struts application

2009-04-26 Thread Zoran Avtarovski
You can also use the plain old stream result type and pipe the HSSF worksheet as you would any other file type. Saves on the overhead of another unnecessary plugin. Z. When/if you use the JasperReports plugin use an older version of poi (3.0 is the latest I had success with). The new poi

Re: Struts 2 using Quartz

2009-04-20 Thread Zoran Avtarovski
We use spring as standard to setup the struts2 actions so it was a simple matter of adding some config information to the applicationContext.xml file. The spring site has comprehensive documentation. Z. Hi all, I'm using struts 2.0.6. I have requirement to write an logic in

Re: Display BigDecimal Format

2009-03-08 Thread Zoran Avtarovski
, use or copying of the information by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. -Original Message- From: Zoran Avtarovski

Re: Date time picker

2009-03-05 Thread Zoran Avtarovski
No need. I found the plugin for jscalendar which does exactly what I need and dropped in without a hitch. Z. Hi, I¹m hoping somebody can help. I need a date and time picker. The dojo based one is either a date or time picker, but not both. Does anybody know of a good date and time

Display BigDecimal Format

2009-03-05 Thread Zoran Avtarovski
Our forms have some currency and and we need to display to 2 decimal points when the data is prepopulated. At the moment is displays as a single decimal point. I could specify all the relevant fields in a package.properties file but I¹d like to do it across the board for big decimals. Do I have

Re: Display BigDecimal Format

2009-03-05 Thread Zoran Avtarovski
by anyone other than the intended recipient is prohibited. If you have received this message in error, please notify the sender immediately by return e-mail and securely discard this message. -Original Message- From: Zoran Avtarovski [mailto:zo...@sparecreative.com] Sent: Thursday

Re: Date time picker

2009-03-05 Thread Zoran Avtarovski
It’s one of plugins in the plugin repository: http://code.google.com/p/struts2jscalendarplugin/ It’s not the best implementation of the time but it works and time was of the essence. It uses dropdowns for the time. I’ve had to modify the code a little because of some locale specific issues, let

Date time picker

2009-03-04 Thread Zoran Avtarovski
Hi, I¹m hoping somebody can help. I need a date and time picker. The dojo based one is either a date or time picker, but not both. Does anybody know of a good date and time picker I can use or suggestions on how to easily combine the dojo date and time picker to combine. Z.

Tooltips Not working in 2.1.6

2009-01-20 Thread Zoran Avtarovski
I¹ve just upgraded an app from 2.0.xx to 2.1.6 and found that the s:select tag is incorrectly rendering the tooltip html. I¹ve gone back to defaults and this is what¹s being produced:: td class=tdLabellabel for=enterTx_transaction_transactionTypeId class=labelPayment Type: img

Re: smart URLs

2008-12-10 Thread Zoran Avtarovski
We¹ve been using UrlRewrite ( http://tuckey.org/urlrewrite/) for a while with absolutely no issues. Z. For a CMS project I require the following functionality: Translate/map a URL like 'http://www.mydomain.com/marketnews/asiapacific/latest' into an action with request parameters

  1   2   3   >