RE: Struts based opensource e-Learning/Distance Learning framework

2006-08-02 Thread Tejas Bavishi
Hi I doubt if there are any ready made frameworks such as the ones you are looking for. Probably, you are going to have to write one on your own. Also, you can publish the framework once done or may be start it as a project on sourceforge. It will be interesting to see what others have to say on

Re: Client Side Validation

2006-08-02 Thread Irwan Nurwandi
Dear Chetan Look at your bean form definition in your validation.xml if you specify the form bean like this : then you should call generated javascript with this the first letter in form bean name shouls be in lowercase also... HTH Irwan On 8/3/06, Chetan Pandey <[EMAIL

Struts based opensource e-Learning/Distance Learning framework

2006-08-02 Thread Raghu Kanchustambham
Hi, I am interested in building a e-Learning/Distance learning framework. Was wondering if there is any framework that exists that I can use as a starting point. First preference would be for a struts based application since I need to integrate it with my existing struts code. But anything in Jav

RE: Client Side Validation

2006-08-02 Thread Chetan Pandey
Hi All: This is what I am doing. . . . . . . But the Code only does Server Side Validation. Am I missing naything pls. Thanks. Chetan Pandey -Original Message- From: Romu [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 02, 2006 3:28 PM To: Struts Users Mailing List Subject: Re

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread apka2109
Hi Ted, Where can I find xwork-j4 jar. I am not able to find it in struts2-core-j4-2.0.0-SNAPSHOT-20060801.zip. Thanks, Aparna -- View this message in context: http://www.nabble.com/Struts-2-snapshot-build-work-on-JDK-1.4.2--tf1993746.html#a5626756 Sent from the Struts - User forum at Nabbl

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread apka2109
Hi Ted, Where can I find Xwork-j4 jar. I am not able to find it in struts2-core-j4-2.0.0-SNAPSHOT-20060801.zip. Thanks, Aparna -- View this message in context: http://www.nabble.com/Struts-2-snapshot-build-work-on-JDK-1.4.2--tf1993746.html#a5626722 Sent from the Struts - User forum at Nabbl

Re: problem w.r.t javascript

2006-08-02 Thread Rauf Khan
Hi Velmurugan, Thanks for the link. Iam learning struts, after going through this link only iam able to modify my code. The code given in this site works fine. But the problem is in the "name field" modify depends="required, mask, minlength, maxlength", In "address field" modify depends="re

Re: FormDef

2006-08-02 Thread Hubert Rabago
On 8/2/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote: On 7/20/06, Hubert Rabago <[EMAIL PROTECTED]> wrote: > FormDef support nested beans, and nested collections of beans. If you > had a nested Address object, your form would look like: > > > > In your example Address is nested within Acti

Re: Find out the old url after struts forwarding

2006-08-02 Thread Frank W. Zammetti
It's already there, as a request attribute, under the key "org.apache.struts.action.mapping.instance", or more precisely, under the key named by the value of Globals.MAPPING_KEY. Frank -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com AIM/Yah

Re: FormDef

2006-08-02 Thread Michael Jouravlev
On 7/20/06, Hubert Rabago <[EMAIL PROTECTED]> wrote: FormDef support nested beans, and nested collections of beans. If you had a nested Address object, your form would look like: In your example Address is nested within ActionForm, right? What if I have an object like Person having Address

Re: Messages and Validator

2006-08-02 Thread Laurie Harper
There's no reason a database-backed message bundle can't load all its messages in one go and cache them. That's all the standard property file-backed implementation does. To provide an alternate message bundle implementation, you just need to configure a custom factory in struts-config.xml; se

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
Pass it to the JSP from the action in the request object? action form? session? Pick your poison. request.setAttribute("URL", mapping.getPath() + "?language=swahili"); On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: But how would I use a mapping.getPath() inside a jsp? mario -- View this

Re: Find out the old url after struts forwarding

2006-08-02 Thread Michael Jouravlev
On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: Hi guys, I have this problem: I'm using websphere 4, wth JDK 1.3 and J2EE 1.2, and struts. I have set an action that after doing some coding would forward (redirect=false) to a jsp. In the browser url I correctly see the .do url. If in that page I

Re: Find out the old url after struts forwarding

2006-08-02 Thread Wbyeats
But how would I use a mapping.getPath() inside a jsp? mario -- View this message in context: http://www.nabble.com/Find-out-the-old-url-after-struts-forwarding-tf2042007.html#a5623015 Sent from the Struts - User forum at Nabble.com.

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
mapping.getPath() On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: > I suppose you could get the http referer but it would have nothing to do > with what you see in the browser address bar. > req.getHeader("Referer"); Nope, that's not what I want. I need this as I want to make a link to reload p

Re: Find out the old url after struts forwarding

2006-08-02 Thread Wbyeats
> I suppose you could get the http referer but it would have nothing to do > with what you see in the browser address bar. > req.getHeader("Referer"); Nope, that's not what I want. I need this as I want to make a link to reload page changing the language. So I want the url of the page I'm seein

Accepting multiple date masks with the "date" validator

2006-08-02 Thread Scott Van Wart
I have a requirement in my project that I be able to accept two different date masks. One with slashes (thus, 10 characters) and one without (8 digits). Is there any way to do this with the stock date validator, or do I need to roll my own wrapper? Thanks, Scott ---

Re: Find out the old url after struts forwarding

2006-08-02 Thread Monkeyden
I suppose you could get the http referer but it would have nothing to do with what you see in the browser address bar. req.getHeader("Referer"); On 8/2/06, Wbyeats <[EMAIL PROTECTED]> wrote: Hi guys, I have this problem: I'm using websphere 4, wth JDK 1.3 and J2EE 1.2, and struts. I have s

Find out the old url after struts forwarding

2006-08-02 Thread Wbyeats
Hi guys, I have this problem: I'm using websphere 4, wth JDK 1.3 and J2EE 1.2, and struts. I have set an action that after doing some coding would forward (redirect=false) to a jsp. In the browser url I correctly see the .do url. If in that page I ask for a request.getRequestURI() I get the url

Re: Messages and Validator

2006-08-02 Thread Romu
interesting question , but u will suffer low performance i think ( one database access for each message ? ) . i think if it's in a property file it's for simulate a static class . 2006/8/2, Jean-Marie Pitre <[EMAIL PROTECTED]>: Hello, I am using Validator framework with a Struts applicatio

Re: Has anyone had this problem? Getting 3 question marks ??? at top of HTML page using action class and rendering JSP in browser

2006-08-02 Thread Ed Griebel
There's not much to go on, but check to see that all keys referenced in are defined in the appropriate message properties files. Look at in your struts-config.xml file to see what properties files are included. -ed On 8/2/06, Patterson, Marie E [CPB] <[EMAIL PROTECTED]> wrote: Has anyone had

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread Ted Husted
Feel free. Note that I included a README and the relevant license files in the S2-for-J4 distribution, which we might want to include in the nightly process. -T. On 8/2/06, James Mitchell <[EMAIL PROTECTED]> wrote: Would you like me to add this to the nightly process? -- James Mitchell 678.91

Has anyone had this problem? Getting 3 question marks ??? at top of HTML page using action class and rendering JSP in browser

2006-08-02 Thread Patterson, Marie E [CPB]
Has anyone had this problem? Getting 3 question marks ??? at top of HTML page using action class and rendering JSP in browser Thank you - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECT

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread James Mitchell
Would you like me to add this to the nightly process? -- James Mitchell 678.910.8017 On Aug 2, 2006, at 6:38 AM, Ted Husted wrote: On 8/2/06, Don Brown <[EMAIL PROTECTED]> wrote: Ah, yeah, we'll have to run XWork through the retrotranslater/weaver too, as it is built with Java 5. Ted, ca

Re: Unlock Your Hidden Talent, Today...

2006-08-02 Thread James Mitchell
Um, ya. Thanks for playing! -- James Mitchell 678.910.8017 On Aug 1, 2006, at 9:15 AM, John wrote: Is there something about yourself that you'd love to change? If you could create positive changes in yourself RIGHT NOW would you? www.HumanDataTransfer.com --- MAF Anti-Spam ID: 20060801

Re: two form one jsp

2006-08-02 Thread Michael Jouravlev
http://www.w3.org/TR/REC-DOM-Level-1/level-one-html.html#ID-36113835 On 8/1/06, Monkeyden <[EMAIL PROTECTED]> wrote: Caroline (or Jen?) All I can say is "Wow!" document.getElementById() only works in IE, not FF. Your response is an arduous elaboration of my document.forms[0] and document.forms

Re: Batch files from JSP

2006-08-02 Thread Bart Busschots
My advice would be to be more specific in the command you shell out with and directly call the perl executable. Something like: Process pr= rt.exec("c:\\Path_to_perl\\perl.exe c:\\Program Files\\Apache Software Foundation\\Tomcat 5.5\\webapps\\sheet\\batch\\db.PL"); Bart. Akshay Ahooja wrote

Re: Batch files from JSP

2006-08-02 Thread Akshay Ahooja
Thanks for that... I went over that document and a few others on Google...the batch file is still not working out. Instead of a batch file if I try and execute a perl script (.PL) located on the host from a remote computer ... Process pr= rt.exec("c:\\Program Files\\Apache Software Foundation\\

Re: two form one jsp

2006-08-02 Thread Parvat Singh Ranawat
Hi All n Kalpesh, Here I can use seperate formBean but this may not be good practice... actually somebody suggested me to pass the form object as parameter in function while calling java script like

Re: Sturts form validation

2006-08-02 Thread Hanmay Udgiri
hi curently i am doing like this only?? but there any other way to call the validate mehtod of all the forms On 8/2/06, Monkeyden <[EMAIL PROTECTED]> wrote: If I understand you correctly If you have references to the "subforms" within an "outter form", just call each subform's validate

Re: Removing page from browser history

2006-08-02 Thread Frank W. Zammetti
FYI, Michael Jouravlev has spoken quite a bit about "controlling" the browser history via the PRG pattern: http://www.theserverside.com/tt/articles/article.tss?l=RedirectAfterPost Another alternative is to use AJAX techniques. AJAX requests do not get stored in the browser's history, hence the b

Re: Nested tiles layouts

2006-08-02 Thread Antonio Petrelli
Antonio Petrelli ha scritto: Whoops, I actually meant: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Nested tiles layouts

2006-08-02 Thread Antonio Petrelli
Matt Kurjanowicz ha scritto: That is what I get - sorry I confused myself with my example. No problem, I thought really it was a Tiles bug :-) Ok if I understood you correctly, you wish to override an attribute that has been put inside another definition, right? In this case, you cannot do thi

Re: Removing page from browser history

2006-08-02 Thread kalpesh modi
Have you tried using redirect in your action mapping? It should work. Thanks, -Kalpesh - How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Re: Removing page from browser history

2006-08-02 Thread Bart Busschots
I wouldn't rely on the client side for this. With FireFox and a few extensions you can have your wicked way on the client side and send anything you want to the server. Hence it's up to the server to look after security not the client. If you rely on the client alone your system will be very vu

Re: DHTML and Struts

2006-08-02 Thread Frank W. Zammetti
Any form elements created dynamically on the client-side will have no intrinsic link to the ActionForm. However, this is not necessarily a problem... imagine if your ActionForm has this in it: private String firstName; public void setFirstName(String inFirstName) { firstName = inFirstName; } pu

Re: Nested tiles layouts

2006-08-02 Thread Matt Kurjanowicz
On 8/2/06, Antonio Petrelli <[EMAIL PROTECTED]> wrote: : Library Home -- LIB DEFAULT -- Ciao Antonio That is what I get - sorry I confused myself with

Re: two form one jsp

2006-08-02 Thread kalpesh modi
Is it not possible to use two seperate form beans? -Kalpesh - How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates.

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread Ted Husted
Did you replace the XWork JAR with the XWork-J4 JAR, so that the XWork-J4 is the only one on the classpath at runtime? -T. On 8/2/06, apka2109 <[EMAIL PROTECTED]> wrote: I took the zip few minutes back and was getting same exception, so thought it is not updated. Thanks -Aparna -- View this m

Re: Nested tiles layouts

2006-08-02 Thread Antonio Petrelli
Matt Kurjanowicz ha scritto: Hi, I've seen a few threads similar to this, but nothing with my specific problem. Suppose I have a tiles definition file, with the following definitions: ... Now suppose that I have the following JSP pages: stdLayout.jsp: " /> I ca

validate integer with a comma thousands seperator using Validator

2006-08-02 Thread fea jabi
Using struts validator. have to validate the user entered value. The value entered should be a positive integer with a comma thousands seperator. the number need not be in thousands. I have as below to check for positive integer without comma seperator. but not sure how to validate if the us

Nested tiles layouts

2006-08-02 Thread Matt Kurjanowicz
Hi, I've seen a few threads similar to this, but nothing with my specific problem. Suppose I have a tiles definition file, with the following definitions: Now suppose that I have the following JSP pages: stdLayout.jsp: " />

Re: two form one jsp

2006-08-02 Thread Parvat Singh Ranawat
hi , The problem in using document.form[0]. and document.form[1] for first and second form respctively first form comes from Header.jsp and second form from myFoo.jsp and Header is there through out Application and the functionality that is part of Header that I need to write in myFoo.jsp there

Re: [OT] How to limit tomcat sessions

2006-08-02 Thread Tamas Szabo
Hi, not sure if you can do it in Tomcat, but you can surely do it with the SessionLimiterFilter from Java Web Parts: http://javawebparts.sourceforge.net/ It limits sessions per application and it isn't Tomcat specific. Hope it helps, Tamas On 8/2/06, Pankaj Gupta <[EMAIL PROTECTED]> wrote

Re: [OT] A question on garbage collecting

2006-08-02 Thread Leon Rosenberg
Thank you Tamas, On 8/2/06, Tamas Szabo <[EMAIL PROTECTED]> wrote: Hi Leon, I doubt I have more experience :-) but as I know soft references are collected when the GC decides to do so. The only thing you can be sure of is that they will be collected _if_ the VM is running out of memory. But th

Messages and Validator

2006-08-02 Thread Jean-Marie Pitre
Hello, I am using Validator framework with a Struts application. I would like to know if it is possible to use message provided by a database (or java class) rather than a propertie file ? Thank you, Jean-Marie. --- Email Disclaimer http://www.cofidis.be/emaildisclaimer.php -

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread apka2109
I took the zip few minutes back and was getting same exception, so thought it is not updated. Thanks -Aparna -- View this message in context: http://www.nabble.com/Struts-2-snapshot-build-work-on-JDK-1.4.2--tf1993746.html#a5611859 Sent from the Struts - User forum at Nabble.com. -

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread Ted Husted
On 8/2/06, apka2109 <[EMAIL PROTECTED]> wrote: If you can place the updated builds or post a updated zip , I can test it and let you know how it works. Yes, the ZIP is updated, I just didn't rename it. -T. - To unsubscribe,

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread apka2109
Hi Ted, If you can place the updated builds or post a updated zip , I can test it and let you know how it works. Thanks, Aparna -- View this message in context: http://www.nabble.com/Struts-2-snapshot-build-work-on-JDK-1.4.2--tf1993746.html#a5611772 Sent from the Struts - User forum at Nab

Removing page from browser history

2006-08-02 Thread Raghuveer
I am able restrict the user going back to previous page from current page by browser "BACK" button. window.history.forward(1); How to restrict the user going to previous page by removing the Previous page accessed by user from BROWSER HISTORY(Cntrl+H in IE). I am using Struts Tiles Web applicat

Re: Struts 2 snapshot build work on JDK 1.4.2?

2006-08-02 Thread Ted Husted
On 8/2/06, Don Brown <[EMAIL PROTECTED]> wrote: Ah, yeah, we'll have to run XWork through the retrotranslater/weaver too, as it is built with Java 5. Ted, can you make the build changes to XWork too? If you need commit access, let Pat or Jason know. For now, I just ran the J5 JARs through the

Re: Batch files from JSP

2006-08-02 Thread Thomas Joseph
May be you can google "Java runtime exec" I found this one good. - http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html Hope this can help Thanks and Regards, Thomas Joseph Kott Software Pvt. Ltd. | Vallamattom Estate | M.G.Road | Cochin-682015 | India www.kottsoftware.com

[OT] How to limit tomcat sessions

2006-08-02 Thread Pankaj Gupta
Hi All, I want to limit the number of user sessions to 25. Is it possible to do it directly through tomcat configurations? If yes, then are the sessions limitations per applications deployed or on the whole? regards, Pankaj

Re: Sturts form validation

2006-08-02 Thread Monkeyden
If I understand you correctly If you have references to the "subforms" within an "outter form", just call each subform's validate() method in the outter forms validate() method. Couldn't tell you how you'll get Struts to auto-populate those subforms though. MainActionForm{ validate(...){ myS

Re: Client Side Validation

2006-08-02 Thread Romu
your form shoud have been named : attendeeDetailsForm, like bean no caps for first letter . then validateAttendeeDeta onsubmit="validateAttendeeDeta > > ilsForm (); or validateAttendeeDeta onsubmit="validateAttendeeDeta > > ilsForm (this); > u can see the javascript generated in the sour

Sturts form validation

2006-08-02 Thread Hanmay Udgiri
Hi I have a form which consists of around another 5 forms object. And each form has its own validation.How to call the validate method of the each forms?? -- Thanks and Regards Hanmayya Udgiri