Re: Problem with implementation of pagination with display tag in Struts2

2008-05-22 Thread Engr. Jherald Gerome Lacambra
1. Put the display tag libraries on WEB-INF/lib folder 2. Put the displaytag.tld on WEB-INF folder 3. add the code the ff codes on you web.xml http://displaytag.sf.net displaytag.tld And now you are good to go. 2008/5/23 Varun Deep <[EMAIL PROTECTE

Problem with implementation of pagination with display tag in Struts2

2008-05-22 Thread Varun Deep
To all Hi, I want to implement pagination on my web application, for that I want to use the "display tag". Can any one tell or suggest the step by step process needed to implement the "display tag"(means how to configure the struts2 application). I am using Struts2. I will be very much thank full

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Simon Sew
The request timeout occurs when it is still generating the pdf. When it finished, the file will be exported to the jsp. Laurie Harper <[EMAIL PROTECTED]> wrote: Al Sutton wrote: > You may find that your app server, the clients browser, or any proxy > in-between may timeout irrespective of what

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Simon Sew
Hmm... I will try that. Thx. Owen Berry <[EMAIL PROTECTED]> wrote: How about having a DOJO remote div that refreshes, thereby keeping the session active. Could even show progress on the pdf generation. On Thu, May 22, 2008 at 8:23 AM, Simon Sew wrote: > Because we are required to generate the p

Re: Action executed many times

2008-05-22 Thread Márcio Gurgel
Hi all, Jeromy, I'm already using struts 2.1... Seems that this issue persists, or there's some kind of configuration do fix this? By the way, I say your project to integrate YUI and Struts 2, congratulations! Regards, Márcio Gurgel 2008/5/4 Jeromy Evans <[EMAIL PROTECTED]>: > Márcio Gurgel wr

RE: Re: Struts 2: After validation fail, how to change the returning result name to other than INPUT?

2008-05-22 Thread Phan, Hienthuc T
Laurie, Thank you. Your suggestion works great. Very elegant! -Hien -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Tuesday, May 20, 2008 1:55 PM To: user@struts.apache.org Subject: Re: Struts 2: After validation fail, how to change the returnin

Re: How to find jars not used in the project ??

2008-05-22 Thread Dustin S.
This should help you out: http://www.javalobby.org/java/forums/t100842.html?start=0 On Thu, May 22, 2008 at 2:15 PM, A. Lotfi <[EMAIL PROTECTED]> wrote: > Hi, > > We have a big struts project, under WEB-INF\lib we have lot of jar files, > lot of them are not used in the code, we are using netbe

Re: unclear behavior of submit-control

2008-05-22 Thread Alec C4
not working :( but looks like a -- View this message in context: http://www.nabble.com/unclear-behavior-of-submit-control-tp17402365p17412337.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscr

Re: Tomcat 6.0 + struts 1.1 => are they compatible?

2008-05-22 Thread Antonio Petrelli
2008/5/22 jklcom99 <[EMAIL PROTECTED]>:. > > It's complaining java.lang.NoClassDefFoundError: javax/el/ExpressionFactory. > Not sure if it's related. Probably you are using Struts EL tags. Simply don't use them, use non-EL tags instead, EL expression will work anyway because Tomcat (as every JSP 2

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Milan Milanovic
Yes, but that's not true. dateStart is Date! I tried with String, I tried everything and Struts 2 have serious problems with dates! Gabriel Belingueres <[EMAIL PROTECTED]> wrote: java.lang.NoSuchMethodException: setMin(java.lang.String) Meaning that dateStart is a String, and should be a Date.

Re: model conversation scope doesn' t work as property in a base action class

2008-05-22 Thread Canny Duck
is the correct use, because I don't use the ModelDriven interface. The conversation object is just called like this. It would be great if you publish your current implmentation. :-) -- View this message in context: http://www.nabble.com/model-conversation-scope-doesn%27-t-work-as-property-in-a

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Gabriel Belingueres
java.lang.NoSuchMethodException: setMin(java.lang.String) Meaning that dateStart is a String, and should be a Date. 2008/5/22, Milan Milanovic <[EMAIL PROTECTED]>: > Hi, > > when I try this I got an exception: > > WARN com.opensymphony.xwork2.util.OgnlUtil:369 - Caught OgnlException while > se

Re: model conversation scope doesn' t work as property in a base action class

2008-05-22 Thread Gabriel Belingueres
I saw too that in your start.jsp page you used: Which I don't know if will work. Actions that implements ModelDriven interface push the model into the value stack, so you don't need to write "model.page", but only "page". I will eventually publish my current implementation... 2008/5/22, Canny

How to find jars not used in the project ??

2008-05-22 Thread A. Lotfi
Hi, We have a big struts project, under WEB-INF\lib we have lot of jar files, lot of them are not used in the code, we are using netbeans5.5, is there any utility to tell you which are the jar files not used in your source code. Thanks, your help is appreciated.

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Al Sutton
From the initial email it seemed as though it's a two stage process (stage 1 : generate, stage 2 : export), hence I thought it possible that an idle time out could occur during the generation phase. One approach I've seen is that a servlet starts the generation and lets the user carry on with

Re: Error limiting the size file upload

2008-05-22 Thread Yousri BENDI ABDALLAH
you have no idea :-) 2008/5/22 Yousri BENDI ABDALLAH <[EMAIL PROTECTED]>: > Good morning, > I limited the size of the file upload a 15Mb > > > > / jsp / chemin_systeme / index.jsp result> > > > > > 5728640 >

Re: unclear behavior of submit-control

2008-05-22 Thread Dave Newton
I thought if you specified "key" it would try to use that value as the name, label, and value. That might be consistent with what you're seeing, where it's trying to set a value on an action property object graph: > Exception caught setting 'user.registration.submit.button' > on 'class portal.str

Re: unclear behavior of submit-control

2008-05-22 Thread Alec C4
ognl.OgnlException: source is null for getProperty(null, "registration") at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1638) at ognl.ASTProperty.getValueBody(ASTProperty.java:92) at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:170) at ognl.SimpleNode.getV

s2: Simple 'show empty form' flow

2008-05-22 Thread hernan gonzalez
In any webapp the most typical and simple form flow involves two steps: (from the serverside point of view) 1) show an empty form for the user to fill the fields 2) receive the data, validate ; if ok, process it and show response page; if not, show the same previous form with error messages In St

Re: unclear behavior of submit-control

2008-05-22 Thread Laurie Harper
Alec C4 wrote: throws OgnlException. But works fine. what does it means? How to access some.key.from.resource.bundle to display it as label? That's right. What's the exception? We can't tell you what it means if we don't know what it is... L. -

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Laurie Harper
Al Sutton wrote: You may find that your app server, the clients browser, or any proxy in-between may timeout irrespective of what you do in your webapp. If the timeout occurs during the PDF generation, before the response begins being streamed back, maybe. But as long as there is response data

Re: Tomcat 6.0 + struts 1.1 => are they compatible?

2008-05-22 Thread jklcom99
It's complaining java.lang.NoClassDefFoundError: javax/el/ExpressionFactory. Not sure if it's related. Paul Benedict-2 wrote: > > Why wouldn't they be compatible? > > >> >> Did you ever get an answer to your question? >> >> What does one need to do to migrate an existing jsp project(struts 1

Re: Page the waiting / Páginas de espera

2008-05-22 Thread Giovanni Azua
hi Eduardo, It would be useful that you posted the struts configuration and all relevant snippets. We won't otherwise understand the case you're describing. Just a wild shot at what you explain sounds like you don't get your properties properly assigned to the Action ... is that it? If it is

Re: Struts 2.0 and RAD 7.0

2008-05-22 Thread achandra
Thank you very much for your help. It started working when I set the custom property you described. That is a very important step in making RAD 7.0 and Struts 2.0 work together.. Thank you Struts Two wrote: > > I have deployed struts 2.0.11.1 on Websphere V6.1.0.13 using RAD 7.5 > (show-case app

Re: [Struts 2] Automatically refresh form

2008-05-22 Thread Milan Milanovic
Back Jim Kiley <[EMAIL PROTECTED]> wrote: What kind of link is the link on the other page? Does it go to a JSP or an action? On Thu, May 22, 2008 at 12:05 PM, Milan Milanovic wrote: > Hi, > > I have a s:form in one jsp page, and I have link on other page to that > page, > but when such link i

Re: Page the waiting / Páginas de espera

2008-05-22 Thread Eduardo Solanas
Hi Giovanni i have proved the executeAndWaitStack interceptor, and it works well(aiting page works ok) but in my method (in an Action) in wich i have to access with getText to a key in a properties file, and it doesn't work if i quit the interfeptor it works again, maybe a bug? thanks El día

Re: Tomcat 6.0 + struts 1.1 => are they compatible?

2008-05-22 Thread Paul Benedict
Why wouldn't they be compatible? On Thu, May 22, 2008 at 11:17 AM, jklcom99 <[EMAIL PROTECTED]> wrote: > > Did you ever get an answer to your question? > > What does one need to do to migrate an existing jsp project(struts 1.1) to > Tomcat 6? > > > ojasrege wrote: > > > > We have a web jsp projec

Re: Tomcat 6.0 + struts 1.1 => are they compatible?

2008-05-22 Thread jklcom99
Did you ever get an answer to your question? What does one need to do to migrate an existing jsp project(struts 1.1) to Tomcat 6? ojasrege wrote: > > We have a web jsp project that we are upgrading to Tomcat 6.0. > > We have run into a few technical errors, and so I'm wondering whether or > n

Re: Tomcat 6.0 + struts 1.1 => are they compatible?

2008-05-22 Thread jklcom99
Did you ever get an answer to your question? What does one need to do to migrate an existing jsp project(struts 1.1) to Tomcat 6? ojasrege wrote: > > We have a web jsp project that we are upgrading to Tomcat 6.0. > > We have run into a few technical errors, and so I'm wondering whether or > n

Re: [Struts 2] Automatically refresh form

2008-05-22 Thread Jim Kiley
What kind of link is the link on the other page? Does it go to a JSP or an action? On Thu, May 22, 2008 at 12:05 PM, Milan Milanovic <[EMAIL PROTECTED]> wrote: > Hi, > > I have a s:form in one jsp page, and I have link on other page to that > page, > but when such link is clicked and jsp page

[Struts 2] Automatically refresh form

2008-05-22 Thread Milan Milanovic
Hi, I have a s:form in one jsp page, and I have link on other page to that page, but when such link is clicked and jsp page with s:form is shown it always show old data in tags, until I refresh page. Is there any solution to this ? -- Thx.Milan

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Milan Milanovic
One more thing, as I use String type in my action class for datetimepicker, I tried to validate that field with regex validator, like this: [0-3][0-9].[0-1][0-9].[1-2][0-9][0-9][0-9] Date is wrong But nothing happens if I enter wrong date, it just st

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Milan Milanovic
Hi, when I try this I got an exception: WARN com.opensymphony.xwork2.util.OgnlUtil:369 - Caught OgnlException while setting property 'min' on type 'com.opensymphony.xwork2.validator.validators.DateRangeFieldValidator'. java.lang.NoSuchMethodException: setMin(java.lang.String) at o

RE: Page the waiting / Páginas de espera

2008-05-22 Thread STRUTS SL. Mailing List
Gracias por tu comentario, me servirá de mucha ayuda. Y si tienes toda la razón, nuestro problema es que tenemos que hacer un parser de varios xml y pues esto llevara un poco de proceso según nuestra estimación así que estamos buscando soluciones a este problema. un saludo y gracias. -Men

Re: Page the waiting / Páginas de espera

2008-05-22 Thread Giovanni Azua
hi, Do you mean running a lengthy process? then the way to go would be using execAndWait interceptor, have a look in: http://struts.apache.org/2.x/docs/execute-and-wait-interceptor.html ** Si a lo que te refieres es a ejecutar un proceso y que el usuari

Page the waiting / Páginas de espera

2008-05-22 Thread STRUTS SL. Mailing List
Hello everyone. I want to know if someone asked me how to do pages waiting, for example, the DDBB Enter data with a class java but I wish that you do not touch anything until this is not finished, so a page in waiting. Any idea and thanks in advance. A greeting. *

Re: model conversation scope doesn' t work as property in a base action class

2008-05-22 Thread Canny Duck
I tried to change to order of the interceptors, but without any success. The model is still not set. You implemented the post-redirect-get pattern in your own implementation? Is it possible to publish your implementation? Gabriel Belingueres-2 wrote: > > I certainly did not use any of these co

Re: model conversation scope doesn' t work as property in a base action class

2008-05-22 Thread Gabriel Belingueres
I certainly did not use any of these conversation implementations (I decided to write my own) but I suspect that you have defined the interceptors in the opposite order: I think you should first set to execute the defaultStack and then call the conversation interceptor. 2008/5/22, Canny Duck <[EMA

RE: Install Struts.

2008-05-22 Thread STRUTS SL. Mailing List
Well your comment gave me an insight into the different problem and solve it achieves. The problem is that the bean "beanSerie" had the getXXX but not had the setXXX for us had implemented the "set" as the "add" of a vector. Introducing directly "set" has turned out the problem. A greeting --

Re: Hello all: Date Validation... An old issue, i guess...

2008-05-22 Thread Gabriel Belingueres
did you tried ${dateStart}? 2008/5/20, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Hi all, i'm Dome, from Italy, and i'm having my troubles with Date > Validation on Struts 2 :| > > Using xml validation, and need to validate a > date. > > Let's say i have 2 dates taken from html form. I need the seco

model conversation scope doesn' t work as property in a base action class

2008-05-22 Thread Canny Duck
Hi, I want to implement a process with more than one step and a model in a conversation scope. To realize that I used the Struts 2 scope plugin. To implement the post-redirect-get pattern I have a result type of "redirect-action". This behave is required. The attached demo implementation worked

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Owen Berry
How about having a DOJO remote div that refreshes, thereby keeping the session active. Could even show progress on the pdf generation. On Thu, May 22, 2008 at 8:23 AM, Simon Sew <[EMAIL PROTECTED]> wrote: > Because we are required to generate the pdf in real time. The data will > always be chang

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Simon Sew
Because we are required to generate the pdf in real time. The data will always be changing from time to time,therefore not suitable to be pre-generated. Al Sutton <[EMAIL PROTECTED]> wrote: You may find that your app server, the clients browser, or any proxy in-between may timeout irrespective

RE: Re: [S2] Advice on Handling CLOBs in Struts2

2008-05-22 Thread Hoying, Ken
Sorry, I misunderstood what you were asking. I believe that it probably does use the current request response. I guess I am a bit confused then on the action tag. Does it or does it not support content from a streamed result? Is this intended functionality or a bug? I am able to use the act

unclear behavior of submit-control

2008-05-22 Thread Alec C4
throws OgnlException. But works fine. what does it means? How to access some.key.from.resource.bundle to display it as label? -- View this message in context: http://www.nabble.com/unclear-behavior-of-submit-control-tp17402365p17402365.html Sent from the Struts - User mailing list archive at N

Re: Request/session timeout when exporting very large files

2008-05-22 Thread Al Sutton
You may find that your app server, the clients browser, or any proxy in-between may timeout irrespective of what you do in your webapp. If the file takes so long to generate is there any reason why your not pre-generating it, caching it and serving it as a static file? Al. - Original Mes

Error limiting the size file upload

2008-05-22 Thread Yousri BENDI ABDALLAH
Good morning, I limited the size of the file upload a 15Mb / jsp / chemin_systeme / index.jsp 5728640 / jsp / chemin_systeme / ajout.jsp index.action

Problem extending ExceptionMappingInterceptor

2008-05-22 Thread Dallas
Hello! Reposting here since the dev-list was not the correct one according Antonio. I´m having some issues trying to extend the ExceptionMappingInterceptor. The Struts 2 documentationen says that you can override the publishException method, but I´m not having any luck in doing so, the method