Re: struts2 and tables

2010-01-08 Thread Sergio
Hans Solo escribió: should work. 2010/1/8 Chris Pratt : I'm not positive but you might try: (*Chris*) On Thu, Jan 7, 2010 at 4:09 PM, Sergio wrote: Sergio escribió: Chris Pratt escribió: You can refer to the DisplayTag documentation about what collections

Re: struts2 and tables

2010-01-07 Thread Sergio
Sergio escribió: Chris Pratt escribió: You can refer to the DisplayTag documentation about what collections they support, there are quite a few. I usually use a java.util.List of JavaBean's And yes, you'll have to use JDBC, JPA, Ibatis, Hibernate... to get that data from the datab

Re: struts2 and tables

2010-01-07 Thread Sergio
e that can be displayed. As for your other question, take a look at the last column in my example, that's exactly what it does. (*Chris*) On Thu, Jan 7, 2010 at 1:05 AM, Sergio wrote: but i don't understand the data structure to hold the users. When you get the ResultSet from mysq

Re: struts2 and tables

2010-01-07 Thread Sergio
y never use this also, how the display tag work with List when we submit the grid F On Thu, Jan 7, 2010 at 7:00 AM, Chris Pratt wrote: We use DisplayTag (http://www.displaytag.org), it works pretty well. (*Chris*) On Wed, Jan 6, 2010 at 3:28 PM, Sergio wrote: Hi,

struts2 and tables

2010-01-06 Thread Sergio
Hi, people, how can i show a table into a jsp from the struts action? Are there a simple method for doing that? I've tried with java collections into the action and "property" tag into the jsp with no success. thanks in adv

Re: problems with struts2 and session

2010-01-06 Thread Sergio
lue="session.get('variable')" > to show key from session in jsp. Hope that it will help, Pawel Wielgus. 2010/1/6, Sergio : Paweł Wielgus escribió: Hi Sergio, add SessionAware interface to your action. Best greetings, Pawel Wielgus. 2010/1/5, Sergio : Sergio escr

Re: problems with struts2 and session

2010-01-06 Thread Sergio
Paweł Wielgus escribió: Hi Sergio, add SessionAware interface to your action. Best greetings, Pawel Wielgus. 2010/1/5, Sergio : Sergio escribió: Hi people, i'm a newbie to struts2. I'm having too many problems modifing session parameters. I use <%= session.getAttribu

Re: problems with struts2 and session

2010-01-05 Thread Sergio
Sergio escribió: Hi people, i'm a newbie to struts2. I'm having too many problems modifing session parameters. I use <%= session.getAttribute( "variable" ) %> to gain access to "variable" and that works when i modify "variable" into a jsp page

problems with struts2 and session

2010-01-05 Thread Sergio
Actualiza.jsp doesn't show "variable" atribute from session, using "<%= session.getAttribute( "variable" ) %>". It shows null. can anybody help me? I'm doing exactly what struts2 FAQ say (How do we get access to the session). thanks in advance.

Re: struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-30 Thread Sergio Italiani
t if myd contains double or not before formatting.... On Thu, Jan 22, 2009 at 10:04 AM, Sergio Italiani wrote: > While having done the same with struts 2.0 blank project - work > perfectly well. Also works if i add the code to struts2-showcase > (validation folder). > > The problem i

Re: struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-30 Thread Sergio Italiani
orFilter.java:390) > > Configuration: > I made some modifications to Struts blank Project so that: > package.properties contains --> > invalid.fieldvalue.myd = is not double > myd = My Double > struts.properties --> > > struts.ui.theme=xhtml > struts.custom

Re: having trouble with type conversion in struts 2.1.6

2009-01-30 Thread Sergio Italiani
t if myd contains double or not before formatting.... On Fri, Jan 23, 2009 at 8:37 PM, Sergio Italiani wrote: > Hi All! > Could anybody please tell me if I should add anything to the > struts2blank project (of struts 2.1.6) so that type conversion error > handling > ( i mean the

Re: Upgrading Struts 2

2009-01-30 Thread Sergio Italiani
ogspot.com/2009/01/migrating-from-struts-20x-to-216.html > > Best greetings, > Paweł Wielgus. > > 2009/1/25 Wes Wannemacher : >> On Sunday 25 January 2009 12:39:27 Sergio Italiani wrote: >>> OK you got a point there... but again if it was XWork bug wouldn't it >>>

Re: Exception while upgrading from S 2.0.11 to 2.1.6

2009-01-28 Thread Sergio Gelato
* Andy [2009-01-28 09:48:12 -0600]: > > fyi I had to add commons-fileupload to my classpath only after upgrading to > 2.1.6 from 2.0.14.. Before the upgrade it wasnt required. Same here. If the change is intentional, then someone should update http://struts.apache.org/2.1.6/docs/simple-

Re: Upgrading Struts 2

2009-01-25 Thread Sergio Italiani
y new project on it. On the other hand StrutsBlank is small but it is not working properly as far as type conversion is concerned (and I didn't proceed to try anything else... ) Thanks Sergio, On Sun, Jan 25, 2009 at 7:06 PM, Wes Wannemacher wrote: > On Sunday 25 January 2009 11:44:46 Se

Re: Upgrading Struts 2

2009-01-25 Thread Sergio Italiani
sed nobody else came across this... On Sun, Jan 25, 2009 at 5:52 PM, Musachy Barroso wrote: > Your problem could be related to this: > > http://jira.opensymphony.com/browse/XW-670 > > musachy > > On Sun, Jan 25, 2009 at 5:37 AM, Sergio Italiani > wrote: >> Hi Andy! &

Re: Upgrading Struts 2

2009-01-25 Thread Sergio Italiani
mailing list and to struts 2 - so I don't know if i should address this directly to you or to the user... Thank you in advance.. Sergio. On Sat, Jan 24, 2009 at 4:51 PM, Andy Sykes wrote: > Hi, > > We've migrated an app from 2.0.11 to 2.1.2 (and then to 2.1.6 when it becam

having trouble with type conversion in struts 2.1.6

2009-01-23 Thread Sergio Italiani
lue my project (witch is based on struts2blank) throws--> IllegalArgumentException: Cannot format given Object as a Number. Any body ? I am getting desperate and thinking of abandoning struts2.1.6 alltoghether :( Thank you in advance.

struts 2.1.6 struts2-blank adding Double validation causes Exception

2009-01-22 Thread Sergio Italiani
guration problem and why the same code is working in showcase but not in blank project. Thank you. Sergio .I. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

How do i get a field value inside a custom Struts Validator, when the field’s type is FormFile?

2008-12-10 Thread Sergio del Amo Caballero
I am using struts 1.3.8 and I have a form field of type org.apache.struts.upload.FormFile. I would like to validate the field's size with a custom struts validator. To get the field's value, i have used for a text field the next code: String value = ValidatorUtils.getValueAsString(bean,field.getPr

Re: Form Notify after validation

2008-12-03 Thread Sergio Sánchez González
pt to validated the form, and submitting the call from javascript too if it validates. 2008/12/2 Sergio Sánchez González <[EMAIL PROTECTED]>: > I want to add validations to my forms. But the problem I have is in > these forms I have notify actions, and this notifys should only b

Form Notify after validation

2008-12-02 Thread Sergio Sánchez González
OrderNewForm.jsp OrderNewForm.jsp with closeNewOrder I hide the form and with openOrders I open a div with a list of orders. The point is that if the validation is not ok then the orders list shouldn't be opened. Any idea? Thanks! S

Re: Table Grid in struts2

2008-11-24 Thread Sergio Sánchez González
Take a look to this article: http://www.javaworld.com/javaworld/jw-08-2007/jw-08-ajaxtables.html?page=4 Sergio 2008/11/21 Nils-Helge Garli Hegvik <[EMAIL PROTECTED]>: > There are several tag libraries and components that can handle this. > Personally, I have used displaytag [1] earl

Re: Redirecting action with ajax enabled

2008-11-04 Thread Sergio Sánchez González
I meant just changing the submit to And losing ajax... 2008/11/4 Sergio Sánchez González <[EMAIL PROTECTED]>: > I've found dojo fails when I retreive a page using ajax. > > For example, a simple login: > > > > > > >

Redirecting action with ajax enabled

2008-11-04 Thread Sergio Sánchez González
I've found dojo fails when I retreive a page using ajax. For example, a simple login: The page retreived uses dojo javascript but doesn't work. If I just change the submit to: then it works. But of course, I lose the retreive

Re: Problem publishing/subcribing events with dojo and struts

2008-10-29 Thread Sergio Sánchez González
Make sure that you updated the url tags(add or change namespace) used to > build the url for the ajax request, in this case "viewLinesUrl". > > musachy > > On Tue, Oct 28, 2008 at 12:28 PM, Sergio Sánchez González < > [EMAIL PROTECTED]> wrote: > >> I&

Problem publishing/subcribing events with dojo and struts

2008-10-28 Thread Sergio Sánchez González
I'm using struts and dojo. My code works fine until I change the struts namespace. These are my actions: pages/expedient/Expedient.jsp pages/expedient/ExpedientList.jsp

filling arrays in Struts

2007-08-31 Thread Sergio Stateri Jr
) at org.apache.struts.action.DynaActionForm.get(DynaActionForm.java:250) at org.apache.commons.beanutils.PropertyUtilsBean.getIndexedProperty(PropertyUtilsBean.java:386) . . . How can I fill an indexed java object using Struts ? thanks in advance, Sergio Stateri Jr

Can tiles access Application.properties?

2007-05-09 Thread Sergio del Amo Caballero
";> thanks for you future feedback, Sergio del Amo PS. I posted this question in the tiles mailing list but they told me to ask better here since i am using tiles together wit