RE: Action forward to another action without form

2003-07-06 Thread Nicolas Seinlet
IU have a simple struts application. I've begin with a login page, and a list, where you can add, edit or delete items in this list. The list is composed of 2 datas (a number and a string). The add function run OK, the delete function too. But the edit function is a bit harder to run... I've the

[Q] Struts 1.0 or 1.1 ?

2003-07-06 Thread Riaan Oberholzer
I have a web-app that uses the basic stuts stuff: form checking, mappings, etc. No hardcore or advanced features. It works fine in Struts 1.0.2 and after upgrading and making the minor tweaks, also on 1.1. But is it necessary to move up to 1.1? What do I gain? Is the implementation of the function

[Q] Struts 1.1 & Commons Logging

2003-07-06 Thread Riaan Oberholzer
I just converted a Struts 1.0.2 application to Struts 1.1. The first thing I noticed was the increased level of logging. I read a few threads and the commons documentation, but I cannot seem to disable the logging, or at least set it to another level. I read the commons-logging.properties file sho

RE: Error Message From Action Class

2003-07-06 Thread Anurag Garg
Yes..."NAMING" property is already there in the resource properties file... This is my global forward mapping.. -Original Message- From: Dan Tran [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 12:19 PM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: Re: Error Message F

Re: Error Message From Action Class

2003-07-06 Thread Dan Tran
Did you define a property called "NAMING" in your resource properties file? -D - Original Message - From: "Anurag Garg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 06, 2003 11:36 PM Subject: Error Message From Action Class > Hi All, > > In my Action class, If i get an

Error Message From Action Class

2003-07-06 Thread Anurag Garg
Hi All, In my Action class, If i get any exception I am populating my ActionErrors object and passing that object in saveErrors method of the Action Class. Then I redirect the navigation to an error page defined in global forward where i am using to display the error message.

Re: extending Action problems

2003-07-06 Thread Billy Ng
Hey Andrew, in fact, your hacky way works out pretty well. I use the hastable to hold the ActionContexts. I am going to do the hammer test to see if it hurts anything on the performace. Thanks, Andrew! Billy Ng private final static HashTable threadTable = new HashTable(100); public ActionForwa

Re: question about depends attribute in validator-rule.xml

2003-07-06 Thread Kelvin wu
Hi, could anyone tell me the meaning of depends attribute of validator element in validator-rules.xml? - Original Message - From: "Kelvin wu" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Friday, July 04, 2003 6:40 PM Subject: question about depends attri

Re: db connection pooling

2003-07-06 Thread Micael
Use a plugin. At 10:09 AM 7/7/03 +0530, you wrote: Hi, Is there any ways to achieve db connection pooling and access of such pooled connection though jndi in struts action classes. Regards, Jailani.S - To unsubscribe, e-mail:

html:img and nested:img problems

2003-07-06 Thread Kornelis Sietsma
I am trying to write some images to a web page, where the image source comes from a servlet. The only thing I can get to work reasonably is to use a raw html tag, with struts tags to write all the parameters - for example: (note 'cell' is a bean with various useful properties including a paramet

RE: Missing message Exception

2003-07-06 Thread Sinclair, Mark
In web.xml try /dynaform/ApplicationResources -Original Message- From: Saroj Kumar Choudhury [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 7:28 AM To: Struts Users Mailing List Subject: Missing message Exception Hi, I am new to Struts World. I wanted to do one Login Applicati

RE: db connection pooling

2003-07-06 Thread J, Sadhasivam (Cognizant)
That depends upon the Server Infrastruture. U can implement connection pooling and Datasournce throught the strutsconfig datasournce seqment. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: db connec

RE: db connection pooling

2003-07-06 Thread Navjot Singh
why not? Simply configure one jndi data source in struts-config and you are on. HTH -navjot |-Original Message- |From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] |Sent: Monday, July 07, 2003 10:09 AM |To: [EMAIL PROTECTED] |Subject: db connection pooling | | |Hi, | |Is there any ways to

RE: [OT] - Realm Security - How to set overlapping constraints?

2003-07-06 Thread Navjot Singh
Thanks Craig, Reversing the order of constraints does work. I should have RTFM. But now, there is another problem. When "user" is authenticated once, and then i accessed a resource that needs login to "admin". It simply throws 403. Can't it throw LOGIN PAGE? I can replace the default 403 page wit

db connection pooling

2003-07-06 Thread jailani . s
Hi, Is there any ways to achieve db connection pooling and access of such pooled connection though jndi in struts action classes. Regards, Jailani.S This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transm

RE: extending Action problems

2003-07-06 Thread Andrew Hill
Ahhh... this might interest you. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5395 Its an enhancement request for struts (to have an ActionContext object) that Ted apparently logged a while ago and has re-opened to look at now that 1.1 is out the door. Im wondering though if its worth logging

Re: Webapp Security?

2003-07-06 Thread Rick Reumann
On Thu, 2003-07-03 at 16:42, Craig R. McClanahan wrote: > > > Why are you trying to mess with the container's implementation of > authentication at all? Why not just write a Filter that does an > RD.forward() to some safe place if it sees that the session does not > contain the right stuff (bec

Re: Why html:xxx tags? / Dreamweaver and .do extension

2003-07-06 Thread Denis Baranov
Oh-oh. Another limitation? WYSIWYG HTML anymore? Anybody? (nesting rocks indeed) Denis. Andrew Hill wrote: Another plus to the struts tags is the nesting ability, which imho rocks! (Though Im not actually using JSP so had to render the nesting details the hard way...) -Original Message-

Missing message Exception

2003-07-06 Thread Saroj Kumar Choudhury
Hi, I am new to Struts World. I wanted to do one Login Application, using DynaValidatorForm. while accessing http://localhost:7001/dynaForm I am getting the following error message: <[WebAppServletContext(3512032,dynaF orm,/dynaForm)] Root cause of ServletException javax.servlet.jsp.JspExcep

RE: Why html:xxx tags? / Dreamweaver and .do extension

2003-07-06 Thread Andrew Hill
Another plus to the struts tags is the nesting ability, which imho rocks! (Though Im not actually using JSP so had to render the nesting details the hard way...) -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED] Sent: Sunday, 6 July 2003 05:02 To: Struts Users Mailing List Subj

Validate() in netscape

2003-07-06 Thread sriram
I'm using Struts 1.0 and I have written some validations in the validate() method in ActionForm . For example, some of the fields on the form are mandatory and so if the form is submitted with giving input in those fields, appropriate messages are displayed. This is working fine in Internet Expl

RE: javascipt error in IE

2003-07-06 Thread Andrew Hill
Yes. Its a big nuisance. Ive had to stick with IE5 and hope if it works in 5 it works in 6. Not always the case , but more so than the other way round! Glad to say Ive had no trouble running NS6 and Mozilla together on the same machine - at the same time too. -Original Message- From: Da

Re: javascipt error in IE

2003-07-06 Thread David Graham
--- Adam Hardy <[EMAIL PROTECTED]> wrote: > Well, I just upgraded to IE6 (SP1) and I don't get any errors for credit > > card nor required, nor in fact any errors at all. I just checked to make > > sure javascript errors were notified. > > I seem to have wiped out IE5.5, which I wanted to keep f

RE: extending Action problems

2003-07-06 Thread Andrew Hill
1.) Probably not ;-) 2.) Yes. Ive never tried my hacky way - I only thought it up while I was thinking about your problem, so there is a good chance that it wont work as expected. (And worse = if it fails its likely to fail in a subtle way that is hard to reproduce consistently as it will probably

Re: How can I set the defualt selection?

2003-07-06 Thread Caroline Jen
I have similar questions. What is the syntax of the tag? Just take the example given by you, are the codes shown below correct? Will the default selection shown? JPJ --- leonZ <[EMAIL PROTECTED]> wrote: > I make it more clear here: > > A normal html: > > first

Re: How can I set the defualt selection?

2003-07-06 Thread leonZ
I make it more clear here: A normal html: first second third how can I use the 'SELECTED' to set a defualt option with struts tags. ... "leon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am a beginner of struts. I can't use t

Re: Action forward to another action without form

2003-07-06 Thread Frances Aleah Z. de Guzman
you can define it to your forward in your struts-config, instead of forwarding it to a page, forward it to an action. but this is not a good practice though. On Monday 07 July 2003 10:31 am, Benjamin Stewart wrote: > Can you point me in the right direction, none of my books talk about it, > cant

Re: Action forward to another action without form

2003-07-06 Thread Benjamin Stewart
Can you point me in the right direction, none of my books talk about it, cant find examples etc. Ben Dan Tran wrote: Yes;) - Original Message - From: "Benjamin Stewart" <[EMAIL PROTECTED]> Newsgroups: Struts Sent: Sunday, July 06, 2003 6:59 PM Subject: Action forward to another action

Re: Action forward to another action without form

2003-07-06 Thread Dan Tran
Yes;) - Original Message - From: "Benjamin Stewart" <[EMAIL PROTECTED]> Newsgroups: Struts Sent: Sunday, July 06, 2003 6:59 PM Subject: Action forward to another action without form > Greetings, > I have a form that submits values. From the Action class I would (in > some circumstanc

Do any one send me the simplest validate strut for me?

2003-07-06 Thread MaFai
Hello, struts-user, I have read the strut example again and again.Attempt to use the simple validate in my validateform.But it failed,I still can not find the reason,so do any one send me the example which is only need to validate the field required. Thanks! Best regard

Action forward to another action without form

2003-07-06 Thread Benjamin Stewart
Greetings, I have a form that submits values. From the Action class I would (in some circumstances) like to go directly to another action class and then forward to a view. Is this possible ? Thanks Ben - To unsubscribe, e-mail:

How can I set the defualt selection?

2003-07-06 Thread leon
I am a beginner of struts. I can't use the 'selected' property of the select tag in struts to set the default selection like I used it in a normal html. It's happened in 'checked' property of struts radio tag. Could you tell me how to set a defualt selection. ---

ActionForms and errors?

2003-07-06 Thread Terje Hopsø
Hello, I am trying to figure out how ActionForm and validate()-function work. If I returns an error (ActionErrors) from my ActionForm it fail (se below for output). Returning null everything works fine. I thought that when returning an error I would return to my loginpage automatically. But I don

Re: javascipt error in IE

2003-07-06 Thread Adam Hardy
Well, I just upgraded to IE6 (SP1) and I don't get any errors for credit card nor required, nor in fact any errors at all. I just checked to make sure javascript errors were notified. I seem to have wiped out IE5.5, which I wanted to keep for testing. I installed IE6 in a different directory, b

logic:iterate question

2003-07-06 Thread Marco.Mistroni
hi all, i have a Map-backed action Form which contains an HashMap the ActionForm is as follows public MapActionForm extends ActionForm { HashMap table = new HashMap(); public void setValue(String key, String value) { ... } public Object getValue(

Re: Help on installing struts-el

2003-07-06 Thread David M. Karr
> "Richard" == Richard Mixon <[EMAIL PROTECTED]> writes: Richard> Where can I find instructions on how to use the struts-el version of struts Richard> instead of the standard struts "lib" files? The README does not cover this Richard> and that seems to be all there is in the way o