Re: DateTimePicker doesn't work with siteMesh

2007-06-22 Thread Jeromy Evans
setecastronomy wrote: So, according to my experience if you use Sitemesh and datetimepicker together you have to remember to use exceptions in the decorator.xml... Thank you for sharing your experience. This is not a DateTimePicker-specific issue. If you use a page decorator like sitemesh yo

Re: s2: Base url in jsp's

2007-06-22 Thread Max Pimm
Thanks for the respones. Perhaps i didn't explain myself properly. What i'm really looking for is a way to define the context root url as the base url. My motives for doing this is to allow me to share code across my application. An example would be referencing a style sheet in a header incl

Re: s2: Base url in jsp's

2007-06-22 Thread Max Pimm
Correction... the last two lines of code in my previous mail should have been (getting myStylesUrl by value not name!) " /> not " /> Max Pimm wrote: Thanks for the respones. Perhaps i didn't explain myself properly. What i'm really looking for is a way to define the context root url as

Re: s2: Base url in jsp's

2007-06-22 Thread Roberto Nunnari
Why don't you use JSP EL? Best regards. -- Robi Max Pimm wrote: Thanks for the respones. Perhaps i didn't explain myself properly. What i'm really looking for is a way to define the context root url as the base url. My motives for doing this is to allow me to share code across my app

Why isn't paramsPrepareParamsStack the default stack?

2007-06-22 Thread David Harland
It seems to me that for the majority or senarios you would want paramsPrepareParamsStack to be the default stack. One thing we have noticed with this as our default and devMode turned on is that we get errors with pages with checkboxs because the checkbox interceptor is being called after the param

where are the .tld files ?

2007-06-22 Thread hicham
Hello I'm new beginner starting with a "struts-blank-1.3.8.war" web application, deployed on tomcat 5.5, but I couldn't find the .tld files anywhere. thanks for replying hicham - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: where are the .tld files ?

2007-06-22 Thread Niall Pemberton
On 6/22/07, hicham <[EMAIL PROTECTED]> wrote: Hello I'm new beginner starting with a "struts-blank-1.3.8.war" web application, deployed on tomcat 5.5, but I couldn't find the .tld files anywhere. They are shipped in the struts-taglib-1.3.8.jar - so as long as you deploy that jar, then that sho

How to use objectfactory

2007-06-22 Thread Strut_developer
I want to use object factory in my POJO, at present ObjectFactory.getInstance returns null. I am able to use it in Actions but not in POJO. Please advice how to use it? -- View this message in context: http://www.nabble.com/How-to-use-objectfactory-tf3964352.html#a11251178 Sent from the Struts

AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
Hi Guys, I have an autocompleter tag in my app, but it isn't working good in IE7. In FF it is doing good. The problem is when I keep typing, there are some options that it doesn't retrieve. I little strange and hard to explain. I'm generating the JSON using a freemarker template, like this: [ <#

Struts Project Examples

2007-06-22 Thread Deepak Kumar
HI, Visit http://www.roseindia.net/struts/struts-projects.shtml to download struts, spring and hibernate example projects and desctiption Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
Well, Regarding that ShowCase is working on IE7, I suppose the issue is on loadOnTextChange. I'm using that because the list is really big, and I can't bring it in one time. About 35000 records comming from Database. I would like to wait for 2 chars before make the select in Database. How could

[S2] Action with wildcard not found and strange behavior of s:form

2007-06-22 Thread Cyril Gambis
Hi everybody! I have a strange behavior while using Struts 2, s:form, and action with wildcard. Can you please help me? Here is my struts.xml file, with a wildcard mapping, very straightforward: /jsp/login.jsp When I go to http://localhost:8080/Authentification.action, I got a "no ac

Re: How to solve following

2007-06-22 Thread Musachy Barroso
forms? You can use map fields in you action and access the in your views (jsp, ftl..) musachy On 6/22/07, tom tom <[EMAIL PROTECTED]> wrote: Hi, Is it possible to use Map-backed forms in S2. Existing application using the Map-backed form doesnt seem to work with S2, Thanks _

No FormBeanConfig found under ''

2007-06-22 Thread Søren Blidorf
Hi. I get the following warning: 2007-06-22 14:24:00 org.apache.struts.util.RequestUtils createActionForm WARNING: No FormBeanConfig found under '' And what does the warning mean? Will it stop my webapp from working. It did work before I upgraded struts Soren

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Musachy Barroso
That's what that attribute is for, can you enable logging on head (debug="true") and submit any logged error, or javascript errors? The ajax tags still need to be tested on IE 7. musachy On 6/22/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: Well, Regarding that ShowCase is working on IE7,

Re: [S2]Paging through a large list of things

2007-06-22 Thread Skip Hollowell
Jeromy Evans - Blue Sky Minds wrote: Here's some options: 1. store your results in the http session. This takes no effort but won't scale very well. 2. Look at the paging implementation provided by displaytag. The default behaviour loads all data and pages through it for you. http://displayta

Re: Struts Project Examples

2007-06-22 Thread Musachy Barroso
Dejavu? musachy On 6/22/07, Deepak Kumar <[EMAIL PROTECTED]> wrote: HI, Visit http://www.roseindia.net/struts/struts-projects.shtml to download struts, spring and hibernate example projects and desctiption Thanks - To unsu

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
debug-true worked. But the message is not a big thing., at least for me. Doesn't say much. FATAL exception raised: [object Error] FATAL exception raised: [object Error] FATAL exception raised: [object Error] FATAL exception raised: [object Error] But now I've removed loadOnTextChange, and the er

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Musachy Barroso
musachy //I have to install IE 7 and test it, but I've been pushing that :) On 6/22/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: debug-true worked. But the message is not a big thing., at least for me. Doesn't say much. FATAL exception raised: [object Error] FATAL exception raised: [obje

[S2] Validating s:file

2007-06-22 Thread Hoying, Ken
I am trying to create a validation for the s:file tag to ensure that a file name was provided. My tag looks like this: I tried using the validation: However, the validation always fails whether the file name is empty

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
A strange thing is that ShowCase is working on IE7. Maybe the problem is in my template? [ <#list vars as var> ["${var}", "${var}"], ] How will be this comma in my last line? How could I remove the last comma? Thanks, Felipe Musachy Barroso wrote: > > > > musachy > //I have to

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Felipe Rodrigues
I found it. :-)) the problem was in my template. The comma in the end of jSon return was crasshing my list. So I fixed only changin to that: [ <#list vars as var> ["${var}"], [""] ] Thanks for your help. Felipe Felipe Rodrigues wrote: > > A strange thing is that ShowCase is working

Alternative Template Ajax + web Standards for business solutions

2007-06-22 Thread sardagna
Hi, people. What you think we create a alternative template to use ajax and web standards. Why ajax? Dojo is a great framework ajax, however is very slow to make bussiness solutions, and i don't think appropiate to use with struts2, because what the widget dojo do is to make easy a complexy so

Re: AutoCompleter doesn't work good in IE7

2007-06-22 Thread Musachy Barroso
My bad, I didn't noticed it the first time around. I always forget that IE doesn't like that trailing comma, do this: [ <#list vars as var> ["${var}"] <#if var_has_next>, ] musachy On 6/22/07, Felipe Rodrigues <[EMAIL PROTECTED]> wrote: I found it. :-)) the problem was in my

RE: properties at times not found

2007-06-22 Thread stanlick
What is the implication of creating your model bean in the prepare() method *and* having Spring wired to inject the bean into the action? Scott Trafton wrote: > > Hi, > I have been getting the same errors from the Parameter interceptor. So > far I haven't found a way around that unless you pu

[S2] + Spring - WebApplicationContext?

2007-06-22 Thread Paul
Probably a dumb question but does anyone have an example of the best way of obtaining the web application context within a Struts 2 action? I need to lookup and get a bean that I've configured in my spring context. Thanks in advance! Regards, Paul

FormFile is not getting populated when using winhttp on Vista

2007-06-22 Thread Meindert
Hi There, I'm setting the header in my VB application without charset property in the Content type; winhttp.SetRequestHeader "Content-Type", "multipart/form-data; boundary=xxx This was using fine and the file was received by struts in the FormFile object But now I'm trying the same on Vista with

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
Can anyone give me any advice on a good tool to use for unit testing struts action classes. I am currently using struts 1.2.9 with spring 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it to work. I get the following error: test: [junit] Testsuite: com.chisq.common

Re: [S2] + Spring - WebApplicationContext?

2007-06-22 Thread Shibing . Chen
Let your Action implements ApplicationContextAware interface. On 6/22/07, Paul <[EMAIL PROTECTED]> wrote: Probably a dumb question but does anyone have an example of the best way of obtaining the web application context within a Struts 2 action? I need to lookup and get a bean that I've config

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Do not hijack topics. Please post a new message to user@struts.apache.org to ask a question. - -chris Joe Yuen wrote: > > Can anyone give me any advice on a good tool to use for unit testing struts > action classes. I am currently using stru

Re: [S2] App generate lot (2GB) of garbage!

2007-06-22 Thread Musachy Barroso
Yes, freemarker is used by Struts 2 tags to generate html. We could have a property for the cache setting, but, does it solve your problem? (you said it was partially resolved) regards musachy On 6/20/07, Ing. Andrea Vettori <[EMAIL PROTECTED]> wrote: I discussed the problem with the freemarke

Re: [S2] App generate lot (2GB) of garbage!

2007-06-22 Thread Antonio Petrelli
Andrea, please create a JIRA issue for this, and join the discussion at the Struts Developers list too, if possible: http://www.nabble.com/-S2--FreeMarker-usage-in-Struts-2-tf3965756.html Antonio - To unsubscribe, e-mail: [EMAIL

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
I understand now. I apologize. I'll post a new message. Thanks for pointing this out. From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Fri 6/22/2007 9:25 AM To: Struts Users Mailing List Subject: Re: Advice on unit testing struts action classes -B

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > Huh??? What are you talking about? What topic being hijacked??? I am > asking a question. Do you mean that this subject line has already > been used in another thread??? You replied to a message in the "AutoCompleter doesn't w

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
Huh??? What are you talking about? What topic being hijacked??? I am asking a question. Do you mean that this subject line has already been used in another thread??? From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Fri 6/22/2007 9:12 AM To: Struts User

Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
Can anyone give me any advice on a good tool to use for unit testing struts action classes. I am currently using struts 1.2.9 with spring 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it to work. I get the following error: test: [junit] Testsuite: com.chisq.common.ac

Re: Advice on unit testing struts action classes

2007-06-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joe, Joe Yuen wrote: > Can anyone give me any advice on a good tool to use for unit testing > struts action classes. I am currently using struts 1.2.9 with spring > 1.2.9 and hibernate. I have looked into StrutsTestCase but cannot get it > to work. I

Alternative Template Ajax + web Standards for business solutions

2007-06-22 Thread José Carlos Sardagna
Hi, people. What you think we create a alternative template to use ajax and web standards. Why ajax? Dojo is a great framework ajax, however is very slow to make bussiness solutions, and i don't think appropiate to use with struts2, because what the widget dojo do is to make easy a complexy solu

RE: Advice on unit testing struts action classes

2007-06-22 Thread Joe Yuen
I've never used StrutsTestCase before but here's my unit test setup method: public void setUp() throws Exception { super.setUp(); setContextDirectory(new File("C:/Projects/Main")); //explicitly define the path to web.xml setServletConfigFile("

[s2] Radio buttons example

2007-06-22 Thread Matt.Luce
Did you find any documentation on radio buttons?

Making Fields editable depending on role

2007-06-22 Thread Archer
Hi, I am using struts 1.3.8. I have text fileds in jsp which should be made editable and non-editable depending on the user role. I used container managed security for implementing the role based security. Can anyone please help me how to sort out this issue. I am new to security implementation.

Re: Making Fields editable depending on role

2007-06-22 Thread Angelo zerr
Hi, I think you can be interested with FormView http://formview.sourceforge.net/which is taglib to manage state of your fields (hidden, visible,...). With FormView you can manage fields switch user role http://formview.sourceforge.net/roles.html Regards Angelo 2007/6/22, Archer <[EMAIL PROTECTED

Re: Alternative Template Ajax + web Standards for business solutions

2007-06-22 Thread Musachy Barroso
On top of that, in 2.1 Dojo will be on it's own plugin, making it easier for people who do not want to use it, or want to use another framework. You made a very good point, AJAX support in struts is a nice feature and it covers some common use cases, but that's about it. As for the reasons for ch

Re: Alternative Template Ajax + web Standards for business solutions

2007-06-22 Thread Jeromy Evans
I'm going to take the bait and attempt to answer this email... José Carlos Sardagna wrote: Hi, people. What you think we create a alternative template to use ajax and web standards. Why ajax? Dojo is a great framework ajax, however is very slow to make bussiness solutions, and i don't think app

Hibernate and S2

2007-06-22 Thread Mansour
Hello every one: This question may seem of topic. The reason I am asking this here is because I am sure some one faced this problem when dealing with struts and can provide an advice. I have many objects that are mapped using hibernate to a DB. I need to update one of these objects (lets call

Re: Hibernate and S2

2007-06-22 Thread Jeromy Evans
Let me re-articulate my interpretation of what you've done: You load an entity E with say 4 properties (a, b, c, and d) from persistence and render a view based on it. The persistence session is closed. In a new thread, the user submits an update that affects only two properties of the entity

OzJpetstore, Page oriented Struts sample with Spring integration

2007-06-22 Thread Tak
Please see page oriented way of Struts application sample, OzJpetstore from http://sourceforge.net/projects/optionzero This application uses OzStruts + Spring on iBatis' jpetstore. If you want to write robust and maintainable struts application with simple code, and not want to have complex deve

Re: Hibernate and S2

2007-06-22 Thread Mansour
Jeromy Evans wrote: Let me re-articulate my interpretation of what you've done: You load an entity E with say 4 properties (a, b, c, and d) from persistence and render a view based on it. The persistence session is closed. In a new thread, the user submits an update that affects only two prop

Re: Hibernate and S2

2007-06-22 Thread Jeromy Evans
Mansour wrote: An alternative approach is that you don't allow persistent entities to be modified within your actions whatsoever and all updates are applied behind a service layer that performs reattachment and updates. How do I do this (reattachment and updates)? Assuming I have a very big a

Re: [S2] App generate lot (2GB) of garbage!

2007-06-22 Thread Ing. Andrea Vettori
There are three pages of issues on freemarker... I'll take a look at them and see if it's already present. Thank you Il giorno 22/giu/07, alle ore 19:17, Antonio Petrelli ha scritto: Andrea, please create a JIRA issue for this, and join the discussion at the Struts Developers list too, if po