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 a

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 Cekve

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

2003-07-21 Thread Sandeep Takhar
ispatch the request > to it" point of view, we > still 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 >

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: > > 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...). > > I tried this: > > calendarCo

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

2003-07-21 Thread Sandeep Takhar
g as above. There are tutorials, > examples, etc... > | > | > |> 8. ease of use > |If you think of a Servlet as an Action its kind of > as easy. > |Except for some > |repetative tasks that I would include to complete > the servlet spec (rather > |than rewrite some of the containe

Re: Use ApplicationRessources.properties values in 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 fil

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

2003-07-21 Thread Sandeep Takhar
> Thanks for the help, > > ranko > > -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 > contain

Re: dificult problem, preventing population (repost)

2003-07-21 Thread Sandeep Takhar
since 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" > <[EMAI

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" >

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

2003-07-21 Thread Sandeep Takhar
entation ? > > thanks > -raj > > > > > >

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 examp

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: 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 > selecte

Re: dificult problem, preventing population (repost)

2003-07-18 Thread Sandeep Takhar
Jing > > - Original Message - > From: "Sandeep Takhar" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > <[EMAIL PROTECTED]>; "Jing > Zhou" <[EMAIL PROTECTED]> > Sent: Thursday, July 17, 2003 12:35 PM > Subject

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 just

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 th

Re: dificult problem, preventing population (repost)

2003-07-17 Thread Sandeep Takhar
PROTECTED]> wrote: > > - 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 populati

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 > (http://www.livinglogic.de/Struts

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 inputt

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 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 struts-config.

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" attribut

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

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 signature

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: 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 > > > >

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: 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 understan

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: 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: 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 go

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 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 I, at the Jsp level, successfully mix text > and for

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 k

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 L

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: 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 : > > > It works fine. > > But if I do a > > or > > > I get: > [ServletException in:/app/promoFlight/add_body.jsp] > An error occurred while evaluating cus

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: checkboxes - ActionForm in session scope

2003-07-16 Thread Sandeep Takhar
http doesn't send values for checkboxes when they are not set. reset() method is used for just this thing (on your actionForm) sandeep --- "Khalid K." <[EMAIL PROTECTED]> wrote: > Hello All, > > I have the following problem, and any help is > greatly appreciated: > > 1. html form that has a che

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, > E

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 t

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 >

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 diff

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: 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 proble

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 u

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 Ilyi

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: 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 a key > instead of a literal > string ? Just like will use the key to > retrieve the string from the message resources. > If not, how hard is it to make i

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: (RE-POST) RE: using getInputForward vs new ActionForward(mapping.getInput())

2003-07-11 Thread Sandeep Takhar
d, nothing answered.. > > 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 > swappi

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-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: sandeep --- Rodney Paul <[EMAIL PROTECTED]> wrote: > Hi All, > > Im currently experiencing a problem with the Struts > framework, in that form values > are not being re-populated after a validation error > has occured within a Actio

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

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 > Application

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 > resourc

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: Ju

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 , use beanName="". (RT EXPR) sandeep --- "White, Joshua A (HTSC, CASD)"

Re: Best place for security checks in Struts?

2003-07-08 Thread Sandeep Takhar
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]&

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 weba

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 mig

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 preProcessin

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 > guarantee

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 pag

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 fi

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 pr

RE: Validator using instead of

2003-07-07 Thread Sandeep Takhar
It seems to me like it should work. I have used submit() on forms and it will go to the action element of the form tag. So this is just html specs here. Don't know why the validation is not being called. There should be some onSubmit="" somewhere in the form tag probably... sandeep --- "Poon,

Re: Action forward to another action without form

2003-07-07 Thread Sandeep Takhar
Also important is if you have a different form, the properties will be populated according to the old submitted parameters. sandeep --- Jing Zhou <[EMAIL PROTECTED]> wrote: > Forwarding to a target action is not considered as a > good practice in the past is because the form bean > population > an

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="somePrope

RE: Validator using instead of

2003-07-07 Thread Sandeep Takhar
form. > > JP > > -Original Message- > From: Sandeep Takhar > [mailto:[EMAIL PROTECTED] > Sent: Monday, July 07, 2003 10:48 AM > To: Struts Users Mailing List > Subject: Re: Validator using instead of > > > > should it be a validatorForm? > >

Re: jsp links to stay within module

2003-07-07 Thread Sandeep Takhar
there is a SwitchAction that you can use. someone else probably has more details... sandeep --- ben <[EMAIL PROTECTED]> wrote: > Hi, > > I link 2 jsp's in moduleA (=not default module). > In order for struts to stay within moduleA i learnt > i cannot href the jsp > directly, because the module wi

Re: Validator using instead of

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

Re: odd tiles behavior with tile parameters

2003-07-07 Thread Sandeep Takhar
rect/type for navNode I get > ClassCastExceptions > when my JSP runs with the above tag. > > It seems if there is a bug, it's with the > useAttribute tag > implementation or the put tag implementation. > > Any other ideas? > > Thanks again. > > > &g

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 .. 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 happens when > the collect

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.

Re: odd tiles behavior with tile parameters

2003-07-07 Thread Sandeep Takhar
Not sure if this is what you are after, but according to the docs it says that tiles:get will respect the "type" parameter. So maybe this is a bug. >From the docs: <-- If 'direct=true' content is 'string', if 'direct=false', content is 'page' Specify content type: string, page, template or def

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. Remembe

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 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 right direction, none of my > books ta

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: 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 pr

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: 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 > > ...ve

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

2003-07-03 Thread Sandeep Takhar
normal text - not editable like 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: "

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: 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 t

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 sess

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 > > > http://www.strutskickstart.com/IndexedPropert

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: 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 ca

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

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 de

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 logi

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

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 <[EMAI

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 j

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 bee

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 ti

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. > > > > date > > xx.yy.zz.view.taglibs.DateTag > empty > format Data > > sourceDate > false > true > > >

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 man

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

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 di

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 > >

  1   2   3   >