Re: Struts 6.3 Issue Uploading Files

2024-03-03 Thread Zoran Avtarovski
ter/core/src/main/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..

Re: Struts 6.3 Issue Uploading Files

2024-02-29 Thread Zoran Avtarovski
information can be found at 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 --

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 bi

Re: Cascading Nature of Templates and Themes

2015-05-04 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 t

Re: Cascading Nature of Templates and Themes

2015-05-04 Thread Zoran Avtarovski
heme.properties file has one entry: parent=simple Again any assistance would be appreciated. Z. On 1/05/2015 6:23 pm, "Lukasz Lenart" wrote: >2015-05-01 1:32 GMT+02:00 Zoran Avtarovski : >> We¹ve started a new project which required a custom theme which we call >> mobile

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" wrote: >2015-05-01 1:32 GMT+02:00 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.pro

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 versio

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" wrote: >

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. I

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 ser

Re: Localised text tag

2013-05-08 Thread Zoran Avtarovski
ognl...I think you need fully qualified path and a hash or at or >>something to call static methods, but you get the point.) >> >> -Dale >> >> >> On May 7, 2013, at 11:10 PM, Zoran Avtarovski >>wrote: >> >>> I have a small issue that I

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 val

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 ar

Re: Multi dimension array from form

2012-11-02 Thread Zoran Avtarovski
orm-buttons-howto.html > >I haven't 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 >wrote: > >> I have a two dimensio

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

Re: s:text encoding issue

2011-10-19 Thread Zoran Avtarovski
ted locale is Arabic" ? 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 : >> It woks fine for the default locale for

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" wrote: >I tried the JSP code which you p

Re: s:text encoding issue

2011-10-19 Thread Zoran Avtarovski
Hi Lucasz, Here's the entry from struts.xml Z. On 19/10/11 4:23 PM, "Łukasz Lenart" wrote: >2011/10/19 Zoran Avtarovski : >> We are using struts 2.2.2, everything is UTF-8, struts, jsp, sitemesh, >> freemarker and jdbc connection. > >and

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: The first works as expected and the displayed text is perfect, but the second just produces a se

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 an

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" wrote: >hi all > >i ha

Re: Multi Devices and Multilanguage

2011-06-29 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 to

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" wrote: >I mean use of CKEditor, CKFinder or ElFinder 3rd party software (based in >PHP) that allow server file exploration inside a Struts2 application

Re: OT: Arabic Website

2011-06-02 Thread Zoran Avtarovski
d UTF-8 encoding is the >place 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 > >

OT: Arabic Website

2011-06-01 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: 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 mov

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 a

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 is set with a tag Or if set with a tag. The other option, which I know works, is to expose a method on your action which you can then access via OGNL. Z. On 1/12/10 6:19 AM, "Ken McWilliams" wrote: >In my jsp I have two dates ("today" and "expiryDate") the

Re: Link Display Logic

2010-11-30 Thread Zoran Avtarovski
s executed. > > >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 sugges

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: Your stuff i

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: Use Z. > please understand this: > > > > > > > > > listValue is a values of list. i am using iterator to traverse the list. now > on listValue, i want to put here internationalization concept.so that all > the list value can be display

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: struts-cleanup org.apache.struts2.dispatcher.ActionContextCleanUp struts org.apache.struts2.dispatcher.FilterDispatcher

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: Z. > > On Fri, 06 Aug 2010 17:12:10 -0400, François Rouxel > wrote: > >> > should be working, did you put in s:url tag includeParameters='get' ? >> > > > Yes, although I don't think that's w

Re: OGNL Qurey

2010-07-29 Thread Zoran Avtarovski
, Dale Newfield 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 r

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

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 ?

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 w

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 json

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.

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. > > >

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

2010-03-28 Thread Zoran Avtarovski
ed implementing DB based properties and tighter integration with S2 and spring. Z. > > > > > Hi Zoran, > > would you mind sharing the code 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

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 ­ fo

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 configurat

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 tri

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 ca

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 onl

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 > > promptMessage="${getText('fieldPrompt)}" /> > > This gets me past the first problem, but still doesn't

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: Z. > Z, > I'll clarify with a simple example : > The dropdown must be like : > > EnglishType1 value="2">EnglishType2 for EN and value="1">SpanishType1SpanishType2 > > So, the values 1 and 2 remain constant, only the text

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 fi

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: It¹s pretty self explanatory, but the getText function is called on your action. Obviously this is predicated on your actions either extending ActionSupport or implementing a getText method to retrieve localise

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.

Re: Freemarker Text Encoding Error

2009-08-26 Thread Zoran Avtarovski
I thought there was no longer a need for these in JSP fragments, the main >> > JSP page has one as does the sitemesh decorator. But obviously I was wrong. >> > >> > So thanks again for your help guys. >> > >> > Z. >> > >>> &

Re: Freemarker Text Encoding Error

2009-08-26 Thread Zoran Avtarovski
ur help guys. Z. > > It is good to post here, but for tricky stuff like this, you have a > better chance with them. Also if you find the solution, please let us > know. > > musachy > > On Tue, Aug 25, 2009 at 10:38 PM, Zoran > Avtarovski wrote: >> > I knew s

Re: Freemarker Text Encoding Error

2009-08-25 Thread Zoran Avtarovski
Tue, Aug 25, 2009 at 7:26 PM, Zoran > Avtarovski wrote: >> > 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, bu

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 j

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 the

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 framewor

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

2009-08-17 Thread Zoran Avtarovski
and then starts the main thread, so we always get 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. > &

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

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

2009-08-12 Thread Zoran Avtarovski
gt; > > -Original Message- > From: Zoran Avtarovski > To: Struts Users Mailing List ; CS Wong > > Sent: Tue, Aug 11, 2009 9:49 pm > Subject: Re: Configuring SiteMesh for specific action mappings in Struts 2? > > > > > > > > &

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 patte

Cookies

2009-08-09 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 d

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 : jsp *.css Which will treat the css files as jsps and parse any el expressions they contain and in your css place the following at the top so the

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 i

Re: AJAX Validation

2009-07-28 Thread Zoran Avtarovski
ied to have the scripts created automagically through >>> > > programming, but in the end it wasn¹t worth the effort. We¹ve extended >> > the >>> > > CSS and XHTML templates to accommodate some time saving features but on >> > the >>> >

Re: AJAX Validation

2009-07-28 Thread Zoran Avtarovski
or annotations > provided by Struts ? > > Cheers, > > Nicolas > > On Tue, Jul 28, 2009 at 11:26 AM, Zoran Avtarovski > wrote: > >> > From what I can tell Dojo has been moved out into a plugin, but still >> > exists. >> > >> > Honestly

Re: Struts vs Other competitors

2009-07-28 Thread Zoran Avtarovski
f :) > > musachy > > On Mon, Jul 27, 2009 at 8:35 PM, Zoran > Avtarovski wrote: >> > 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 t

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 off

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 o

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 via

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 ar

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 org.apache.struts2.util.ContainUtil.contains(Con

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 th

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

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

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 xStrea

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:

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

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 prede

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 converter

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 Map in the HttpSession >> > The map is stored in the session as an

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

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

Re: Display BigDecimal Format

2009-03-08 Thread Zoran Avtarovski
gt; > the intended use of the addressee only. Any disclosure, 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 s

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 m

Re: Display BigDecimal Format

2009-03-05 Thread Zoran Avtarovski
confidential and for > the intended use of the addressee only. Any disclosure, 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

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 t

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

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:: Payment Type: alt=" Tooltip copy goes here." You¹ll notice that the img tag is closed bef

Re: smart URLs

2008-12-10 Thread Zoran Avtarovski
Not to be rude, but I don¹t think the smart url plugin exists anymore. I had the impression it was folded into the convention plugin. As far as mapping params I¹m not sure it does what Anders was after. Somebody with more experience with the convention plugin can answer that better. Z. > > the qu

  1   2   3   >