RE: Struts Test Case (new Bie..)

2003-08-04 Thread Sachin
Hi Andrew, I have visited Site All sites but not been able to write testCase for Struts Actions. examples they contains of Actions are using Perform method but now we are using execute and Each time i am running testcase i got error. So can you suggest me what should i do.. I have

Tiles (vboxLayout.jsp error) not completely working after changing to Struts 1.1 multiple module implementation

2003-08-04 Thread Marcel Overdijk
Hello, I have a Tiles (Struts 1.1) application running without problems (default config/single module). I have changed the implementation to a Struts multiple module implementation. My default module contains a simple welcome page, and my second config/reflection module contains the 'real'

Welcome.do;jsessionid=C36048429636E35FB1ECAA5978E23132

2003-08-04 Thread Marcel Overdijk
Hello, I never noticed it but when I start my application http://localhost:8080/overdijk http://localhost:8080/overdijk/Welcome.do;jsessionid=C36048429636E35FB1 ECAA5978E23132 I will be forwarded to Welcome. Suddenly (I didn't noticed it before) I see some session information in my url bar:

RE: Direct ValueObject creation rather than ActionForm.

2003-08-04 Thread Viral_Thakkar
Yes, I agree that it is not good programming to replace the ActionForm with ValueObject. But let me know your view about having both ActionForm and ValueObject and use some kind of mapping to get the ValueObject instance from the ActionForm instance. Example is available at

RE: Direct ValueObject creation rather than ActionForm.

2003-08-04 Thread Butt, Dudley
which probelm u wouldn't have if u used webwork -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 9:31 AM To: [EMAIL PROTECTED] Subject: RE: Direct ValueObject creation rather than ActionForm. Yes, I agree that it is not good programming to

Disable Submit Button

2003-08-04 Thread sushil agarwal
Hi, I have one statement.. (((Integer)request.getAttribute(NO_OF_USERS)).intValue() != 0? true:false) ... it is working when i write this code inbetween the scriplet i.e % out.println( above stmt) % but when i write this code in between to disable attribute of html:submit tag.. i.e

Disable Submit Button

2003-08-04 Thread sushil agarwal
Hi, I have one statement.. (((Integer)request.getAttribute(NO_OF_USERS)).intValue() != 0? true:false) ... it is working when i write this code inbetween the scriplet i.e % out.println( above stmt) % but when i write this code in between to disable attribute of html:submit tag.. i.e

specifing subclass of forward in just one place

2003-08-04 Thread Adolfo Miguelez
Hi All, we would like to make every single forward in our app to extend from a AppForward. In such a way we would like to configure this in just one single place in the config files rather that for every forward. We know that it could be done for global forwards as: global-forwards

Regarding STRUTS ActionForm

2003-08-04 Thread sreekant_gottimukkala
Can the ActionForm contain some other Message Objects as attributes ? If so where should the getters and setters for the child MO be coded ? For example in the below structure MyActionForm is the ActionForm that contains the user defined MO's MyDepartment and MyProject. First of all is

RE: Newbie: Passing parameter using html:link, but how to get it back?

2003-08-04 Thread DE BACKER Sam
If I do the data access part in UserDetailAction, how can I retrieve the UserId parameter that was specified from the link part in UserList.jsp? request.getParameter(UserId); or add a form bean to your action, in struts-config.xml, (static form bean or DynaActionForm) with an

Re: Regarding STRUTS ActionForm

2003-08-04 Thread Nagendra Kumar O V S
hello, 1)The actionform(MyActionForm) is absolutely, though few tips a. try using String variables AFAP, for elements u want to map html form elements and the action form b. all such elements should have the corresponding set/get methods for

FW: DynaActionForm BUG?

2003-08-04 Thread Mohd Amin Mohd Din
Hi, I have a big form with a number of multibox tags. It seems that there are mixup of data from one multibox to another. Is this a documented bug or does it have to do something with jvm or tomcat? I have tried on solaris and windows xp both environments seem to have the same problem Thanks

DynaActionForm BUG?

2003-08-04 Thread Mohd Amin Mohd Din
Hi, I have a big form with a number of multibox tags. It seems that there are mixup of data from one multibox to another. Is this a documented bug or does it have to do something with jvm or tomcat? I have tried on solaris and windows xp both environments seem to have the same problem Thanks

Re: Regarding STRUTS ActionForm

2003-08-04 Thread sreekant_gottimukkala
Thanks for the response, Is it possible to map more than one ActionForm to a page, If not in the below example how would the framework understand to populate the departmentName entered in the form give that the page is associated with the MyActionForm below. Thanks Sreekant G. TCS AMBATTUR

[OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Linus Nikander
Browsing peoples comments at amazon might be rewarding, but it sure takes a lot of time. I'm trying to find good (best) books for a couple of java-related areas. As most people who subscribe to this newsgroup probably have a bunch of books at home this should be the ideal place to ask for

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread message message
J2EE PATTERNS - www.JAVA.SUN.COM Struts - struts in action. JUNIT - Eclipse - free IDE comes with documenttion on JUNIT /www.junit.org EJB - www.JAVA.SUN.COM Weblogic - Weblogic saleman. From: Linus Nikander [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL

Best place to hook the Security Call

2003-08-04 Thread sreekant_gottimukkala
Which is the best place to hook the security call for an application in the STRUTS framework so that for every request security check is made. Does STRUTS provide integration with any Security framework ? thanks in advance. Sreekant G. This mail was scanned by Interscan Virus Wall of Mailserver

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Linus Nikander
Thank you for the reply. But I'm looking for books, not online articles or documentation. I know I can probably find book recommendations at the sites you point to, but I was trying to save myself the effort of searching for them and of evaluating their recommendations by posting to this group

Dyna Action forms size attribute

2003-08-04 Thread Mark Lowe
I read this article the other day which contains the following quote: http://developer.com/java/ejb/article.php/2233591 quote You can even dynamically specify the size of the form (and prepopulate it) at run time.  I've recently used this technique with an insurance application where the user

Can

2003-08-04 Thread Andy Cheng
Is there anyway of having the code below to return int value? I have variables that match the datatype in the database, and I really want to keep it instead of having String methods in the form class and do conversion everytime I need to read and modified using the get method. html:select

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread message message
Struts in Action is a book. Good luck with your specific requirements. From: Linus Nikander [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic) Date: Mon, 4 Aug 2003

RE: Can

2003-08-04 Thread Andrew Hill
http will always pass a string parameter so its generally better to make your action form properties strings as well. The user could have typed garbage into the form control so the string that is passed might not be parseable. Best bet is to add an extra method to your action form that does the

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Laurent PETIT
Hello, I'm looking for a good book related to the Test first driven development area. I browsed the amazon customer reviews for the classical books on the subject (Kent Beck, ...) but was still afraid of something : are this book really connected to reality when you have to deal with real

RE: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Daniel Massie
get a trial at http://safari.oreilly.com and read the oreilly book Programming Jakarta Struts -Original Message- From: message message [mailto:[EMAIL PROTECTED] Sent: 04 August 2003 10:56 To: [EMAIL PROTECTED] Subject: Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB,

JSP Exception, HELP!!!

2003-08-04 Thread Samanth Athrey
Hello All, This is a real strange exception am getting. I have a main page which has 6 links. First time I can select any of the link and the page is rendered. Once I come back the main page and select any other link, I get the following message: === javax.servlet.jsp.JspException: No getter

Re: Best place to hook the Security Call

2003-08-04 Thread Vic Cekvenich
Best place would be using container J2EE seucrity, such as JDBC realms. [EMAIL PROTECTED] wrote: Which is the best place to hook the security call for an application in the STRUTS framework so that for every request security check is made. Does STRUTS provide integration with any Security

Re: Best place to hook the Security Call

2003-08-04 Thread Alen Ribic
If I'm not mistaken, this approach is container specific hence would make deployment on difference container(s) not as smooth as one would wish. I may be wrong so please correct me! I'm not very clued up in this area. ;) I have privilege working with servlet 2.3 and am now using SecurityFilter

Re: Dyna Action forms size attribute

2003-08-04 Thread Mark Lowe
Okay I fixed it... 1. I defined a form property as an ArrayList. form-property name=myprop type=java.util.ArrayList ... 2. Scoped my form to session in the referring action. (action name=myForm scope=session 3. In the referring action populate and arrayList and then set the value of the form

RE: Can

2003-08-04 Thread Alex Shneyderman
Just decalre your IuserType as Integer upon submission Struts will convert the value. -Original Message- From: Andy Cheng [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 5:52 AM To: [EMAIL PROTECTED] Subject: Can Is there anyway of having the code below to return int

RE: Best place to hook the Security Call

2003-08-04 Thread Viral_Thakkar
Can you please throw more light on how you are using the servlet 2.3 Filter feature for authentication purpose? thanks -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 4:26 PM To: Struts Users Mailing List Subject: Re: Best place to hook the

RE: Best place to hook the Security Call

2003-08-04 Thread Alex Shneyderman
It is securityfilter. You can find the project at http://sourceforge.net/projects/securityfilter -Original Message- From: Viral_Thakkar [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 7:42 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: Best place to

Re: Best place to hook the Security Call

2003-08-04 Thread Alen Ribic
Well, Alex answered it for me. ;) Using SecurityFilter OSS project (http://sourceforge.net/projects/securityfilter) - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Monday, August 04, 2003 1:41 PM Subject:

using html:file and commons-fileupload

2003-08-04 Thread Filip Polsakiewicz
Hi, i have the following problem. I use a html:file element to choose a file and want it to be uploaded using commons-fileupload. When i submit my form i get the following exception: java.lang.NoSuchMethodError: org.apache.commons.fileupload.FileUpload.setSizeMax(I)V my code looks something like

RE: using html:file and commons-fileupload

2003-08-04 Thread Alex Shneyderman
The property will have to be of org.apache.struts.upload.FormFile Type; that is probably the source of your problem Alex. -Original Message- From: Filip Polsakiewicz [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 8:25 AM To: Struts Users Mailinglist Subject: using html:file

Re: using html:file and commons-fileupload

2003-08-04 Thread Alen Ribic
- Original Message - From: Filip Polsakiewicz [EMAIL PROTECTED] To: Struts Users Mailinglist [EMAIL PROTECTED] Sent: Monday, August 04, 2003 2:24 PM Subject: using html:file and commons-fileupload Hi, i have the following problem. I use a html:file element to choose a file and want

RE: error in writing message on JSP using bean:message key=errors.header/

2003-08-04 Thread Suzette Daniel
I think there might be a problem with the value that you assigned to errors.header? What does your errors.header value look like? You can assign it any value, mine is pretty simple it looks like this: errors.header=font class=errorError/fontUL Suzette H. Daniel -Original Message- From:

Re: Best place to hook the Security Call

2003-08-04 Thread sreekant_gottimukkala
I agree with Alen, but at the same time if all the containers are supporting J2EE security standards then porting to different containers should not be an issue. SecurityFilter as I just browsed through seems interesting but all the latest J2EE containers will have to support Servlet 2.3 for

RE: using html:file and commons-fileupload

2003-08-04 Thread Filip Polsakiewicz
Hi, changing the type to FormFile didn't solve the problem. Any other ideas? -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 2:28 PM To: Struts Users Mailing List Subject: Re: using html:file and commons-fileupload - Original

RE: Struts Test Case (new Bie..)

2003-08-04 Thread Holman, Cal
Try changing the constructor to the class name public class TestSampleAction extends MockStrutsTestCase { public TestSampleAction (String testName) { super(testName); } public void testSuccessfulLogin() { setRequestPathInfo(/login); addRequestParameter(username,deryl);

multiple forms on one page on JBoss 3.2.1

2003-08-04 Thread Amit Kirdatt
I have a page with two forms. The page works on other servlet containers like tomcat and weblogic, but when we switched to JBoss it could not find any of the form bean elements after the html:form tag on the second form. Any ideas on how to fix this? This e-mail, including attachments, may

Re: Best place to hook the Security Call

2003-08-04 Thread Alen Ribic
Security is really my week side but AFAIK your Container Manager Security does have certain container specific configurations and even requirement for additional java classes to be coded. As I said Security Filter component has a small, simple realm interface that is portable across different

Re: using html:file and commons-fileupload

2003-08-04 Thread Alen Ribic
Of top of my head: Are you using a version of upload commons that came with Struts or...? Also, you got some code snippet/ for clues? --Alen - Original Message - From: Filip Polsakiewicz [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, August 04, 2003

RE: using html:file and commons-fileupload

2003-08-04 Thread Filip Polsakiewicz
I use commons-fileupload-1.0.jar here the html:code html:form action=/core/contact/imageSelect method=POST enctype=multipart/form-data html:file property=file/ html:submitsubmit/html:submit /html:form -Original Message- From: Alen Ribic

RE: Struts Test Case (new Bie..)

2003-08-04 Thread John Cavacas
Sachin, First make sure you are running the latest version of StrutsTestCase, http://sourceforge.net/project/showfiles.php?group_id=39190 1.1 is the latests, and get 2.3 if using a 2.3 container 2.2 if using a 2.2 container. Next, it looks like in your test case StrutsTestCase isn't finding

Re: Best place to hook the Security Call

2003-08-04 Thread Vic Cekvenich
There are no additional classes required. Just like you use JNDI to look up a containers connection pool. I think it best practice to use container security. .V Alen Ribic wrote: Security is really my week side but AFAIK your Container Manager Security does have certain container specific

RE: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread John Cavacas
Here you go: Core J2EE Patterns Second Edition Struts in Action Eclipse in Action JUnit in Action (not yet published but chapters are available from Manning) Java Development with Ant (JUnit + Ant + a whole lot more) Test Driven Development (JUnit and TDD) Bitter EJB John -Original

field validating using struts

2003-08-04 Thread Daniel Vieira de Souza
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ~ Hi all, ~ I´m using the javascript´s validator functions that Struts generates automatically for the form. ~ I have an single HTML file with two forms, i think the problem lays there, because Struts generates the functions with the same name

RE: Best place to hook the Security Call

2003-08-04 Thread Viral_Thakkar
What I understood from the Security Filter component is that we need to extend the SimpleSecurityRealmBase class and need to override the methods specified in that class. But still I m not clear on the complete configuration ...i mean the exact steps to follow to use this filter component for A

RE: Best place to hook the Security Call

2003-08-04 Thread sreekant_gottimukkala
So where does JAAS (Java Authentication and Authorization Service) come into picture in the J2EE world ? The other day I was reading a whitepaper that said STRUTS provides integration with JAAS. What would that mean ? Thanks Sreekant G. TCS AMBATTUR

RE: using html:file and commons-fileupload

2003-08-04 Thread message message
Here is a copy of the code from the struts-upload example (upload.jsp) html:form action=upload.do?queryParam=Successful enctype=multipart/form-data It works with out any errors. From: Filip Polsakiewicz [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users

Re: Best place to hook the Security Call

2003-08-04 Thread Vic Cekvenich
The Struts tags support the getRole, etc.; which are part of JAAS. Also, extending JAAS w/ Struts is easy, for example detecting a new login and adding additional information. (all in the basicPortal.com bestPractice Struts sample) .V [EMAIL PROTECTED] wrote: So where does JAAS (Java

Re: Best place to hook the Security Call

2003-08-04 Thread Alen Ribic
Hi Viral_Thakkar Security Filter works something like this: It has it's own xml config extension from web.xml. You just setup a servlet filter in web.xml and then configure your preferences in VERY simple security filter xml config file. In there you just bind url-patters to particular web

RE: Best place to hook the Security Call

2003-08-04 Thread Viral_Thakkar
Which files we need to develop (write/extend) to use this security filter component ..??? Thanks. -Original Message- From: Alen Ribic [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 6:34 PM To: Struts Users Mailing List Subject: Re: Best place to hook the Security Call Security

RE: Best place to hook the Security Call

2003-08-04 Thread Viral_Thakkar
Please let me know which files need to develop for implementing the security filter component which is available at www.securityfilter.org -Original Message- From: Vic Cekvenich [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 7:14 PM To: [EMAIL PROTECTED] Subject: Re: Best place

Re: Best place to hook the Security Call

2003-08-04 Thread Alen Ribic
As realm interface, simplest is to extend SimpleSecurityRealmBase class and override booleanAuthenticate(...), isUserInRole(...) methods. Then just indicate in security xml config file the realm class you are to use. Look at the example that comes with the component! It's all there. ;) --Alen

Re: Best place to hook the Security Call

2003-08-04 Thread Alen Ribic
send me email personally if you have problems with this! it's of mailing list subject! ;) --Alen - Original Message - From: Viral_Thakkar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:53 PM Subject: RE: Best place to hook the Security

Re: Best place to hook the Security Call

2003-08-04 Thread Alen Ribic
Hi Vic You got direct link to bestPractice Struts sample please? I can't seem to locate it. ;) Thx --Alen The Struts tags support the getRole, etc.; which are part of JAAS. Also, extending JAAS w/ Struts is easy, for example detecting a new login and adding additional information. (all in the

RE: using html:file and commons-fileupload

2003-08-04 Thread Filip Polsakiewicz
Does the Action which handles the form have to extends some specific class? -Original Message- From: message message [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 3:38 PM To: [EMAIL PROTECTED] Subject: RE: using html:file and commons-fileupload Here is a copy of the

Re: using html:file and commons-fileupload

2003-08-04 Thread Alen Ribic
Does the Action which handles the form have to extends some specific class? no. Just extend Action. --Alen - Original Message - From: Filip Polsakiewicz [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, August 04, 2003 4:22 PM Subject: RE: using html:file

/ /OREF:CPTF3B3C Refresh jsp exactly once

2003-08-04 Thread ZTofie
Does anyone know how to refresh a jsp once exactly without user intervention? I have an applet that load before a table in the same jsp is rendered. I need to refresh in order to display the table. I've trawled but there's no satisfactory solution - I've tried devshed's and e-e in addition to

RE: using html:file and commons-fileupload

2003-08-04 Thread Filip Polsakiewicz
I just put the fileupload jar into my webapp lib directory. But it still does not work. Actually in our project we use the fileupload package at another point too, but there we have an own servlet to handle that. Why doesn't it work with struts??? -Original Message- From: Alen Ribic

struts validation

2003-08-04 Thread Laksh Narasimhan
Hi *, struts validation using server side validation works fine for me... it displays the error message in the same window where we have included the html:error/ ... but i need the error message to be displayed in the javascript error window... even after including these two lines it puts

StrutsTestCase using weblogic 8.1

2003-08-04 Thread Chalmers, Doug
Hi folks, I'm trying to set up Cactus/StrutsTestCase etc to try out testing methods on an existing (ongoing) application and coming across several problems. I've got the mock method almost working, but it's failing cos the test I've tried needs database access. Trying to get it to run the

RE: struts validation

2003-08-04 Thread Alex Shneyderman
Is your browser JavaScript enabled? What validators are you using? Some of them do not have JavaScript countrparts. -Original Message- From: Laksh Narasimhan [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 10:35 AM To: [EMAIL PROTECTED] Subject: struts validation Hi *,

Re: using html:file and commons-fileupload

2003-08-04 Thread Alen Ribic
try this. Get the struts-upload.war that comes with struts framework. Deploy it and run the test AS IS! If it works, then check how different that code is to yours. (Use their libraries: WEB-INF/lib) If it doesn't, then.well good luck ;) --Alen - Original Message - From: Filip

RE: Struts Test Case (new Bie..)

2003-08-04 Thread Sachin
Hi, I am using Tomcat4.1.24 which support servlet2.3 and strutsTestCase2.0.0 And using Struts 1.1b2. I saw strutsTestCase2.0.0 example which contains struts1.0.jar I think strutstest200-1.1_2.3.zip would need to download for this.. If later contains Example with execute method then i will

RE: Best place to hook the Security Call

2003-08-04 Thread Bailey, Shane C.
Please take a look at implementing JRun4 CMA with an OODB (like the one I am using, Objectivity, oh, and no (Container) support contract). It is not as simple as you say -- just like a JNDI lookup. So I look into and start using SecurityFilter. No matter what DB (even OODB) you do the same

dynamic columns for a jsp

2003-08-04 Thread Jayaraman Dorai
There are around 20 attributes for a business object. The jsp iterates over a collections of this business object and displays them. The user does not want to see all the 20 attributes. Different users may want to see different attributes. This requirement is similar to what outlook provides,

RE: struts validation

2003-08-04 Thread Laksh Narasimhan
yeah the browser is javascript enabled. the validators i used are required, minlength, maxlength etc... but do we have problem in displaying the error messages in java script window bcos of validators??? From: Alex Shneyderman [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: 'Struts Users

RE: struts validation

2003-08-04 Thread Alex Shneyderman
the validators i used are required, minlength, maxlength etc... but do we have problem in displaying the error messages in java script window bcos of validators??? I do not have that problem I do not know why you do. Check to see if the JavaScript even gets to your browser. Ceck your

RE: dynamic columns for a jsp

2003-08-04 Thread Gandle, Panchasheel
We have a very similar situation, haven't done it yet, but planning to have two collection to iterate over. one for the columns, that I know when the user logs in, I would get it from his preferences of columns from DB. other the business objects... is this the same that you are doing or any

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Erik Price
Laurent PETIT wrote: Hello, I'm looking for a good book related to the Test first driven development area. [...] I browsed the amazon customer reviews for the classical books on the subject (Kent Beck, ...) but was still afraid of something : are this book really connected to reality when you

Re: JSP Exception, HELP!!!

2003-08-04 Thread Adam Hardy
It's not possible to tell what is happening without seeing the snippet of HTML for the taglib that is causing the problem. Perhaps you should post that here and it would be easier for people to tell. Adam Samanth Athrey wrote: Hello All, This is a real strange exception am getting. I have a

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Erik Price
Linus Nikander wrote: Thank you for the reply. But I'm looking for books, not online articles or documentation. I know I can probably find book recommendations at the sites you point to, but I was trying to save myself the effort of searching for them and of evaluating their recommendations by

Re: Best place to hook the Security Call

2003-08-04 Thread Erik Price
Alen Ribic wrote: Security is really my week side but AFAIK your Container Manager Security does have certain container specific configurations and even requirement for additional java classes to be coded. No. As I said Security Filter component has a small, simple realm interface that is

RE: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Mark Galbreath
I've found this an invaluable resource for such questions: http://www.catb.org/~esr/faqs/smart-questions.html Mark -Original Message- Linus Nikander wrote: Thank you for the reply. But I'm looking for books, not online articles or documentation. I know I can probably find book

Select Box and validation (plz help :))

2003-08-04 Thread Khalid K.
I am submitting a form using onchange javascript even handler w/ html:select/html:select tag. This works fine until I turn on VALIDATION, If validation is set to true, and there are any validation errors, when the page is displayed w/ the validation errors, the value of the SELECT box has

RE: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread NYIMI Jose (BMB)
I bought following books and i don't find words to explain how much they have improved my skills of j2ee: 1. J2EE Design Patterns Applied http://developer.java.sun.com/developer/Books/j2ee/dpa/ 2. Expert One-on-One J2EE Design and Development

RE: specifing subclass of forward in just one place

2003-08-04 Thread Bailey, Shane C.
Are the things that are being done in AppForward class things that can be done in the processForward() method of the request processor? Struts-config change: controller processorClass=my.RequestProcessor/ public class my.RequestProcessor extends RequestProcessor //or

RE: DynaActionForm BUG?

2003-08-04 Thread James Childers
I have a big form with a number of multibox tags. It seems that there are mixup of data from one multibox to another. Is this a documented bug or does it have to do something with jvm or tomcat? I have tried on solaris and windows xp both environments seem to have the same problem Do

RE: Newbie :rendering hidden fields

2003-08-04 Thread Jitesh Sinha
what is the full syntax of bean:define tag...Actually I am getting an exception regarding end tag of bean:define . I have used it like this : bean:define id=var name=mybean property=aPropertyOfmybean/bean:define The error page shows following stack trace : java.lang.Object

Using the wrong version of valiator?

2003-08-04 Thread Bailey, Shane C.
Validation is working for my String[] dynaform attributes. I have seen others on the list say it works for them. So I looked at the source code (of my commons-validator.jar using jad). Either it can't be working or I am using the wrong version of that jar. Do I need to get the latest

RE: multiple forms on one page on JBoss 3.2.1

2003-08-04 Thread Amit Kirdatt
Nevermind, I figured it out! We were missing property on an html:options tag. -Original Message- From: Amit Kirdatt Sent: Monday, August 04, 2003 8:04 AM To: '[EMAIL PROTECTED]' Subject: multiple forms on one page on JBoss 3.2.1 I have a page with two forms. The page works on other

RE: Newbie :rendering hidden fields

2003-08-04 Thread Jitesh Sinha
Never mind..this problem is solved...thanks... -Original Message- From: Jitesh Sinha [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 10:19 PM To: Struts Users Mailing List; Nagendra Kumar O V S Subject: RE: Newbie :rendering hidden fields what is the full syntax of bean:define

Newbie question, dynamic select boxes

2003-08-04 Thread Jose Maria Fernandez
Hi you all, i'm starting with struts and after reading and testing a bit, i have a question. Suppose I create a form where the user should choose a car model, for example, lets say model1, model2 and model3. Suppose that i need to get that models of a database. And suppose too that after the

RE: Best place to hook the Security Call

2003-08-04 Thread Jones, Marty B.
From what I can tell, if you have already authenticated a user, and now you want to ensure that the user's roles and grants allow them to see the given url that was requested, I would place it in the RequestProcessor by overloading the processPreprocess method. This method gives you the

RE: Best place to hook the Security Call

2003-08-04 Thread Jones, Marty B.
This is what I mentioned earlier. We needed more security flexability that what the normal servlet container supports so we had to write our own security handler. The struts framework has a method hook in the RequestProcessor class that will allow you to verify the users access rights for each

RE: dynamic columns for a jsp

2003-08-04 Thread Jayaraman Dorai
Yes, doing the same thing. Some columns requires a different background color and most of them have something different. So, it results in a lot of if statements to check the column. Looking desperately for a good solution. Jayaraman -Original Message- From: Gandle, Panchasheel

RE: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Brendan . Johnston
I think Linus' requirements are wrong. Books on J2EE patterns in general, and Core J2EE Patterns in particular, are not worth reading. Change the requirement to books that provide useful patterns for J2EE applications, and you get the answer you want, which is Fowler's Patterns of Enterprise

Re: dynamic columns for a jsp

2003-08-04 Thread Erik Price
You have two choices. 1) Use a simple Collection and test the values with many if statements. This is the option you are using right now. 2) Wrap the Collection in a custom object that contains the logic needed to determine which values are appropriate. Then in your JSP you can simply call

extending RequestProcessor for only ONE action mapping

2003-08-04 Thread tim
I've just recently began hacking out my own RequestProcessor extension and I have found that my extended versions are not needed very much. Most of the time I would like to use the default struts provided RequestProcessor and for individual action mappings be able to specify an extended

Re: [OFF TOPIC] Book recommendations (J2EE, Struts, JUnit, EJB, Weblogic)

2003-08-04 Thread Laurent PETIT
Hello, This is an off-topic of the off-topic subject, but as I just began to read Core J2EE Patterns, 2d Edition, I would be pleased if you could tell me what you think is wrong with this book (it should be interesting for me to read it with your criticisms in mind). I've got the Fowler's book

RE: extending RequestProcessor for only ONE action mapping

2003-08-04 Thread Mike Whittaker
I've just recently began hacking out my own RequestProcessor extension and I have found that my extended versions are not needed very much. Most of the time I would like to use the default struts provided RequestProcessor and for individual action mappings be able to specify an extended

RE: Struts 1.1 in Websphere 4.01 on plugin with OS/390

2003-08-04 Thread yau-pang . lee
thks Cindy: I got the server reading webapp-name.webapp xml file finally, turns out our admin was being nice and added some webapp properties in the was.config file for us and that caused websphere to skip the webapp-name.webapp during startup. However, we're now getting the error:

RE: dynamic columns for a jsp

2003-08-04 Thread Mike Whittaker
3) Only populate your value objects with the required columns in the first place. A simple custom tag can be used to ignore it's body if an attribute is null. -- Mike W You have two choices. 1) Use a simple Collection and test the values with many if statements. This is the option you are

405 Http Error

2003-08-04 Thread Brian Husted
Platform:Weblogic 8.1 Proxy: Apache Application: Struts Release 1-1 Issue: I am receiving an http 405 response on post attempts to a Struts 1-1 application. Here is the post that is causing the 405 (or http method not allowed) from the weblogic access log 192.168.2.21 - -

Newbie:Using two arrays in a logic:iterate tag

2003-08-04 Thread Jitesh Sinha
How do you access the elements of an array inside logic:iterate tag which takes the collection as another array . I am sure that the length of the two arrays are same. In other word how do you substitute the following Java code in Struts : String[] anArray = myBean.getAnArray() ; String[]

Validator required not working with String[] multi-select

2003-08-04 Thread Bailey, Shane C.
I sort of already sent this message to the list but I made a mistake (didn't proof read my message) so here it is again but corrected ... Validator required validation is NOT working for my String[] (in a dynaform. I have seen others on the list say it works for them. Anyone else experiencing

OT Digester question

2003-08-04 Thread Jim Collins
Appologies for the off topic question. Does anyone know how I can create an object with a constructor that takes agruments specified via XML elements. I have a Configuration object with a constructor that takes two String parameters. The XML will be something like this: config

Re: [OT] Digester question

2003-08-04 Thread Kris Schneider
A bit out of my comfort zone on this one, but I think you might have to change your XML to something like: config attr1=someText attr2=someText saveAssomeText/savaAs /config because the FactoryCreateRule/ObjectCreationFactory stuff seems to work with an element's attributes, not its

  1   2   >