Re: Struts and Hibernate

2006-07-03 Thread Adam Hardy
Hi David, there is no default mechanism to get struts to manipulate a Hibernate pojo with child objects like that. You have to manually find the user from lesUtilisateurs and then set it on the Task. You can do the read automatically though using dot notation as you have already tried. Adam

Struts Development on ColdFusion Server

2006-07-03 Thread starki78
Hi, has anybody gained experience with this? I really don't know if it is possible to deploy a struts.war file on cold fusion. I've the possibility to create a war file from a directory that is filled with a lot of cold fusion stuff and has after that ca 50MB. Put after that, there should I put it

RE: java.lang.IllegalArgumentException: can't parse argument numb er

2006-07-03 Thread Fredrik Andersson
No I'm trying to use the value of common.a as the value of key.a because in the future the keys that all have the value "Hej" might need to be changed to different values. Den 7/3/2006, skrev "Yee, Richard K CTR DMDC" <[EMAIL PROTECTED]>: >Fredrik, >The property value of {common.a} is causing the

Re: Warning: modified in the future

2006-07-03 Thread Paul Benedict
It sounds like the time on your computer was accidently advanced. I'd reset your computer time and re-save your pages. "A. Lotfi" <[EMAIL PROTECTED]> wrote: Hi, I have a very strange problem here, I modify my actions and my jsp pages , but nothing happened, the modification never take effect, w

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
Well that's a bit embarassing, to say the least :( I think I flubbed the build process, although it would have been flubbed days ago, so I'm not sure how it was working during testing. In any case, the TLD isn't in the right place in the JAR, so it isn't being found. Until a new build can be

Problem the with contentType with XHTML MP

2006-07-03 Thread Jose Benjamin Perez Soto
Hello! I have this question, when I place this contentType my emulator of a mobile device shows correctly, <%@ include file="/Includes.jsp"%> <%@ page contentType="application/vnd.wap.xhtml+xml" %> Hello World but my browser no, not show nothing, the browser show when I place in following

Warning: modified in the future

2006-07-03 Thread A. Lotfi
Hi, I have a very strange problem here, I modify my actions and my jsp pages , but nothing happened, the modification never take effect, when I run the project with NetBeans5 I got this : Warning: org\okip\service\authorization modified in the future Please your help is appreciated. thank you

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
I think we were just on two different brainwaves. If APT still goes through the ActionForm.validate() and returns to input page upon ActionErrors, as it should, then APT serves all my purposes with a lot less javascript! PS: just downloaded beta5, installed and got: org.apache.jasper.JasperExc

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
draegoon Z wrote: Why doesn't APT get this same response? What response does it get? As far as I can see, it *SHOULD* get the same response, the only difference would be what happens on the client-side with it. Why doesn't it get forwarded to the "input" page automatically, returning it i

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
Hey Frank, Check out this code from my first post using dojo.io.bind() : function submitNewMail(){ //validateNewMail(form); //use javascript validate before form submit var bindArgs = { url: "", error: function(type, data, evt){ alert("An error occurred su

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
draegoon Z wrote: That CodeExecuter is nice! Thanks! The interesting thing is that as of beta5, it doesn't matter what response handler you use, the script blocks will ALWAYS be executed. That's why there's a seemingly superfluous DoNothing handler... you may want to use that instead of Co

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
Michael Jouravlev wrote: Frank, please ignore my ignorance, Ignorance is thinking you know something when you don't... not knowing something you have no experience with isn't :) > if I understand correctly, an Action still returns a full page, but your JS engine parses the response and pull

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
That CodeExecuter is nice! With dojo.io.bind() I use DWRUtil.setValue() to load the response into my , which doesn't execute any

Re: Struts and AJAX

2006-07-03 Thread Michael Jouravlev
On 7/3/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: draegoon Z wrote: > Sounds great so far, but I think I lost you on the first part. > Let's work through a simple problem... > > Let's say I have in my struts-config: > > > > > > scope="request" type="com.draegoonZ.action.MyAction"> >

Re: Struts and AJAX

2006-07-03 Thread Rick Reumann
Just wanted to say +1 for the JWP tags. Plus the support you get it is top-notch. Use them. On 7/3/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: draegoon Z wrote: > Sounds great so far, but I think I lost you on the first part. > Let's work through a simple problem... > > Let's say I have in

Re: Form validation not happening

2006-07-03 Thread Paul Benedict
Make sure you're using the correct ValidatorXYZForm base class. ValidatorActionForm uses the key of the URI, ValidatorForm uses the key of the form name. Did you recently upgrade Struts or the Validator? Vinicius Carvalho <[EMAIL PROTECTED]> wrote: I did a deeper look on my project, enabled de

RE: Changing Role Access to Actions on the Fly

2006-07-03 Thread Paul Benedict
Acegi Security can be used with anything. It protects URLs and no framework has a trademark on those :) "Stasica, Grzegorz" <[EMAIL PROTECTED]> wrote: Hi Please mind that http://acegisecurity.org/ works on Spring not Struts. There is possibility to use Struts in Spring but I don't suppose the o

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
draegoon Z wrote: Sounds great so far, but I think I lost you on the first part. Let's work through a simple problem... Let's say I have in my struts-config: scope="request" type="com.draegoonZ.action.MyAction"> First, what happens if MyForm just simply returns an ActionError?

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
Sounds great so far, but I think I lost you on the first part. Let's work through a simple problem... Let's say I have in my struts-config: scope="request" type="com.draegoonZ.action.MyAction"> First, what happens if MyForm just simply returns an ActionError? Second, what if My

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
Good questions! Let me see if I can answer them... draegoon Z wrote: What about errors in the ActionForm? APT doesn't say anything at all about what happens on the server, so, the short answer is its up to you :) The longer answer is that each of the response handlers (as of the latest bet

Re: Form validation not happening

2006-07-03 Thread Vinicius Carvalho
I did a deeper look on my project, enabled debug output and even though on the log it says that the requestprocessor is calling validate, my validate method on my class (gave up on validation using xml) does not even get called... Any ideas? Regards On 7/3/06, Vinicius Carvalho <[EMAIL PROTECTE

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
This seems like a cleaner alternative. What about errors in the ActionForm? What about firing javascript function before the submit? I.e., to validate the form (I don't use Validator). Does the Action have to return 'null' and write directly to the response, or can the struts config still be u

Re: [STRUTS] Resource bundle and form validation

2006-07-03 Thread Olivier Godineau
Thanks for your message. In fact, the solution you propose isn't appropriate to my problem. Because, in my application, the choice of the resource bundle depends on the user. The key of the ressource bundle is in the user session, so i can't specify it in the validation configuration file. Olivie

Re: Struts and AJAX

2006-07-03 Thread draegoon Z
This seems like a cleaner alternative. What about errors in the ActionForm? What about firing javascript function before the submit? I.e., to validate the form (I don't use Validator). Does the Action have to return 'null' and write directly to the response, or can the struts config still be u

Re: Object field validation

2006-07-03 Thread Niall Pemberton
This is indicating that getTaskDefinition() from your form is returining null - so you need to ensure that the taskDefinition property is intialized first. Niall On 7/3/06, Halgurt Mustafa Ali <[EMAIL PROTECTED]> wrote: Hallo all, I posted yasterday the below message. I changed my formset to:

Re: [STRUTS] Resource bundle and form validation

2006-07-03 Thread Niall Pemberton
Support for different resource bundles in the Commons Validator DTD was added in Struts 1.2.7 and Commons Validator 1.1.4 (although I would recommend Struts 1.2.9 if you're upgrading and Validator 1.3.0). So in you validation.xml you can specify a "bundle" attribute on either the or element:

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
Oops, messed up my own config file! Should be... to=to Frank W. Zammetti wrote: I'm a big fan of DWR as well, it's a very worthy alternative. But, I don't mind a little self-promotion, so... how does this

Re: Struts and AJAX

2006-07-03 Thread Frank W. Zammetti
I'm a big fan of DWR as well, it's a very worthy alternative. But, I don't mind a little self-promotion, so... how does this strike you? ... to=to Then, in your JSP: class='error'>To: ... //more form elements ... SUBMIT This would result in

RE: Struts and AJAX

2006-07-03 Thread draegoon Z
Hey, I use DWR + dojo to use AJAX with struts: http://getahead.ltd.uk/dwr/ http://dojotoolkit.com/ Although dojo has some flashy widgets and stuff, its power is the dojo.io.bind() function: http://dojotoolkit.org/docs/intro_to_dojo_io.html Here is an example of using Struts A

RE: java.lang.IllegalArgumentException: can't parse argument numb er

2006-07-03 Thread Yee, Richard K CTR DMDC
Fredrik, The property value of {common.a} is causing the problem b/c the java.text.MessageFormat class is used to to parameter replacements in the message. Are you trying to use the literal string '{common.a}' as the value of the key? If so, you need to escape the '{' and '}' characters. -Richard

AW: Object field validation

2006-07-03 Thread Halgurt Mustafa Ali
Hallo all, I posted yasterday the below message. I changed my formset to: and now I am getting this error message: 16:55:35,332 ERROR [ValidatorAction] Unhandled exception thrown during validation: Null

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread Thomas Joseph
Sure!. But the site itself mentions some workaround. Morover, thanks for all your inputs,..these can definitely provide good idea to develop the application. This bieng a new application that I am developing, Dont mind playing with all of them ;-) Thanks a lot for all your inputs. But never stop.

Re: Struts and AJAX

2006-07-03 Thread Jorge Martín Cuervo
I use struts + DWR to develope ajax applications. http://getahead.ltd.uk/dwr/ El lun, 03 de 07 de 2006 a las 05:57, chamal desilva escribió: > Hi, > > Can I use struts with AJAX. Does struts has classes > and tags for AJAX or do I have write my own code. > > Thanking You, > Chamal. > > __

Re: Anti-piracy software

2006-07-03 Thread Jorge Martín Cuervo
Hi, you can use proguard to obfuscate your jar files. http://proguard.sourceforge.net/ El lun, 03 de 07 de 2006 a las 08:17, [EMAIL PROTECTED] escribió: > Hi All, > I would like to know if any anti-piracy tools available opensource that > can prevent illigal use of web related software like

Form validation not happening

2006-07-03 Thread Vinicius Carvalho
Hello there! I'm trying to use form validation (It was working, but somehow, I messed something and it quit working). Here are my files: struts-config.xml

[STRUTS] Resource bundle and form validation

2006-07-03 Thread Olivier Godineau
I use several resource bundle for my application. The particularity is the resource bundle is depending of the user?group. Here, an extract from the struts config file : When I submit a form to be validated There is no prob

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Please mind that http://acegisecurity.org/ works on Spring not Struts. > There is possibility to use Struts in Spring but I don't suppose the > opposite is possible :-( I heard that JGuard could also be helpful: http://sourceforge.net/projects/jguar

RE: Changing Role Access to Actions on the Fly

2006-07-03 Thread Stasica, Grzegorz
Hi Please mind that http://acegisecurity.org/ works on Spring not Struts. There is possibility to use Struts in Spring but I don't suppose the opposite is possible :-( -Original Message- From: Paul Benedict [mailto:[EMAIL PROTECTED] Sent: Monday, July 03, 2006 2:54 PM To: Struts Users

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread Thomas Joseph
Thanks Paul, That was a great input to my research. Now I don't have to re-invent the wheel it seems. Thanks a Bunch! Thomas Joseph - Original Message - From: "Paul Benedict" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 03, 2006 6:23 PM Subject: Re: Changing R

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread Paul Benedict
Joseph, modifying the user's permissions (not the struts action mapping), is definitely the way to go. Your app should be able to run with any framework, and so go with the advice I gave. Also check out http://acegisecurity.org/ Paul Thomas Joseph <[EMAIL PROTECTED]> wrote: Thank you Paul for

java.lang.IllegalArgumentException: can't parse argument number

2006-07-03 Thread Fredrik Andersson
Hi all I get this message when tomcat is trying to parse my struts tag. In my resource file I have a key called a.key={common.a} and this seems to break. Anyone that knows why this occures and what I can do to fix it? - To uns

[OT][ANN] JavaONE 2006 Highlights

2006-07-03 Thread Peter Pilgrim
Hi All Here is the most recent video I uploaded to Google Video. Java ONE 2006 Highlights Days 1 http://video.google.com/videoplay?docid=4414337915180627229 If you have never been to JavaONE it will give you a rough feel of this event. Featuring: Kenneth Russell, R

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread Thomas Joseph
Thanks Grzegorz, That looks great!!!. Well, I will have to look into that. Thanks again Thomas Joseph From: "Stasica, Grzegorz" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Monday, July 03, 2006 3:14 PM Subject: RE: Changing Role Access to Actions on the Fly Hi, Some time ag

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread Thomas Joseph
Thank you Paul for your comments, Adding/removing Roles, adding/removing users to roles, then permitting/forbidding various actions for these roles is what I want as the main feature of my App. I have an idea of using filter that would do explicit permissions to roles on actions, based on configu

[OT ]Frame collapse--please helppp

2006-07-03 Thread Meenakshi Singh
Hi all, I know this is not the list for this question. However, there are so many knowledgeable people out there in this list. I hope to get some help. I have the following frameset in my application. I need to collapse & expand my frame named as menu on click of a button. I have tried it with t

RE: Changing Role Access to Actions on the Fly

2006-07-03 Thread Stasica, Grzegorz
Hi, Some time ago I was looking for an answer on the same question :) Here is how I solved this issue. 1) All request goes though SecurityFilter (www.sf.net) 2) Wrapped original request with this one public class SecurityRequestWrapper extends org.securityfilter.filter.SecurityReq

Re: Struts and AJAX

2006-07-03 Thread C. Grobmeier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 > Can I use struts with AJAX. Does struts has classes > and tags for AJAX or do I have write my own code. i have used: * http://dojotoolkit.org/ with struts recently. I like this very much although this does not consist of taglibs but of pure javascri

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread Paul Benedict
I can say with mild confidence that the action mapping is "frozen" once loaded, and changes to it during runtime cannot be made. Since roles are part of a mapping, it cannot be done. But don't let the framework stop you! Just because its automated configuration features are frozen, doesn't mean

Re: Changing Role Access to Actions on the Fly

2006-07-03 Thread Thomas Joseph
I couldnt see any replies, thats why I am adding up these comments. Actually I want the application users to create groups (roles), and then assign access rights to various actions for this group. Later group membership/access rights should be editable. This should be something like how we can do

Re: Anti-piracy software

2006-07-03 Thread Leon Rosenberg
if you are developing a commercial struts application, than best prevention would be not to publish your source code. leon On 7/3/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi All, I would like to know if any anti-piracy tools available opensource that can prevent illigal use of web rela

Strtus and Portlets

2006-07-03 Thread Andy Foster
Hi all, I am about to develop a new struts app that will be ported afterwards to be used in a portlet and I plan to use the struts bridge support. I want to try and ensure that I don't break the bridge with my normal conceptual design before I start building anything. The pattern I use is to break

Struts and Hibernate

2006-07-03 Thread DOUILLARD David
Hello, I'm working on struts and hibernate. J'ai une tache qui est affectée à un utilisateur. I have a Actionform named Task. Private Integer code ; Private String codeus ; // Login of user Private String libelle; I have also a POJO Task. Private Integer code; Private User user; // Many-to-o