Re: Validation Question with Indexed Properties
friendly *bump* On Sun, 21 Mar 2004 18:12:54 -0600 (CST), Craig Tataryn wrote: Hi, I have the following definition in my validation.xml file: formset form name=MarketAddressForm field property=provStateId indexedListProperty=address depends=required arg0 key=Listing.formError.streetProvState/ /field /form /formset I then have a form that is built like so: % addressIndex = address( + region.getKey() + ); % html:select styleClass=Field property='%=addressIndex + .provStateId%' . . . /html:select This generates HTML that looks like: select name=address(355).provStateId class=Field . . . /select However, if I look at the javascript generated by html:javascript formName=addressForm, I find: var bCancel = false; function validateMarketAddressForm(form) { if (bCancel) return true; else return validateRequired(form); } function required () { } So does this mean that indexed properties for the validator do not work in javascript? Or am I doing something wrong? Thanks, Craig tataryn:craig/ tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Validation Question with Indexed Properties
Hi, I have the following definition in my validation.xml file: formset form name=MarketAddressForm field property=provStateId indexedListProperty=address depends=required arg0 key=Listing.formError.streetProvState/ /field /form /formset I then have a form that is built like so: % addressIndex = address( + region.getKey() + ); % html:select styleClass=Field property='%=addressIndex + .provStateId%' . . . /html:select This generates HTML that looks like: select name=address(355).provStateId class=Field . . . /select However, if I look at the javascript generated by html:javascript formName=addressForm, I find: var bCancel = false; function validateMarketAddressForm(form) { if (bCancel) return true; else return validateRequired(form); } function required () { } So does this mean that indexed properties for the validator do not work in javascript? Or am I doing something wrong? Thanks, Craig tataryn:craig/ tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multibox and selected values
I've done this in the past within an ActionForm like so: this.servlet.getServletContext() Craig. tataryn:craig/ On Mon, 15 Mar 2004 10:40:09 -0500, Saul Q Yuan wrote: I am not sure you can get the session directly in the form bean, however, you can get the current session in your action class, and in your action class, try get the current user and set it in the form bean. -Original Message- From: Amish Patel [mailto:[EMAIL PROTECTED] Sent: Sunday, March 14, 2004 11:13 PM To: [EMAIL PROTECTED] Subject: Re: Multibox and selected values Saul, How can I access the current user from the form bean? The current user is in the session. So in other words my question is how can I access the session from the form bean? Thanks in advance for your help! From: Saul Q Yuan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Multibox and selected values Date: Sun, 14 Mar 2004 20:42:31 -0500 If I understand your questions correctly, you can define two String arrays in your form bean, one for allRoles, and the other for selectedRoles, which is the array of roles of the current user. Before forwarding to your jsp, in your action class, you can retrive all the roles of the currently user, and set the roles to the selectedRoles in the form bean. HTH, Saul - Original Message - From: Amish Patel To: [EMAIL PROTECTED] Sent: Sunday, March 14, 2004 11:59 AM Subject: Multibox and selected values Hello All, I am running into this problem, that I am not able figure out how to do it properly. I have searched the web and have not found a decent example. What I am trying to do is use html:multibox taglib to display a set of checkboxes. These check boxes represent the user's security preferences. So if the user has a particular security token, then the respective check box should be checked. In order for this to work properly, I have to get two things, all the security tokens that exits in the system. And I have to get the security tokens that the user already has. In my ActionForm, I have two methods: one that gets all the security tokens in the system and second that gets only the tokens that the user has. The following is what I am using in my jsp to display checkboxes. logic:iterate name=associateUserRoleForm property=allRoles id=element html:multibox property=selectedRoles bean:write name=element / /html:multibox bean:write name=element / br / /logic:iterate Right now I am able to get allRoles successfully, but in order to retrieve the selectedRoles, I need a way such that my ActionForm (associateUserRoleForm) can get hold of this user or this user's id, which is already in the session. Once I get this I can then display all the security tokens and check those tokens that the user already has. How can I do this? Am I on the right track or is there a better way to do this? Thank You very much for your help! -Semplice _ Get business advice and resources to improve your work life, from bCentral. http://special.msn.com/bcentral/loudclear.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Find things fast with the new MSN Toolbar - includes FREE pop-up blocking! http://clk.atdmt.com/AVE/go/onm00200414ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Multibox and selected values
this.servlet.getServletContext().getAttribute() should give you access to beans in the user session. Craig. On Mon, 15 Mar 2004 11:53:13 -0500, Amish Patel wrote: And then how do I get the session from there? I looked at the API and the servlet context object does not have access to the HttpSession object. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: Multibox and selected values Date: Mon, 15 Mar 2004 10:36:58 -0600 (CST) I've done this in the past within an ActionForm like so: this.servlet.getServletContext() Craig. tataryn:craig/ On Mon, 15 Mar 2004 10:40:09 -0500, Saul Q Yuan wrote: I am not sure you can get the session directly in the form bean, however, you can get the current session in your action class, and in your action class, try get the current user and set it in the form bean. -Original Message- From: Amish Patel [mailto:[EMAIL PROTECTED] Sent: Sunday, March 14, 2004 11:13 PM To: [EMAIL PROTECTED] Subject: Re: Multibox and selected values Saul, How can I access the current user from the form bean? The current user is in the session. So in other words my question is how can I access the session from the form bean? Thanks in advance for your help! From: Saul Q Yuan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Multibox and selected values Date: Sun, 14 Mar 2004 20:42:31 -0500 If I understand your questions correctly, you can define two String arrays in your form bean, one for allRoles, and the other for selectedRoles, which is the array of roles of the current user. Before forwarding to your jsp, in your action class, you can retrive all the roles of the currently user, and set the roles to the selectedRoles in the form bean. HTH, Saul - Original Message - From: Amish Patel To: [EMAIL PROTECTED] Sent: Sunday, March 14, 2004 11:59 AM Subject: Multibox and selected values Hello All, I am running into this problem, that I am not able figure out how to do it properly. I have searched the web and have not found a decent example. What I am trying to do is use html:multibox taglib to display a set of checkboxes. These check boxes represent the user's security preferences. So if the user has a particular security token, then the respective check box should be checked. In order for this to work properly, I have to get two things, all the security tokens that exits in the system. And I have to get the security tokens that the user already has. In my ActionForm, I have two methods: one that gets all the security tokens in the system and second that gets only the tokens that the user has. The following is what I am using in my jsp to display checkboxes. logic:iterate name=associateUserRoleForm property=allRoles id=element html:multibox property=selectedRoles bean:write name=element / /html:multibox bean:write name=element / br / /logic:iterate Right now I am able to get allRoles successfully, but in order to retrieve the selectedRoles, I need a way such that my ActionForm (associateUserRoleForm) can get hold of this user or this user's id, which is already in the session. Once I get this I can then display all the security tokens and check those tokens that the user already has. How can I do this? Am I on the right track or is there a better way to do this? Thank You very much for your help! -Semplice _ Get business advice and resources to improve your work life, from bCentral. http://special.msn.com/bcentral/loudclear.armx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Find things fast with the new MSN Toolbar - includes FREE pop-up blocking! http://clk.atdmt.com/AVE/go/onm00200414ave/direct/01/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED
RE: Multibox and selected values
Oh right, sorry yeah my code looks in the Application scope in this instance. For getting the request scope variables I needed I had subclassed DispatchAction for my project and set the properties on my form bean which were grabbed from the request from within an overriden dispatchMethod (execute if subclassing normal Action) method. I suppose you could do the same as well and add a get/set UserSession property on your a subclassed ActionForm. Not sure how great an option that is? Here's what my code looked like: protected ActionForward dispatchMethod( ActionMapping mappings, ActionForm form, HttpServletRequest request, HttpServletResponse response, String methodToCall) throws Exception { if (form instanceof ApptiusForm) { //here's where I grab some user session variables and present them to my form bean ((ApptiusForm)form).setSessionUserName((String)request.getSession().getAttribute(POActionServlet.USER_KEY)); ((ApptiusForm)form).setSessionUserId((String)request.getSession().getAttribute(POActionServlet.USERID_KEY)); } String dispatchTo = ApptiusUtils.isNull(methodToCall,initialize); ActionForward forward = null; try { forward = super.dispatchMethod(mappings, form, request, response, do + ApptiusUtils.UCaseFirst(dispatchTo)); } catch (Exception e){ ApptiusLog.logError(e, this.getClass().getName() + :: + do + ApptiusUtils.UCaseFirst(methodToCall) + does not exist, or an error occured within that function, check stack trace below); throw e; } if (forward == null) { return mappings.findForward(dispatchTo); } else { return forward; } } Craig. tataryn:craig/ On Mon, 15 Mar 2004 10:13:41 -0700, Wendy Smoak wrote: From: Craig Tataryn [mailto:[EMAIL PROTECTED] this.servlet.getServletContext().getAttribute() should give you access to beans in the user session. Application/Context scope != Session scope -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
does not mean 0 [in my app] :)
Hi there, is there a configuration setting for Struts which tells it to set a property on a form bean of type Integer (not int) to null instead of new Integer(0) when the corresponding value coming in from the user's form is an empty string? I had to create a plugin that had the following in it's init() method: ConvertUtils.register(new IntegerConverter(null),Integer.class); Thanks, Craig. tataryn:craig/ tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: does not mean 0 [in my app] :)
Well, it really has nothing to do with the type of tag I am using be it radio,checkbox,text; I just wanted to know if there is a declarative way to override the default values used by BeanUtils in Struts. Or is putting the code (from my previous message) in a plug-in the best practice? In my mind, I can see why you would need to default an int property value to 0 when a value is not specified (they have no choice, it has to be set to something), but why they would take this liberty with an Integer object (or any other decendant Number), i'm not quite sure. Craig. tataryn:craig/ On Sat, 13 Mar 2004 16:41:41 -0800 (PST), Hubert Rabago wrote: That's the expected behavior. At the bottom of http://jakarta.apache.org/struts/userGuide/building_controller.html#dyna_action_form_classes: And, of course, while the DynaActionForm may support various binary types, properties used with the html:text tag should still be String properties. Hubert --- Craig Tataryn [EMAIL PROTECTED] wrote: Hi there, is there a configuration setting for Struts which tells it to set a property on a form bean of type Integer (not int) to null instead of new Integer(0) when the corresponding value coming in from the user's form is an empty string? I had to create a plugin that had the following in it's init() method: ConvertUtils.register(new IntegerConverter(null),Integer.class); Thanks, Craig. tataryn:craig/ tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail - More reliable, more storage, less spam http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: help me about indexed properties
Hi Mike, the attributes for logic iterate are all explained here: http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate and http://jakarta.apache.org/struts/faqs/indexedprops.html I've put it in my own words for you below: For logic:iterate == name attribute: tag looks in all three scopes (page,request,application)for a bean with the name equal to the value of this attribute. If it is found, and there is no property attribute specified elsewhere in the tag, then it will use the bean from the name attribute as the List/Map to iterate over. property attribute: The property specified in the property attribute will be applied against the bean found in the name attribute and the value of this property will be used as the List/Map to iterate. So if you specify name=MyForm and property=addresses then the list which will be iterated over will be the value passed back from the interate tag evaluating MyForm.getAddresses() id attribute: for each loop of the iterate tag, place the next element from the list into a page-level bean named by the value of the id attribute. idIndex attribute: for each loop of the iterate tag, place the current index value of the element from our List in the page-level int variable named by the value of the idIndex attribute (value is in [0..list.length]) For html:text === The attributes are pretty well explained in http://jakarta.apache.org/struts/userGuide/struts-html.html#text Hope that's enough to get you started. Craig tataryn:craig/ On Fri, 12 Mar 2004 02:53:11 +, Mu Mike wrote: sorry, the last mail doesnt display correctly, but when I tried to write a new one, I saw it displays correctly as the below ThanksRegards From: Mu Mike [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: help me about indexed properties Date: Fri, 12 Mar 2004 02:49:47 + I have the below jsp file needs help %@ taglib uri=/WEB-INF/struts-html.tld prefix=html % %@ taglib uri=/WEB-INF/struts-logic.tld prefix=logic % html body html:form action=indexedtest5.do logic:iterate name=stringbean property=stringArray id=foo indexId=ctr !--what do name property id indexID mean here? what value can I set to them? I searched online only fail to find any doc that give detailed explaination about these proeprties -- html:text name=stringbean property='%= labelValue[ + ctr + ].label %' / !--what do name and propetry mean here? what value can I set to them?-- /logic:iterate html:submit property=submitValueSubmit Changes/html:submit /html:form /body /html and I dont have the related bean files ,can anyone give me example bean files that can be used for this jsp file? ThanksRegards _ ÓëÁª»úµÄÅóÓѽøÐн»Á÷£¬ÇëʹÓà MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¨D MSN Hotmail¡£ http://www.hotmail.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT]JSP Debugger
I use the Sysdeo plugin http://www.sysdeo.com/eclipse/tomcatPlugin.html with eclipse and then simply let tomcat compile my JSPs. I set break points in the .java file corresponding to the jsp page I want to debug within the project name/work directory in Eclipse's Java perspective package explorer. Also, the developer (Bruno) is really good with feedback and help. Craig tataryn:craig/ On Wed, 10 Mar 2004 08:54:04 -0700, Larry Meadors wrote: I have used both netbeans and eclipse (without myEclipse) for this with tomcat and struts (never jboss, but I know people who are doing this using the JPDA debugger). Larry [EMAIL PROTECTED] 03/10/04 8:46 AM If you have the code to the tags, you can set breakpoints there, and debug at that level. I have found that to meet 100% of my debugging needs as far as JSP debugging goes. 1.May I know which tool you are talking about..?? 2.If you are talking about MyEclipse I agree that it works well with Tomcat,JBoss as separate container...when it comes to JBoss 3.2.3 bundle(contains Tomcat) it doesn't works. -Ramadoss -Original Message- From: Larry Meadors [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 10:39 AM To: [EMAIL PROTECTED] Subject: Re: [OT]JSP Debugger If you have the code to the tags, you can set breakpoints there, and debug at that level. I have found that to meet 100% of my debugging needs as far as JSP debugging goes. Larry [EMAIL PROTECTED] 03/10/04 7:48 AM 1.First my apology for post this question which I have asked it already. 2.This is question reg Debugging JSP,I do understand that debugging JSP is not really required if we are really follow MVC pattern as we are not putting too much of logic in it...BUT just wanted to know that is there any JSP debugger tool/plugin available for Eclipse? we know that myeclipse works well with Tomcat as a separate container but when it comes with JBoss Tomcat bundle I could not debug JSP using the same tool. Tnx in advance, -Ramadoss - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: map-backed action forms - form params not loaded ?
Yeah, definitely show us what your jsp looks like for your property attribute. If you are doing it like Daniel, everything should be good. If you are doing something like this: html:text property=value(test1).someProperty/ then it won't work when you submit your form unless that HashMap you have in your FormBean is initialized with an object keyed by test1 and has a property named someProperty. You might do something like: public Object getValue(String key) { if (!this.params.containsKey(key)) { this.params.put(key,new SomeObjectThatHasA_someProperty_Getter_Setter()); } return params.get(key); } On Wed, 10 Mar 2004 11:15:14 -0300, Daniel Henrique Alves Lima wrote: How do look like the properties in your form ? Something like this : html:text property=value(test1)/ html:text property=value(test2)/ ? Are the other properties (non map-backed) ok ? Raghu Havaldar wrote: Hi, Am using Struts 1.1, WinXP. Trying to use map-backed action forms to load a dynamic list of params from a form. When the form is submitted, the params are not loaded in the action form. Am following the guidelines as speced in the Struts docs. Here's a snippet: public ParamsForm extends ActionForm { private Map params = new HashMap(); public void setValue(String key, Object value) { params.put(key, value); } public Object getValue(String key) { return params.get(key); } } Have pored over the mailing list archivers. Folks seem to have gotten this working. Any pointers ? thanks, raghu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javascript delete function wih struts
I think you meant to say: if (window.confirm(Are you sure you want to + target) == true) Craig tataryn:craig/ On Wed, 10 Mar 2004 14:20:27 -0500, [EMAIL PROTECTED] wrote: My JavaScript is rusty, but something along the lines of: function set(target) { if (Are you sure you want to + target) == true) { document.forms[0].dispatch.value=target; document.forms[0].submit(); } } -Original Message- From: as as [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 10, 2004 1:55 PM To: Struts Users Mailing List Subject: javascript delete function wih struts Hi I want to show a pop up (delete confirmation in my page) when user clicks on delete button.The pop up will show Are you sure you want to delte-yes or no If user clicks on yes, then my page should set a page variable names dispatch to delete.ANd then call my form's post action, which will route it to the next page... how do i accomplish these two tasks for the onlye one button click? Thanks in advance, Sam. My code below: SCRIPT LANGUAGE=JavaScript function set(target) {document.forms[0].dispatch.value=target;} /script table border=1 width=100% tr th html:submit onclick=set('delete');Delete/html:submit .. so basically i want a pop up when user clicks the above Delete button (struts uses html:submit to generate a HTML button) and when i click on the yes on this pop up, i want the set(target) to get set Thanks in advance for help, Sam. - Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cannot Create Iterator
Try this: logic:iterate id=map name=alpha property=values logic:iterate id=submap name=map property=value When you iterate a map, the elements are of type Map.Entry (http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.Entry.html) See: http://jakarta.apache.org/struts/userGuide/struts-logic.html#iterate for more details. Craig tataryn:craig/ On Wed, 10 Mar 2004 17:17:15 -0300, Henrique VIECILI wrote: Hi, I have a bean in session scope wich is a HashMap of HashMap, i.e., the key's value stored is another HashMap. Ex.: HashMap alpha = new HashMap(); alpha.put(key1,new HashMap()); request.getSession().setAttribute(alpha,alpha); But, when I use : logic:iterate id=map name=alpha logic:iterate id=submap name=map it produces an JSPException: Cannot create iterator for this collection Is that any known bug? How to correct this issue? Thanx, Henrique Viecili - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can i do 2 submit at a time
Hi Sougata, you can if you set the target attribute of the forms either programmaically or in the tag itself to a frame other than the current one. Something like: html:form ... target=form1FrameResults . . . /html:form html:form action=/myAction target=myActionResults . . . /html:form html:form action=/myOtherAction target=myOtherActionResults . . . /html:form input type=button value=Submit Both Forms onclick=myActionForm.submit();myOtherActionForm.submit(); And you would need two frames from a frameset named myActionResults and myOtherActionResults, or two iFrames if you're clients are using IE v4.0, Mozilla, Netscape v6.0 or Opera. Or you could probably get away with using the current frame as a target for one of the forms. Craig. tataryn:craig/ On Thu, 11 Mar 2004 11:12:10 +0530, sougata wrote: Hi folks I have an application.Where in my parent page there is a child page.In the child form there is one submit button and in the parent there is another submit button.It is like that for one parent user can add multiple child.Now if the user does not click the child submit I have to submit both submit.shlall i do it pls let me know Thanks Sougata tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with Map-backed ActionForm and Key value
Heh, Brian you were having the same problem I was. I posted yesterday with subject: [RT Expr] for html:text property Craig M replied quoting the JSP spec (Third download button on page: http://www.jcp.org/aboutJava/communityprocess/final/jsr053/), to quote section JSP.2.13.1 Request Time Attribute Values, paragraph 2 describing the user of %=% in request-time attribute values: quote The expression must appear by itself (multiple expressions, and mixing of expressions and string constants are not permitted). /quote Craig. tataryn:craig/ On Sun, 07 Mar 2004 17:17:32 +, Brian Boyle wrote: Hey, I am using a map-backed ActionForm and so in my JSP code I have a html:text tag that looks like this: html:text property=value(%=value.getUserId()%) readonly=true size=2 / The reason I have a scriplet in there is because I have a dynamic form and the value of the key changes all the time. I want the value of the key to be the id of the user logged in. However, this is giving me problems because the value of the key is being taken literally as %=value.getUserId()% rather than the value of the userId. The scriplet %= value.getUserId % is correct because I have tested it with System.out.println(value.getUserId). So it looks like I cannot put my scriplet in there. Has anyone experienced this before? Or does anyone know why it won't et me do this? Any way to get around this? I'd appreciate any help. I've been stuck on it for two days now. Cheers, B _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[RT Expr] for html:text property
Hi, this might be a Tomcat vs. ServletExec thing, but I was trying the following under Tomcat and got an error message to the effect of Null property value for 'address()': html:form action=/TestIndexed logic:iterate name=TestIndexedForm property=regions id=region h1%=region%/h1 html:text name=TestIndexedForm property=address(%=region%).street/ html:text name=TestIndexedForm property=address(%=region%).city/ /logic:iterate /html:form If I rewrite my html:text property as below, all is good in the world: html:text name=TestIndexedForm property='%=address( + region + ).street%'/ html:text name=TestIndexedForm property='%=address( + region + ).city%'/ Just wanted to know why the first way wouldn't work? Craig. tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [RT Expr] for html:text property
Thanks Craig, my memory might have failed me and ServletExec probably implements the spec correctly on this point. There was however a discrepancy between the two w.r.t. attributes, I'll have to dig up the old email with the example I had sent to my co-worker. Again, thanks for the clarification. tataryn:craig/ == so our *namespaces* don't get mixed up ;) On Sat, 6 Mar 2004 21:42:43 -0800, Craig R. McClanahan wrote: Quoting Craig Tataryn [EMAIL PROTECTED]: Hi, this might be a Tomcat vs. ServletExec thing, but I was trying the following under Tomcat and got an error message to the effect of Null property value for 'address()': html:form action=/TestIndexed logic:iterate name=TestIndexedForm property=regions id=region h1%=region%/h1 html:text name=TestIndexedForm property=address(%=region%).street/ html:text name=TestIndexedForm property=address(%=region%).city/ /logic:iterate /html:form If I rewrite my html:text property as below, all is good in the world: html:text name=TestIndexedForm property='%=address( + region + ).street%'/ html:text name=TestIndexedForm property='%=address( + region + ).city%'/ Just wanted to know why the first way wouldn't work? According to the JSP 1.1 and 1.2 Specifications, it is illegal to have *part* of an attribute value be a runtime expression. If ServletExec accepts your first variant, it is broken. Craig. Craig (McClanahan :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [RT Expr] for html:text property
Thanks Craig, my memory might have failed me and ServletExec probably implements the spec correctly on this point. There was however a discrepancy between the two w.r.t. attributes, I'll have to dig up the old email with the example I had sent to my co-worker. Again, thanks for the clarification. tataryn:craig/ == so our *namespaces* don't get mixed up ;) On Sat, 6 Mar 2004 21:42:43 -0800, Craig R. McClanahan wrote: Quoting Craig Tataryn [EMAIL PROTECTED]: Hi, this might be a Tomcat vs. ServletExec thing, but I was trying the following under Tomcat and got an error message to the effect of Null property value for 'address()': html:form action=/TestIndexed logic:iterate name=TestIndexedForm property=regions id=region h1%=region%/h1 html:text name=TestIndexedForm property=address(%=region%).street/ html:text name=TestIndexedForm property=address(%=region%).city/ /logic:iterate /html:form If I rewrite my html:text property as below, all is good in the world: html:text name=TestIndexedForm property='%=address( + region + ).street%'/ html:text name=TestIndexedForm property='%=address( + region + ).city%'/ Just wanted to know why the first way wouldn't work? According to the JSP 1.1 and 1.2 Specifications, it is illegal to have *part* of an attribute value be a runtime expression. If ServletExec accepts your first variant, it is broken. Craig. Craig (McClanahan :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] tataryn:craig/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: .NET: We are just like Struts... only better.
It's kind of a catch .22, I use struts on projects that make money for me. If someone started taking my projects and replicating them for free, I would probably have a problem with it :) Although in this case, MS did not have a Struts to begin with. ASP.net is sweet, but only because the development environent makes it sweet. If we can get the same RAD functionality out of Eclipse w/ JSF and perhaps Flex, then we'll really be cooking. Although Struts is a wonderful thing, I still look at web development with J2EE as a bit of a tedious thing. Well, actually now that I have a pretty robust taglib built, not so tedious, but still, I'm not dragging and dropping html form controls (or struts-html.tld taglib controls) to a designer screen, linking code and compiling. I have to do it all by hand :( Let's hope Eclipse VE adopts a JSF designer! Craig W. Tataryn From: Frans Thamura, Intercitra [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: .NET: We are just like Struts... only better. Date: Sat, 27 Dec 2003 23:57:08 -0500 I think this article will explain that Microsoft is not support Open Source community, M$ only support people that want to support money, :) Our War Money Chest is bigger than all of you all the Java guys (including the Open Source). [EMAIL PROTECTED] how can M$ have that money? So, this mean we all must wake up, :) to make our product more user friendly, and make everyone can learn it, update it, and make it perfect. ASP.net is a product based, Struts is a spiritual lovely project. They cannot compare it. But if ASP.net can be compare with MVC not with Struts. :) sad to hear that if we port Struts to .NET, Microsoft wont support it, because they said, we include it in ASP.net already. What do you think? Frans - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT: Examples of HTML-based user interfaces?
Well done Andrew, just to add one more thing; Buy this book: http://www.amazon.com/exec/obidos/tg/detail/-/0596000480/qid=1072106008//ref=sr_8_xs_ap_i0_xgl14/002-5160553-7080053?v=glances=booksn=507846 It is the most well used book on my shelf, and truely is the definitive guide. Craig W. Tataryn From: Andrew Hill [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: OT: Examples of HTML-based user interfaces? Date: Mon, 22 Dec 2003 12:37:54 +0800 Thats good. Btw: If I were you I would set the Netscape bar to version 7 (or any mozilla version above 1). Netscrap 6 is based on a pre-1 version of Mozilla, and has a couple of very nasty bugs that can make trying to do certain DHTML things an absolute nightmare. (Such as not submitting values for controls that are under hidden nodes, etc...) The other thing to keep in mind is that JavaScript widgets always seem to take far longer to implement than you think they will! - So the simpler you can keep things the better, and as with all languages using good programming techniques in JavaScript will pay off when it comes to maintenance and enhancement. Its very easy when coding JavaScript DHML stuff to just anyhow try and bang together something that runs but where the code is very ugly. Ive learnt the hard way that it quickly becomes a nightmare to maintain! (and yet I keep doing it. garrgh! (99.9% of the freely downloadable JS widgets to be found on the net on various DHTML sites are nasty like this. Its often actually easier to roll your own than to try and find a suitable widget out there and modify it for your needs (tree components being a prime example)) So even if its just a simple widget like the two box selector thinghy, sitting down to design it properly , and make it modular and reusable (for example writing a custom tag to encapsulate it in a way that seems transparent to the page designer), will pay dividends! If your not totally familiar with the subtle details of JavaScript (how objects work, prototyping, implicit type casting etc...), spending a day studying the language in detail (ie: actually making notes like you did back in college) will be a day well spent! (it will save you at least a week debugging!) hth Andrew -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: Friday, 19 December 2003 22:36 To: Struts Users Mailing List Subject: RE: OT: Examples of HTML-based user interfaces? From: Andrew Hill [mailto:[EMAIL PROTECTED] Still, if you are in a position to limit your audience (such as with intranet apps) to just the more common modern browsers (IE5+, Mozilla) there is indeed a lot you can do with DHTML. I should have said that up front-- it is intranet and we can (and do) refuse to support browsers which won't play nicely. All I officially have to support is a reasonably recent IE Netscape. And they can't disable javascript, or they won't get very far. :) I don't go out of my way to break stuff on other browsers (and I test from home on Mozilla/Konqueror) but if it gets to be too much trouble, I don't have to mess with it. Thanks for the tips! -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Information Resources Management - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Examples of HTML-based user interfaces?
If you understand javascript, DHTML and DOM, then it won't appear as Ugly as Brice suggests . Take a look at those webfx widgets, very nice clean code. Craig W. Tataryn From: ajay brar [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: OT: Examples of HTML-based user interfaces? Date: Fri, 19 Dec 2003 18:13:04 +1100 hi! A pity a student like me doesn't qualify for a beta version of Flex. I believe DHTML currently provides a really good way of managing those fancy HTML interfaces. cheers Ajay From: Brice Ruth [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: OT: Examples of HTML-based user interfaces? Date: Thu, 18 Dec 2003 21:22:38 -0600 You might be interested in a previous post that talked about Macromedia's new Flash+Struts integration ... that would give you all the GUI goodness you could imagine, without getting into writing what would almost necessarily have to be some ugly DHTML. http://www.macromedia.com/devnet/flex/articles/struts.html Wendy Smoak wrote: Does anyone have examples of some fancy things to do with HTML-based user interfaces? For example, I've currently got a request to show two boxes of items with add/remove arrows. So selecting in the left-hand box and clicking the arrow will move the item to the right hand box. I'm sure it's possible with CSS, JavaScript and hidden form fields. (I'm pretty sure they got the idea from adding recipients to an email in Outlook.) I also have a long-standing requirement to dynamically grow a field, when the user types something in a text box and clicks a button, that item moves up and a new, blank field appears. I'm currently doing this with an add button, which submits the form to the Struts app, the entry gets added to a session scope bean, then back to the form with read-only displays of the stuff in the bean and [the same] blank field. (Although it looks like a new line, it isn't, it's the same form field.) Googling turns up a bunch of essays on what makes a good user interface, but not too much on tips and tricks. -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your inbox from harmful viruses with new ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: OT: Examples of HTML-based user interfaces?
Yeah, you are right. I had to create many a webapp that conformed to Netscape 4.7x and IE. Nightmare is one way of putting it :) Thank god for DHTMLLib from siteexperts.com and the Microsoft Script Debugger/Visual Interdev. And also, yeah, not everyone is strong in Javascript so the next person who comes down the road ends up creating more problems than the one they are debugging! I think Flash will really take off once us developers start using it as the defacto UI for our webapps, or atleast the defacto standard for rich web widgets mixed in with our plain-jane html/jsp. Craig W. Tataryn From: Brice Ruth [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: OT: Examples of HTML-based user interfaces? Date: Fri, 19 Dec 2003 10:46:45 -0600 I don't think understanding it is the key here ... I think maintenance of it, specifically maintenance by other developers besides the original developer, becomes a bit of a nightmare, and that's my definition of 'ugly' ... :) Dynamically rewriting the HTML on a page does really get ugly ... the facilities to do it are there, but they aren't very nice, IMHO ... especially when you start needing to support the ideosyncracies of IE v. Moz ... which still exist, unfortunately. IE's DOM support isn't as full-fledged as what Moz has, and IE supports certain proprietary things, still, that Moz does not. Craig Tataryn wrote: If you understand javascript, DHTML and DOM, then it won't appear as Ugly as Brice suggests . Take a look at those webfx widgets, very nice clean code. Craig W. Tataryn From: ajay brar [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: OT: Examples of HTML-based user interfaces? Date: Fri, 19 Dec 2003 18:13:04 +1100 hi! A pity a student like me doesn't qualify for a beta version of Flex. I believe DHTML currently provides a really good way of managing those fancy HTML interfaces. cheers Ajay From: Brice Ruth [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: OT: Examples of HTML-based user interfaces? Date: Thu, 18 Dec 2003 21:22:38 -0600 You might be interested in a previous post that talked about Macromedia's new Flash+Struts integration ... that would give you all the GUI goodness you could imagine, without getting into writing what would almost necessarily have to be some ugly DHTML. http://www.macromedia.com/devnet/flex/articles/struts.html Wendy Smoak wrote: Does anyone have examples of some fancy things to do with HTML-based user interfaces? For example, I've currently got a request to show two boxes of items with add/remove arrows. So selecting in the left-hand box and clicking the arrow will move the item to the right hand box. I'm sure it's possible with CSS, JavaScript and hidden form fields. (I'm pretty sure they got the idea from adding recipients to an email in Outlook.) I also have a long-standing requirement to dynamically grow a field, when the user types something in a text box and clicks a button, that item moves up and a new, blank field appears. I'm currently doing this with an add button, which submits the form to the Struts app, the entry gets added to a session scope bean, then back to the form with read-only displays of the stuff in the bean and [the same] blank field. (Although it looks like a new line, it isn't, it's the same form field.) Googling turns up a bunch of essays on what makes a good user interface, but not too much on tips and tricks. -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Protect your inbox from harmful viruses with new ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Brice D. Ruth Sr. IT Analyst Fiskars Brands, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http
RE: [Tiles] tiles controller not processing tiles request
Thanks David, I did end up figuring it out, thanks for the tip about the controller, I noticed in the plugin source that it would instantiate it if it was not already present. I should add that when I posted my solution, I had the wrong class used on my action, it should read: action path=/Welcome type=org.apache.struts.actions.ForwardAction parameter=mainLayout.welcome/ I think I originally said I used ActionForward, not ForwardAction. Craig W. Tataryn From: Hibbs, David [EMAIL PROTECTED] To: 'Craig Tataryn' [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 13:50:03 -0600 this was recently discussed. see the archives: http://marc.theaimsgroup.com/?l=struts-userm=107106764606173w=2 BTW, specifying the controller is redundant if you specify the tiles plugin. --David -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 11:52 AM To: [EMAIL PROTECTED] Subject: [Tiles] tiles controller not processing tiles request Hey guys, I have the following in my struts-config.xml: global-forwards forward name=welcome path=mainLayout.welcome/ /global-forwards controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=moduleAware value=true/ set-property property=definitions-parser-validate value=true/ /plug-in My tiles-defs.xml file looks like this: tiles-definitions definition name=mainLayout path=/html/mainLayout.jsp put name=header value=/html/header.jsp / put name=left value= / put name=main value= / put name=footer value=/html/footer.jsp / /definition definition name=mainLayout.welcome extends=mainLayout put name=body value=Welcome.do?dispatchAction=initialize/ /definition /tiles-definitions Now, when I goto http://localhost:8080/mywebapp/ the welcome forward is invoked which is supposed to forward to the mainLayout.welcome definition. However Tomcat comes back with a HTTP Status 404 - /aclpo/mainLayout.welcome - The requested resource (/mywebapp/mainLayout.welcome) is not available Any ideas what might be happening? Thanks, Craig W. Tataryn _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=ht tp%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: URGENT - Help defending Struts
Canadian Firearms Registry system. (https://secure.ecom.cfc-ccaf.gc.ca/eCFRSInternet/openLicenceEntry.do?language=English) It must be scalable because I waited until close to the deadline for registering my firearms and it was responsive (last year all non-restricted firearms in Canada (i.e. hunting rifles) were required to be registered by Jan 1 2001). Craig W. Tataryn From: Chappell, Simon P [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: URGENT - Help defending Struts Date: Thu, 18 Dec 2003 10:08:37 -0600 This question comes up periodically, so I started a list of Struts-powered sites. http://simonpeter.com/techie/java/struts/sites.html I hope this helps. I know that I wouldn't like to think about not using it on the Intranet application that I head up the development team for. It has greatly aided our productivity and has now come through it's second peak season with flying colours. We started with Struts 1.0 and with a little help from Chuck Cavaness we were early adopters of 1.1. :-) Simon -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:49 AM To: [EMAIL PROTECTED] Subject: URGENT - Help defending Struts Importance: High All: Our CIO is currently fighting the use of Struts by saying that it is not widely used in B2C sites. Does anyone know of any sites, preferably commerce sites that are using Struts? This would be extremely helpful. The issue is that the CIO is looking for sites that may be similar to ours that are using Struts already. Thanks very much, Russell [EMAIL PROTECTED] 310-426-5587 This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: OT: Examples of HTML-based user interfaces?
We implemented that very widget you describe in javascript and wrapped a taglib around it at my previous job. I don't have access to the code, but I'm sure I could whip up something similar to it. It was all client side w.r.t. when you clicked the add/remove/up/down arrows. If I remember correctly, the tricky part was when you click the submit button, you had to programmatically (in javascript) select all the items in the right hand list so they would be submitted along with the form data. I've wrapped a few of this guy's javascript widgets (specifically the xTree/xLoadTree and the TableSort) and added extra features: http://webfx.eae.net/ Top knotch widgets from that site! Craig W. Tataryn Does anyone have examples of some fancy things to do with HTML-based user interfaces? For example, I've currently got a request to show two boxes of items with add/remove arrows. So selecting in the left-hand box and clicking the arrow will move the item to the right hand box. I'm sure it's possible with CSS, JavaScript and hidden form fields. (I'm pretty sure they got the idea from adding recipients to an email in Outlook.) I also have a long-standing requirement to dynamically grow a field, when the user types something in a text box and clicks a button, that item moves up and a new, blank field appears. I'm currently doing this with an add button, which submits the form to the Struts app, the entry gets added to a session scope bean, then back to the form with read-only displays of the stuff in the bean and [the same] blank field. (Although it looks like a new line, it isn't, it's the same form field.) Googling turns up a bunch of essays on what makes a good user interface, but not too much on tips and tricks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Tiles] tiles controller not processing tiles request
Figured this one out. Basically if you use tiles within your global forwards you are SOL, the tiles request processor only gets invoked for struts actions (i.e. *.do). This can probably be solved by specifying a subclass of ActionForward which is tiles aware for the className attribute of your global forward. I didn't see any such tiles aware forward class in the 1.1 dist, so I just worked around it like so: Change my global forward for welcome from: global-forwards forward name=welcome path=mainLayout.welcome/ /global-forwards To: global-forwards forward name=welcome path=Welcome.do?dispatchAction=initialize/ /global-forwards . . . action-mappings action path=/Welcome type=com.mypackage.controller.WelcomeAction parameter=dispatchAction forward name=initialize path=mainLayout.welcome/ /action /action-mappings tataryn:craig From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Tiles] tiles controller not processing tiles request Date: Mon, 15 Dec 2003 00:27:08 -0600 *bump* :( Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 13:14:18 -0600 Ok, downloaded the Struts code, and set a breakpoint in TilesRequestProcessor.init(...). The breakpoint never catches when Tomcat starts or when I request a my welcome page, but when I shut down Tomcat it does! Anyone know why? Craig. Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 11:54:26 -0600 Note: In the error message listed below replace aclpo with mywebapp Craig Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 11:52:02 -0600 Hey guys, I have the following in my struts-config.xml: global-forwards forward name=welcome path=mainLayout.welcome/ /global-forwards controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=moduleAware value=true/ set-property property=definitions-parser-validate value=true/ /plug-in My tiles-defs.xml file looks like this: tiles-definitions definition name=mainLayout path=/html/mainLayout.jsp put name=header value=/html/header.jsp / put name=left value= / put name=main value= / put name=footer value=/html/footer.jsp / /definition definition name=mainLayout.welcome extends=mainLayout put name=body value=Welcome.do?dispatchAction=initialize/ /definition /tiles-definitions Now, when I goto http://localhost:8080/mywebapp/ the welcome forward is invoked which is supposed to forward to the mainLayout.welcome definition. However Tomcat comes back with a HTTP Status 404 - /aclpo/mainLayout.welcome - The requested resource (/mywebapp/mainLayout.welcome) is not available Any ideas what might be happening? Thanks, Craig W. Tataryn _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e
RE: [Tiles] tiles controller not processing tiles request
*bump* :( Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 13:14:18 -0600 Ok, downloaded the Struts code, and set a breakpoint in TilesRequestProcessor.init(...). The breakpoint never catches when Tomcat starts or when I request a my welcome page, but when I shut down Tomcat it does! Anyone know why? Craig. Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 11:54:26 -0600 Note: In the error message listed below replace aclpo with mywebapp Craig Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 11:52:02 -0600 Hey guys, I have the following in my struts-config.xml: global-forwards forward name=welcome path=mainLayout.welcome/ /global-forwards controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=moduleAware value=true/ set-property property=definitions-parser-validate value=true/ /plug-in My tiles-defs.xml file looks like this: tiles-definitions definition name=mainLayout path=/html/mainLayout.jsp put name=header value=/html/header.jsp / put name=left value= / put name=main value= / put name=footer value=/html/footer.jsp / /definition definition name=mainLayout.welcome extends=mainLayout put name=body value=Welcome.do?dispatchAction=initialize/ /definition /tiles-definitions Now, when I goto http://localhost:8080/mywebapp/ the welcome forward is invoked which is supposed to forward to the mainLayout.welcome definition. However Tomcat comes back with a HTTP Status 404 - /aclpo/mainLayout.welcome - The requested resource (/mywebapp/mainLayout.welcome) is not available Any ideas what might be happening? Thanks, Craig W. Tataryn _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: AW: [OT] Best HTML book for Beginners
Thanks Oliver, purchased it today! Craig W. Tataryn From: Oliver Thiel [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: AW: [OT] Best HTML book for Beginners Date: Fri, 12 Dec 2003 23:03:24 +0100 Hi Craig, I would recommend: creative html design.2 (2nd Edition) by Lynda Weinman (Author), William Weinman (Author) http://www.htmlbook.com/ An easy to read step-by-step guide. Another opportunity would be the video ;) Learning HTML CD-ROM http://www.lynda.com/products/videos/htmlcd/ Oliver -Ursprüngliche Nachricht- Von: Craig Tataryn [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 12. Dezember 2003 22:33 An: [EMAIL PROTECTED] Betreff: [OT] Best HTML book for Beginners Bought my uncle a domain name for Christmas and I want to get him an HTML book to compliment it. For the absolute beginner, is there a book you would recommend over all others? Thanks, Craig W. Tataryn P.S. reply to my tiles question :) _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin .msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Beer
And the only thing good about that Marca Bavaria are the comercials :) Craig W. Tataryn From: Chappell, Simon P [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: [OT] Beer Date: Fri, 12 Dec 2003 09:26:11 -0600 I don't like Miller's either, and I live closer to Milwaukee than Chippewa Falls. -Original Message- From: Hookom, Jacob [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 9:10 AM To: Struts Users Mailing List Subject: RE: [OT] Beer What about Leinie's? If you live in Wisconsin, it's a requirement to love Leinie's-- you should know that Simon. Wisconsin-- where you have to bring your own fun. Jake -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 8:58 AM To: Struts Users Mailing List Subject: RE: [OT] Beer I think that these replies kinda prove my point! :-) (Notice how no one ever defends American beer!) Simon -Original Message- From: Brice Ruth [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 8:54 AM To: Struts Users Mailing List Subject: Re: [OT] Beer Or Ireland or Germany, for that matter. You need stray no further than Guiness (your stout) and Hacker Pschorr, your Hefeweiss. Set for life :) VAN BROECK Jimmy wrote: Then you were lucky that at that moment no one from Belgium was active or they would have proved otherwise. ;) -Original Message- From: Chappell, Simon P [mailto:[EMAIL PROTECTED] Sent: vrijdag 12 december 2003 15:51 To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: [OT] Beer Andrew, A few of the recent conversations about beer, took a geopolitical turn ... especially when I pointed out that all American beer is recycled and the only good stuff comes from England! :-P Simon -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 1:22 AM To: Struts Users Mailing List Subject: RE: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB. snip thank god they have a free trade agreement with the rest of the world /snip I would suggest that this thread is veering dangerously towards a discussion of global geopolitical economics. Such discussions are inappropriate for the struts list (imho somewhat more so than the usual OT stuff). This being Friday Id suggest you return to a far more appropriate topic. ie: BEER -Original Message- From: Mike Deegan [mailto:[EMAIL PROTECTED] Sent: Friday, 12 December 2003 15:14 To: Struts Users Mailing List Subject: Re: [OFF TOPIC - VERY OT] STRUTS PROGRAMMER JOB. they are but to get a fair price for one??? who knows ... thank god they have a free trade agreement with the rest of the world .. ohhh sorry let me re-phrase a free trade agreement with whoever they see fit at the time of the agreement ! - Original Message - From: Marcus Peixoto [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 12:28 PM Subject: Re: [OFF TOPIC] STRUTS PROGRAMMER JOB. Are you kidding ? Are programmers for sale in US ? Em Qui, 2003-12-11 às 20:59, Martin Gainty escreveu: Going rate is about 6$/hr - Original Message - From: Tiago Henrique Costa Rodrigues Alves [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 1:37 PM Subject: RE: [OFF TOPIC] STRUTS PROGRAMMER JOB. I wrote my email wrong: [EMAIL PROTECTED] YOU DONT NEED TO REPLY TO THE MAILING LIST send me an email ([EMAIL PROTECTED]) Sorry for the off topic, but I just need to hear from you guys... I am looking for an American Job, I live in Brazil and I have 2 years experience in Java + Struts + OJB + Apache + TomCat + UML + PHP + ASP. Web in General How much an Web/Java Developer can make? How easy can I get a job from Brazil? Thanks, Tiago Henrique C. R. Alves - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] STRICTLY PERSONAL AND CONFIDENTIAL This message may contain confidential and proprietary material for the sole use of the intended recipient. Any review or distribution by others is strictly prohibited. If you are not the
[Tiles] tiles controller not processing tiles request
Hey guys, I have the following in my struts-config.xml: global-forwards forward name=welcome path=mainLayout.welcome/ /global-forwards controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=moduleAware value=true/ set-property property=definitions-parser-validate value=true/ /plug-in My tiles-defs.xml file looks like this: tiles-definitions definition name=mainLayout path=/html/mainLayout.jsp put name=header value=/html/header.jsp / put name=left value= / put name=main value= / put name=footer value=/html/footer.jsp / /definition definition name=mainLayout.welcome extends=mainLayout put name=body value=Welcome.do?dispatchAction=initialize/ /definition /tiles-definitions Now, when I goto http://localhost:8080/mywebapp/ the welcome forward is invoked which is supposed to forward to the mainLayout.welcome definition. However Tomcat comes back with a HTTP Status 404 - /aclpo/mainLayout.welcome - The requested resource (/mywebapp/mainLayout.welcome) is not available Any ideas what might be happening? Thanks, Craig W. Tataryn _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Tiles] tiles controller not processing tiles request
Note: In the error message listed below replace aclpo with mywebapp Craig Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 11:52:02 -0600 Hey guys, I have the following in my struts-config.xml: global-forwards forward name=welcome path=mainLayout.welcome/ /global-forwards controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=moduleAware value=true/ set-property property=definitions-parser-validate value=true/ /plug-in My tiles-defs.xml file looks like this: tiles-definitions definition name=mainLayout path=/html/mainLayout.jsp put name=header value=/html/header.jsp / put name=left value= / put name=main value= / put name=footer value=/html/footer.jsp / /definition definition name=mainLayout.welcome extends=mainLayout put name=body value=Welcome.do?dispatchAction=initialize/ /definition /tiles-definitions Now, when I goto http://localhost:8080/mywebapp/ the welcome forward is invoked which is supposed to forward to the mainLayout.welcome definition. However Tomcat comes back with a HTTP Status 404 - /aclpo/mainLayout.welcome - The requested resource (/mywebapp/mainLayout.welcome) is not available Any ideas what might be happening? Thanks, Craig W. Tataryn _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Tiles] tiles controller not processing tiles request
Ok, downloaded the Struts code, and set a breakpoint in TilesRequestProcessor.init(...). The breakpoint never catches when Tomcat starts or when I request a my welcome page, but when I shut down Tomcat it does! Anyone know why? Craig. Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 11:54:26 -0600 Note: In the error message listed below replace aclpo with mywebapp Craig Craig W. Tataryn From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: [Tiles] tiles controller not processing tiles request Date: Fri, 12 Dec 2003 11:52:02 -0600 Hey guys, I have the following in my struts-config.xml: global-forwards forward name=welcome path=mainLayout.welcome/ /global-forwards controller processorClass=org.apache.struts.tiles.TilesRequestProcessor/ plug-in className=org.apache.struts.tiles.TilesPlugin set-property property=definitions-config value=/WEB-INF/tiles-defs.xml/ set-property property=moduleAware value=true/ set-property property=definitions-parser-validate value=true/ /plug-in My tiles-defs.xml file looks like this: tiles-definitions definition name=mainLayout path=/html/mainLayout.jsp put name=header value=/html/header.jsp / put name=left value= / put name=main value= / put name=footer value=/html/footer.jsp / /definition definition name=mainLayout.welcome extends=mainLayout put name=body value=Welcome.do?dispatchAction=initialize/ /definition /tiles-definitions Now, when I goto http://localhost:8080/mywebapp/ the welcome forward is invoked which is supposed to forward to the mainLayout.welcome definition. However Tomcat comes back with a HTTP Status 404 - /aclpo/mainLayout.welcome - The requested resource (/mywebapp/mainLayout.welcome) is not available Any ideas what might be happening? Thanks, Craig W. Tataryn _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ Add photos to your e-mail with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/photospgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] _ MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*. http://join.msn.com/?page=features/viruspgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Best HTML book for Beginners
Bought my uncle a domain name for Christmas and I want to get him an HTML book to compliment it. For the absolute beginner, is there a book you would recommend over all others? Thanks, Craig W. Tataryn P.S. reply to my tiles question :) _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=dept/bcommpgmarket=en-caRU=http%3a%2f%2fjoin.msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tiles and parameters...
Whacky whacky stuff. Are you completely sure that ListUsersAction isn't doing a request.setAttribute for the order and sort parameters it recieves? Is this display taglib custom? I don't see you passing it the order and sort parameters through it's attributes, meaning that it is getting them from some other source (session)? Perhaps ListUserAction is somehow priming the display:table tag... Craig. - Original Message - From: Van Riper, Mike [EMAIL PROTECTED] To: 'Craig Tataryn' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, November 28, 2002 1:03 AM Subject: RE: Tiles and parameters... Craig, Yes, I am relatively new to Tiles. This is my first major project using it and we make extensive use of Tiles in our webapp. We also use the display taglib and take advantage of its column sorting support. Sorting of table data is handled automatically by this taglib using request parameters and it works fine in our webapp. For example, the default display of our user list is sorted in ascending order based on the values in the 4th column (zero based sort offset in example below) of the listing like so: /portal/admin/users/list.dbm?order=ascsort=3 This will trigger the following action mapping in our struts-config.xml file: actionpath=/portal/admin/users/list type=com.verisign.dbms.portal.ListUsersAction forward name=success path=portal.admin.users.list/ /action And the following tile definitions are interpreted when the success forward is used: definition name=portal.admin.users.list extends=portal.admin.users put name=menu value=portal.menu.admin.users.modify / put name=body value=portal.body.admin.users.list / /definition definition name=portal.body.admin.users.list extends=portal.body.admin.users put name=bodyContent value=/portal/admin/users/list.jsp / /definition And the list.jsp usings the display taglib tags: display:table width=90% name=%=UserMgmtBean.KEY% property=users scope=session requestURI='%=request.getContextPath() + /portal/admin/users/list.dbm%' ... /display:table In the layout JSP that ultimately includes the bodyContent value above, we are using: tiles:insert attribute=bodyContent/ which is comparable to the example that you suggest I try. So, I can honestly say that I have tried it and it works. :-) Without rummaging through the display taglib source, the traversal through action mapping to action with forward to the tile definition that ultimately displays our master page layout containing the leaf listing JSP is working to control sorting. So, the request parameters are getting through to the leaf listing JSP. Otherwise, the display tags wouldn't be responding to the request parameter settings that control how to sort the list contents. We are working with the version of Tiles integrated in Struts 1.1-b2. Maybe you are working with a different version of Struts/Tiles. If so, that might explain why something similar isn't working for you. In any case, it sounds like you have a workaround for now. - Van -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 9:59 AM To: [EMAIL PROTECTED] Subject: Re: Tiles and parameters... sighYou must be new to Tiles :) It doesn't seem to work. Try it for yourself, make yourself a controller called MyController who's success forward, forwards to a tiles template called tiles.template. The tiles template can looks something like this: definition path=mainlayout.jsp name=tiles.template put name=page1 value=/page1.jsp / put name=page2 value=/page2.jsp/ /definition Your mainlayout.jsp would look something like this: html body tiles:insert attribute=page1/ tiles:insert attribute=page2/ /body /html In page1.jsp put the following: h1%=request.getParameter(param1)%/h1 Call your controller like so: MyController.do?param1=1 You will get the error: bean param1 not found within scope. However, I found a solution. In MyController, I simply use request.getParameter(param1) and then take that value and place it back in using request.setAttribute. Tiles or Struts does not seem to preserve the request parameters from the original call for the Tiles which are being forwarded to, so you have to do it manually (which might make sense?). Craig. P.S. I have read the specs :) - Original Message - From: Van Riper, Mike [EMAIL PROTECTED] To: 'Craig Tataryn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:42 AM Subject: RE: Tiles and parameters... Unless I'm missing something here, you simply use: request.getParameter(fieldid); in scriptlet code in any of your leaf JSPs to access this request parameter. You can also use bean:define in conjunction with this to define a bean at the top
Re: Tiles and parameters...
Cedric, would you mind trying my example (look down the thread for Wednesday, November 27, 2002 9:59 AM) on your setup? It won't take long to try out, and it would mean a lot! Thanks, Craig. - Original Message - From: Cedric Dumoulin [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, November 29, 2002 11:16 AM Subject: Re: Tiles and parameters... Hi, I think that you should be able to read a parameter request from inside any nested tiles. Although, I haven't tested it since a long time. Normally, the request parameters are preserved through include / forward (but not sendRedirect of course). Maybe a problem with your webserver ? Cedric Van Riper, Mike wrote: Craig, Yes, I am relatively new to Tiles. This is my first major project using it and we make extensive use of Tiles in our webapp. We also use the display taglib and take advantage of its column sorting support. Sorting of table data is handled automatically by this taglib using request parameters and it works fine in our webapp. For example, the default display of our user list is sorted in ascending order based on the values in the 4th column (zero based sort offset in example below) of the listing like so: /portal/admin/users/list.dbm?order=ascsort=3 This will trigger the following action mapping in our struts-config.xml file: actionpath=/portal/admin/users/list type=com.verisign.dbms.portal.ListUsersAction forward name=success path=portal.admin.users.list/ /action And the following tile definitions are interpreted when the success forward is used: definition name=portal.admin.users.list extends=portal.admin.users put name=menu value=portal.menu.admin.users.modify / put name=body value=portal.body.admin.users.list / /definition definition name=portal.body.admin.users.list extends=portal.body.admin.users put name=bodyContent value=/portal/admin/users/list.jsp / /definition And the list.jsp usings the display taglib tags: display:table width=90% name=%=UserMgmtBean.KEY% property=users scope=session requestURI='%=request.getContextPath() + /portal/admin/users/list.dbm%' ... /display:table In the layout JSP that ultimately includes the bodyContent value above, we are using: tiles:insert attribute=bodyContent/ which is comparable to the example that you suggest I try. So, I can honestly say that I have tried it and it works. :-) Without rummaging through the display taglib source, the traversal through action mapping to action with forward to the tile definition that ultimately displays our master page layout containing the leaf listing JSP is working to control sorting. So, the request parameters are getting through to the leaf listing JSP. Otherwise, the display tags wouldn't be responding to the request parameter settings that control how to sort the list contents. We are working with the version of Tiles integrated in Struts 1.1-b2. Maybe you are working with a different version of Struts/Tiles. If so, that might explain why something similar isn't working for you. In any case, it sounds like you have a workaround for now. - Van -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 9:59 AM To: [EMAIL PROTECTED] Subject: Re: Tiles and parameters... sighYou must be new to Tiles :) It doesn't seem to work. Try it for yourself, make yourself a controller called MyController who's success forward, forwards to a tiles template called tiles.template. The tiles template can looks something like this: definition path=mainlayout.jsp name=tiles.template put name=page1 value=/page1.jsp / put name=page2 value=/page2.jsp/ /definition Your mainlayout.jsp would look something like this: html body tiles:insert attribute=page1/ tiles:insert attribute=page2/ /body /html In page1.jsp put the following: h1%=request.getParameter(param1)%/h1 Call your controller like so: MyController.do?param1=1 You will get the error: bean param1 not found within scope. However, I found a solution. In MyController, I simply use request.getParameter(param1) and then take that value and place it back in using request.setAttribute. Tiles or Struts does not seem to preserve the request parameters from the original call for the Tiles which are being forwarded to, so you have to do it manually (which might make sense?). Craig. P.S. I have read the specs :) - Original Message - From: Van Riper, Mike [EMAIL PROTECTED] To: 'Craig Tataryn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:42 AM Subject: RE: Tiles and parameters... Unless I'm missing something here, you simply use: request.getParameter(fieldid); in scriptlet code in any of your leaf JSPs to access this request
Re: Tiles and parameters...
sighYou must be new to Tiles :) It doesn't seem to work. Try it for yourself, make yourself a controller called MyController who's success forward, forwards to a tiles template called tiles.template. The tiles template can looks something like this: definition path=mainlayout.jsp name=tiles.template put name=page1 value=/page1.jsp / put name=page2 value=/page2.jsp/ /definition Your mainlayout.jsp would look something like this: html body tiles:insert attribute=page1/ tiles:insert attribute=page2/ /body /html In page1.jsp put the following: h1%=request.getParameter(param1)%/h1 Call your controller like so: MyController.do?param1=1 You will get the error: bean param1 not found within scope. However, I found a solution. In MyController, I simply use request.getParameter(param1) and then take that value and place it back in using request.setAttribute. Tiles or Struts does not seem to preserve the request parameters from the original call for the Tiles which are being forwarded to, so you have to do it manually (which might make sense?). Craig. P.S. I have read the specs :) - Original Message - From: Van Riper, Mike [EMAIL PROTECTED] To: 'Craig Tataryn' [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, November 26, 2002 11:42 AM Subject: RE: Tiles and parameters... Unless I'm missing something here, you simply use: request.getParameter(fieldid); in scriptlet code in any of your leaf JSPs to access this request parameter. You can also use bean:define in conjunction with this to define a bean at the top of your page for use as a bean reference in other Struts tags within your JSP pages. You must be new to JSP development. I recommend taking a look at the JSP spec. In particular, section 2.8 of the JSP 1.1 spec lists the implicit objects available to all JSP pages. Good Luck, Mike Van Riper mailto:[EMAIL PROTECTED] -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 5:03 AM To: [EMAIL PROTECTED] Subject: Re: Tiles and parameters... Anyone have any suggestions? From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tiles and parameters... Date: Sun, 24 Nov 2002 00:39:23 -0600 I am using a tiles for a project where I have the following scenario: a href=forecast.do?fieldid=1Forecast for Field 1/a The action for forecast.do, simply does some data extraction and then returns a forward to a tiles def which displays this data. Here is what the existing tiles def looks like: definition name=site.forecast extends=site.introPage put name=body value=/chart.jsp / put name=left value=/form/displayChartSummary.jsp/ /definition However, each of these jsp pages really should be passed the fieldid parameter that the Forecast action was passed. Is there anyway to get my Forecast action to pass this fieldid parameter to the pages setup in the tiles def it is going to forward to? Or is there any other technique you might suggest as a workaround (don't particularly want to throw things in the session as I want the fieldid to be at the request level so users can see forecasts for different fields at the same time). Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tiles and parameters...
Anyone have any suggestions? From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tiles and parameters... Date: Sun, 24 Nov 2002 00:39:23 -0600 I am using a tiles for a project where I have the following scenario: a href=forecast.do?fieldid=1Forecast for Field 1/a The action for forecast.do, simply does some data extraction and then returns a forward to a tiles def which displays this data. Here is what the existing tiles def looks like: definition name=site.forecast extends=site.introPage put name=body value=/chart.jsp / put name=left value=/form/displayChartSummary.jsp/ /definition However, each of these jsp pages really should be passed the fieldid parameter that the Forecast action was passed. Is there anyway to get my Forecast action to pass this fieldid parameter to the pages setup in the tiles def it is going to forward to? Or is there any other technique you might suggest as a workaround (don't particularly want to throw things in the session as I want the fieldid to be at the request level so users can see forecasts for different fields at the same time). Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tiles and parameters...
Well, I am doing forwards from within my Action class by returning an ActionForward object to one of my tiles defs (site.forecast). So for instance, in displayChartSummary.jsp, if I put a request.getParameter(fieldid) an error is raised stating: /form/displayChartSummary.jsp(16,75) Attribute fieldid has no value' So it appears that the request parameters do not get passed onto the tiles. Which brings me back to my original question, how do I pass the paramters on to the tiles, or does anyone have an acceptable work around that does not involve the user session. Thanks, Craig. From: [EMAIL PROTECTED] (David M. Karr) Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Tiles and parameters... Date: 24 Nov 2002 00:16:06 -0800 Craig definition name=site.forecast extends=site.introPage Craigput name=body value=/chart.jsp / Craigput name=left value=/form/displayChartSummary.jsp/ Craig /definition If you really are just doing forwards and includes, and no redirects, your request parameters should be available to any JSP page that is part of the request. -- === David M. Karr ; Java/J2EE/XML/Unix/C++ [EMAIL PROTECTED] ; SCJP -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tiles and parameters...
I am using a tiles for a project where I have the following scenario: a href=forecast.do?fieldid=1Forecast for Field 1/a The action for forecast.do, simply does some data extraction and then returns a forward to a tiles def which displays this data. Here is what the existing tiles def looks like: definition name=site.forecast extends=site.introPage put name=body value=/chart.jsp / put name=left value=/form/displayChartSummary.jsp/ /definition However, each of these jsp pages really should be passed the fieldid parameter that the Forecast action was passed. Is there anyway to get my Forecast action to pass this fieldid parameter to the pages setup in the tiles def it is going to forward to? Or is there any other technique you might suggest as a workaround (don't particularly want to throw things in the session as I want the fieldid to be at the request level so users can see forecasts for different fields at the same time). Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Two Phase ActionClass
No prob, glad to help! - Original Message - From: Cohan, Sean [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, September 09, 2002 9:11 AM Subject: RE: Two Phase ActionClass Craig, I greatly appreciate you taking the time to provide such a detailed answer. This is a tremendous help. Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Two Phase ActionClass
Create hidden fields (html:hidden) on the loginWarning.jsp page with the same name of the username and password fields. So long as they are within the html:form tag as the others, it should pickup the values from the FormBean that were set in login.jsp. Actually, you shouldn't even need the hidden fields, because the username and password fields should still be set on the form bean associated with loginUser. This is the same action you are using for the Continue button. So basically, inside the continue method as well as the continue else branch of showWarningIfNecessary you should be able to dig those values out of the form. Let me know if that works for you, Craig. - Original Message - From: Cohan, Sean [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Monday, September 09, 2002 2:36 PM Subject: RE: Two Phase ActionClass After clicking on continue on the loginWarning.jsp page, I no longer have the username and password fields that are validated in the validate method of the loginForm. How should I make this available? Thanks. -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Friday, September 06, 2002 11:01 PM To: [EMAIL PROTECTED] Subject: Re: Two Phase ActionClass Sean, not sure if I would recycle the login page to show the warning, instead I would have another page called loginWarning.jsp which showed them a message and then presented a Continue and Cancel button. The Continue button would send them back to the logon Action class and the Cancel button would simply be a link back to the login.jsp page. However, I would change my Action class to a DispatchAction class and setup things like they have in the DispatchAction API doc, in your case, something like this: action path=/loginUser type=my.package.LoginUserAction name=subscriptionForm scope=request input=/login.jsp parameter=action forward name=warn path=/loginWarning.jsp/ forward success path=afterLogin.jsp/ /action I would then have two jsps, one for logging in (login.jsp) and then the one for warning (loginWarning.jsp), and I would code my DispatachAction class as follows: import org.apache.struts.action.DispatchAction; public class LoginUserAction extends DispatchAction { //have one method named for each possible function name you will be //passing in the action parameter //invoked when our Action class is called with action=showWarningIfNecessary public ActionForward showWarningIfNecessary(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { //if the user is already logged in //return mappings.findForward(warning); //else return mappings.findForward(success); } //invoked when our Action class is called with action=continue public ActionForward continue(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mappings.findForward(success); } } In login.jsp, you would have a hidden form field with a name of action and a value of showWarningIfNecessary: html:hidden name=action value=showWarningIfNecessary/ In loginWarning.jsp your continue button could just be a link to: loginUser.do?action=continue (or you could have a hidden field named action like in login.jsp, but the value would be continue) And your cancel button could be a link to: login.jsp If you read the API doc on DispatchAction, this will all make sense. Hope that helped! Craig. From: Cohan, Sean [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Two Phase ActionClass Date: Fri, 6 Sep 2002 20:14:37 -0400 Within my logon ActionClass, I want to check the user's user id/password and whether they are currently logged on anywhere else. If they are logged on elsewhere, I want to go back to the logon page to warn them and give them a chance to continue or to bail. If they continue, I want to skip over the check whether they are logged on elsewhere. I'm struggling with how from my logon.jsp page I can instruct the logon action to one thing one time and another thing another time. I was thinking maybe the ActionMapping parameter, but I don't really know how to use it. I'm searching. Can someone give me a good way to do what I'm trying to do? Should I go to a different ActionClass instead of trying to use the same one? Also, I was going to return the warning to the user in ActionErrors. Is there a way I can poll the error from the jsp (logic tag?) and then if it's this warning put a yes/no form on the logon page? Or should I warn them on a different page? I do want other ActionErrors to display without the yes/no form (e.g., username required.) Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL
Re: Building confirm screens in Struts
What name do you specify in the bean:write attributes to get at the form bean? I tried with the name of the Formbean in struts-config.xml but it didn't work (I am using a Dynaform if that makes a difference). Craig. - Original Message - From: Tim T. Young [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, September 09, 2002 2:37 PM Subject: Re: Building confirm screens in Struts You will want to use a bean:write tag to display properties of a bean, plus the html:hidden tag (you are already using) to keep the data. Tim Smith, Johnathan M. jsmith4@ubsp w.com 09/09/2002To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] 01:33 PM cc: Please respond to Struts Users Mailing ListSubject: Building confirm screens in Struts Caterpillar: Confidential Green Retain Until: 10/09/2002 Retention Category: G90 - Information and Reports I have a question on how to build a confirm screen in struts. In the past I had my user enter data in one screen into text fields on a form. Once the user clicks submit I would use hiddle fields on the next screen to save the values and I would also display the values on the screen to?? I see in struts I can use the hidden tag but how do I display the value and also have it in a hidden tag -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Select Options
Hi Johnathan, I think you are getting confused with how it actually selects the value that the user intended. Think of it this way: html:select property=type html:options collection=someCollectionYouHaveSetInTheScope property=value labelProperty=label/ /html:select This means that when the form is submitted, the type parameter is sent to your action class with the value that they selected from the options. Because this is struts, if your FormBean happens to have a getType()/setType() method on it, that property will be set at form submission, and subsequently the html:select tag will get the value of that property and make sure that the corresponding option is selected in in the list. The options tag is simple, you set the collection attribute to a collection of objects which possess a getValue() and a getLabel() method, the values of these methods are used in the resulting option tag for the value attribute and the text that goes between the option/option tags respectively.. Make sense? Craig. - Original Message - From: Smith, Johnathan M. [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Monday, September 09, 2002 1:01 PM Subject: RE: Select Options Can you please help me some more with details -Original Message- From: Carl Bacher [mailto:[EMAIL PROTECTED]] Sent: Monday, September 09, 2002 12:59 PM To: Struts Users Mailing List Subject: Re: Select Options html:select property=name_of_property_in_form_bean Smith, Johnathan M. wrote: I am trying to find out how to make a select (dropdown list) selected a option at the time of the page is loaded. Sample 1) I selected a option from my dropdown box and and click submit button 2) The FormAction find that I did not entered all the requested text boxs and it redisplays the page at this time I would like the option I selected to be reselected! -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Datasource Retrieval in 1.1 (Help needed)
From ActionServlet.findDatasource() API docs: Deprecated. Look up data sources directly in servlet context attributes So I replaced my call to : dataSource = getServlet().findDatasource(null); with: dataSource = (DataSource)getServlet().getServletContext().getAttribute(this.DATA_SOURCE_KEY); And my datasource is retuned as null. Anyone know what's going on? Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Datasource Retrieval in 1.1 Date: Thu, 05 Sep 2002 14:09:35 -0500 Ok, read the DTD for struts-config.xml and figured out that I would use the key attribute if I were to add another datasource. I would still like to know how to retrieve the datasource without using the deprecated findDatasource() method. Thanks, Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Datasource Retrieval in 1.1 Date: Thu, 05 Sep 2002 11:30:39 -0500 The documentation still lists the old way of how to retrieve a datasource which has been setup in struts-config.xml using findDatasource(); The API says to use datasource stored in attributes. Can someone give an example of how I might do this from within my execute method? I want to get rid of my deprecation warnings for findDatasource() As well, I believe you can have multiple datasources setup in struts-config.xml. The default datasource being keyed by org.apache.struts.action.Action.DATA_SOURCE_KEY. Could someone point me to an example of multiple datasources and how to setup keys for each? Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [REQUEST API UPDATE] RES: Datasource Retrieval in 1.1 (Help needed)
Thanks! Not sure why I didn't see that before! Perhaps someone could update the API docs for findDataSource() so it directs the user to this function instead. Thanks again! Craig. From: julio [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RES: Datasource Retrieval in 1.1 (Help needed) Date: Fri, 6 Sep 2002 12:07:52 -0300 Hi Craig, This question was already answered, look for the subject Connection Pool Question(15/08/2002). Anyway, the code... Then, in your action, you can access your datasource via: execute(..) { DataSource ds = this.getDataSource(request); } ... ... Julio Cesar Softsite Tecnologia Ltda http://www.softsite.com.br Fortaleza, CE, Brasil -Mensagem original- De: Craig Tataryn [mailto:[EMAIL PROTECTED]] Enviada em: sexta-feira, 6 de setembro de 2002 11:47 Para: [EMAIL PROTECTED] Assunto: Re: Datasource Retrieval in 1.1 (Help needed) From ActionServlet.findDatasource() API docs: Deprecated. Look up data sources directly in servlet context attributes So I replaced my call to : dataSource = getServlet().findDatasource(null); with: dataSource = (DataSource)getServlet().getServletContext().getAttribute(this.DATA_SOUR CE_KEY); And my datasource is retuned as null. Anyone know what's going on? Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Datasource Retrieval in 1.1 Date: Thu, 05 Sep 2002 14:09:35 -0500 Ok, read the DTD for struts-config.xml and figured out that I would use the key attribute if I were to add another datasource. I would still like to know how to retrieve the datasource without using the deprecated findDatasource() method. Thanks, Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Datasource Retrieval in 1.1 Date: Thu, 05 Sep 2002 11:30:39 -0500 The documentation still lists the old way of how to retrieve a datasource which has been setup in struts-config.xml using findDatasource(); The API says to use datasource stored in attributes. Can someone give an example of how I might do this from within my execute method? I want to get rid of my deprecation warnings for findDatasource() As well, I believe you can have multiple datasources setup in struts-config.xml. The default datasource being keyed by org.apache.struts.action.Action.DATA_SOURCE_KEY. Could someone point me to an example of multiple datasources and how to setup keys for each? Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Alternative Datsource Hot-potatoing...
I was wondering if someone could give me a heads up on some alternative means for which to give my data access layer access to my datasource. I don't really like the idea of my controller grabbing the Datasource, passing it off to my business layer, who in turn passes it along to my data layer. I guess I'm sort of a purest, but I don't think the Business layer should know anything about the database, and that means it shouldn't even have methods that take connections or datasourses as parameters. I think the only thing I like about the Controller passing along a connection to my business/data layer is the fact that I can first open a transaction before passing the connection along, and then I can commit the transaction when everything is done. Thus my transactions are at the controller level, and can be managed there. Back in my old VB/COM days, we had a sort of DB Utilities class which could be accessed from the datalayer. You would ask it to give you a connection, and it would get it for you. Should I make my own class for datasource access which is intitalized upon application start with the Datasource object found by struts? Then the rest of my datalayer can simply use it? Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Alternative Datsource Hot-potatoing...
Thanks Craig. I'll take a look into option 3. Could you see a problem with me creating a class called DataAdaptor with a static method called getConnection() which is initialized apon application startup with the DataSource setup by Struts? Then using this static method in my data objects to grab a connection? Craig. From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Date: Fri, 6 Sep 2002 11:40:48 -0700 (PDT) On Fri, 6 Sep 2002, Craig Tataryn wrote: Date: Fri, 06 Sep 2002 12:41:26 -0500 From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Alternative Datsource Hot-potatoing... I was wondering if someone could give me a heads up on some alternative means for which to give my data access layer access to my datasource. I don't really like the idea of my controller grabbing the Datasource, passing it off to my business layer, who in turn passes it along to my data layer. I guess I'm sort of a purest, but I don't think the Business layer should know anything about the database, and that means it shouldn't even have methods that take connections or datasourses as parameters. I think the only thing I like about the Controller passing along a connection to my business/data layer is the fact that I can first open a transaction before passing the connection along, and then I can commit the transaction when everything is done. Thus my transactions are at the controller level, and can be managed there. Back in my old VB/COM days, we had a sort of DB Utilities class which could be accessed from the datalayer. You would ask it to give you a connection, and it would get it for you. Should I make my own class for datasource access which is intitalized upon application start with the Datasource object found by struts? Then the rest of my datalayer can simply use it? Three basic options exist: * Hand a DataSource (I normally prefer to send a Connection instead, but either works) to your business logic method as a parameter to each call that needs it. Advantage: no binding to anything. Disadvantage: can be a pain to hand it around. * Static methods ... Most DB connection pool implementations offer a way to retrieve a DataSource or Connection via a static method. Advantage: no handing around extra method parameters. Disadvantage: ties you to that connection pool's APIs. * JNDI resources -- All J2EE app servers (and some servlet containers like Tomcat 4) offer support for JNDI resources that are accessible to your business logic directly like this: import javax.naming.Context; import javax.naming.InitialContext; InitialContext ic = new InitialContext(); Context ctx = (Context) ic.lookup(java:comp/env); DataSource ds = (DataSource) ctx.lookup(jdbc/EmployeeDb); where jdbc/EmployeeDb is a resource reference you have declared in your web.xml file. Advantage: No parameter passing, no connection pool API lock-in. Advantage: configuration of the data source is external to your webapp (it's done with the server configuration capabilities). Disadvantage: container must support this. For info on how to use the third option in Tomcat, see: http://jakarata.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html (NOTE -- if you're going to use Tomcat, definitely go for 4.1; 4.0's support has problems for many users). Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware Craig -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Question about Action Forms and input para
1) Look at the code snap from struts-config.xml below, what is the input use for? actionpath=/page2 type=john.sample.Page2FormAction scope=request name=logonForm input=/page2.jsp forward name=next path=/page1.jsp/ /action Usually when I need to know something about struts-config.xml I look to the dtd. Goto the URI provided at the top of the struts-config.xml file in the !DOCTYPE element: http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd. It is pretty well documented. Here is what it says about the input parameter: input Module-relative path of the action or other resource to which control should be returned if a validation error isencountered. Valid only when name is specified. Required if name is specified and the input bean returns validation errors. Optional if name is specified and the input bean does not return validation errors. 2) I have a question now about the formbeans and forms. A user enters data into page1 and page1 data goes to the ActionForm page1Form. After I check some data I would like to goto page2 but page2 uses page2Form which is not the same bean. How do I make the new bean. move the data from the first bean to the new bean? I would probably just use the same formbean for both pages. Just extend the formbean to encompass the new properties you need for Page2. Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Alternative Datsource Hot-potatoing...
Thanks Ted, I'll check it out. But just out of curiosity, why would you ever want your Business Layer to know about Datasources? Craig. From: Ted Husted [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Date: Fri, 06 Sep 2002 17:27:12 -0400 As mentioned elsewhere today, I've been using this ConnectionAdaptor: http://cvs.apache.org/viewcvs.cgi/jakarta-commons-sandbox/scaffold/src/java/org/apache/commons/scaffold/sql/ But I'd wouldn't mind refactoring it into more of a DataSource manager, with the functionality seen in Struts 1.1. The idea being you could register several different DataSources, and then have the business layer say I want this one, or just give me the default (null) one. -Ted Craig R. McClanahan wrote: On Fri, 6 Sep 2002, Craig Tataryn wrote: Date: Fri, 06 Sep 2002 15:16:13 -0500 From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Thanks Craig. I'll take a look into option 3. Could you see a problem with me creating a class called DataAdaptor with a static method called getConnection() which is initialized apon application startup with the DataSource setup by Struts? Then using this static method in my data objects to grab a connection? Isn't that basically option 2? The only disadvantage is that, unless you're careful, your DataAdaptor class will be dependent on Struts unless you make it have a static setDataSource() method or something. But you're still tying your business logic classes to the presence of DataAdaptor in every program that uses this approach (which may or may not be a big deal). Craig. Craig From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Date: Fri, 6 Sep 2002 11:40:48 -0700 (PDT) On Fri, 6 Sep 2002, Craig Tataryn wrote: Date: Fri, 06 Sep 2002 12:41:26 -0500 From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Alternative Datsource Hot-potatoing... I was wondering if someone could give me a heads up on some alternative means for which to give my data access layer access to my datasource. I don't really like the idea of my controller grabbing the Datasource, passing it off to my business layer, who in turn passes it along to my data layer. I guess I'm sort of a purest, but I don't think the Business layer should know anything about the database, and that means it shouldn't even have methods that take connections or datasourses as parameters. I think the only thing I like about the Controller passing along a connection to my business/data layer is the fact that I can first open a transaction before passing the connection along, and then I can commit the transaction when everything is done. Thus my transactions are at the controller level, and can be managed there. Back in my old VB/COM days, we had a sort of DB Utilities class which could be accessed from the datalayer. You would ask it to give you a connection, and it would get it for you. Should I make my own class for datasource access which is intitalized upon application start with the Datasource object found by struts? Then the rest of my datalayer can simply use it? Three basic options exist: * Hand a DataSource (I normally prefer to send a Connection instead, but either works) to your business logic method as a parameter to each call that needs it. Advantage: no binding to anything. Disadvantage: can be a pain to hand it around. * Static methods ... Most DB connection pool implementations offer a way to retrieve a DataSource or Connection via a static method. Advantage: no handing around extra method parameters. Disadvantage: ties you to that connection pool's APIs. * JNDI resources -- All J2EE app servers (and some servlet containers like Tomcat 4) offer support for JNDI resources that are accessible to your business logic directly like this: import javax.naming.Context; import javax.naming.InitialContext; InitialContext ic = new InitialContext(); Context ctx = (Context) ic.lookup(java:comp/env); DataSource ds = (DataSource) ctx.lookup(jdbc/EmployeeDb); where jdbc/EmployeeDb is a resource reference you have declared in your web.xml file. Advantage: No parameter passing, no connection pool API lock-in. Advantage: configuration of the data source is external to your webapp (it's done with the server configuration capabilities). Disadvantage: container must support this. For info on how to use the third option in Tomcat, see: http://jakarata.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.html (NOTE -- if you're going to use Tomcat
Re: Alternative Datsource Hot-potatoing...
I hear where you are coming from. In the VB/COM app I was involved with, all our DB transactions were handled by MTS. The stack thing seems interesting, but how do you allocate one stack per request? You wouldn't happen to be able to share any of the code you speak about in your 2nd method can you? Thanks, Craig. From: Philip S. Constantinou [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Date: Fri, 6 Sep 2002 14:27:21 -0700 I've been grappling with this myself and I came across a couple other issues which may be worth consideration. I thought that it was import for my business methods to be re-entrant and support transactions appropriately. This seems to be one of EJB's successes. A practical scenario is: the controller calls method A which calls method B; the controller also calls B directly. Each method may begin a transaction if it's a new request from the application, but should only commit the transaction and return the connection back to the connection pool once the control is passed back to the application. Passing the connection in at the application layer does seem to address the problem but doesn't separate concerns particularly well. I considered two other options: 1) a proxy which maintains a reference to the connection pool and handles getting and releasing the connection from the connection pool; or 2) The solution I've settled on for the moment is having the business methods have access to a connection pool and manage getting and releasing the connection by using a stack based reference counting scheme. The beginning of each transactional method starts with beginTransaction() and ends with finally {endTransaction();}, from within the transaction getConnection() always returns the same connection if the requesting thread is the same. Both of these methods insure that each individual controller-request has access to the same connection for all database requests yet doesn't require the controller to specifically pass requests. The more I work on this kind of thing, the more I appreciate EJB... something that I thought I'd never say. - Original Message - From: Craig Tataryn [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, September 06, 2002 1:16 PM Subject: Re: Alternative Datsource Hot-potatoing... Thanks Craig. I'll take a look into option 3. Could you see a problem with me creating a class called DataAdaptor with a static method called getConnection() which is initialized apon application startup with the DataSource setup by Struts? Then using this static method in my data objects to grab a connection? Craig. From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Date: Fri, 6 Sep 2002 11:40:48 -0700 (PDT) On Fri, 6 Sep 2002, Craig Tataryn wrote: Date: Fri, 06 Sep 2002 12:41:26 -0500 From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Alternative Datsource Hot-potatoing... I was wondering if someone could give me a heads up on some alternative means for which to give my data access layer access to my datasource. I don't really like the idea of my controller grabbing the Datasource, passing it off to my business layer, who in turn passes it along to my data layer. I guess I'm sort of a purest, but I don't think the Business layer should know anything about the database, and that means it shouldn't even have methods that take connections or datasourses as parameters. I think the only thing I like about the Controller passing along a connection to my business/data layer is the fact that I can first open a transaction before passing the connection along, and then I can commit the transaction when everything is done. Thus my transactions are at the controller level, and can be managed there. Back in my old VB/COM days, we had a sort of DB Utilities class which could be accessed from the datalayer. You would ask it to give you a connection, and it would get it for you. Should I make my own class for datasource access which is intitalized upon application start with the Datasource object found by struts? Then the rest of my datalayer can simply use it? Three basic options exist: * Hand a DataSource (I normally prefer to send a Connection instead, but either works) to your business logic method as a parameter to each call that needs it. Advantage: no binding to anything. Disadvantage: can be a pain to hand it around. * Static methods ... Most DB connection pool implementations offer a way
Re: Two Phase ActionClass
Sean, not sure if I would recycle the login page to show the warning, instead I would have another page called loginWarning.jsp which showed them a message and then presented a Continue and Cancel button. The Continue button would send them back to the logon Action class and the Cancel button would simply be a link back to the login.jsp page. However, I would change my Action class to a DispatchAction class and setup things like they have in the DispatchAction API doc, in your case, something like this: action path=/loginUser type=my.package.LoginUserAction name=subscriptionForm scope=request input=/login.jsp parameter=action forward name=warn path=/loginWarning.jsp/ forward success path=afterLogin.jsp/ /action I would then have two jsps, one for logging in (login.jsp) and then the one for warning (loginWarning.jsp), and I would code my DispatachAction class as follows: import org.apache.struts.action.DispatchAction; public class LoginUserAction extends DispatchAction { //have one method named for each possible function name you will be //passing in the action parameter //invoked when our Action class is called with action=showWarningIfNecessary public ActionForward showWarningIfNecessary(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { //if the user is already logged in //return mappings.findForward(warning); //else return mappings.findForward(success); } //invoked when our Action class is called with action=continue public ActionForward continue(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { return mappings.findForward(success); } } In login.jsp, you would have a hidden form field with a name of action and a value of showWarningIfNecessary: html:hidden name=action value=showWarningIfNecessary/ In loginWarning.jsp your continue button could just be a link to: loginUser.do?action=continue (or you could have a hidden field named action like in login.jsp, but the value would be continue) And your cancel button could be a link to: login.jsp If you read the API doc on DispatchAction, this will all make sense. Hope that helped! Craig. From: Cohan, Sean [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: Two Phase ActionClass Date: Fri, 6 Sep 2002 20:14:37 -0400 Within my logon ActionClass, I want to check the user's user id/password and whether they are currently logged on anywhere else. If they are logged on elsewhere, I want to go back to the logon page to warn them and give them a chance to continue or to bail. If they continue, I want to skip over the check whether they are logged on elsewhere. I'm struggling with how from my logon.jsp page I can instruct the logon action to one thing one time and another thing another time. I was thinking maybe the ActionMapping parameter, but I don't really know how to use it. I'm searching. Can someone give me a good way to do what I'm trying to do? Should I go to a different ActionClass instead of trying to use the same one? Also, I was going to return the warning to the user in ActionErrors. Is there a way I can poll the error from the jsp (logic tag?) and then if it's this warning put a yes/no form on the logon page? Or should I warn them on a different page? I do want other ActionErrors to display without the yes/no form (e.g., username required.) Thanks. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Alternative Datsource Hot-potatoing...
Let me add some context here: tataryn:craig/ :-) And some more: In our VB/COM app, our business layer never really knew where data was comming from. And I'm not just talking about what database the data was coming from, I mean it didn't even know if the data was coming back from a flat file, a queue or a database. We achieved this by only returning the serialized data of the object which were reinflated into our business objects upon retrieval, so it looked something like this. And we made a little routing manager that figured out what DataObject should be instantiated for a business object. Here is the definition for let's say the clsEmployee business object's retrieve function: Public Sub Retrieve(EmpID as String) Dim da as IDataObject Dim rm as RoutingManager Dim colFields as Collection Dim colFilters as Collection Dim vPropBag as Variant 'Ask the routing manager what data object to instantiate Set rm = new RoutingManager 'this looks up in a map what the CLSID of the data object 'associated with the business object clsEmployee is, it then 'instantiates this object and passes it back. So, if sometime down 'the road we need to retrieve employees from an XML file, we would 'simply update the map that the routing manager feeds off of for the 'bEmployee.clsEmployee entry and point it to the new Dataobject. Set da = rm.getDataObject(bEmployee.clsEmployee); ' 'build both the fields collection (i.e. the fields you want returned) 'and the filters collection. For this example we want to 'add empid = value to the filters collection, we never actually added 'sql stuff in the business layer, we just added tokens which were 'transformed into SQL (maybe) in the datalayer from the contents of 'the fields and filters collection '. 'now ask the datalayer object to get us the object from the database vPropBag = da.retrieve(colFields, colFilters) 'grab the non datasource centric property bag and have this object 'inflate itself with it Me.Deserialize(vPropBag) 'we had to do all this messy serialization/deserialization because 'sending objects accross process or physical boundaries was not as 'straight forward in COM as it is in Java. The vPropBag would most 'likely just be a buch of field=value strings, something COM serializes 'natively. End Sub So, barring all that, I could reuse this architecture above, coding a data object for each business object and having it grab data by whatever means necessary, and because it is so abstracted, I could write a dataobject to use the native API of a connection pool and never have to rewrite a Business object if the new Datastore were to change to an XML file (probably does not need a JDBC connection ;). Where I was getting lost was, how do I get a connection from the connection pool all the way down to the bottom level Data layer object? I think I have the answer in that I could just have a kind of central static class that is initialized with the Struts Datasource on web app startup, and the Datalayer objects that need to get a connection to a database in order to manipulate data, could simply ask for it via the static methods of this class. Memories Thanks! tataryn:craig/ P.S. I am without static IP, and thus computer-programmer.org tutorials are down. I should be getting a static IP in about a week! Hopefully by then I will have played around with 1.1 long enough to revise my tutorial! From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Date: Fri, 6 Sep 2002 19:32:17 -0700 (PDT) On Fri, 6 Sep 2002, Craig Tataryn wrote: Date: Fri, 06 Sep 2002 17:57:42 -0500 From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Alternative Datsource Hot-potatoing... Thanks Ted, I'll check it out. But just out of curiosity, why would you ever want your Business Layer to know about Datasources? Craig. This Craig stuff is going to get confusing :-). The strategic issue, IMHO, is that you want business layer classes to know the absolute minimum information possible to achieve its objectives. In the particular case at hand, the minimum possible knowledge would be what java.sql.Connection to use for their JDBC activities. If you're in a batch-mode single threaded application, why would you want to go to all the effort to establish a DataSource object, when you'd only ever use a single Connection from it? If you're going to pass in a reference to a JDBC-something object, it seems better to me that you pass a Connection instead -- that way a batch app can pass the one-and-only Connection it creates, and the business logic layer is none the wiser. Craig (McClanahan :-) -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn
Datasource Retrieval in 1.1
The documentation still lists the old way of how to retrieve a datasource which has been setup in struts-config.xml using findDatasource(); The API says to use datasource stored in attributes. Can someone give an example of how I might do this from within my execute method? I want to get rid of my deprecation warnings for findDatasource() As well, I believe you can have multiple datasources setup in struts-config.xml. The default datasource being keyed by org.apache.struts.action.Action.DATA_SOURCE_KEY. Could someone point me to an example of multiple datasources and how to setup keys for each? Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] EasyStruts and location of the generated Action file (URGENT)
I too use the Tomcat Easy Struts plugins for Eclipse. In fact I would say they go hand in hand. Typically this is what you do: Install the Tomcat plugin, go into Window-Preferences-Tomcat and tell it where your tomcat base directory (CATILINA_HOME if you will) then create a new Tomcat project. This ensures that your server.xml file will be setup properly so that a new context is added which points to your eclipse/workspaces/projectName/WEB-INF/ folder and your sources will be compiled to the proper directories. If you need to stick jars in the WEB-INF/lib directory, right click on your project in the Java perspective (top most node) and choose Properties-Java Build Path-Libraries-Add External JARS. Add the jar file, and the next time you refresh your WEB-INF/lib directory in eclipse you will see the new jar file appear there and you can use it's classes in your servlets. Sound good? So it just seems like you never started your project off as a Tomcat project before using the Easy Struts wizards. Like I said, the Tomcat project container ensures that Tomcat knows where your classes are and it also ensures that the WEB-INF directory structure is created and updated for your project. later, craiger From: Tiago Nodari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: EasyStruts and location of the generated Action file (URGENT) Date: Thu, 05 Sep 2002 15:31:44 -0300 Hi, I dont use eclipse that much but what I do is set the project base path as CATALINA_HOME/webapps/ and I use a plugin called Tomcat which has a project called tomcat that creates a web-inf and inside the web-inf a src and classes dir, works really nice... http://www.sysdeo.com/eclipse/tomcatPlugin.html At 03:18 PM 9/5/2002 +0200, you wrote: When I create a new Action class, it tries to save the file at: [.jpx project's location]/base package/src/base package + Action class package. Why this path? The file must be created under the CATALINA_HOME/webapps/src/base package+ Action class package I don't understand which path (EasyStruts properties or setup I must change). Where are saved the parameters declared in the EasyStruts set up and properties ? Is it possible to share them ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Datasource Retrieval in 1.1
Ok, read the DTD for struts-config.xml and figured out that I would use the key attribute if I were to add another datasource. I would still like to know how to retrieve the datasource without using the deprecated findDatasource() method. Thanks, Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Datasource Retrieval in 1.1 Date: Thu, 05 Sep 2002 11:30:39 -0500 The documentation still lists the old way of how to retrieve a datasource which has been setup in struts-config.xml using findDatasource(); The API says to use datasource stored in attributes. Can someone give an example of how I might do this from within my execute method? I want to get rid of my deprecation warnings for findDatasource() As well, I believe you can have multiple datasources setup in struts-config.xml. The default datasource being keyed by org.apache.struts.action.Action.DATA_SOURCE_KEY. Could someone point me to an example of multiple datasources and how to setup keys for each? Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: ActionForms
Here is an example of how to use DynaActionForm: In struts-config.xml under form-beans tag: form-bean name=loginUserForm type=org.apache.struts.action.DynaActionForm dynamic=true form-property name=userName type=java.lang.String / form-property name=password type=java.lang.String / /form-bean In the controller's execute method you have setup for this form: public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { DynaActionForm loginUserForm = (DynaActionForm) form; String userName = form.get(userName); String password = form.get(passWord); } Now the local variables userName and password would have the values entered by the user on the loginForm. Make sense? Craig. From: James Mitchell [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: ActionForms Date: Thu, 5 Sep 2002 14:51:24 -0400 Or...use DynaActionForm. See documentation for details. James RTFM Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 1:41 PM To: 'Struts Users Mailing List' Subject: RE: ActionForms Threaten it with replacement by .NET. -Original Message- From: Smith, Johnathan M. [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 05, 2002 1:28 PM How can I make Struts automatically created a ActionForm -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: [OT] EasyStruts and location of the generated Action file (URGENT)
I too use the Tomcat Easy Struts plugins for Eclipse. In fact I would say they go hand in hand. Typically this is what you do: Install the Tomcat plugin, go into Window-Preferences-Tomcat and tell it where your tomcat base directory (CATILINA_HOME if you will) then create a new Tomcat project. This ensures that your server.xml file will be setup properly so that a new context is added which points to your eclipse/workspaces/projectName/WEB-INF/ folder and your sources will be compiled to the proper directories. If you need to stick jars in the WEB-INF/lib directory, right click on your project in the Java perspective (top most node) and choose Properties-Java Build Path-Libraries-Add External JARS. Add the jar file, and the next time you refresh your WEB-INF/lib directory in eclipse you will see the new jar file appear there and you can use it's classes in your servlets. Sound good? So it just seems like you never started your project off as a Tomcat project before using the Easy Struts wizards. Like I said, the Tomcat project container ensures that Tomcat knows where your classes are and it also ensures that the WEB-INF directory structure is created and updated for your project. later, craiger From: Tiago Nodari [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: EasyStruts and location of the generated Action file (URGENT) Date: Thu, 05 Sep 2002 15:31:44 -0300 Hi, I dont use eclipse that much but what I do is set the project base path as CATALINA_HOME/webapps/ and I use a plugin called Tomcat which has a project called tomcat that creates a web-inf and inside the web-inf a src and classes dir, works really nice... http://www.sysdeo.com/eclipse/tomcatPlugin.html At 03:18 PM 9/5/2002 +0200, you wrote: When I create a new Action class, it tries to save the file at: [.jpx project's location]/base package/src/base package + Action class package. Why this path? The file must be created under the CATALINA_HOME/webapps/src/base package+ Action class package I don't understand which path (EasyStruts properties or setup I must change). Where are saved the parameters declared in the EasyStruts set up and properties ? Is it possible to share them ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] tsdok -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)
Thanks! Makes sense. Craig. - Original Message - From: Jason Rosen [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Friday, August 30, 2002 6:17 PM Subject: RE: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up) I created a Plug-in to initialize a connection to a proprietary Data Access layer for a CRM package I have to use. On initialization, my Plug-in just creates a connection to my datasource (using the CRM package's Java API) and stashes a reference to the connection in the ServletContext. Then I have a BaseAction class that retrieves the reference and makes it available to all Actions that subclass the BaseAction. When my app is shut down, the Plug-in ensures there are no more transactions for the connection, and destroys the connection when all transactions are finished. Worked out pretty well - gives me the ability to have connection pooling for all my Actions using the CRM proprietary Data Access APIs. -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 2:02 PM To: Struts Users Mailing List Subject: Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up) That's ok Joe, I understand. The one thing I do when I subscribe to a mail group is say to myself Am I here to help myself or to help others? Nine times out of ten it ends up being both. If I respond to someone's query I only do so if I legitimately have something to contribute, I never respond if it is going to be condesending. When I dedicate myself to helping a mailing list, I answer people's questions in hopes that they may one day answer some of mine. Yes, I should have queried the manuals closer, my bad. Remember sarcasim should be left for Usenet :) If I respond with an RTFM type post, I usually provide a link to the document I wish the user to read, or atleast a quote. I know some people abuse this level of help, but on a whole it helps the group. In my RTFM'ing I understand the concept behind Dynaforms, but was wondering if someone could provide an example? And Plugins, still not clear on how/when I would use such a thing. Is there a specific example someone has at the top of their head? Thanks, Craig. - Original Message - From: Joe Barefoot [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 4:11 PM Subject: RE: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up) You're welcome. Sorry I was a bit terse/militant, but this list has been spammed with so much crap lately it's starting to overwhelm my usually pacific demeanour. :) peace, Joe -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 1:12 PM To: Struts Users Mailing List Subject: Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up) Thank you for your answer. I actually found the answer in the taglib documentation for html:form, I hadn't seen it before. Craig. - Original Message - From: Joe Barefoot [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 2:10 PM Subject: RE: Help me shake the cobwebs out... The Struts controller knows what form bean to instantiate because you put a form bean name reference in your action mapping. The mapping must contain the URL for your action. In your JSP html:form tag, you reference an action's URL. The controller simply matches this URL to your form bean reference through the actionMapping, then grabs the form bean class type from your form-bean declaration in your struts-config, and instantiates that class to populate with values from your request. If you have no form bean reference in your action mapping, then you cannot use an html:form tag which refers to that action mapping's URL, as Sri already pointed out below. b.t..w, if you had take the time to RTFM since yesterday, you could have answered your own question and then some. The Struts user manual is a nice quick start for configuration, and the JavaDocs are quite comprehensive. Click on a package, then it's description, and you will get plenty of documentation, particularly with the tag packages. peace, Joe -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Fri 8/30/2002 10:47 AM To: Struts Users Mailing List Cc: Subject: RE: Help me shake the cobwebs out... You haven't mentioned if there is *any* form-bean associated with this action mapping. You are forced to specify one only if you use the html:form tag. So, since you
Re: Help me shake the cobwebs out...
stein:ben Anyone? Anyone? Anyone? /stein:ben From: Craig Tataryn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help me shake the cobwebs out... Date: Thu, 29 Aug 2002 17:52:33 -0500 Alrighty, really have been out of the loop for the last year w.r.t Struts, last time I used it was pre-1.0. However, I will be using it on a project shortly and I have been brushing up. Can you help me with this query? I have set a simple demo where I have made a loginUser Action, who's input attribute is /form/loginUser.jsp. Inside the execute method of this action, I simply return mappings.getInputForward(); Fair enough typically in my controller I might have some logic to figure out if the user was valid, and if they are I would forward them to some other handler, if they were invalid I would set some error messages and then do what I did above with the getInputForward() method. However, I then did this in my browser: http://localhost:8080/mywebapp/form/loginUser.jsp and it worked! How did the Struts controller know what form bean to create for that loginUser.jsp? Is it because I have loginUser.jsp as my input attribute of the action? What if I wanted to use the same input view (jsp file) for two separate handlers? How would it decide then which form bean to create? Also, can someone give me the Coles notes version on: 1) DnyaForms 2) Plugins Thanks! /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help me shake the cobwebs out...
Yes, there is a form bean associated with my action mapping, as well as an input attribute set to that jsp page I was talking about earlier. I don't believe the file was being loaded from the cache as I had a debug session open in eclipse on my form bean and it tripped the getUserName() method :) So, back to my original Q, how is struts making the association of that jsp with the proper formbean? Is it looking up the jsp page accross all action mappings and if it finds a match on the input attribute it then sets up the form bean based on that action? Thanks, Craig. - Original Message - From: Sri Sankaran [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 1:47 PM Subject: RE: Help me shake the cobwebs out... You haven't mentioned if there is *any* form-bean associated with this action mapping. You are forced to specify one only if you use the html:form tag. So, since you are simply refreshing the page it worked. Did I miss something? Sri -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:30 AM To: [EMAIL PROTECTED] Subject: Re: Help me shake the cobwebs out... stein:ben Anyone? Anyone? Anyone? /stein:ben From: Craig Tataryn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help me shake the cobwebs out... Date: Thu, 29 Aug 2002 17:52:33 -0500 Alrighty, really have been out of the loop for the last year w.r.t Struts, last time I used it was pre-1.0. However, I will be using it on a project shortly and I have been brushing up. Can you help me with this query? I have set a simple demo where I have made a loginUser Action, who's input attribute is /form/loginUser.jsp. Inside the execute method of this action, I simply return mappings.getInputForward(); Fair enough typically in my controller I might have some logic to figure out if the user was valid, and if they are I would forward them to some other handler, if they were invalid I would set some error messages and then do what I did above with the getInputForward() method. However, I then did this in my browser: http://localhost:8080/mywebapp/form/loginUser.jsp and it worked! How did the Struts controller know what form bean to create for that loginUser.jsp? Is it because I have loginUser.jsp as my input attribute of the action? What if I wanted to use the same input view (jsp file) for two separate handlers? How would it decide then which form bean to create? Also, can someone give me the Coles notes version on: 1) DnyaForms 2) Plugins Thanks! /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)
Thank you for your answer. I actually found the answer in the taglib documentation for html:form, I hadn't seen it before. Craig. - Original Message - From: Joe Barefoot [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 2:10 PM Subject: RE: Help me shake the cobwebs out... The Struts controller knows what form bean to instantiate because you put a form bean name reference in your action mapping. The mapping must contain the URL for your action. In your JSP html:form tag, you reference an action's URL. The controller simply matches this URL to your form bean reference through the actionMapping, then grabs the form bean class type from your form-bean declaration in your struts-config, and instantiates that class to populate with values from your request. If you have no form bean reference in your action mapping, then you cannot use an html:form tag which refers to that action mapping's URL, as Sri already pointed out below. b.t..w, if you had take the time to RTFM since yesterday, you could have answered your own question and then some. The Struts user manual is a nice quick start for configuration, and the JavaDocs are quite comprehensive. Click on a package, then it's description, and you will get plenty of documentation, particularly with the tag packages. peace, Joe -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Fri 8/30/2002 10:47 AM To: Struts Users Mailing List Cc: Subject: RE: Help me shake the cobwebs out... You haven't mentioned if there is *any* form-bean associated with this action mapping. You are forced to specify one only if you use the html:form tag. So, since you are simply refreshing the page it worked. Did I miss something? Sri -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:30 AM To: [EMAIL PROTECTED] Subject: Re: Help me shake the cobwebs out... stein:ben Anyone? Anyone? Anyone? /stein:ben From: Craig Tataryn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help me shake the cobwebs out... Date: Thu, 29 Aug 2002 17:52:33 -0500 Alrighty, really have been out of the loop for the last year w.r.t Struts, last time I used it was pre-1.0. However, I will be using it on a project shortly and I have been brushing up. Can you help me with this query? I have set a simple demo where I have made a loginUser Action, who's input attribute is /form/loginUser.jsp. Inside the execute method of this action, I simply return mappings.getInputForward(); Fair enough typically in my controller I might have some logic to figure out if the user was valid, and if they are I would forward them to some other handler, if they were invalid I would set some error messages and then do what I did above with the getInputForward() method. However, I then did this in my browser: http://localhost:8080/mywebapp/form/loginUser.jsp and it worked! How did the Struts controller know what form bean to create for that loginUser.jsp? Is it because I have loginUser.jsp as my input attribute of the action? What if I wanted to use the same input view (jsp file) for two separate handlers? How would it decide then which form bean to create? Also, can someone give me the Coles notes version on: 1) DnyaForms 2) Plugins Thanks! /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Join the world's largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up)
That's ok Joe, I understand. The one thing I do when I subscribe to a mail group is say to myself Am I here to help myself or to help others? Nine times out of ten it ends up being both. If I respond to someone's query I only do so if I legitimately have something to contribute, I never respond if it is going to be condesending. When I dedicate myself to helping a mailing list, I answer people's questions in hopes that they may one day answer some of mine. Yes, I should have queried the manuals closer, my bad. Remember sarcasim should be left for Usenet :) If I respond with an RTFM type post, I usually provide a link to the document I wish the user to read, or atleast a quote. I know some people abuse this level of help, but on a whole it helps the group. In my RTFM'ing I understand the concept behind Dynaforms, but was wondering if someone could provide an example? And Plugins, still not clear on how/when I would use such a thing. Is there a specific example someone has at the top of their head? Thanks, Craig. - Original Message - From: Joe Barefoot [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 4:11 PM Subject: RE: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up) You're welcome. Sorry I was a bit terse/militant, but this list has been spammed with so much crap lately it's starting to overwhelm my usually pacific demeanour. :) peace, Joe -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 1:12 PM To: Struts Users Mailing List Subject: Re: Help me shake the cobwebs out... (also http://www.computer-programmer.org/articles/struts/ is back up) Thank you for your answer. I actually found the answer in the taglib documentation for html:form, I hadn't seen it before. Craig. - Original Message - From: Joe Barefoot [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Friday, August 30, 2002 2:10 PM Subject: RE: Help me shake the cobwebs out... The Struts controller knows what form bean to instantiate because you put a form bean name reference in your action mapping. The mapping must contain the URL for your action. In your JSP html:form tag, you reference an action's URL. The controller simply matches this URL to your form bean reference through the actionMapping, then grabs the form bean class type from your form-bean declaration in your struts-config, and instantiates that class to populate with values from your request. If you have no form bean reference in your action mapping, then you cannot use an html:form tag which refers to that action mapping's URL, as Sri already pointed out below. b.t..w, if you had take the time to RTFM since yesterday, you could have answered your own question and then some. The Struts user manual is a nice quick start for configuration, and the JavaDocs are quite comprehensive. Click on a package, then it's description, and you will get plenty of documentation, particularly with the tag packages. peace, Joe -Original Message- From: Sri Sankaran [mailto:[EMAIL PROTECTED]] Sent: Fri 8/30/2002 10:47 AM To: Struts Users Mailing List Cc: Subject: RE: Help me shake the cobwebs out... You haven't mentioned if there is *any* form-bean associated with this action mapping. You are forced to specify one only if you use the html:form tag. So, since you are simply refreshing the page it worked. Did I miss something? Sri -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Friday, August 30, 2002 10:30 AM To: [EMAIL PROTECTED] Subject: Re: Help me shake the cobwebs out... stein:ben Anyone? Anyone? Anyone? /stein:ben From: Craig Tataryn [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Help me shake the cobwebs out... Date: Thu, 29 Aug 2002 17:52:33 -0500 Alrighty, really have been out of the loop for the last year w.r.t Struts, last time I used it was pre-1.0. However, I will be using it on a project shortly and I have been brushing up. Can you help me with this query? I have set a simple demo where I have made a loginUser Action, who's input attribute is /form/loginUser.jsp. Inside the execute method of this action, I simply return mappings.getInputForward(); Fair enough typically in my controller I might have some logic to figure out if the user was valid, and if they are I would forward them to some other handler, if they were invalid I would set some error messages and then do what I did above with the getInputForward() method. However, I then did this in my browser: http://localhost:8080/mywebapp/form
Re: newbie question
Hi Anand, you will not be able to run a Struts application directly under Apache web server. You need either do one of two things: 1) Dump Apache web server all together, but Apache is good for serving static pages so you may want to take option two: 2) Have Apache running along side of Jakarta Tomcat, to find out how to do that, read this: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html. Basically what it amounts to is you let Apache know about Tomcat and you tell it which URL contexts will trigger Apache to pass the request along to Tomcat for processing. So for instance if you might set it up so all requests to http://mysite.com/servlet get passed along to Tomcat, or perhaps you will do it by extension so that all files ending in .jsp will be handled by Tomcat. Hope that helps, Craig. From: anand v [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: newbie question Date: Fri, 30 Aug 2002 20:38:25 + Hi, I could make the strut example work on my server.. Redhat 7.1 My next goal is to just make this exmple work as it is from my site which is say http://mysite.com How can I do that?? Is that I have to copy all the struts-example directory to my site root directory?? I am using Apache webserver. My root directory for this site is /home/mysite Thanks Anand _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Help me shake the cobwebs out...
Alrighty, really have been out of the loop for the last year w.r.t Struts, last time I used it was pre-1.0. However, I will be using it on a project shortly and I have been brushing up. Can you help me with this query? I have set a simple demo where I have made a loginUser Action, who's input attribute is /form/loginUser.jsp. Inside the execute method of this action, I simply return mappings.getInputForward(); Fair enough typically in my controller I might have some logic to figure out if the user was valid, and if they are I would forward them to some other handler, if they were invalid I would set some error messages and then do what I did above with the getInputForward() method. However, I then did this in my browser: http://localhost:8080/mywebapp/form/loginUser.jsp and it worked! How did the Struts controller know what form bean to create for that loginUser.jsp? Is it because I have loginUser.jsp as my input attribute of the action? What if I wanted to use the same input view (jsp file) for two separate handlers? How would it decide then which form bean to create? Also, can someone give me the Coles notes version on: 1) DnyaForms 2) Plugins Thanks! /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Action object doesn't get attributes...
Here is a question from a collegue of mine (see below). Basically last year when they started using Struts on one of their web applications they could use request.getAttributes from their Action object and everything worked fine. However, now it seems that they need to use an ActionForm object which isn't possible in this case since the form objects to be submitted change based on the user logged in. Anyone have an answer? I just saw a mail from Craig explaining that form parameter values are treated differently now than they were before, however he says they are using the same version of struts (1.0) as they did before. Thanks, /tataryn:craig Original message: For those of you who I asked already, I did some more testing and included some more information: Have any of you come accross the following? It seems that the form attributes are not available to the struts Action object unless they are put into an ActionForm. If they are not put into an ActionForm (or if there is no ActionForm defined for the page) then the data is unavailable to that Action object. This did not happen in last years application (both are using the same struts version). Is there some configuration setting that might be causing this? Is the presence of ANY ActionForm that is defined on that page mess up forms for which there is no ActionForm? Thanks for any info you might have on this. Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Action object doesn't get attributes...
Thanks, I'll pass the info along! Craig. From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Action object doesn't get attributes... Date: Fri, 12 Jul 2002 15:30:25 -0700 (PDT) On Fri, 12 Jul 2002, Craig Tataryn wrote: Date: Fri, 12 Jul 2002 16:28:52 -0500 From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Action object doesn't get attributes... Here is a question from a collegue of mine (see below). Basically last year when they started using Struts on one of their web applications they could use request.getAttributes from their Action object and everything worked fine. However, now it seems that they need to use an ActionForm object which isn't possible in this case since the form objects to be submitted change based on the user logged in. Anyone have an answer? I just saw a mail from Craig explaining that form parameter values are treated differently now than they were before, however he says they are using the same version of struts (1.0) as they did before. The request (and response) are passed to the Action as method parameters -- so the request attributes are definitely available inside an Action's perform() or execute() method. Remember that request *attributes* are things that your application has stored there. If you're looking for the input information from the client browser, you probably want the request *parameters* instead (which are also available from the passed request instance). Craig Thanks, /tataryn:craig Original message: For those of you who I asked already, I did some more testing and included some more information: Have any of you come accross the following? It seems that the form attributes are not available to the struts Action object unless they are put into an ActionForm. If they are not put into an ActionForm (or if there is no ActionForm defined for the page) then the data is unavailable to that Action object. This did not happen in last years application (both are using the same struts version). Is there some configuration setting that might be causing this? Is the presence of ANY ActionForm that is defined on that page mess up forms for which there is no ActionForm? Thanks for any info you might have on this. Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Computer-programmer.org tutorial...
Fear not! I had to move over the weekend and thus the webserver that held the computer-programmer struts tutorial is down. I'll bring her back up sometime today and send out an email. Thanks, tataryn:craig status=tired of moving/ Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Computer-programmer.org tutorial...
Alright, server is back up. Made the IP changes with my registrar so in 24 hours everyone should be able to see the struts tutorial at: http://www.computer-programmer.org/articles/struts/ If you can't wait that long, you can go here for the time being: http://24.82.162.176/articles/struts/ Take care, Craig From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Computer-programmer.org tutorial... Date: Fri, 19 Apr 2002 09:29:43 -0500 Fear not! I had to move over the weekend and thus the webserver that held the computer-programmer struts tutorial is down. I'll bring her back up sometime today and send out an email. Thanks, tataryn:craig status=tired of moving/ Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Computer-programmer.org tutorial...
P.P.S. The server may go up/down at some point today as I get it all setup. Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Computer-programmer.org tutorial... Date: Fri, 19 Apr 2002 09:47:20 -0500 Alright, server is back up. Made the IP changes with my registrar so in 24 hours everyone should be able to see the struts tutorial at: http://www.computer-programmer.org/articles/struts/ If you can't wait that long, you can go here for the time being: http://24.82.162.176/articles/struts/ Take care, Craig From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Computer-programmer.org tutorial... Date: Fri, 19 Apr 2002 09:29:43 -0500 Fear not! I had to move over the weekend and thus the webserver that held the computer-programmer struts tutorial is down. I'll bring her back up sometime today and send out an email. Thanks, tataryn:craig status=tired of moving/ Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Best Practice for parsing an XML file for application confi gurationparameters?
You can put all your properties in one file as well, lets call that file config.properties 2. xml handle the structure data much better then properties file data structure might be nice for communications between computers but for users? e.g. RepositoryRoot=d:\ RepositoryAssets=assets RepositoryViewPath=file://d:/repository/assets Just to add, I like the format: Repository.Root=d:\ Repository.Assets=assets etc.. I suppose, if you ever wanted to goto XML at some point, you could just write yourself a nice little resource bundle manager that exposed the xml file in the same way you are used to using your properties file. Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Newbie Struts and Jbuilder6
You can save your petty sarcasm for usenet. This group is about helping people, not belittling them. Craig. From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Newbie Struts and Jbuilder6 Date: Wed, 6 Mar 2002 07:44:28 -0500 He didn't say anything; he wrote it. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 7:33 AM To: Struts Users Mailing List Subject: RE: Newbie Struts and Jbuilder6 yes , i fully agree with what emaho has said in the mail rgds amit malhotra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Digester Question
Anyone? /tataryn:craig From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Digester Question Date: Mon, 04 Mar 2002 14:19:07 -0600 I realize that the digester is now part of commons, but I figure there is probably a lot of expertise here since it grew up in Struts. I was wondering if someone could help me figure out the easiest way to do this: I have an xml document, that holds form data, I would like to use the digester to populate my objects automatically. A form file might look like this: forms form type=shopping-cart /form form type=calculator ... /form ... /forms Let's assume there are many forms... I was wondering, without having to load all forms into objects and then picking the one I want to use, I would rather the digester only instantiate and populate an object for lets say, the form node who's type attribute is calculator. What's the easiest way to do this? I don't think the digester can pattern match on attribute values the way XPath does, so is there a programming technique I can use to filter further? Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Digester Question
I realize that the digester is now part of commons, but I figure there is probably a lot of expertise here since it grew up in Struts. I was wondering if someone could help me figure out the easiest way to do this: I have an xml document, that holds form data, I would like to use the digester to populate my objects automatically. A form file might look like this: forms form type=shopping-cart /form form type=calculator ... /form ... /forms Let's assume there are many forms... I was wondering, without having to load all forms into objects and then picking the one I want to use, I would rather the digester only instantiate and populate an object for lets say, the form node who's type attribute is calculator. What's the easiest way to do this? I don't think the digester can pattern match on attribute values the way XPath does, so is there a programming technique I can use to filter further? Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Off topic: My images are garbled again...
http://www.computer-programmer.org/articles/struts/ppframe.htm I can't quite figure this one out. I even restarted Apache. Anyone else ever see this type of problem? Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts and Servlet Exec
Bang on my friend! That did it! You were correct in assuming that I was behind an http proxy. Updating the URIs for the dtds to the local servers did the trick. That would explain why it took so long to add/reload the struts-example, it was timeing out on trying to lookup the dtds! Thanks, and thanks to Robert as well! tataryn:craig/ From: Niranjan K Vuppu [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Struts and Servlet Exec Date: Thu, 31 Jan 2002 16:13:00 -0600 Hi Craig, Can't comment on the original problem but resolveEntity problem comes with server not able to fetch the dtds from an external site (your server behind the fire wall etc.,). Copy, the following dtds to your webApp (or jsp root dir), you should find them in the struts distribution. struts-config_1_0.dtd web-app_2_2.dtdor web-app_2_3.dtd or both. And in the struts-config.xml where it says !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN htt://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd replace the following line filling the port and webApplicationName( name of the app deployed, ex: strutsexample) variables. !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN http://localhost:port/webApplicationName/struts-config_1_0.dtd The dtd will be fetched from the local host instead of an external site. Similarly add the local URL with the correct dtd to your web.xml file also. - Hope this helps. - Niranjan Craig Tataryn wrote: Got this out of the ServletExec log, could this be the culprit? [Thu Jan 31 14:29:45 EST 2002] resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jaka rta.apache.org/struts/dtds/struts-config_1_0.dtd') [Thu Jan 31 14:29:45 EST 2002] Not registered, use system identifier Thanks, Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Struts and Servlet Exec Date: Thu, 31 Jan 2002 13:48:39 -0600 Tried deploying struts-example to ServletExec. Main page comes up fine, but when I click on links to do the tour, register, check mail I never get a response (it just sits their chugging away). The class path for the ServletExec didn't have Xerces on it, so I added that to my WEB-INF/lib directory. Any suggestions? Thanks, Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts and Servlet Exec Date: Thu, 31 Jan 2002 11:07:11 -0600 Hi there. Anyone using Struts with ServletExec? I guess the question would be, does it work just like Tomcat? Deploy struts-blank to webapps and start hacking (I would probably have to go into servletexec admin and register the struts app, but other than that, anything else)? Thanks, tataryn:craig/ Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- ** Niranjan Kumar Vuppu Ph No: 901 263 4386(w) ** -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Computer-programmer.org tutorial...
Well, hopefully I've exercised the demons out of my webserver. Let me know if you see any anomolies w.r.t. the online presentation (some of the images were getting garbled). http://www.computer-programmer.org/articles/struts/ If anyone has any webspace they would like to donate, I would love to offload the narration files to them. My poor DSL connection doesn't have a large pipe for uploads. Thanks, Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Computer-programmer.org tutorial...
Interesting, didn't realize they were hosted elsewhere. Mark was kind enough to offer some webspace to me to host some of my files, however it looks as though Ted has taken the initiative. I must have missed the original post! Ted, is it ok to link to your site off of mine, or should I keep the link set to Mark's site? Craig. From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Computer-programmer.org tutorial... Date: Fri, 1 Feb 2002 13:18:27 -0500 What are these? -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 1:06 PM Ok, this is up at http://husted.com/struts/resources/strutsmvc-narration-update.zip -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Opentools add-in for JBuilder
I keep getting a Catastrophic Failure from the borland site when I try to download the opentools add-in for struts. Anyone have a copy I can download? Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Opentools add-in for JBuilder
Sorry! Should have elaborated, I meant the open tool add-in for JBuilder. tataryn:craig/ From: James Holmes [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: Re: Opentools add-in for JBuilder Date: Fri, 1 Feb 2002 12:39:54 -0800 (PST) Not sure which one you're referring to, but if you're talking about the Struts Console open tool you can get it from http://www.jamesholmes.com/struts/ Enjoy, -james [EMAIL PROTECTED] --- Craig Tataryn [EMAIL PROTECTED] wrote: I keep getting a Catastrophic Failure from the borland site when I try to download the opentools add-in for struts. Anyone have a copy I can download? Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] __ Do You Yahoo!? Great stuff seeking new owners in Yahoo! Auctions! http://auctions.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Opentools add-in for JBuilder
Sorry, yes, nostruts.jar and webinfextension.jar Craig. From: Cameron Ingram [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Opentools add-in for JBuilder Date: Fri, 01 Feb 2002 15:40:08 -0500 Which one there are a couple... do you mean the nostruts.jar?? [EMAIL PROTECTED] 02/01/02 03:37PM I keep getting a Catastrophic Failure from the borland site when I try to download the opentools add-in for struts. Anyone have a copy I can download? Craig. Craig W. Tataryn Programmer/Analyst Compuware _ Join the worldÆs largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Computer-programmer.org tutorial...
Appreciate it Ted, Mark had messaged me privately and offered his webspace. I had just finished uploading it to his servers when I got the mails. If you wouldn't mind keeping the narration-files on your site, I'll use it as a mirror. Thanks, tataryn:craig/ From: Ted Husted [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Computer-programmer.org tutorial... Date: Fri, 01 Feb 2002 15:44:12 -0500 Whatever you prefer, Craig. You asked about offloading the narration files, so that's what I did. Craig Tataryn wrote: Interesting, didn't realize they were hosted elsewhere. Mark was kind enough to offer some webspace to me to host some of my files, however it looks as though Ted has taken the initiative. I must have missed the original post! Ted, is it ok to link to your site off of mine, or should I keep the link set to Mark's site? Craig. From: Galbreath, Mark [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Computer-programmer.org tutorial... Date: Fri, 1 Feb 2002 13:18:27 -0500 What are these? -Original Message- From: Ted Husted [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 1:06 PM Ok, this is up at http://husted.com/struts/resources/strutsmvc-narration-update.zip -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- Ted Husted, Husted dot Com, Fairport NY USA. -- Java Web Development with Struts. -- Tel +1 585 737-3463. -- Web http://www.husted.com/struts/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Join the worlds largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Struts and Servlet Exec
Hi there. Anyone using Struts with ServletExec? I guess the question would be, does it work just like Tomcat? Deploy struts-blank to webapps and start hacking (I would probably have to go into servletexec admin and register the struts app, but other than that, anything else)? Thanks, tataryn:craig/ Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Struts and Servlet Exec
Got this out of the ServletExec log, could this be the culprit? [Thu Jan 31 14:29:45 EST 2002] resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN', 'http://jaka rta.apache.org/struts/dtds/struts-config_1_0.dtd') [Thu Jan 31 14:29:45 EST 2002] Not registered, use system identifier Thanks, Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: Struts and Servlet Exec Date: Thu, 31 Jan 2002 13:48:39 -0600 Tried deploying struts-example to ServletExec. Main page comes up fine, but when I click on links to do the tour, register, check mail I never get a response (it just sits their chugging away). The class path for the ServletExec didn't have Xerces on it, so I added that to my WEB-INF/lib directory. Any suggestions? Thanks, Craig. From: Craig Tataryn [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Struts and Servlet Exec Date: Thu, 31 Jan 2002 11:07:11 -0600 Hi there. Anyone using Struts with ServletExec? I guess the question would be, does it work just like Tomcat? Deploy struts-blank to webapps and start hacking (I would probably have to go into servletexec admin and register the struts app, but other than that, anything else)? Thanks, tataryn:craig/ Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Ok, but what happens to their form bean? It would be gone, and thus their performance evaluation data would be gone. No? Craig. From: Jon.Ridgway [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 10:12:13 - Hi Graig, Most Servers (Web J2EE) have a session timeout setting. If used in conjunction with form based (container managed) authorization, the container will invalidate the session for you and pass control automatically to your login screen once their session is invalidated. Jon. -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: 28 January 2002 07:19 To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
That sounds feasable. Thanks for your help! Craig. From: Jesse Alexander (KADA 12) [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 10:42:22 +0100 Hi session.invalidate() comes to mind... another way would be to persist the information so far entered (under some artificial key) and use a cookie to reget that key from the user's browser as soon as he comes back. With this you can let the session expire and still have the information ready... hope this helps Alexander -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 8:19 AM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
There you go! That sounds good. So I'm assuming (bare with me, I haven't done much with session time outs) that you code some type of event procedure which is kicked off when the session times out? You can then do cleanup stuff at this point? How do you get at your form bean? If memory serves (and it's been a while), your form beans are always passed to you as a parameter. Unless you can get at them some how through the session object? Thanks, Craig. From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 09:33:18 -0500 Store the data in a database on session timeout; restore it when the user comes back (requires a login or a persistent cookie). Mark -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 1:37 AM To: [EMAIL PROTECTED] Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Brilliant! Thanks. From: Mark Galbreath [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Mon, 28 Jan 2002 14:28:38 -0500 That's right. Check out the javax.servlet.http.* API. You want to register the moment the user becomes unbound from a session so you can write the form values to the database (these would be stored as session attributes and updated as the user moves from field to field in the forms or from form page to form page. Any object that implements the HttpSessionBinding Listener interface is notified when it is bound and unbound from a session. So, for example, create a helper class or stick a helper method in your controller servlet to do something like: public void valueUnbound( HttpSessionindingEvent event) { [plug session.getAttribute() returns into update parameters on your Statement().update() method call through your Connection() String] } This works because whenever this interface is implemented, its valueBound() and valueUnbound() methods are invoked whenever a session begins and whenever it ends, respectively. This is how many persistent shopping cart apps work (e.g., see the JavaOne shopping cart at java.sun.com - it persists across sessions). Mark -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Monday, January 28, 2002 10:14 AM To: [EMAIL PROTECTED] Subject: RE: What happens when our session expires? There you go! That sounds good. So I'm assuming (bare with me, I haven't done much with session time outs) that you code some type of event procedure which is kicked off when the session times out? You can then do cleanup stuff at this point? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What happens when our session expires?
Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: What happens when our session expires?
Thanks! Would there be a way we could manually end a session (i.e. at logoff?)? I would say that at some point (perhaps 24 hours) we would want the session to expire, I imagine if we never expired sessions we would get into some really bad performance issues... Craig. From: Jason Chaffee [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: RE: What happens when our session expires? Date: Sun, 27 Jan 2002 22:59:04 -0800 One approach would be to not let the session timeout. The 2.3 servlet spec. allows you to set the timeout to -1, which means the session will never expire. -Original Message- From: Craig Tataryn Sent: Sun 1/27/2002 10:37 PM To: [EMAIL PROTECTED] Cc: Subject: What happens when our session expires? Hi there, you probably have heard this question a million times before, but I couldn't really find anything in the archive which answered it. So here it goes: We have an application for which we would like to use struts. This aplication allows users to enter performance evaluation information on employees in the firm. I would like to know this: The user starts a performance evaluation, and half way through decides to go grab a bite to eat, comes back and finshes the evaluation, when he/she hits the save evaluation button their session is going to be kaput. Let's assume that the evaluation is a wizard type application and relied heavily on an ActionForm class to store the information entered on each page. How do you overcome this problem? Make sure to store all their previously entered performance evaluation data in a hidden field on the client side? Any help would be greatly appreciated. /tataryn:craig Craig W. Tataryn Programmer/Analyst Compuware _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] winmail.dat -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] Craig W. Tataryn Programmer/Analyst Compuware _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Things that use Struts
[EMAIL PROTECTED] wrote: Sorry...I think you'll find the real beer is only to be found in the United Kingdom! D. As a Canadian I resent that statement. Although I must admit my vavourite beer is Kilkenny and Double Diamond. However, they are too filling. Craig. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Computer-programmer.org
Hi there, for those of you who have been trying to get to the struts tutorial at http://www.computer-programmer.org/articles/struts/ , it has been down for a while. I was having network issues that have since been resolved. It's back up now! tataryn:craig/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Computer-programmer.org
Yeah, I know. It's weird. Almost like they are scambled. However, when I view them internally they look fine. I'll see if I can fix that, for now you can just download the .ppt file. Craig. Flashnet wrote: Hi, It looks like a good tutorial but some of the slides do not load completely and others ar blurry. Thought you might want to know -Original Message- From: Craig Tataryn [mailto:[EMAIL PROTECTED]] Sent: Sunday, January 13, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: Computer-programmer.org Hi there, for those of you who have been trying to get to the struts tutorial at http://www.computer-programmer.org/articles/struts/ , it has been down for a while. I was having network issues that have since been resolved. It's back up now! tataryn:craig/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: workflow?
I am currently looking at IBM's WSFL and Microsofts XLang, about half way through XLang and haven't touched WSFL... I'll keep you posted. Thanks, tataryn:craig / Marcel Andres wrote: Hi ronel A good idea to find out more about 'workflow' is the Workflow Management Coalition http://www.wfmc.org/. There are a lot of links and publications to this topic. Marcel -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 10:21 PM To: [EMAIL PROTECTED] Subject: workflow? I've seen some talk about this in the struts-dev group can somebody point me to where i can read more about it. I'm working on a framework that allows a struts developer to reuse certain wizard based pages where the wizard doesn't change, but the start and end points do i.e. Basically a way to plug in a use case into other use cases. The result of the wizard would be a bean (foreign key) that would be assigned to a bean that requested the service of the wizard. I would like to find out if the 'workflow' stuff is for this situation Thanks. -ronel
Re: Report to Recipient(s)
Apparently someone's spam filter doesn't like x's being lined up in bunches of three or more ;) Paladin wrote: Incident Information:- Originator:Deadman, Hal [EMAIL PROTECTED] Recipients:[EMAIL PROTECTED] Subject: RE: Query: ActionMappings Message from Deadman, Hal [EMAIL PROTECTED] was NOT delivered, because it contained banned content.
Re: I'm back! -- workflow
Absolutley nothing has been done! We are in design mode, basically I need to draft up a functional spec so we can start deligating chunks of it out to people intrested in contributing (sort of make a more granular TODO list). I'll put you on the struts-workflow mail list I have going, and I will send you updates as they come along... Thanks, tataryn:craig status=chilling/ ;) [EMAIL PROTECTED] wrote: tataryn:craig What work has been done so far on this effort? Is there any documentation or source available for folks to review/use/contribute to what's being done. I have some interest in a struts based workflow mechanism, and have done a little work on my own in this area (just a proof-of-concept at this point). Thanks, james:darren/:) Craig Tataryn Craig.Tataryn@morganstTo: [EMAIL PROTECTED], [EMAIL PROTECTED] anley.com cc: Subject: I'm back! 05/09/01 12:55 PM Please respond to struts-user Hi guys, I haven't been participating lately in the mailing list because I recently moved from the US back to Canada so I haven't had too much spare time. Any how, now that I am settled in I would like to start work on the Struts Workflow TODO. I was wondering if anyone other than my self and Nic would be interested in participating? Also, my webserver was down the other day. The owner had to do some maintenance. It's back up, and actually instead of using the old us-eh address to get to my struts tutorial you can get to it via: http://www.computer-programmer.org/articles/struts/ Ted, can you update your web page to point to the new computer-programmer address? Thanks, tataryn:craig/
I'm back!
Hi guys, I haven't been participating lately in the mailing list because I recently moved from the US back to Canada so I haven't had too much spare time. Any how, now that I am settled in I would like to start work on the Struts Workflow TODO. I was wondering if anyone other than my self and Nic would be interested in participating? Also, my webserver was down the other day. The owner had to do some maintenance. It's back up, and actually instead of using the old us-eh address to get to my struts tutorial you can get to it via: http://www.computer-programmer.org/articles/struts/ Ted, can you update your web page to point to the new computer-programmer address? Thanks, tataryn:craig/
Re: Preferred HTML Editor
Free beer? I am interested vey interested ;) DONNIE HALE wrote: Ted, I'm definitely not the one to ask. NetBeans is the free-as-in-beer version of Sun's Forte for Java. The various supporting pieces of NetBeans are well-isolated as "modules" (in NetBeans lingo). But as to what makes up a module and whether things can be broken up and partially redistributed - I have no idea. -Donnie [EMAIL PROTECTED] 03/06/01 10:32AM DONNIE HALE wrote: It's got Tomcat built into it, so you can right-click on a JSP and say "Execute". It also has auto-completion for custom tags - once you put the prefix:tag in, it will show the list of parameters for that tag. Is it possible to redistribute that part of the NetBeans configuration? -Ted. begin:vcard n:Tataryn;Craig x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard
Re: flow control
You can definitly do this in Struts as it stands (correct me if I'm wrong). What will help this along is the Workflow Processing TODO in the TODO 1.1 document on the struts homepage. When that is completed you will be able to map out this flow in some graphical type means. Craig T. "Nanduri, Amarnath" wrote: Hello you beautiful people, I am a newbie to struts and our company has to decide whether to go with struts or not. I have a very important question that will decide the fate of our project... Basically we want to control the flow (of the user) when he goes to various pages. For example i have 5 jsp pages a.jsp ,b.jsp, c.jsp, d.jsp and e.jsp The order of flow is a-b-c-d-e. The user has to strictly adhere to this flow. The user can't jump from a to c or d to e or e to a or d to c. etc.. Is this possible using struts ? If so, what steps do i have to go through to make sure that the user can adhere to this flow ? Thanks a lot. cheers, Amar.. -- I've been trying to change the world for years, but they just won't give me the source code begin:vcard n:Tataryn;Craig tel;home:952-884-6752 tel;work:952-842-5576 x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard
German version of presentation online!
Uwe Pleyer of Germany was gracious enough to translate the Struts Prensentation at http://www.us-eh.com/craiger/articles/struts/ to German! Check it out if that is your native tounge. Now I don't know German personally, so let me know if it's a real translation, or just some German drinking song ;) Thanks Uwe! Craig T. -- I've been trying to change the world for years, but they just won't give me the source code begin:vcard n:Tataryn;Craig tel;home:952-884-6752 tel;work:952-842-5576 x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard
Re: hide a link or JSP's URL
You have to add some javascript to your link that gets fired when the "onmouseover" event happens... a href="javascript:void(0)" onMouseOver="(window.status=''); return true" Craig T. Maya Muchnik wrote: Hi, How make a link or JSP URL "invisible" to a browser? I have read some chapter in a book, I know that this is possible. Is it possible with Struts? Is it some property "visible=true / false"? The second question is about "input" parameter in "Action Mapping" section of struts-config.xml. For example, struts-example has no "input" for "Edit user registration", but has "forward" for "success". On the other hand, "A walking tour of the example application" (http://localhost:8080/struts-example/tour.htm) has both (paragraph "CheckLoginTag.java": --- !-- Edit user registration -- action path="/editRegistration" type="org.apache.struts.example.EditRegistrationAction" name="registrationForm" scope="request" validate="false" input="/registration.jsp" forward name="success" path="/registration.jsp"/ /action -- What is right? Maya -- I've been trying to change the world for years, but they just won't give me the source code begin:vcard n:Tataryn;Craig tel;home:952-884-6752 tel;work:952-842-5576 x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard
Re: hide a link or JSP's URL
Honestly, I think it's just a matter of personal preference. I've never used "input", I always use forwards. Craig T. Maya Muchnik wrote: Thank you very much. What about the 2nd Q? Craig Tataryn wrote: You have to add some javascript to your link that gets fired when the "onmouseover" event happens... a href="javascript:void(0)" onMouseOver="(window.status=''); return true" Craig T. Maya Muchnik wrote: Hi, How make a link or JSP URL "invisible" to a browser? I have read some chapter in a book, I know that this is possible. Is it possible with Struts? Is it some property "visible=true / false"? The second question is about "input" parameter in "Action Mapping" section of struts-config.xml. For example, struts-example has no "input" for "Edit user registration", but has "forward" for "success". On the other hand, "A walking tour of the example application" (http://localhost:8080/struts-example/tour.htm) has both (paragraph "CheckLoginTag.java": --- !-- Edit user registration -- action path="/editRegistration" type="org.apache.struts.example.EditRegistrationAction" name="registrationForm" scope="request" validate="false" input="/registration.jsp" forward name="success" path="/registration.jsp"/ /action -- What is right? Maya -- I've been trying to change the world for years, but they just won't give me the source code -- I've been trying to change the world for years, but they just won't give me the source code begin:vcard n:Tataryn;Craig tel;home:952-884-6752 tel;work:952-842-5576 x-mozilla-html:TRUE url:http://www.computer-programmer.org org:Compuware;Professional Division adr:;;3600 West 80th St. Suite 400;Bloomington;MN;55431;United States of America version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Staff Analyst fn:Craig Tataryn end:vcard