Pagination with struts 2.x

2009-03-19 Thread mahanare
Hi, What is the best approach to display database table content page wise using struts 2? We used display tag few years back, but there seems another taglib pager taglib. Is pager tag lib a better option or is there any inherent support in struts 2 for paging? Thanks harinath -- View this

Re: Pagination with struts 2.x

2009-03-19 Thread Chris Pratt
One very popular option is DisplayTag (http://www.displaytag.org/). (*Chris*) On Wed, Mar 18, 2009 at 11:08 PM, mahanare mahan...@gmail.com wrote: Hi, What is the best approach to display database table content page wise using struts 2? We used display tag few years back, but there

advanced dateTimePicker

2009-03-19 Thread Sandy.Verfaille
Hi, Does someone knows an advanced dateTimePicker? For example: - An attribute 'available dates' of type list, that enables the dates in the list and disables others? - Coupling a struts action to when you click on one or more dates on the calendar. - Not in a dropdown, but simply a calendar

s:textfield with value attribute

2009-03-19 Thread boraldo
I thought that this attribute means only initial value, but when I submitted my form with validation errors, on the redisplayed form I saw again that value, not entered by me. What for this attribute then ? And how can I set just initial value for my form? -- View this message in context:

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Musachy Barroso
I always test stuff on jetty and it works fine, showcase at least, what is the problem you are having? musachy On Wed, Mar 18, 2009 at 8:00 PM, stanlick stanl...@gmail.com wrote: Guys -- I have a loaded (Hibernate, Spring, Tiles) S2.1.6 application running on TC 6 and I want to speed up the

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Nils-Helge Garli Hegvik
Me too. Never had problems with Jetty. On Thu, Mar 19, 2009 at 2:11 PM, Musachy Barroso musa...@gmail.com wrote: I always test stuff on jetty and it works fine, showcase at least, what is the problem you are having? musachy On Wed, Mar 18, 2009 at 8:00 PM, stanlick stanl...@gmail.com wrote:

RE: File upload, validation and Preparable

2009-03-19 Thread Kawczynski, David
I'm pretty sure you can't prepopulate input tags whose type=file. This is html4 and has nothing to do with struts. -Original Message- From: Greg Lindholm [mailto:glindh...@yahoo.com] Sent: Wednesday, March 18, 2009 4:17 PM To: user@struts.apache.org Subject: Re: File upload, validation

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
What does the JSP look like? Does it include the taglib definition? Nils-H On Thu, Mar 19, 2009 at 5:14 PM, Kra, Aime yao (TEK System) ak...@allstate.com wrote: Struts 2 tags are not translate into HTML when I add tile to my application. When I use View source of my browser, I still can see

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Kra, Aime yao (TEK System)
Below is the jsp --snip - %@ page contentType=text/html; charset=UTF-8% %@ taglib uri=http://tiles.apache.org/tags-tiles; prefix=tiles% %@ taglib prefix=s uri=/struts-tags% !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html !--

Re: Parameters in URL

2009-03-19 Thread cheeran
My company virus scanner prevents me from putting xml here. When I use s:url and add parameters using s:param and set the URL as href to sx:a , an ajax anchor tag, I get the following error. I get two sets of values for each action parameters comma separated. One the value I sent via s:param. 2 -

Re: Jetty 6.x vs Tomcat 6.x

2009-03-19 Thread Wes Wannemacher
In theory, an app should work on any app server, but from time to time I've found out about incompatibilities the hard way. For instance, Tomcat doesn't look to favorably on unclosed scriptlet tags... We found out the hard way that Tomcat doesn't compile a page when your page ends w/o the

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
And what about the content JSP that contains the code that doesn't work? Nils-H On Thu, Mar 19, 2009 at 5:22 PM, Kra, Aime yao (TEK System) ak...@allstate.com wrote: Below is the jsp --snip - %@ page contentType=text/html;

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Kra, Aime yao (TEK System)
Here are the tiles definitions --- tiles-def.xml-- ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE tiles-definitions PUBLIC -//Apache Software Foundation//DTD Tiles Configuration 2.0//EN http://jakarta.apache.org/struts/dtds/tiles-config_2_0.dtd;

Re: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Nils-Helge Garli Hegvik
Does the pages you're including have the struts tlds defined? If not, they should. Nils-H On Thu, Mar 19, 2009 at 6:33 PM, Kra, Aime yao (TEK System) ak...@allstate.com wrote: Here are the tiles definitions --- tiles-def.xml-- ?xml version=1.0

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Kra, Aime yao (TEK System)
Thank a lot. It is working after I add the tag %@ taglib prefix=s uri=/struts-tags% On top of the jsp that are included into the base.jsp. Thanks. Aimé Kra -Original Message- From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] Sent: Thursday, March 19, 2009 1:40 PM To: Struts

RE: Struts 2 tags not translated to html when using tiles

2009-03-19 Thread Martin Gainty
in your jsp your reference to struts tags associates prefix 's' to uri struts-tags %...@taglib prefix=s uri=/struts-tags % !-- then in /META-INF/struts-tags.tld you have defined tag name and attributes with associated class-name as illustrated below -- ?xml version=1.0 encoding=UTF-8?

Re: Type conversion exceptions

2009-03-19 Thread ryangr
Well I'll be damned...it's working! It looks like the solution was to remove the *-conversion.properties entries and then change this in SettingAction: public void setSettings(SettingList settings) { this.settings = settings; } public SettingList getSettings() { return settings; } to:

RE: redirect parameters lost when using convention plugin 2.1.6

2009-03-19 Thread John Liptak
Great. That fixed my problem. I also had a typo in one of my other attempts and this explains what happened. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: Wednesday, March 18, 2009 7:42 AM To: Struts Users Mailing List Subject: Re: redirect parameters lost

Re: s:textfield with value attribute

2009-03-19 Thread Dave Newton
boraldo wrote: I thought that this attribute means only initial value, but when I submitted my form with validation errors, on the redisplayed form I saw again that value, not entered by me. What for this attribute then ? And how can I set just initial value for my form? If there's a value

Re: File upload, validation and Preparable

2009-03-19 Thread Dave Newton
Greg Lindholm wrote: I've discovered that in the standard interceptor stack fileUpload is after prepare interceptor. This means that the upload File, ContentType, and FileName setters have not been called before prepare() method runs. Is there a good reason for this? It seems like fileUpload

Re: Struts2 and scrambled query string.

2009-03-19 Thread Dave Newton
Leena Borle wrote: I want to know if anybody used scrambled query string with Struts2 and how to do it. E.g. if I call some action like http://./ShowProducts.action?id=23dept=5 etct. etc, I want the query string to be scrambled so that it does not show my database ids in the browser.

Struts2 + JQuery Plugin

2009-03-19 Thread Hemal Shah
Hi, I want to use JQuery with Struts 2. I did search and found jQuery plugin at http://code.google.com/p/s2jquery Is anyone aware about other jQuery plugins? Could anyone please recommend me which jQuery plugin I should use? Thanks in advance. Regards, Hemal Shah

REST Plugin only for some actions

2009-03-19 Thread Radoslav Krivak
Hi, could someone advise me how to configure REST plugin so that only some actions will be processed by it. I do not want all actions to use REST url scheme and url-method mapping. Another issue that I have with REST plugin is that after adding it to my application config-browser plugin stopped

Re: Struts2 + JQuery Plugin

2009-03-19 Thread Wes Wannemacher
On Thursday 19 March 2009 18:32:52 Hemal Shah wrote: Hi, I want to use JQuery with Struts 2. I did search and found jQuery plugin at http://code.google.com/p/s2jquery Is anyone aware about other jQuery plugins? Could anyone please recommend me which jQuery plugin I should use? Thanks in

Re: struts 2.1.6 verbose logging

2009-03-19 Thread Musachy Barroso
Patch committed to trunk. https://issues.apache.org/struts/browse/WW-3051 musachy On Wed, Mar 18, 2009 at 3:09 PM, Musachy Barroso musa...@gmail.com wrote: When a property is not found, it is logged, which causes all those warnings, as for myself I find them very annoying. I have a patch

invoking methods with parameters within a FreeMarker template

2009-03-19 Thread Allen Lee
I can't seem to figure out how to invoke a method with a single parameter (declared in my action class) within a freemarker page in Struts 2. Is this possible? The issue I'm facing is that I need to iterate through a collection of elements and then dynamically generate some data based on each

Re: REST Plugin only for some actions

2009-03-19 Thread Dale Newfield
Radoslav Krivak wrote: could someone advise me how to configure REST plugin so that only some actions will be processed by it. I do not want all actions to use REST url scheme and url-method mapping. I built something I call NamespaceBasedActionMapper that allows you to specify different

Re: struts 2.1.6 verbose logging

2009-03-19 Thread Musachy Barroso
I didnt explain what the fix does, there is a new setting struts.el.throwExceptionOnFailure which when set to true, will cause missing properties, or exceptions thrown from OGNL expression evaluations, to throw an exception and break the page. This will only happen in S2 tags, not JSTL. Some

Re: Greybox Ajax box with struts2

2009-03-19 Thread Chris Pratt
The easiest thing might be to just define an action for it. Something like: action name=scripts/greybox/loader_frame result type=dispatcherscripts/greybox/loader_frame.html/result /action might do the trick. (*Chris*) On Thu, Mar 19, 2009 at 8:51 PM, foward fow...@gmail.com wrote: