Re: Tiles: multiple layers of layout

2004-08-19 Thread brenmcguire
If you mean that you want to put a sub-tile inside another tile, you could make something like this: In other words you can use the "" element not only with JSP pages but also with other definitions. That is you can make "definitions of definitions" in a nested

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-19 Thread Jason Lea
I also changed to tomcat 5.0 + JSP 2.0. You can stop using the struts-el tags and just use the normal struts tags. Erez Efrati wrote: Hi, I am working with Struts 1.1 + JST 1.0 tags. I wish to use some of the fine features of JSP 2.0 like EL expression everywhere I like instead of always putting

Re: Complex web 'stacks' in Struts

2004-08-19 Thread struts lover
Can you not have those fields defined in some super action form and also the lookup methods defined in some super action class that extends from lookupdispatchaction class. --- Stuart Guthrie <[EMAIL PROTECTED]> wrote: > Thanks for your answer. However this is fine as a > technique to enable me

Re: Complex web 'stacks' in Struts

2004-08-19 Thread Stuart Guthrie
Thanks for your answer. However this is fine as a technique to enable me to fire an 'action' to lookup the customer but I was hoping that the customer browser would be a nice action/jsp combo to itself which could be told to 'return' back to the originating calling action. I might want to include

RE: DynaForm external Xml Source

2004-08-19 Thread Krishna Murthy .U
Thnx for u r help . Thanks & Regards Krishna Murthy .U finEye Software Pvt.Ltd. GF-2 ,Alpine Arch No.10 ,Langford Road Bangalore -27 -- "Dream dream dear That No one can do Ever Dream beyond beyond horizons You will raise ab

Re: accessing collections without iterating.

2004-08-19 Thread Antony Paul
I think no because there is no property. The first List(list1) is storing another List(list2). list2 contains Strings. Antony Paul - Original Message - From: "Jim Barrows" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Thursday, August 19, 2004 10:36 PM Subj

Re: Struts login with JAAS (Part 2)

2004-08-19 Thread Erik Weber
Sorry, I may have mislead you here: Erik Weber wrote: Leandro, perhaps I didn't explain very well. As far as I know, there is no way for you to intercept the login request and process the j_username and j_password parameters yourself -- you have to let the container receive the form submittal an

Re: Struts login with JAAS (Part 2)

2004-08-19 Thread Erik Weber
Leandro, perhaps I didn't explain very well. As far as I know, there is no way for you to intercept the login request and process the j_username and j_password parameters yourself -- you have to let the container receive the form submittal and process the login. This is why I said, your login f

Did anyone really find ProcessBean, ProcessAction, ResultList useful?

2004-08-19 Thread struts Dude
Well did anyone? I find them complicated, not useful, hard to use, maybe it's just me and = because not many documentation on these. Can anyone provide links of tutorial to these? BTW, ProcessBean is like a DTO, so there are a lot more better choice of = tools to use than ProcessBean right? say

Problem:Tiles

2004-08-19 Thread Mu Mike
I have a definition like the below I write in my jsp file when preview this jps ,why I see a blank page? Thanks&Regards Mike _ 享用世界上最大的电子邮件系统― MSN Hotmail。 http://www.hotmail.com ---

validate() in ActionForm still uses ActionErrors in 1.2.1

2004-08-19 Thread Alex Lui
Hi, I am migrating my Struts application from 1.1 to 1.2.1. I try to use ActionMessage(s) instead of deprecated ActionError(s). However, the validate() method in ValidatorForm still uses ActionErrors and in some cases, I extend ValidatorForm to write my customized validate() method. How do I deal

Re: Complex web 'stacks' in Struts

2004-08-19 Thread struts lover
You can have a variable called action in your action form. You can set that variable as view or edit. Now for the first time, the action can be view. You lookup for the customer. If you find, you display. If you dont find, (check this with some tag ) you display a text field and a ADD CUSTOMER but

Re: different inputs in struts-config

2004-08-19 Thread struts lover
Try using the attribute/formAttribute in the action mapping. I think it should work. --- Sebastian Ho <[EMAIL PROTECTED]> wrote: > Thanks Susan. > > Refer to my comments below > > Sebastian Ho > > > On Thu, 2004-08-19 at 21:23, Susan Bradeen wrote: > > Sebastian Ho <[EMAIL PROTECTED]> wrote

Re: Struts login with JAAS (Part 2)

2004-08-19 Thread struts lover
If the login is successful, keep the user object in the session. In every action class, you can check whether the user object/user exists in the session or not. If not, redirect to login.jsp. Maybe you can have the check in some super action class so that you dont have to repeat the code in each ac

Re: Security - From tradition to struts

2004-08-19 Thread struts lover
Create a utility class method that takes username and password as parameters. Connect to database from this utility class method, and return a boolean based on the search for username and password. Have this utility method called from your action class. --- struts Dude <[EMAIL PROTECTED]> wrote:

Re: dealing with check boxes

2004-08-19 Thread struts lover
keep the form in the session. When you click the submit button, the changes get committed to the database. --- Jignesh Kapadia <[EMAIL PROTECTED]> wrote: > Anuj, > Thanks for you reply. But My concern is as > follows. > > e.g. > > I display these records with checkbox on my JSP a

Struts login with JAAS (Part 2)

2004-08-19 Thread Leandro Melo
I'm back! After getting some jaas studies, i'm a little bit better, so i can now formulate a better question. Here it is... (I know that this is not only a Struts question, because it envolves jaas, but i'm pretty sure that people over here could give me some advise on how to handle the problem).

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-19 Thread Rick Reumann
Erez Efrati wrote: for using the Just to note that the html:hidden refers actually the html-el:hidden. What am I missing? Do I need another version of JSTL, Struts or what? Make sure you are pointing to the correct html-el tag tld: Can't remember if this is Struts 1.1 or 1.2, but it should loo

Re: Absolute URLs

2004-08-19 Thread jthompson
There are probably better ways, but I've used the following java code for that purpose. public static String getFullURL(HttpServletRequest request) { if (request==null) return null; StringBuffer url = new StringBuffer(); url.append( (request.isSecure() ? "https://"; : "http://";

Absolute URLs

2004-08-19 Thread Toby Saville
Is there any way I can make URL's generated by struts, be absolute including the protocol, hostname and port? Thanks *** This message is intended for the addressee named and may contain confidential information. If you are not the i

Re: Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-19 Thread Vic Cekvenich
For diags: Can you just do a simple non tag el in a jsp w/o declaring? .V Erez Efrati wrote: Hi, I am working with Struts 1.1 + JST 1.0 tags. I wish to use some of the fine features of JSP 2.0 like EL expression everywhere I like instead of always putting JSTL 1.0 tag. I would also like to con

Re: different inputs in struts-config

2004-08-19 Thread Sebastian Ho
Thanks Susan. Refer to my comments below Sebastian Ho On Thu, 2004-08-19 at 21:23, Susan Bradeen wrote: > Sebastian Ho <[EMAIL PROTECTED]> wrote on 08/19/2004 05:19:35 > AM: > > > hi > > > > I used the same actionform for a few JSP pages, which I guess is good > > practice. The problem occur

Re: Security - From tradition to struts

2004-08-19 Thread struts Dude
Hi The following is the strategy I use. It may help. It may also be bad practice so feedback welcome. I am writing a simple app right now that only checks whether user is logged in as ordinary user or admin. I use an utility class UserUtil.java that has static methods for other Action to call.

Re: dealing with check boxes

2004-08-19 Thread Jignesh Kapadia
Anuj, Thanks for you reply. But My concern is as follows. e.g. I display these records with checkbox on my JSP as follows In this case "list" is id on which is going to iterate. chkflag is the boolean property of an object contained in the list(can be collection or arra

Complex web 'stacks' in Struts

2004-08-19 Thread Stuart Guthrie
This is a general 'how do you do it if you do it' question about web application design. Here is the scenario. Web Form: - ORDER HEADER Order No: 0010 Order Date: 15/08/2004 Customer: __ Customer Name: ? -

Re: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread struts Dude
Wow, u guys r super. So many help. I will go with Daniel's solution. To maximize portability, I think the best solution is not to depend on DB timestamp to delete it as different DB will have different ways of doing it, hence learning new things if change new DB. Thanks guys. :D - Original M

Struts + Tomcat 5.0/ JSP 2.0+ JSTL

2004-08-19 Thread Erez Efrati
Hi, I am working with Struts 1.1 + JST 1.0 tags. I wish to use some of the fine features of JSP 2.0 like EL expression everywhere I like instead of always putting JSTL 1.0 tag. I would also like to continue working with Struts tags such as I tried changing the header of the WEB.XML to ht

RE: internationalization problem

2004-08-19 Thread struts lover
Hi, Thanks everyone again for all of your help. Joe's solution works. Now I am able to fully internationalize my page. I am able to retain all characters supported by UTF-8 including spanish, chinese, arabic etc. Thanks once again --- Joe Hertz <[EMAIL PROTECTED]> wrote: > In Tomcat's install d

configuration is frozen

2004-08-19 Thread Thomas Burns
I am in the process of finalizing a move to Struts 1.1 under Tomcat 5 and am having problems getting our unit test servlet running properly - I am getting a "java.lang.IllegalStateException: Configuration is frozen" error. The source of the problem seems to be how we define our contexts. In this

RE: Returning xml stream from struts

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Gupta, Sahil [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 1:42 PM > To: 'Struts Users Mailing List' > Subject: Returning xml stream from struts > > > Hi, > > I have an application written in struts and i want to return > xml in the > respons

RE: Returning xml stream from struts

2004-08-19 Thread Gupta, Sahil
I think i found the answer. Writing the response xml to the output stream should do it. Right? Any other/better suggestions? -Original Message- From: Gupta, Sahil [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 4:42 PM To: 'Struts Users Mailing List' Subject: Returning xml stream

Returning xml stream from struts

2004-08-19 Thread Gupta, Sahil
Hi, I have an application written in struts and i want to return xml in the response to the request. The request is being made from a client which makes http connection to my servlet and posts the request to it. I was wondering whats the best way to send the response back. Option: Setting the co

RE: internationalization problem

2004-08-19 Thread Joe Hertz
In Tomcat's install directory: webapps/webapps/examples.war You should find a SetCharacterEncoding.java source file. It's a pretty simple piece of code actually and I think it will fix your problem. There's actually a bugzilla ticket entered against this problem to document it more clearly :-) -

Re: internationalization problem

2004-08-19 Thread Jason Lea
(I haven't tested the following, but I have heard that it works) I believe the problem is that a different system is used for reading form fields when a file upload is used. The current Struts system doesn't use the encoding supplied, so it assumes the default Latin-1 encoding. I believe there

Re: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Rick Reumann
struts lover wrote: Yes, go ahead and override the validate method, checking which button was pressed, and then call super.validate() as usual. The framework does have a page component, so the validataion will only validate the pages submitted. Or you can just do what I do and manually call the f

Re: Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread Kishore Senji
Instead of commenting out your validate() method You can do something like this public ActionErrors validate(ActionMapping mapping, HttpServletRequest request){ ActionErrors errors = super.validate(mapping, request); // If we see the cancel key in the request, since your continue button is a c

RE: internationalization problem

2004-08-19 Thread struts lover
Hi Joe, Which examples.war are you talking about??? I dont see any examples.war. All special characters in the text fields get distorted. --- Joe Hertz <[EMAIL PROTECTED]> wrote: > Are spanish characters not retained either? > > Are you using Tomcat, and if so, are you using the > SetCharacter

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Dhaliwal, Pritpal (HQP)
I think the issue here is that user will never return. So struts dude needs some kind of mechanism to check every so often to see if the user has not returned in 24 hours. If the user has not came back, he wants to delete that record. So some timer mechanism is needed. His options.. Use resin ap

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Robert Miller
I just tried this method and it works for me. Thanks! I may study the other suggestions as time permits. Thanks everyone for your suggestions! Robert >>> [EMAIL PROTECTED] 8/19/2004 2:30:18 PM >>> > -Original Message- > From: Robert Miller [mailto:[EMAIL PROTECTED] > Sent: Thursday,

RE: internationalization problem

2004-08-19 Thread Joe Hertz
Are spanish characters not retained either? Are you using Tomcat, and if so, are you using the SetCharacterEncoding Filter? (Look in the Tomcat WebApps examples.war) Inquiring minds want to know this stuff :-) > -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Th

Re: Tiles: multiple layers of layout

2004-08-19 Thread Michael McGrady
Michael McGrady wrote: Bill Schneider wrote: I'm trying to do something with Tiles like this: I am not sure what is going on here, Bill, but it looks like you mean to have something like the following? That is, it looks like you want to override rathe

Re: Tiles: multiple layers of layout

2004-08-19 Thread Michael McGrady
Bill Schneider wrote: I'm trying to do something with Tiles like this: I am not sure what is going on here, Bill, but it looks like you mean to have something like the following? That is, it looks like you want to override rather than extend the defi

Re: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Michael McGrady
struts lover wrote: The suggestion is good. But you might run into localization problems. The better approach is to extend the ValidatorLookupDispatchAction class by Brandon Goodin which extends the LookupDispatchAction. The buttons get their label texts from the properties files. If you are not t

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread struts lover
> -Original Message- > From: Robert Miller [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 12:25 PM > To: [EMAIL PROTECTED] > Subject: Conditionally Validating an Entire Form Based Upon the > buttonpressed > > > I have a form which has a "save" ( ( The "save" should validate a

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Jim Barrows
> -Original Message- > From: struts lover [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 12:35 PM > To: Struts Users Mailing List > Subject: RE: Conditionally Validating an Entire Form Based Upon the > buttonpressed > > > The suggestion is good. But you might run into Whic

submitting map-backed action forms

2004-08-19 Thread Olve Sæther Hansen
Given the following form, I am using a map backed form, basically as described in: http://struts.apache.org/userGuide/building_controller.html#map_action_form_classes This form is in the QuestionGroupAction class as this: * @struts.action name="mapValueForm" path="/answerQuestionGroup" * paramet

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread struts lover
The suggestion is good. But you might run into localization problems. The better approach is to extend the ValidatorLookupDispatchAction class by Brandon Goodin which extends the LookupDispatchAction. The buttons get their label texts from the properties files. If you are not thinking of localizin

RE: Conditionally Validating an Entire Form Based Upon the buttonpressed

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Robert Miller [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 12:25 PM > To: [EMAIL PROTECTED] > Subject: Conditionally Validating an Entire Form Based Upon the > buttonpressed > > > I have a form which has a "save" ( ( The "save" should validate

Re: Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread struts lover
Extend your action class from ValidatorLookupdispatchAction class by Brandon Goodin. ___ Do you Yahoo!? Win 1 of 4,000 free domain names from Yahoo! Enter now. http://promotions.yahoo.com/goldrush ---

RE: input and output form

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Dan Allen [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 12:18 PM > To: [EMAIL PROTECTED] > Subject: input and output form > > > I often times run into the conflict, when developing a Struts > application, of which form to choose for a given act

Conditionally Validating an Entire Form Based Upon the button pressed

2004-08-19 Thread Robert Miller
I have a form which has a "save" (

input and output form

2004-08-19 Thread Dan Allen
I often times run into the conflict, when developing a Struts application, of which form to choose for a given action. The scenario is such that one form is being populated by the request while the other form needs to be populated for the output. An example would be a sequence of pages describing

Re: configuration violating J2EE spec?

2004-08-19 Thread Dan Allen
Apparently, in weblogic (which is the server we are currently using) it is possible to "hardcode" the context-root into the weblogic.xml file (if not specified in the EAR application.xml file). All the sysadmin needs to do is let the request come through "unscathed" and we can at least remain unde

internationalization problem

2004-08-19 Thread struts lover
Hi, I am facing a problem and trying to solve it for many days but in vain. The user selects the locale(suppose es-spanish) and the page displays in that particular locale using the appropriate properties file. I also have a file upload on the same form. I am using enctype="multipart/form-data" in

Re: Learning the basics

2004-08-19 Thread Vic Cekvenich
Post a diff to dev list. Even the web site is in CVS. .V [EMAIL PROTECTED] wrote: Who owns/can update http://struts.apache.org/resources/articles.html? The powerpoint slides are on there, but are an old version. How do I get it updated? I'm getting several requests for it, and it would be easier

RE: Learning the basics

2004-08-19 Thread dhay
Who owns/can update http://struts.apache.org/resources/articles.html? The powerpoint slides are on there, but are an old version. How do I get it updated? I'm getting several requests for it, and it would be easier to stick it there! cheers, David |-+> |

RE: Learning the basics

2004-08-19 Thread Kenneth Litwak
Hi David, Thanks much for the document. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, August 23, 2004 10:56 AM To: [EMAIL PROTECTED] Subject: RE: Learning the basics Well, zip attachements aren't allowed, and ppt file is just over 100KB limi

Re: DynaForm external Xml Source

2004-08-19 Thread Kishore Senji
Try the strategy listed at the bottom of the below url http://www.jamesholmes.com/struts/ On Thu, 19 Aug 2004 18:08:55 +0530, Krishna Murthy .U <[EMAIL PROTECTED]> wrote: > > Hi , > > we are developing an application. We are using Struts's DynaForms. > problem ). > we have 12-13 froms each fo

RE: Learning the basics

2004-08-19 Thread dhay
Well, zip attachements aren't allowed, and ppt file is just over 100KB limit! I'll send it to you privately, Ken. cheers, David - Forwarded by David Hay/Lex/Lexmark on 08/23/2004 01:54 PM - |-+> | | David Hay| | |

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Michael Finger
I second the below - when you pull the user info from the database check the timestamp and in it's greater then 24hrs, delete it and kick the user out... then you can just cleanup the database daily, weekly, etc at off peak times... this way nothing is dependent on a job running... Mike -Orig

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Paul-J Woodward
All this sounds very complex, what's wrong with encoding the time in the url (securely) and testing it when you perform the action? Alternatively store the request time and id on the server. Paul Global Equity Derivatives Technology Deut

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Daniel Perry
I previously posted a message on how i did this as a struts plugin, so i've reposted below. To do what you require, instead of scheduling a job for each entry after 24hrs, i would include a timestamp in the database, then say every hour, check for expired entries and delete them.

test

2004-08-19 Thread Antony Paul
test - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Erik Weber
You probably only need a javax.management.timer.Timer -- a single Thread that runs forever, invoking an event listener every so often. The Timer can be initialized and started by a ServletContext listener at application startup. The event listener queries the database, looking for new registran

RE: accessing collections without iterating.

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Antony Paul [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 3:37 AM > To: [EMAIL PROTECTED] > Subject: accessing collections without iterating. > > > Hi all, > My situation is List inside List and I am using Struts > 1.0. There is no > beans

accessing collections without iterating.

2004-08-19 Thread Antony Paul
Hi all, My situation is List inside List and I am using Struts 1.0. There is no beans. I need access to List by index(using Struts). For ex. Is this possible. There are no JSTL. Or any other way do this without writing a new class. rgds Anto Paul --

accessing collections without iterating.

2004-08-19 Thread Antony Paul
Hi all, My situation is List inside List and I am using Struts 1.0. There is no beans. I need access to List by index(using Struts). For ex. Is this possible. There are no JSTL. Or any other way do this without writing a new class. rgds Anto Paul --

Re: Learning the basics

2004-08-19 Thread Bill Siggelkow
+1 :) [EMAIL PROTECTED] wrote: I've found Struts - The Complete Reference by James Holmes very helpful. It's organized well with good overviews before detail and complete code listings not just snippets. Bart - To unsubscribe, e-

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Dhaliwal, Pritpal (HQP)
This might help: http://www.quartzscheduler.org/ It is not strictly for struts, but it is a solution for what you want to do. Pritpal Dhaliwal -Original Message- From: Jim Barrows [mailto:[EMAIL PROTECTED] Sent: Thursday, August 19, 2004 9:16 AM To: Struts Users Mailing List Subject: R

RE: html:link as pseudo-form tag

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Dan Allen [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 9:45 AM > To: [EMAIL PROTECTED] > Subject: html:link as pseudo-form tag > > > Often times it is necessary to make a link act as a form by appending > a whole bunch of query parameters and

RE: Learning the basics

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Kenneth Litwak [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 9:18 AM > To: Struts Users Mailing List > Subject: RE: Learning the basics > > > Hi Jim, > > I was hoping to > > avoid having to > > read a book to write my first Struts app, which

html:link as pseudo-form tag

2004-08-19 Thread Dan Allen
Often times it is necessary to make a link act as a form by appending a whole bunch of query parameters and issuing a GET request. In struts, it is necessary to supply a bean name which points to a Map containing these data values. I thought of something that might be a touch easier. Perhaps htm

RE: Learning the basics

2004-08-19 Thread bmf5
I've found Struts - The Complete Reference by James Holmes very helpful. It's organized well with good overviews before detail and complete code listings not just snippets. Bart - To unsubscribe, e-mail: [EMAIL PROTECTED] F

RE: need help on format attribute of bean:write

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Bibhu Kalyan [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 6:36 AM > To: Struts Users Mailing List > Subject: need help on format attribute of bean:write > > > > Hi All, > Good day. I have a code snippet like following : > format="$###,###,##

RE: different inputs in struts-config

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Sebastian Ho [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 2:20 AM > To: Struts Users Mailing List > Subject: different inputs in struts-config > > > hi > > I used the same actionform for a few JSP pages, which I guess is good > practice. The

RE: Learning the basics

2004-08-19 Thread Kenneth Litwak
Hi Jim, I was hoping to > avoid having to > read a book to write my first Struts app, which is basically > a small web > app to let a user search a database table according to one of > three sets > of search criteria. I thought this would be relatively simple. My > impression so far, however,

RE: Help on Action implementing thread for checking user registration thru email?

2004-08-19 Thread Jim Barrows
> -Original Message- > From: struts Dude [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August 18, 2004 9:14 PM > To: Struts Users Mailing List > Subject: Help on Action implementing thread for checking user > registration thru email? > > > > Hi, > > I am going to write an app that all

Tiles: multiple layers of layout

2004-08-19 Thread Bill Schneider
I'm trying to do something with Tiles like this: When ".nested1" is displayed, I see the main layout as expected, with the proper title; and nestedLayout.jsp gets included as the body. But inside nestedLayout.jsp, doesn't work. I could always do something in mainL

RE: Learning the basics

2004-08-19 Thread Jim Barrows
> -Original Message- > From: Kenneth Litwak [mailto:[EMAIL PROTECTED] > Sent: Thursday, August 19, 2004 8:53 AM > To: Struts Users Mailing List > Subject: RE: Learning the basics > > > HI Janne, > > Thanks for your comments on books. I was hoping to > avoid having to > read a bo

RE: Learning the basics

2004-08-19 Thread Kenneth Litwak
HI Janne, Thanks for your comments on books. I was hoping to avoid having to read a book to write my first Struts app, which is basically a small web app to let a user search a database table according to one of three sets of search criteria. I thought this would be relatively simple. My i

RE: Validation mask ranges

2004-08-19 Thread Brown, James
Solved my own problem. Just for those that do not know ... Since mask is based on regular expressions, you can use: $[\x21-\x7E\xA0-\xFF]* to match characters 32-126 and 160-255 of a character set. -- James THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL

Re: Validation mask ranges

2004-08-19 Thread Erik Weber
Not sure, but if you run out of time, write your own pluggable validator for those fields. See the Struts docs, or the example on Matt Raible's site for a "twofields" pluggable validator. It's easy. Erik Brown, James wrote: We are in a bind so I reposting under a different topic. Sorry, but ...

Validation mask ranges

2004-08-19 Thread Brown, James
We are in a bind so I reposting under a different topic. Sorry, but ... We are trying to limit user input to the following ranges in ISO-8859-1: 32-126 160-255 As well as characters 9, 10 and 13. We have tried various things but have run into problems with the #&"' characters, plus it is

Re: how not to use actionform and pass things around

2004-08-19 Thread Bill Siggelkow
Sebastian, the short answer is to set the object as a request attribute. You would do something like the following in your action: public ActionForward execute(...) { Foo myFoo = FooService.getFoo(); request.setAttribute("myFoo", foo); return mapping.findForward("success"); } Then on the succ

RE: Security - From tradition to struts

2004-08-19 Thread Daniel Perry
You can also put an execute method in the base action that does the 'logged-in' check, and use a global forward to forward to login page. If you do this, then add an abstract method eg executeAction with the same signature as execute, and call it. The main advantage of this is to stop you forgett

Re: dealing with check boxes

2004-08-19 Thread anuj . upadhyay
Jignesh, I think your problem is not related to checkbox or multibox but to maintain a list of modified records. To keep it simple I would suggest that you maintain a Collection (Map, HashMap, List, etc.) of the modified records (which were checked or unchecked) in the session. I think you can

Re: Security - From tradition to struts

2004-08-19 Thread Susan Bradeen
Excellent explanation, Erik. Consider adding this to the Struts Wiki for posterity? Must be a place for it in there somewhere ... Erik Weber <[EMAIL PROTECTED]> wrote on 08/19/2004 08:31:08 AM: > Sorry, by "hand-rolled" I just mean one that is written specifically for > the application (writt

need help on format attribute of bean:write

2004-08-19 Thread William T Hansley
Return Receipt Your need help on format attribute of bean:write document:

need help on format attribute of bean:write

2004-08-19 Thread Bibhu Kalyan
Hi All, Good day. I have a code snippet like following : But format key do not work here. Do I have to specify these keys somewhere else? I am trying to use this first time. Regards, Bibhu Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for u

Re: configuration violating J2EE spec? [Auf Viren geprüft]

2004-08-19 Thread David Durham
[EMAIL PROTECTED] wrote: You may combine mod_rewrite and mod_proxy in Apache and do all kinds of wunderful and strange URL mangling things: That's all well and good, so long (AFAIK) as the original client's request is maintained when the servlet is called. Otherwise, as a servlet developer, I ha

Re: different inputs in struts-config

2004-08-19 Thread Susan Bradeen
Sebastian Ho <[EMAIL PROTECTED]> wrote on 08/19/2004 05:19:35 AM: > hi > > I used the same actionform for a few JSP pages, which I guess is good > practice. The problem occurs when I add in validation in my ActionForm. > > Because in the struts-config, only one is specified for every > Action

Re: Security - From tradition to struts

2004-08-19 Thread Leandro Melo
Thank you very much for your time Erik, i'll try to get some study around it!!! I don't know if it's possible (probably not, i know...) , but if you could send me your LogonAction class (and associated stuff) would awsome! But i you can't, that's allrigth, i completely understand! Regards, Leandr

Re: DynaForm external Xml Source

2004-08-19 Thread Ovidiu EFTIMIE
You can split your struts-config.xml in 12-13 files and by subapplication .Then specify them in web.xml. action org.apache.struts.action.ActionServlet config WEB-INF/struts-config.xml,WEB-INF/SUBAPP_1/struts-one-config.xml,WEB-INF/SUBAPP_1/struts-two-config.xml,WEB-INF/SUBAPP_1/struts-three-config

DynaForm external Xml Source

2004-08-19 Thread Krishna Murthy .U
Hi , we are developing an application. We are using Struts's DynaForms. problem ). we have 12-13 froms each form containig around 100 input text fields.if I define all the form-beans under and Using DynaForms .then my struts-config.xml will be very huge with 1000's of 's. is there

Re: Security - From tradition to struts

2004-08-19 Thread Erik Weber
Sorry, by "hand-rolled" I just mean one that is written specifically for the application (written by you). The general idea is something like this: Make a BaseAction class. Implement a checkLogin method in the BaseAction class that looks in the current request's HttpSession for a "User" object,

RE: [OT]1,2,3,4 I declare a pun war!

2004-08-19 Thread Galbreath, Mark A
An ugly girl in the 3rd grade? -Original Message- From: Wiebe de Jong [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 18, 2004 6:46 PM To: 'Struts Users Mailing List' Subject: RE: [OT]1,2,3,4 I declare a pun war! On the topic of sheep, Where does that 100% virgin wool come from anyways

Re: Security - From tradition to struts

2004-08-19 Thread Leandro Melo
Erik, i don't quite understand what you call a hand-rolled java component (maybe because of my english). Anyway, it seems to me that you're not using JAAS to completely control application's security, are u? I don't know if it possible, but if so, would you post your setup and basic classes? I'm ve

dealing with check boxes

2004-08-19 Thread Jignesh Kapadia
Hi , I did post a question regarding the problem I am facing in dealing with check boxes in struts. I did not get a proper reply. I am just explaining the scenario . It will be good help from your side if somebody can guide as how this can be done . We have a previous/ Next s

Re: [OT] Date Localization

2004-08-19 Thread Jason Lea
SimpleDateFormat sdf=new SimpleDateFormat("-MM-dd HH:mm"); TimeZone tz1 = TimeZone.getTimeZone("America/Los_Angeles"); TimeZone tz2 = TimeZone.getTimeZone("Asia/Karachi"); Date now=new Date(); //time in LA sdf.setTimeZone(tz1); System.out.println("Time in LA: "+sdf.format(now)); //time in LA sd

Re: Toomany Client-side validation code!!!

2004-08-19 Thread Shinobu Kawai
Hi Rajesh, > you mean dynamicJavascript=false > > what will happen if i give it. > > normally html:javascript will create a main function called > > validate(form) {} > > will this function writes ? if so then where all the other functions goes ? The javascript tag produces javascript i

  1   2   >