Re: Why not to use Action chaining ?

2003-07-23 Thread Sandeep Takhar
In a lot of locations there is mention that actions should not have business logic in them. By chaining you are sometimes calling an action to invoke the business methods that it contains. This is frowned upon as not a best practice. Action chaining is useful sometimes and there is no question

Re: [Friday] How far can we let the clients push us?

2003-07-22 Thread Sandeep Takhar
This is a mistake to do this en masse. sandeep --- Erik Price [EMAIL PROTECTED] wrote: Rise and fall of the American empire What's funny is that many misguided fools will accuse you of being unpatriotic if you *don't* support globalism, et al. Erik Vic Cekvenich wrote:

Re: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
there's a lot of stuff it gives you out of the box. 1. solid code 2. validation framework 3. tile framework 4. auto-population framework 5. role based actions 6. xml configuration of all the links or actions of your application 7. best practices framework bundling (scaffolding) complete with

Re: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
Sandeep Takhar

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
container? Sandeep, You mentioned role based actions in your list... which has caught my eye. Can you please elaborate on this ? Or point me to some documentation ? thanks -raj Sandeep Takhar [EMAIL PROTECTED]To: Struts

Re: dificult problem, preventing population (repost)

2003-07-21 Thread Sandeep Takhar
the developers of struts would have added it if this is the right spot. sandeep --- Jing Zhou [EMAIL PROTECTED] wrote: - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Jing Zhou [EMAIL PROTECTED] Sent: Friday, July 18

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
-Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 11:21 AM To: Struts Users Mailing List Subject: RE: Struts MVC framework similar to that of a servlet container? I guess the main difference between what you mention and struts is that you can

Re: Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Sandeep Takhar
this doesn't work because of the xml specification (cannot embed xml like this) Have to use el or scriptlet instead. sandeep --- Dirk Behrendt [EMAIL PROTECTED] wrote: Hello! I want to use some values from the properties file in my JSP page. ApplicationRessources.properties file:

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
| | | | | Sandeep Takhar | [EMAIL PROTECTED]To: Struts Users |Mailing List [EMAIL PROTECTED] | ahoo.comcc: | Subject: Re: Struts MVC |framework similar

Re: Accessing Page Scope Var in Scriptlet

2003-07-21 Thread Sandeep Takhar
use item sandeep --- Hunter Hillegas [EMAIL PROTECTED] wrote: When I use nested:iterate as such: nested:iterate id=item property=lineItems indexId=lineItemCount I get a page scope variable called 'lineItemCount'. I have a need to use that variable in a scriptlet (I know, I know...).

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
have Struts and the servlet container itself :). -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 2:39 PM To: Struts Users Mailing List Subject: RE: Struts MVC framework similar to that of a servlet container? If you've built

Re: What Is The Proper Location To Place Inputs For Creating A Drop-Down Menu

2003-07-18 Thread Sandeep Takhar
I'd put it in the database. The value can be the abbreviated state name and the label can be the resource property that you look up. You can do something like what I saw in Struts in Action book. It uses an action in scaffolding contrib project (part of start) that is called ExistsAttribute

Re: How to map multiple submit actions for a single form

2003-07-18 Thread Sandeep Takhar
Lots of ways, but best to read more about them.. 1. LookupDispatchAction 2. You can have different forms for each of them quite easily. 3. Cancel should be an html:cancel and you can check (preferabbly in a BaseAction) if isCancelled(request). 4. Can have an action that one form points to and

Re: dificult problem, preventing population (repost)

2003-07-18 Thread Sandeep Takhar
but also in many others ... I wish there could be a simple way to disable the Back button. But browser vendors would say once it is disabled, who is responsible to enable it. There should be some better algorithm for this problem. Jing - Original Message - From: Sandeep Takhar

Re: Newbie question about form variables.

2003-07-18 Thread Sandeep Takhar
session scope or hidden fields on each page. sandeep --- Norr, Peter [EMAIL PROTECTED] wrote: I am developing a wizard style form.. How do I obtain the value submitted in the previous page of a form from the jsp page? For example, in step2.jsp I need to know what was selected in

RE: Iterating the resultset contents in the view (jsp)

2003-07-18 Thread Sandeep Takhar
Is this display tag library better now with i18n and formatting dates etc... Do I still have to create objects to format the values in the table? Curious to know if someone has had real life experience with this nice product and maybe has some best practices... sandeep --- Raible, Matt [EMAIL

Re: Tiles question

2003-07-17 Thread Sandeep Takhar
Haven't gone into the details of it.. but could you pass in one definition (override) over the other where one putlist is different than the other and each has a role name on it? sandeep --- Alex Shneyderman [EMAIL PROTECTED] wrote: I have tiles definition file and and I use putList

Re: [OT] Workflow Proposal for Struts

2003-07-17 Thread Sandeep Takhar
I like the idea of validation of struts-config. Could you send me that if you don't mind? sandeep --- Sloan Seaman [EMAIL PROTECTED] wrote: Jacob, Can't you pull off workflow (to some degree) with action chaining? Here is the system I have devised (this is part of a much larger

Re: dificult problem, preventing population (repost)

2003-07-17 Thread Sandeep Takhar
I think he meant isTokenValid(). Also the form tag will create the token and you can look at it in the source. You can check the token higher if you want (before population) by placing it in one of these methods on the requestProcessor.. (not sure logistically which one has the request

Re: Backen Error Messages

2003-07-17 Thread Sandeep Takhar
I believe you need a standard backEndError = {0} and just replace it with the text that you have. sandeep --- Manuel Lenz [EMAIL PROTECTED] wrote: Hi to all, in struts I only know the error-construct from actionClass: errors.add(error, new ActionError(foo.message3)); But i donĀ“t want

Re: Acces form name in the jsp

2003-07-17 Thread Sandeep Takhar
A bit of a hack is to have something like this in your action request.setAttribute(otherName, theForm) This will make it work on the jsp anyways for now... sandeep --- Nagendra Kumar O V S [EMAIL PROTECTED] wrote: hi, u can use nested taglib which will not require name attribute, it takes

Re: Acces form name in the jsp

2003-07-17 Thread Sandeep Takhar
good idea... sandeep --- Nicolas De Loof [EMAIL PROTECTED] wrote: No form-bean is associated with a JSP; Some JSP use html:tags to use form-beans. I use some constants for form-beans so that form-bean names are duplicated only one time : in constant definition class and in

Re: Multiple forms on same page

2003-07-17 Thread Sandeep Takhar
The submit will only submit the one form... sandeep --- Ajay Patil [EMAIL PROTECTED] wrote: Dear Jing, In the scenario that you describe (Multiple forms on same HTML page) - The browser will send only the data inputted on the form whose submit button is clicked. The data inputted in

Re: Workflow Extension: Hurting struts functionality?

2003-07-17 Thread Sandeep Takhar
I don't think it hides much. Basically some session objects are new and the actionMapping is extended. You don't have to worry. sandeep --- C F [EMAIL PROTECTED] wrote: Hello, For anyone here who's had experience using the Struts Workflow extension

Re: dificult problem, preventing population (repost)

2003-07-17 Thread Sandeep Takhar
: - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 17, 2003 7:49 AM Subject: Re: dificult problem, preventing population (repost) I think he meant isTokenValid(). Also the form tag will create

Re: Is this really the best way to handle this problem

2003-07-16 Thread Sandeep Takhar
The other way to do it is to use scaffolding which is part of the struts release. It is really a best-practices framework that is available for use. sandeep --- Dennis Meelis [EMAIL PROTECTED] wrote: I usually give the page with the form it's own action (ie. xxxUpdateSetupAction which I use

Re: Question about the form tag

2003-07-16 Thread Sandeep Takhar
sounds like you are using many html:form action= maybe in an iterate? or maybe I am not understanding the problem? sandeep --- Nadja Senoucci [EMAIL PROTECTED] wrote: Hello again, Add a hidden field with the name to every form which will identify it. Hmm... I have a few problems with

Re: How do I implement a Master/Detail maintenance form?

2003-07-16 Thread Sandeep Takhar
I don't think there is best-practices specific to master/detail processing per se. There are a lot of different ways to do this. So many that I don't know where to start actually. I would look at scaffolding as a best-practices and I would buy Struts in Action by Ted Husted gang. Not a plug,

Re: / /OREF:CPT7E658 nested:nest and all things nested...

2003-07-16 Thread Sandeep Takhar
seems correct to me. check your source. have you brought in the taglibs? sandeep --- [EMAIL PROTECTED] wrote: I have a property on a form bean that stores an object that contains an array list. The array list contains a wrapper object that contains 4 other objects - each of a different

Re: Is this really the best way to handle this problem

2003-07-16 Thread Sandeep Takhar
If you are using request scope beans than using the getters and setters is quite normal. Not too hackish in my opinion.. sandeep --- Linus Nikander [EMAIL PROTECTED] wrote: First off, thank you for the reply. As you point out both solutions that you suggest have a certain hackishness over

Re: mapping.findForward( mapping.getInput() ) ?

2003-07-16 Thread Sandeep Takhar
I lost track of this thread, but I believe return new ActionForward(mapping.getInput()) might work?? sandeep --- Michael Muller [EMAIL PROTECTED] wrote: 1) You can use mapping.getInputForward() - more straightforward. so would you say cavaness's example broken? is there any way to

Re: Tiles and %@ taglib

2003-07-16 Thread Sandeep Takhar
It may depend on your jsp compiler. We have it on each jsp page. sandeep --- Erez Efrati [EMAIL PROTECTED] wrote: In tiles, where should I be best putting the %@ taglib uri=required lib %? Each tile jsp with its own tags or put them all in the layout JSP I use? Thanks, Erez

Re: options and properties

2003-07-16 Thread Sandeep Takhar
should just be setProperty(String str) with WhateverObject getName(int index) careful if you are using request scope beans because they won't be there. See other recent posts about how to code getName(int index) sandeep --- John Hethcox [EMAIL PROTECTED] wrote: I have a table inside of a

Re: DynaValidatorForm

2003-07-16 Thread Sandeep Takhar
I think there is a map that you need to access: addForm.map.NAME sandeep --- Sloan Seaman [EMAIL PROTECTED] wrote: Why when I do a : bean:write name=addForm property=NAME/ It works fine. But if I do a c:out value=${addForm.NAME}/ or c:out value=${sessionScope.addForm.NAME}/ I get:

RE: How do I implement a Master/Detail maintenance form?

2003-07-16 Thread Sandeep Takhar
doesn't seem too dynamic after the two second look. might want to use arraylists in the dynaform. sandeep --- Jayaraman Dorai [EMAIL PROTECTED] wrote: http://www.developer.com/java/ejb/article.php/2233591 Hope this helps. I haven't tried this myself yet. Jayaraman -Original

Re: How do I implement a Master/Detail maintenance form?

2003-07-16 Thread Sandeep Takhar
I suppose my assumptions are that there is nothing to process on the master form. sandeep --- Jing Zhou [EMAIL PROTECTED] wrote: - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; Jing Zhou [EMAIL PROTECTED] Sent

Re: Wizard Style Forms Example

2003-07-16 Thread Sandeep Takhar
check the mailing archive. I can suggest one thing from the top of my head. Use less forms and more mappings. One form for the whole detail flow. Try and keep them request scope, but you will probably have to use session. sandeep --- Norr, Peter [EMAIL PROTECTED] wrote: Does anyone know a

Re: Mixing text and Form fields

2003-07-16 Thread Sandeep Takhar
You could have the other bean as an included object on the form bean:write name=formName property=includedObject.date/ you are right that it won't be populated to the next page if it is request scope. It is normal to use html:hidden. sandeep --- Linus Nikander [EMAIL PROTECTED] wrote: How do

Re: is Struts action class a Design Pattern of utility class?

2003-07-16 Thread Sandeep Takhar
You can still have static methods on the action, just no instance variables that you update. No instance variables on actions is generally the case. sandeep --- David Graham [EMAIL PROTECTED] wrote: --- Denis Wang [EMAIL PROTECTED] wrote: Hello, all, I am not sure whether it is a good

RE: Use of Validator in a Wizard Validator

2003-07-16 Thread Sandeep Takhar
you could use the attribute setting of your action-mapping. This will be used by the validator.xml file. Basically use the same form, but the validation will be different. I think that if you reference the formName on page2 - you may have to reference using the attribute name. I haven't used

Re: / /OREF:CPTC4BC4 Re: nested:nest and all things nested...

2003-07-16 Thread Sandeep Takhar
really wild guess here... I have had problems with jdk 1.3.1_08 and indexed properties. sandeep --- [EMAIL PROTECTED] wrote: Yup, the taglib [%@ taglib uri=/WEB-INF/struts-nested.tld prefix =nested %] is there. Tx, Sandeep |-+--- | |

Re: Question about the form tag

2003-07-16 Thread Sandeep Takhar
yes it is more understandable... As someone else has indicated, this is solved using indexed properties usually... sandeep --- Nadja Senoucci [EMAIL PROTECTED] wrote: Hello, sounds like you are using many html:form action= maybe in an iterate? or maybe I am not understanding the

Re: Where to build dropdown lists?

2003-07-16 Thread Sandeep Takhar
I have not personally used scaffolding, but by separating your business logic from your display logic you gain advantages. Scaffolding's business beans automatically populate to certain scopes. You can have many of them per action-mapping. By going to a different mapping, but having the request

Re: bean:size tag in Struts 1.0.2

2003-07-15 Thread Sandeep Takhar
scope on bean:size isn't doing what you think it is doing. bean:size create page scope and scripting var... The bean scope within which to search for the JSP bean specified by the name attribute. If not specified, the available scopes are searched in ascending sequence. sandeep --- Dmitri Ilyin

Re: Tiles:getAsString tag

2003-07-14 Thread Sandeep Takhar
why not tiles:useAttribute followed by a bean:message name= sandeep --- Erez Efrati [EMAIL PROTECTED] wrote: Is there a way to give tiles:getAsString a key instead of a literal string ? Just like bean:message key=welcome it will use the key to retrieve the string from the message

Re: Indexed form values

2003-07-14 Thread Sandeep Takhar
session scoped beans or request? If request - then there have been numerous replies about this FAQ which is that you have to initialize all values less than or equal to the index that are null. i.e. getObject(int index) sandeep --- Amit Kirdatt [EMAIL PROTECTED] wrote: I have a struts form

Re: Re-Population of form parameters after nn error has occured

2003-07-11 Thread Sandeep Takhar
I may be naive, but I don't know why you are using type here: html:form action=/company/OrganisationNameSearch name=company.OrganisationNameSearch type=net.natdata.application.itf.insolvency.company.OrganisationNameSearchActionForm sandeep --- Rodney Paul [EMAIL

Re: best way to build a wizard

2003-07-11 Thread Sandeep Takhar
Personally I don't think there is anything wrong with having multiple mappings. You are doing the right thing by mapping to the same action and form. The jsp can define the action individually. After reading Ted's book I think of mappings and actions as just presentation layer components that

Re: (RE-POST) RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-11 Thread Sandeep Takhar
.. yes, the input page has always been a .jsp, the destination (address bar) page has always been a .jsp. and the action to which the form is posted has always been a .do/.jspa/action.. nothing changed save for the swapping of libraries (.jars). From: Sandeep Takhar [EMAIL PROTECTED

Re: DefinitionDispatcherAction problem

2003-07-11 Thread Sandeep Takhar
sorry can't help much, but I looked at the code and it didn't make sense to me and I'm probably missing something. At the end of the method it says ..[forward to success, but this isn't used].. the one second glance seems to indicate that it would be?? sandeep --- ale bra [EMAIL PROTECTED]

Re: Using tiles outside of Struts

2003-07-10 Thread Sandeep Takhar
from the docs: definition Name of the definition to insert. Definition are defined in a centralized file. For now, only definition from factory can be inserted with this attribute. To insert a definition defined with tag template:definition, use beanName=. (RT EXPR) sandeep --- White, Joshua

Re: (RE-POST) RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-10 Thread Sandeep Takhar
obvious guy asks: your input has always been to a .do or equivalent (to an action) or to a jsp? sandeep --- Yansheng Lin [EMAIL PROTECTED] wrote: Read backwards:). Interested in finding out why. -Original Message- From: Adam Levine [mailto:[EMAIL PROTECTED] Sent: July 8,

RE: Multiple Application Modules

2003-07-10 Thread Sandeep Takhar
in struts-config and for module b you have defined that its key=test? I think that this is a yes. sandeep --- Lloyd Wilson [EMAIL PROTECTED] wrote: How would I retrieve values from my message resource bundle without a key?? Currently, I use the following to access a message resource bundle

Re: Data reposting when forwarding to Action

2003-07-10 Thread Sandeep Takhar
Yes step #7 is occuring. One of the reasons for not chaining actions together. sandeep --- John M. Corro [EMAIL PROTECTED] wrote: I'm currently running into an issue w/ data reposting after I've forwarded to another Action. In my ActionForm, say I have an ArrayList of ApplicationUser

Re: Different actionforms pointing to the same action ?????

2003-07-10 Thread Sandeep Takhar
I wouldn't. Each action should have one actionForm. Maybe a coarse-grained one with all the properties? sandeep --- [EMAIL PROTECTED] wrote: Hi, Is it possible that an action is used with different actionforms ? I explain. I would like to create a generic action (e.g. action to send an

Re: multi-user development

2003-07-08 Thread Sandeep Takhar
Is this the only way? Do you have to specify the bundle? sandeep --- manglu [EMAIL PROTECTED] wrote: Hi, My two cents. Along the lines of multiple COnfig files, having multiple message bundles would be handy as well(for the same reason(s)) I use one bundle per config file.

Re: Dynamically changing forward in ActionForm

2003-07-08 Thread Sandeep Takhar
This has been asked many times before. You have to store something. Sometimes it is nice to have a user object that stores bookmarks etc. try searching the archive... sandeep --- Michael C. Clark [EMAIL PROTECTED] wrote: I have a small ActionForm which I would like to include on all pages

RE: Urgent!!!Sorting Problem while loading from HashMap

2003-07-08 Thread Sandeep Takhar
Be careful about TreeMap though. If you have equivalency in the comparator it will remove one of the objects... Read the javadocs carefully. sandeep --- Kris Schneider [EMAIL PROTECTED] wrote: TreeMap: Red-Black tree based implementation of the SortedMap interface. This class guarantees

RE: Populating select boxes dynamically

2003-07-08 Thread Sandeep Takhar
I would store something like this in application context. This is easier in your case since you have one language it seems. PreActions can be created simply by having a BaseAction that everything overrides. The baseAction has a bunch of hooks that can be overridden. One of these is

Re: Workflow engine status

2003-07-08 Thread Sandeep Takhar
That is not a workflow engine per se. sandeep --- Matthias Bauer [EMAIL PROTECTED] wrote: I don't think that there has been anybody working on this proposal for several months. It is definitely not part of the latest Struts releases. Depending on what your requirements are, you might

Re: Best place for security checks in Struts?

2003-07-08 Thread Sandeep Takhar
There must be a diagram that shows all the calls before it actually hits execute() method. There are quite a few. If you have a base action you can override one of them processRoles seems to be a logical place... sandeep --- David Erickson [EMAIL PROTECTED] wrote: Hi I am setting up my webapp

Re: Best place for security checks in Struts?

2003-07-08 Thread Sandeep Takhar
for each one. sandeep --- David Erickson [EMAIL PROTECTED] wrote: And which class is the procesRoles method in? - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 9:47 AM Subject: Re: Best place

Re: Action forward to another action without form

2003-07-07 Thread Sandeep Takhar
just have your forward in the action go to something the servlet will pick up forward name=success path=/AnotherAction.do/ and just mapping.findForward(success); Note that this may not be syntatically correct... sandeep --- Benjamin Stewart [EMAIL PROTECTED] wrote: Can you point me in the

Re: logic:iterate question

2003-07-07 Thread Sandeep Takhar
The following link should help: http://www.mail-archive.com/[EMAIL PROTECTED]/msg71256.html however it talks about using el, but this is not necessary. I have got the nested tags to work properly. The logic tag should work, but I think I was doing something slightly wrong when I tried.

Re: notEmpty/empty and interation

2003-07-07 Thread Sandeep Takhar
seems right. what happens if you just print hello in between the tags? Does it print the correct number of times? sandeep --- ben [EMAIL PROTECTED] wrote: Hi, Using struts1.1 I have problems getting the iterate tag working. the page scoped id bean for the element is never found. This

Re: notEmpty/empty and interation

2003-07-07 Thread Sandeep Takhar
also check to see if you have logic taglib api defined. If it is not, then check your source and you will see the xml .. logic:iterate right in the source. sandeep --- ben [EMAIL PROTECTED] wrote: Hi, Using struts1.1 I have problems getting the iterate tag working. the page scoped id

Re: odd tiles behavior with tile parameters

2003-07-07 Thread Sandeep Takhar
with the useAttribute tag implementation or the put tag implementation. Any other ideas? Thanks again. -matt On Mon, Jul 07, 2003 at 06:07:33AM -0700, Sandeep Takhar wrote: Not sure if this is what you are after, but according to the docs it says that tiles:get will respect

Re: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
should it be a validatorForm? sandeep --- Poon, Johnny [EMAIL PROTECTED] wrote: Hi, I'm using trying to use ValidatorActionForm and tile, but the submit button is outside of the form on a different JSP, therefore, I need to submit my form indirectly using a link and javascript (see code

RE: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
that. sandeep --- Poon, Johnny [EMAIL PROTECTED] wrote: Sandeep, No, because I'm using the same bean across different screen, so ValidatorActionForm suits me better, as it validates based on the action instead of the form. JP -Original Message- From: Sandeep Takhar

Re: Problems with logic:iterate (indexId has no effect) - doesn't anyone know the solution?

2003-07-07 Thread Sandeep Takhar
I wouldn't use a vector, but maybe you can? My understanding is that iterate works on anything that returns an iterator. logic:iterate name=someName should be used when the bean someName is in some scope and is the collection that you want. logic:iterate name=someName property=someProperty

RE: Validator using A href instead of html:submit

2003-07-07 Thread Sandeep Takhar
select your state of residence to continue., new Function (varName, return this[varName];)); } -Original Message- From: Sandeep Takhar [mailto:[EMAIL PROTECTED] Sent: Monday, July 07, 2003 11:29 AM To: Struts Users Mailing List Subject: RE: Validator using A href instead

Re: ActionForm mapped property submit/populate error

2003-07-07 Thread Sandeep Takhar
A very common problem and you can spend too much time on these issues. Personally - I would use the nested tags. When using them - don't worry about generating the nested property syntax. Just use them intuitively in the easiest fashion possible. This includes mapped properties. For indexed

Re: mapped properties

2003-07-04 Thread Sandeep Takhar
I may be having a brain fart, but what is a mapped property? sandeep --- Nathan Coast [EMAIL PROTECTED] wrote: Hi, is it possible to use mapped properties for populating properties within forms? If yes, does anyone have an example snip of jsp demonstrating how to use mapped

Re: 4th Of July Struts Challenge...

2003-07-04 Thread Sandeep Takhar
The answer for the first part is here: http://www.mail-archive.com/[EMAIL PROTECTED]/msg71256.html specifically the part where it talks about nested tags works. The logic:iterate I couldn't get to work and I haven't set up the el stuff, but that would probably work. All you need in the form is

Re: dynamic input forward?

2003-07-03 Thread Sandeep Takhar
I think having multiple mappings is the easiest. The other way is to modify the struts-workflow extension, but take it from me that this may be more complicated than it is worth. The workflow extension code has a session scoped bean that knows where you have been. With a little modification you

Re: JSTL- el - nested beans from a map used in a form?

2003-07-03 Thread Sandeep Takhar
I don't think you have defined your taglib at the top of the jsp. Your html-el should have changed when you look at the source.. sandeep --- Rick Reumann [EMAIL PROTECTED] wrote: On Sat, 2003-06-28 at 13:51, Dan Tran wrote: see this link

Re: Big Javabean?

2003-07-03 Thread Sandeep Takhar
Don't think there is a problem with a javabean that size. We have similar sizes. May want to think about using request scope though (with the same java bean). This means more calls to the database however. One question to ask is if you need to have concurrent access to the same data. Your

Re: Re: Using pojo-beans in html:text?!

2003-07-03 Thread Sandeep Takhar
Why not use beanUtils.copyProperties to reduce the copy hell. I would have the properties on the form bean and the DTO. Another thing to consider is possible race conditions. For example if the user double clicks - the populate is done before the token checking so if anything funny happens on

Re: Big Javabean?

2003-07-03 Thread Sandeep Takhar
I would disagree with having fine-grained action forms. You will run into problems by splitting them apart for a logicial entity. This is especially true if you have more than one type. JSP re-use is not a problem since this is done by reflection. However form-bean re-use will cause problems

Re: How the Values will Update in Session List if I Used Nested Iterator

2003-07-03 Thread Sandeep Takhar
form fields) setting to a FormBean is preferrable over putting it directly in HTTPSession. Thanks Regards, Ashok.D - Original Message - From: Sandeep Takhar [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, July 03, 2003 12:55 AM Subject: Re: How

Re: tile attribute as message key?

2003-07-03 Thread Sandeep Takhar
tiles:importAttribute with bean:message name= sandeep --- Henrik Lindqvist [EMAIL PROTECTED] wrote: Hi All, Is there any easy way to use a tile definition attribute as an bean:message key? Or do you have to useAttribute to declare a Java variable, and then bean:message key=%=key%/

Re: java.lang.ClassCastException trying to populate html:select

2003-07-03 Thread Sandeep Takhar
I think the reason why no one has tackled this is because there is a lot of things this could be. The exact error isn't mentioned either. Maybe show a bit of the stack trace? Let me take a crack at it by giving you the basics of what struts does and then maybe this will help? I wouldn't use a

Re: Struts - j2ee compliant

2003-07-02 Thread Sandeep Takhar
Two other things that come up on the list a lot are filters and struts-el. These require servlet 2.3 and jsp 1.2. sandeep --- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Tue, 1 Jul 2003, objectworlds wrote: Date: Tue, 01 Jul 2003 21:51:01 +0100 From: objectworlds [EMAIL PROTECTED]

Re: Html-El Form and Indexed Tags Problem

2003-07-02 Thread Sandeep Takhar
I don't think you want the [ctr] and keep indexed=true The thing you are iterating on is already doing the [ctr] for you. sandeep --- Brown, Melonie S. - Contractor [EMAIL PROTECTED] wrote: I have a form with a list that is made up of UserMenuItem objects. I want to allow the user to set

Re: How the Values will Update in Session List if I Used Nested Iterator

2003-07-02 Thread Sandeep Takhar
I would say the form. If you don't use the form, you will end up using the name attribute on all html elements. I suppose if you use nested tag libraries then this wouldn't be true though. Whenever I do anything that involves the html tags for editing, I use form properties since it seems

Re: Representing a 1-m relationship. Any suggestions to the best ap proach?

2003-07-02 Thread Sandeep Takhar
I would suggest getting a copy of Struts in Action and reading about the Artimus/Scaffold applications. My experience has been the same as yours. What we both want is some type of business delegate pattern. Artimus is just that. You can specify an action and each action has a business object

Re: Bread crumb trail

2003-07-02 Thread Sandeep Takhar
Don't know if this is one, but there is a struts-layout example. maybe try a google on struts-layout... sorry that's all I have.. sandeep --- Curtney Jacobs [EMAIL PROTECTED] wrote: Greetings!! Does anyone know of a bread crumb trail implemenation using Struts and Tiles? A link to a

Re: where does a form element get and put it's data

2003-07-02 Thread Sandeep Takhar
If the page is editable, then you should have the form as the bean in the list action. It is easier to think of the whole thing as layers of systems. For struts - the entity that we populate into and is auto-populated is the form. From here we can populate DTO's or a middle-tier object that can

Re: Modules and common files

2003-06-30 Thread Sandeep Takhar
I have not done it, but there are definitions in each request processor that can tell whether or not paths are relative. So the struts-config for the module has a request processor element that has global configuration info for the module. sandeep --- [EMAIL PROTECTED] wrote: Hi, We have

Re: bean:define to assign a different value to an existing variable

2003-06-27 Thread Sandeep Takhar
I don't think you can have it twice on the same page. You will have to try another way. sandeep --- [EMAIL PROTECTED] wrote: Apologies for the x-post, I put this in the dev newsgroup by a mistake. Ben In this code excerpt I am defining a bean with bean:define. However, I want to

Re: error handling

2003-06-27 Thread Sandeep Takhar
you will something in the session for this. I modified the workflow stuff to handle this situation. If a mapping has more than one path to it -- then you have to override default behaviour in order to get to the calling mapping. I am thinking now that it would have been easier to specify a

Re: Tiles Tab Link ?

2003-06-27 Thread Sandeep Takhar
I think that ParameterAction will take a parameter?? sandeep --- Natalie D Rassmann [EMAIL PROTECTED] wrote: Hi, I have a Tiles Definition file that contains a tab layout. In the tab layout, I want to use actions as links rther than linking directly to jsp files. I can get this to work,

Re: Cannot upgrade from struts rc1 to struts rc2 on weblogic 6.1 sp4

2003-06-27 Thread Sandeep Takhar
Do any of the jar files have '.' in them. More than one? Change the name... sandeep --- Denham, Martin [EMAIL PROTECTED] wrote: Hi, I have had lots of problems attempting to upgrade from struts rc1 to struts rc2 on weblogic 6.1sp4 and have all but given up. Has anybody else managed it?

Re: How I can format a date to display

2003-06-27 Thread Sandeep Takhar
there are c:fmt tags in el. I haven't used them though... sandeep --- ara [EMAIL PROTECTED] wrote: Hi,Marc. i use my custom tag. !-- DateTag Definition -- tag namedate/name tagclassxx.yy.zz.view.taglibs.DateTag/tagclass bodycontentempty/bodycontent

Re: Best way of implementing application-specific config objects

2003-06-27 Thread Sandeep Takhar
Plug-ins are called during startup and shut down. You have to subclass and then put an init() and destroy() method. sandeep --- [EMAIL PROTECTED] wrote: Let's do it =) This is a very very very simple application. But I'm trying to learn it the right way for the next time. This time I

Re: Deprecation of perform()

2003-06-27 Thread Sandeep Takhar
don't know if someone commented, but it is the other way around. sandeep --- Simon Kelly [EMAIL PROTECTED] wrote: Hi all, In Struts-1.1-rc2, I'm getting an warning during compilation that the perform() method has been depreciated. I was under the impression that execute() had been

Re: Problem with html:multibox

2003-06-26 Thread Sandeep Takhar
try and make id of iterate = property. may work... sandeep --- O_Parthasarathy Kesavaraj [EMAIL PROTECTED] wrote: I am having a value object inside an arraylist.The array list i have declared as a property in my form bean.The value object contains id and name.The arraylist gets populated

RE: Tiles Tab to Actions

2003-06-26 Thread Sandeep Takhar
I looked at tabsLayout.jsp in rc2. Here is a code snippet: String href = request.getRequestURI() + ?+parameterName + = + index; // Don't add request URI prefix , but let the client compute the original URL // This allows to use a Struts action as page URL, and perform a forward.

RE: Problem with html:multibox

2003-06-26 Thread Sandeep Takhar
Is this the full error? Seems truncated sandeep --- O_Parthasarathy Kesavaraj [EMAIL PROTECTED] wrote: No.it is not working -- From: Sandeep Takhar[SMTP:[EMAIL PROTECTED] Reply To: Struts Users Mailing List Sent: Thursday, June 26, 2003 5:33 PM

Re: Question reguarding ActionForms

2003-06-26 Thread Sandeep Takhar
I think you can get away with booleans for radio buttons. sandeep --- Jamie M. Guillemette [EMAIL PROTECTED] wrote: Hi Everyone, Ok.. we have been using struts for sometime now and have recently come a realization that i would love to get confirmed or corrected. ActionForms: All

  1   2   3   >