Re: [OT] Re: XML Help

2006-06-15 Thread Krishnakanth
Hai all, Thanks for your advise. As per Meena told I also notice that there is some text nodes comes while parsing XML file.The type of that node is Text and the value/name is something like #text For Mr.Dave: Hai Dave thanks for your mail...I think you are also

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread stephan opitz
hello, it is ok... one can develop with eclipse view it via mvn package cargo:start (start from console) thx stephan 2006/6/14, Hermod Opstvedt [EMAIL PROTECTED]: Hi The problem lies with the eclipse plugin and the maven embedder. This is fixed in the next version of the plugin Hermod

regarding role based access

2006-06-15 Thread mansooraks
Dear all, What s the difference between giving role based access with struts framework. In other way through JAAS. Which s should be taken if optional? regards, Mansoor

Re: pls help

2006-06-15 Thread Jorge Martín Cuervo
El jue, 15 de 06 de 2006 a las 01:52, Ceena Bose escribió: hi, pls help me solve the following. 1)paging using struts you can use displaytag http://displaytag.sourceforge.net/11/ in your action: List data = new ArrayList(); data.add(1); data.add(2); data.add(3);

Nested Form level

2006-06-15 Thread Hanmay Udgiri
Hi How many nested level of form we should have. Is there any limit or specification??? -- Thanks and Regards Hanmayya Udgiri

Time validator

2006-06-15 Thread Pankaj Gupta
Is there a validation-rule for time(hh:mm:ss format) as it exists for date in struts validator framework? If not, has anyone implemented it? I dont want to reinvent the wheel. regards, Pankaj - To unsubscribe, e-mail: [EMAIL

Re: Time validator

2006-06-15 Thread Truong Xuan Tinh
Hi there, here is my implementation on the client side, it's validate time against the pattern HH:mm, you can customize against HH:mm:ss with ease: validator name=time classname=MyValidatorClass method=validateTime methodParams=java.lang.Object,

Re: web.xml specifications from 2.4 to 2.3

2006-06-15 Thread Dave Newton
Ed Griebel wrote: Also, to my knowledge there is no way to just include some jar file to enable EL exprs. That's what the struts-el tags do, like we said before. You have to change your taglib references, too. http://struts.apache.org/struts-action/struts-el/index.html Dave

[OT] Re: [newb question] Turning on DEBUG level logging

2006-06-15 Thread Dave Newton
Robin Curts wrote: root priority value =debug/ appender-ref ref=appender/ /root /log4j:configuration [...] DEBUG - 06/14/2006 14:24:45.823 - [ContainerBackgroundProcessor[StandardEngine[Catalina]]] - Start expire sessions StandardManager at 1150309485823 sessioncount 1 DEBUG -

Re: [OT] Re: XML Help

2006-06-15 Thread Dave Newton
Krishnakanth wrote: I want to compare each of the key values with the previous XML(ie, from the DB) and if particular node is already existing in the PreviousXML remove that node and create a new node with the new values and insert in to the PreviousXML.If the hashtable key values are not in

RE: [newb question] Turning on DEBUG level logging

2006-06-15 Thread Darren Hall
I've got it working now. Thanks for the help everyone. Darren -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 14, 2006 5:45 PM To: Struts Users Mailing List Subject: Re: [newb question] Turning on DEBUG level logging George/Darren public class

Dynamic log names

2006-06-15 Thread Darren Hall
Hello again all, I'm using Log4j 1.2.13 with Struts 1.2.9 on Tomcat 5.5. I have the logging with Log4j now working properly and outputting log messages properly. I have a question about naming log files for my web application. I'd like to append the date into the name of my log files. Is there

html:checkbox not storing property

2006-06-15 Thread Sebastian Stein
Hi folks, I have a jsp page with a struts html:checkbox looking as follows: html:checkbox name=backupform property=enable styleClass=input/ The backupform is defined in struts-config.xml as: form-bean name=backupForm type=org.contineo.forms.BackupForm/ If I enter the page, the state of the

[shale] ajax example from use cases

2006-06-15 Thread stephan opitz
i almost understood how it works, but where the ajax form get its information... e.g.: 80632 Greeley Colorado there exist no obviously dao or source... stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: html:checkbox not storing property

2006-06-15 Thread Samere, Adam J
Browsers do not send a request parameter for check boxes that are not checked. Input of type text is always sent. I'm guessing what you see is the box not being unchecked... You need to set it in the reset method. -Original Message- From: Sebastian Stein [mailto:[EMAIL PROTECTED] Sent:

Help on Validation

2006-06-15 Thread Vishal Seth
Hi, Can I do validation for same form on basis of some session key. Currently all the validations are stored in application scope. I want depending upon user logged the validation fired should be different on same form. I would be having different validation files for different users. It

Re: html:checkbox not storing property

2006-06-15 Thread Sebastian Stein
Samere, Adam J [EMAIL PROTECTED] [060615 15:20]: Browsers do not send a request parameter for check boxes that are not checked. Input of type text is always sent. I'm guessing what you see is the box not being unchecked... You need to set it in the reset method. Great, this was already the

[OT] Re: Dynamic log names

2006-06-15 Thread Dave Newton
Darren Hall wrote: I have a question about naming log files for my web application. I'd like to append the date into the name of my log files. Is there a way that I can generate daily logs with a filename along the lines of event.2006-05-03.log and error.2006-05-03.log? You might want to

Re: [shale] ajax example from use cases

2006-06-15 Thread Wendy Smoak
On 6/15/06, stephan opitz [EMAIL PROTECTED] wrote: i almost understood how it works, but where the ajax form get its information... e.g.: 80632 Greeley Colorado there exist no obviously dao or source... It has to be in there somewhere, right?. :) $ grep -R Greeley *

Re: Help on Validation

2006-06-15 Thread Scott Van Wart
Vishal Seth wrote: Hi, Can I do validation for same form on basis of some session key. Currently all the validations are stored in application scope. I want depending upon user logged the validation fired should be different on same form. I would be having different validation files

RE: [OT] Re: Dynamic log names

2006-06-15 Thread Darren Hall
Fair enough Dave, my apologies. For those interested - The Log4j documentation doesn't appear to say anything about handling dynamic log names as I've described. The closest thing seems to be the DailyRollingAppender - however it appends the date after the '.log' (i.e. error.log.06-15-2006). I

Re: [shale] ajax example from use cases

2006-06-15 Thread stephan opitz
thx... unbelievable... i searched with windows for 80632 (file containing)... in Domains.java it is... stephan 2006/6/15, Wendy Smoak [EMAIL PROTECTED]: On 6/15/06, stephan opitz [EMAIL PROTECTED] wrote: i almost understood how it works, but where the ajax form get its information...

accessing form in jsp : urgent

2006-06-15 Thread Abhimanyu Koul
hi all! is there a way where we can access an attribute of actionform (in request scope) inside a jsp. actually, i want to do some operations in jsp based on the value of a variable of the actionform. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91 9819510090

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread Gary VanMatre
From: stephan opitz [EMAIL PROTECTED] hello, it is ok... one can develop with eclipse view it via mvn package cargo:start (start from console) This is a bit off topic but does anyone know how to configure cargo to start tomcat 5.5.x in debug mode so that you can attach in

RE: Help on Validation

2006-06-15 Thread Vishal Seth
I got the first point mentioned where I would need to override the validationKey method and not the second one. Problem here is it is not only required during login time but throughout the application there can be different validations for each form or some of the forms. Hence if I follow the

How to skip validation?

2006-06-15 Thread Jennifer Jacobs
Hello, I have a number of Struts forms that are using the Validator. This works great except for on a couple of the forms. The ones in question have two submit buttons on them. One updates the form somehow - calculates a subtotal, or adds an attachment to a list of attachments, etc. And the

Problem using contextRelative path

2006-06-15 Thread Pankaj Gupta
Hi All, I am using the following i my struts-config. The problem is that when the validations fail the application is not able to forward to the input form as the contextRelative param is not false for it(I have no idea how it can be done). Please suggest what should be done.

Re: Help on Validation

2006-06-15 Thread Scott Van Wart
Vishal Seth wrote: I got the first point mentioned where I would need to override the validationKey method and not the second one. Problem here is it is not only required during login time but throughout the application there can be different validations for each form or some of the forms.

Re: accessing form in jsp : urgent

2006-06-15 Thread Scott Van Wart
Abhimanyu Koul wrote: hi all! is there a way where we can access an attribute of actionform (in request scope) inside a jsp. actually, i want to do some operations in jsp based on the value of a variable of the actionform. Regards, Abhimanyu Koul FinEng Solutions (P) Ltd. Mobile : +91

Re: How to skip validation?

2006-06-15 Thread Scott Van Wart
Jennifer Jacobs wrote: Hello, I have a number of Struts forms that are using the Validator. This works great except for on a couple of the forms. The ones in question have two submit buttons on them. One updates the form somehow - calculates a subtotal, or adds an attachment to a list of

Re: How to skip validation?

2006-06-15 Thread Dave Newton
Jennifer Jacobs wrote: How to do I turn OFF the validation for the subtotal calculation, etc. buttons? That depends on how you turned it on. I usually just talk real sweet to it with the lights low and some soft jazz in the background. If you're using automagic validation (validate='true')

newbie question on indexed properties and validation

2006-06-15 Thread Givler, Eric
I was following this article (MS Powerpoint presentation by James Turner) here: http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt When, I tried to cobble this all into a working example, if I left out multiple values (in a four record grid), I'd get one struts validation error

Re: How to skip validation?

2006-06-15 Thread Dave Newton
Scott Van Wart wrote: The only problem there is you can't rely on the input attribute of the action to return to the form and would have to use an action forward instead Why's that? I've been using mapping.getInputForward (or whatever the method is). Dave

RE: Help on Validation

2006-06-15 Thread Vishal Seth
Yep I agree. But writing plugins would not help as plugin would be loaded during the application load time. Can there be some thing which can be looked at or any ideas on what could be the better way to implement this sort of condition? Thanks for your help. -Original Message- From:

RE: [HELP] bean:define and Map

2006-06-15 Thread Samere, Adam J
There are probably numerous ways to accomplish this, what I like to do is define/instantiate the Map using the jsp:useBean/ tag, then set the key/value pairs using the c:set/ tag from JSTL. jsp:useBean id=paramsMap class=java.util.HashMap/ You MUST to use a concrete implementation of

Re: [HELP] bean:define and Map

2006-06-15 Thread Garner Shawn
Thanks, this works. Can you explain to me why I couldn't do the same thing with bean:define? On 6/15/06, Samere, Adam J [EMAIL PROTECTED] wrote: There are probably numerous ways to accomplish this, what I like to do is define/instantiate the Map using the jsp:useBean/ tag, then set the

Re: Help on Validation

2006-06-15 Thread Scott Van Wart
Vishal Seth wrote: Yep I agree. But writing plugins would not help as plugin would be loaded during the application load time. Can there be some thing which can be looked at or any ideas on what could be the better way to implement this sort of condition? Thanks for your help. Can you

Re: How to skip validation?

2006-06-15 Thread Scott Van Wart
Dave Newton wrote: Scott Van Wart wrote: The only problem there is you can't rely on the input attribute of the action to return to the form and would have to use an action forward instead Why's that? I've been using mapping.getInputForward (or whatever the method is). You cut

Re: Help on Validation

2006-06-15 Thread Dave Newton
Scott Van Wart wrote: Can you give an example? I'm still not completely positive I know what the problem is, and if you really need this kind of complexity. I think he was asking if there was a way to declaratively define validations based on runtime dynamics, like the user name. This strikes

RE: Help on Validation

2006-06-15 Thread Vishal Seth
Even I think a wrapper on commons validation would be required in this sort of situation. Where the validations are fired on basis of a certain filter. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 15, 2006 9:58 PM To: Struts Users Mailing List

RE: [HELP] bean:define and Map

2006-06-15 Thread Samere, Adam J
The bean:define tag can create new attributes and scripting variables of type String or create a copy of an existing bean or property on an existing bean. The standard jsp:useBean covers creating a new instance of any class with a default constructor, so why duplicate that functionality in a

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread Wendy Smoak
On 6/15/06, Gary VanMatre [EMAIL PROTECTED] wrote: This is a bit off topic but does anyone know how to configure cargo to start tomcat 5.5.x in debug mode so that you can attach in eclipse for interactive debuging? I've messed with the cargo.jvmargs but didn't have any luck. Hmmm...

Advice on hanlding multi-select options that need a regular submit on form, plus a submit to popup window

2006-06-15 Thread Rick Reumann
I'm looking for advice on how to best handle this situation. I have a form with several multi-select drop downs. There is a typical submit button that submits the form. What I also have is another button within the form called preview distribution which needs to take the data on the form and up

Re: Help on Validation

2006-06-15 Thread Rick Reumann
On 6/15/06, Vishal Seth [EMAIL PROTECTED] wrote: Can there be some thing which can be looked at or any ideas on what could be the better way to implement this sort of condition? Do you really 'have' to bother using validate='true'? Personally, I still find it much more conveineint to validate

Re: [HELP] bean:define and Map

2006-06-15 Thread Garner Shawn
I'm just use to using it with Strings I guess and when I went to use it with a HashMap it didn't work like I though it was suppose to. I thought it alway created a new instance of the class regardless of type String or not. I understand not duplicating something built into JSP. Thanks for the

Re: Help on Validation

2006-06-15 Thread Garner Shawn
I like to put any basic validations like required fields, field size, and content (alphanumeric, date format) into the form. Anything that requires a database call or extended business logic I do in the action and delegate it off to a business/DAO class. I find it is easier to manage things if

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread Gary VanMatre
From: Wendy Smoak [EMAIL PROTECTED] On 6/15/06, Gary VanMatre wrote: This is a bit off topic but does anyone know how to configure cargo to start tomcat 5.5.x in debug mode so that you can attach in eclipse for interactive debuging? I've messed with the cargo.jvmargs but didn't have

[OT] RE: Dynamic log names

2006-06-15 Thread George.Dinwiddie
You could generate files named like event.log.2006-05-03 using the DailyRollingFileAppender. See http://logging.apache.org/log4j/docs/api/org/apache/log4j/DailyRollingFi leAppender.html Or you could write your own appender. -Original Message- From: Darren Hall [mailto:[EMAIL

Re: Struts and RMI

2006-06-15 Thread Leon Rosenberg
Hi, sounds pretty much like our architecture, except we are using CORBA instead of RMI (corba is faster). Since RMI is pretty tied to java I would strongly encourage you to write a java-file generator, which generates a facade on top of the rmi interfaces, hiding error handling and

what on earth is a session

2006-06-15 Thread Carl Smith
Folks, I am working on some issues related to session. I would like to know if the following are true: (1) the number of the concurrent online user may or may not be the same as the number of sessions (2)simply put, when you open one browser and visit a website, the

Re: what on earth is a session

2006-06-15 Thread Wendy Smoak
On 6/15/06, Carl Smith [EMAIL PROTECTED] wrote: (2)simply put, when you open one browser and visit a website, the server(Websphere for example) creates one session, then if you open another browser in the same computer, the sever will create another session. Is this understanding correct?

Re: what on earth is a session

2006-06-15 Thread Carl Smith
Our app has a session over flow issue and I am trying to find out a correct maximum sessions that the server can live with and the configure it. I was confused when people say concurrent user and concurrent sessions. From your answers it seems all my under sanding were close to be right.

Re: what on earth is a session

2006-06-15 Thread Leon Rosenberg
well it depends a lot on your application. in a specific case concurrent sessions are greater than concurrent users, but if you can drive your webapp stateless, you could have more users than sessions. However, typically each visitor of your site will get a new session, even without logging so,

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread Wendy Smoak
On 6/15/06, Gary VanMatre [EMAIL PROTECTED] wrote: My second attempt was to add the cargo.jvmarg to the /shale-apps pom.xml: build finalName${artifactId}/finalName plugins plugin groupIdorg.codehaus.cargo/groupId

Re: what on earth is a session

2006-06-15 Thread John Walker
Carl, Which application is giving you the session overflow message? Apache, IIS, etc? Regards, John Walker On 6/15/06, Leon Rosenberg [EMAIL PROTECTED] wrote: well it depends a lot on your application. in a specific case concurrent sessions are greater than concurrent users, but if you can

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread Gary VanMatre
From: Wendy Smoak [EMAIL PROTECTED] On 6/15/06, Gary VanMatre wrote: My second attempt was to add the cargo.jvmarg to the /shale-apps pom.xml: build finalName${artifactId}/finalName plugins plugin groupIdorg.codehaus.cargo/groupId

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread Craig McClanahan
On 6/15/06, Gary VanMatre [EMAIL PROTECTED] wrote: From: Wendy Smoak [EMAIL PROTECTED] On 6/15/06, Gary VanMatre wrote: My second attempt was to add the cargo.jvmarg to the /shale-apps pom.xml: build finalName${artifactId}/finalName plugins plugin

Re: [shale] using the eclipse ide (maybe ith ant or maven2)

2006-06-15 Thread Gary VanMatre
From: Craig McClanahan [EMAIL PROTECTED] On 6/15/06, Gary VanMatre wrote: From: Wendy Smoak On 6/15/06, Gary VanMatre wrote: My second attempt was to add the cargo.jvmarg to the /shale-apps pom.xml: ${artifactId} org.codehaus.cargo

Re: Advice on hanlding multi-select options that need a regular submit on form, plus a submit to popup window

2006-06-15 Thread Rick Reumann
Yes, I can do the below but I was going to try to avoid having to use javascript to get the selected values and do the setting etc. Actually what I came up with works pretty well and others might want to use it. So here it is (for when you want to submit your form from a different link/button to

urgent- exception in sending e-mail from application

2006-06-15 Thread Patil, Sheetal
Hello friends I am trying to send mail from my application Here is the code Properties properties = System.getProperties (); properties.put (mail.smtp.host,smtp host name); Session session = Session.getDefaultInstance (properties,null);

urgent- exception in sending e-mail from application

2006-06-15 Thread Patil, Sheetal
Hello friends I am trying to send mail from my application Here is the code Properties properties = System.getProperties (); properties.put (mail.smtp.host,smtp host name); Session session = Session.getDefaultInstance (properties,null);

Re: urgent- exception in sending e-mail from application

2006-06-15 Thread Mon Cab
Patil Your smtp server may require authentication. Find out and, if so, Add the following lines to your code. class MyAuthenticator extends Authenticator { protected PasswordAuthentication getPasswordAuthentication() { PasswordAuthentication pa =

OT: Tomcat not setting session cookies ? Please help :(

2006-06-15 Thread Mon Cab
Hi All of a sudden tomcat has stopped settign session cookies. I have been developing on my local machine for approx 1yr. Now, When I goto my webapps home page: http:/127.0.0.1:8080/webapp), tomcat is rewriting the URL as

RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Patil, Sheetal
Hi thx for reply I have tried to use the authentication, as u describe but still the exception is same Thanks Shital -Original Message- From: Mon Cab [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 10:48 AM To: Struts Users Mailing List Subject: Re: urgent- exception in sending

Action Forms in Session

2006-06-15 Thread deepali sharma
Hi We are using struts.And in our application we are putting all forms in session. After completing the transaction we are clearing the form values. Is that after the transaction the forms are in session or will be deleted?? If I want to get which objects are in session how we can get that??? Is

Re: OT: Tomcat not setting session cookies ? Please help :(

2006-06-15 Thread priyadarsh kankipati
Hi Recently I deployed an application in Tomcat. I am also facing the same problem. And is there any way that I can change the session name instead of jsessionID? My application uses another another session name as resin server has that flexibilty. Can any one help in this regard? It would be

RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Patil, Sheetal
Hi again I have made some change in code like Transport tran=session.getTransport (); tran.send (message); now this change is giving me exception like javax.mail.NoSuchProviderException: Invalid protocol: null so please help me to resolve this Shital

Re: Action Forms in Session

2006-06-15 Thread paz . periasamy
session. getAttributes () will give you a list Thanks and regards, Pazhanikanthan. P (Paz) Consultant for AXA, HCL Australia Services Pty. Ltd. Off : +61-3-9618-4085 Mob : +61-0411-354-838 deepali sharma [EMAIL PROTECTED] 16/06/2006 03:28 PM Please respond to Struts Users Mailing List

RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Mon Cab
Are you on the same network as the SMTP host? Can you ping the host? --- Patil, Sheetal [EMAIL PROTECTED] wrote: Hi thx for reply I have tried to use the authentication, as u describe but still the exception is same Thanks Shital -Original Message- From: Mon Cab

Re: OT: Tomcat not setting session cookies ? Please help :(

2006-06-15 Thread Craig McClanahan
On 6/15/06, Mon Cab [EMAIL PROTECTED] wrote: Hi All of a sudden tomcat has stopped settign session cookies. I have been developing on my local machine for approx 1yr. Now, When I goto my webapps home page: http:/127.0.0.1:8080/webapp), tomcat is rewriting the URL as

RE: urgent- exception in sending e-mail from application

2006-06-15 Thread Patil, Sheetal
Ye I can ping to host Pinging smtp-host-name [IP] with 32 bytes of data: Reply from IP: bytes=32 time=361ms TTL=125 Reply from IP: bytes=32 time=323ms TTL=125 Reply from IP: bytes=32 time=326ms TTL=125 Reply from IP: bytes=32 time=252ms TTL=125 Ping statistics for IP: Packets: Sent = 4,

Re: OT: Tomcat not setting session cookies ? Please help :(

2006-06-15 Thread Mon Cab
Thanks Craig Tomcat is not only doing this on the first page, but also on all the subsequesnt pages. And theres no jsessionid cookie in the cookie folder. I also disabled the firewall, to see if the cookie was being blocked there. Do you know how something like this might happen? --- Craig