Re: question related to action and tile

2004-09-22 Thread Jeff Beal
ou change (or delete) the "expectedToken" attribute and process the request. If they do not match, you return a meaningful error to the user. There is no way in standard HTTP / Servlets to distinguish between a refresh and an original request. Jeff Beal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Jeff Beal
button of the form? Is it possible there is a form validation error occurring on submit? That would return control to content.jsp and cause the error you are seeing, I think. -- Jeff Beal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cannot Find Bean in Scope Request

2004-09-23 Thread Jeff Beal
Caroline Jen wrote: Q1. How come I do not see validation warning messages? I have prepared validation.xml and put it together with the validator-rules.xml in the AppName/WEB-INF directory. I have also prepared the warning messages in the AppName/WEB-INF/classes/resources/application.properties

Re: Mulitiple html:link but only one action

2004-10-12 Thread Jeff Beal
marc wrote: I have a jsp page with 3 html:link tags on it. I what all these links to point to the same action, but each of them need to go to there own jsp site. So I need to set/pass on a string with each link, so that I can send the request the right place. How do I do that?? This is explaine

Re: Mulitiple html:link but only one action

2004-10-12 Thread Jeff Beal
a and example on have it works, and have I read the string in my action class again. Thanks Jeff Beal wrote: marc wrote: I have a jsp page with 3 html:link tags on it. I what all these links to point to the same action, but each of them need to go to there own jsp site. So I need to set/pass on a

Re: Mulitiple html:link but only one action

2004-10-12 Thread Jeff Beal
rent forms. The last 3 need to point to 3 other jsp page. And i would like to use the same action for all 9 of them. Got at clearer picture of what I what? Jeff Beal wrote: text generates the same thing as text text generates the same thing as text text works similarly, but it loops through the ma

Re: Mulitiple html:link but only one action

2004-10-12 Thread Jeff Beal
ill handle the rest. -- Jeff marc wrote: Yeah is't the Action code that I got problems with. Can't figure out have to read the html link in my action. Jeff Beal wrote: Maybe, but I'm still not sure exactly where you're having problems. Are you having problems writing the Acti

Re: Write Own Validation Instead of Using validation.xml

2004-10-12 Thread Jeff Beal
Caroline Jen wrote: I am submitteing a form. This form provides check boxes for multiple selections. I am not using the validation.xml to validate if "none" is selected. Instead, I am going to use the validate(). 1. Do I write this validate() in the form class that extends the ActionForm? Yes

Re: Condition display of a part of jsp by the presence of errors ??

2004-10-13 Thread Jeff Beal
logic:messagesPresent and/or logic:messagesNotPresent [EMAIL PROTECTED] wrote: Hi all, Is someone know if it's possible to (simply) condition displaying JSP code according to the presence or not of errors ? I have a form that mustn't be displayed entirely if some ActionError are present in my page.

Re: No ActionErrors from Action class

2004-10-14 Thread Jeff Beal
When you say 'redirected' do you mean 'redirected'? If so, that's the problem. Redirecting creates a new request, and the errors are saved in the request scope, so they would be gone. I don't see anything else that jumps out at me. Toby Saville wrote: The browser is then correctly redirected t

Re: The old 'please wait' issue

2004-10-14 Thread Jeff Beal
I had something worked up on a former project that allowed me to add extra header information on a page-by-page basis to Tiles. I don't have access to the source code any more, but it looked something like this: Tiles definition file: I don't think that I used the ex

Re: synchronizer token - double submit problem

2004-10-14 Thread Jeff Beal
The tag inserts the token as a hidden field. umamaheswara rao wrote: Hi , Your help is apprciated. How do I set a token it to JSP ? do I need to have to set the token to the form bean(form.setToken("value from session with saveToken method")) in the action class which calls saveToken(req

Re: problem with element in struts-config.xml

2004-10-15 Thread Jeff Beal
When redirect is "true" a message is sent to the browser to get the new resource. This means that the browser is aware of the path of your error.jsp. When redirect is false, the browser is not aware of the location of the JSP that is actually displaying the results. To get around the problem

Re: No ActionErrors from Action class

2004-10-15 Thread Jeff Beal
correctly shown. toby -----Original Message- From: Jeff Beal [mailto:[EMAIL PROTECTED] Sent: Thursday, October 14, 2004 10:25 PM To: [EMAIL PROTECTED] Subject: Re: No ActionErrors from Action class When you say 'redirected' do you mean 'redirected'? If so, that's the pro

Re: Still cannot get it thru with Tiles

2004-10-15 Thread Jeff Beal
You should be using action="login" not forward="login" in your html:link. The forward attribute uses a global forward to direct the request. (And I forget if the forward slash is required or not.) -- Jeff PC Leung wrote: My Main.jsp content layout (Welcome page): ... ... My struts-config.x

Re: Setting order on populate of form

2004-10-15 Thread Jeff Beal
Anything's possible. You'll have to re-write the processPopulate method in a custom RequestProcessor to enforce the order of properties that you want. That doesn't mean it's a good idea. I would **strongly** suggest re-writing your ActionForm so that it doesn't need to behave that way. -- Je

Re: Error reading text from ApplicationResources.properties

2004-09-29 Thread Jeff Beal
Rudi Doku wrote: Hello, I'm new to struts. I have added the following string to teh ApplicationResources.propertiesfile : topic.label=Topic I am trying to display this label on the page without very much success. My page looks like this: <%@ page contentType="text/html;charset=UTF-8" language="java

Re: Refresh problem

2004-09-29 Thread Jeff Beal
s (and they are only guidelines) is that any operation that modifies a server-side resource should use POST instead of GET. -- Jeff Beal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Detecting the previous JSP

2004-09-29 Thread Jeff Beal
Shabada, Gnaneshwer wrote: Hi. Is there any way in Struts I could determine dynamically what JSP/screen/action am coming from when I am in a certain screen. I have a scenario where I can delete users from a result list page or a member details page. I want to use one action to do both. But to code

Re: inline conditional expression with JSTL EL

2004-09-29 Thread Jeff Beal
Dan Allen wrote: Does anyone know if there are plans for (or if an existing library is floating around) that allows inline conditional expressions in the POSIX style? An example would look something like the following: I realize it is possible to use c:choose tags for such a condition, but often

Re: Validate() vs JavaScript where is the advantage?

2004-09-30 Thread Jeff Beal
Nadia Kunkov wrote: Hi, I'm wondering if I should use validate() method of ActionForm instead of JavaScript to validate the form. I can see the advantage of validate() when you have an internationalized application, but otherwise why would I have an overhead of going back to the server when I can

Re: Help! Iterating through nested hashmap and setting properties

2004-09-30 Thread Jeff Beal
boukovska wrote: Hi all I have a problem with setting the values on a hierarchy of nested properties. I have an ActionForm which has a property A of type HashMap. A is keyed on Strings, and each value of A is a Collection (ArrayList). This collection contains objects of type B. I am trying to itera

Re: validation - mask help

2004-10-01 Thread Jeff Beal
Peng, Meimin wrote: Hi, Please help. I want to use strut's validation to validate a form field called number. This field allows to input text, number and -. The code bellows right now is only to validate text and number without space. How can I make it work with '-'? Thanks.

Re: validation - mask help

2004-10-01 Thread Jeff Beal
Peng, Meimin wrote: Thanks. I just make it work by doing this. ^[0-9a-zA-Z-\-]*$ I couldn't find info on any strut books. But, here is the original validation package. Cheers! http://jakarta.apache.org/regexp/apidocs/org/apache/regexp/RE.html That will allow any number of '-' signs to be valid: '--

Re: Q: Switching Modules

2004-10-04 Thread Jeff Beal
jean kon-sun-tack wrote: In my "companyList" screen I have a cancel button (/companyList/cancel.do). In moduleA-struts.xml, why can't I have something like : I want my page flow configured in my xml config files, not in my JSPs by doing : Is there another way to do that ? Thanks. Jean. http

Re: back button

2004-10-04 Thread Jeff Beal
andy wix wrote: Hi, I have the following on the view page so I don't think I'm seeing the cached version of the page: response.setHeader("Cache-Control","no-cache"); // HTTP 1.1 response.setHeader("Pragma","no-cache"); // HTTP 1.0 response.setDateHeader ("Expires", -1); // Prevents caching at a p

Re: back button

2004-10-04 Thread Jeff Beal
andy wix wrote: Hi, Thanks, that explains why I see the deleted name. Is there a standard way to overcome this - some way to override the back button's functionality? Regards, Andy _ It's fast, it's easy and it's free. Get MSN Mess

Re: back button

2004-10-04 Thread Jeff Beal
so qualify that the application I'm working on does disable the back button using the methods that I mentioned in the second bullet point of my original post. As a general rule, I don't think that's a good idea, but there are always exceptions. -- Jeff Jeff Beal wrote: andy wix wr

Re: Calling JSP directly.

2004-10-04 Thread Jeff Beal
You *can* call a JSP directly in this way, but it is not generally considered to be the best approach. It's better to always link to an Action class. Even if you use the Struts ForwardAction (http://struts.apache.org/api/org/apache/struts/actions/ForwardAction.html), which doesn't do anything

Re: ActionError and JSP display

2004-10-05 Thread Jeff Beal
Robin Mannering wrote: Hi, Platorm is : Tomcat 5, Struts 1.1 Context: HTML Form submissions and validation. I'm trying to conditionally test for the existince of error messages by their keys. And I'd then like to show the error with HTML formatting around it. Basically, using tags, I'd like to do

Re: back button

2004-10-05 Thread Jeff Beal
andy wix wrote: Hi, As usual I think I must be missing something fundamental! It would be pretty serious to leave the back functionality - someone could delete a contact, then press back and see the name again. If they subsequently do another delete, there's trouble! I'm thinking this problem i

Re: ActionError and JSP display

2004-10-05 Thread Jeff Beal
Robin Mannering wrote: Thanks for all the help received on this one.. As pointed out by Joe, the tag is conditional, and when supplying the "parameter" atribute I get exactly what I need. For reference, it looks like this: <%-- Display error message keyed under 'usernameError' if it

Re: Array? ArrayList? or .....?

2004-10-05 Thread Jeff Beal
http://struts.apache.org/faqs/newbie.html#multiple talks briefly about doing this. It doesn't discuss the issue of arrays vs. ArrayList, but the example is using arrays, so I assume that's the recommended approach. Also, and just an FYI, the HTML you've included is invalid. INPUT elements are

Re: global forwards in module config files

2004-10-06 Thread Jeff Beal
Peter Werno wrote: This is how it works: - struts-config.xml -- ... more ... - end - this is how it does NOT work: - index-config.xml -- ...

Re: global forwards in module config files

2004-10-06 Thread Jeff Beal
Have you read http://struts.apache.org/userGuide/configuration.html#module_config-switching? It explains how to use contextRelative forwards in Module A to forward to pages in Module B. If that's not what you need, you could define all of your application-global forwards in an XML external en

Re: Iterating an array list into

2004-10-06 Thread Jeff Beal
Try using the nested taglib or the indexed property of html:text Phani wrote: I came across this problem of displaying the string elements in an Arraylist into Textfields. How can I display them into the textfileds & capture them back into the ArrayList. (Using Struts 1.0) style="BORDER-COLLAPSE:

Re: html:link parameter passing

2004-10-07 Thread Jeff Beal
For this to work, 'b' would have to be the name of a java.util.Map object; instead, it is a BolgeDTO. Use the second method discussed in the documentation: "Specify both name and property attributes - The specified property getter method will be called on the bean identified by the name

Re: Browser page break with ms/word myme

2004-10-07 Thread Jeff Beal
CSS2 includes page-break-before and page-break-after properties. Specifying position:fixed will cause a box to repeat on every page. I am not sure if this is supported in any browser, but that's where I would start. See http://www.w3.org/TR/CSS2/page.html for details on paged media with CSS. -

Re: Value of hidden field from ApplicationResources.properties?

2004-10-07 Thread Jeff Beal
I'd just use . Wendy Smoak wrote: I have what must be the world's simplest form... it has a text field and a button: : It works great if the user clicks the button... not so great if he presses enter, which submits the form without the value of nextStep coming through.

Re: html:link parameter passing

2004-10-07 Thread Jeff Beal
list.add(bolge); } if (list.size() > 0) request.getSession().setAttribute("bolgeler", list); On Thu, 07 Oct 2004 08:35:37 -0400, Jeff Beal <[EMAIL PROTECTED]> wrote: For this to work, 'b'

Re: Periods in form attribute names prevents retrieval

2004-10-07 Thread Jeff Beal
Have you tried ? -- Jeff Laurent Duperval wrote: Hello, In my jsp, I have code like this: ... ... ... ... ... ... This generates: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: parameter passing to

2004-10-07 Thread Jeff Beal
I think you're also missing one of href, action, page, or forward. See http://struts.apache.org/userGuide/struts-html.html#link for details. While I'm at it, I'm not sure about the use of a JavaScript onclick handler with the html:link tag. I don't think that will do what you want it to do.

Re: parameter passing to

2004-10-07 Thread Jeff Beal
Oops! Forgot the paramId attribute on html:link; include paramId="filename". View Jeff Beal wrote: View - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Where is the html:label tag???

2004-10-18 Thread Jeff Beal
You need to use html:hidden to create an invisible control that will be submitted along with the form and then use html:text to display that value to the user. Leandro Melo wrote: Actually, i just would like to use a label inside one form, instead of a readonly field. But if i don't use the html

Re: The "one Action multiple jsps/tiles"-problem with a twist.

2004-10-18 Thread Jeff Beal
The first thing to remember is that a Forward is just a Java object. You can create them and manipulate them in any way that you want. For instance, in our application we didn't want the users to use the "Back" button on their browser. We hid the toolbar, disabled the necessary shortcuts, and

Re: Does Tiles JSP go in pair?

2004-10-18 Thread Jeff Beal
Read http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html#_Toc521292381. It describes how to move your Tiles definitions (the part in Welcome.jsp) into an XML file and using definition names for your Struts forwards. -- Jeff PC Leung wrote: I use two JSP to form a page. Is it necessary? Welcom

Re: why it fires immediately?

2004-10-18 Thread Jeff Beal
When the RequestProcessor receives the request from clicking on the link in WelcomeBody.jsp, this is (roughly) the sequence of events that it follows: - Populate the ActionForm with request parameters (in your case, there are none) - Validate the ActionForm (it fails; required fields are abse

Re: Migrate xsl into jsp/struts

2004-10-19 Thread Jeff Beal
[EMAIL PROTECTED] wrote: <%=MyXMLTransformer.transform(myForm.getXML(), myForm.getXSLT())%> If you're interested in this type of approach, the JSTL library includes a custom tag that does exactly that. (, I think.) -- Jeff -

Re: OT: RE: Problem in Locating a properties File (Not application.properties)

2004-10-19 Thread Jeff Beal
From the documentation for java.lang.ClassLoader: " The name of a resource is a "/"-separated path name that identifies the resource." That is, try /resources/storageDirectory.properties. Caroline Jen wrote: Okay, this code works if I put the properties file in the WEB-INF\classes directory: fina

Re: struts and jdk

2004-10-20 Thread Jeff Beal
I don't see why not. Viral_Thakkar wrote: Can I use jdk1.4 with struts 1.1? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Passing multiple parameters from action mapping

2004-10-20 Thread Jeff Beal
To do this, you'll need to create a custom ActionMapping class and use the element. public class MyActionMapping extends ActionMapping { private String prop1; public String getProp1() { return prop1; } public void setProp1(String newProp1) { prop1 = newProp1; } private String prop2; pu

Re: Session variables using Struts tag in JSP

2004-10-20 Thread Jeff Beal
Based on the error message, it looks like you're using the tag correctly, but the attribute isn't being set correctly. I can't see anything wrong in the code that you've included. Forgive me for asking this, but are you sure your Action class is being called? Shabada, Gnaneshwer wrote: Can so

Re: Help! problem with checkbox

2004-10-20 Thread Jeff Beal
What's the code in J2 that you use to put the checkbox? Are you using an tag? If so, does that tag refer to yet another action, A3? If so, which form bean is associated with A3? -- Jeff t t wrote: Hi, all, I have JSP file J1 with form F1 inside. It is used to accept user's input. And I wil

Re: For sorting columns on user side with records

2004-10-20 Thread Jeff Beal
There are quite a few third-party widgets for doing this. Just do a Google search for "html table widget" or "javascript table widget" and look for one that works. In particular, the Jaffa project (jaffa.sourceforge.net) has a pretty slick looking table widget that is designed to work well wi

Re: Help! problem with checkbox ( relevant code included)

2004-10-20 Thread Jeff Beal
The relevant section is Section 8.8 of the specification: "Thus when we extract a property or event name from the middle of an existing Java name, we normally convert the first character to lower case. However to support the occasional use of all upper-case names, we check if the first two chara

Re: Getting a resource from a WAR

2004-10-21 Thread Jeff Beal
Try getResource("/WEB-INF/myresource.xml"); -- Jeff kjc wrote: I have an ActionServlet that subclasses the struts action servlet. In my init() method i'm trying to load a resource like this. public void init(){ URL url = this.getServletContext().getResource("/myresource.xml");

Re: FW: property element in logic tag

2004-10-21 Thread Jeff Beal
I think you have a few extra layers of nesting. What exactly are your system.out checks? What's being called in the custom tags is the same as session.getAttribute("PersonStatus").getPerson().getCountryCode().getCountryCode() The value portion of the tag is session.getAttribute("CountryCode")

Re: request question

2004-10-25 Thread Jeff Beal
If your trash-can button is using a link, you need to encode the request parameters into the link when you generate the JSP page. If your trash-can button is submitting a form, you need to create elements in your JSP page for each request parameter. I would recommend the latter approach, becau

Re: Map Backed Form and JavaScript

2004-10-25 Thread Jeff Beal
document.forms[0]['dto(name)'].value Hariharan V wrote: Hi, I am making use of Map backed Action form Lets say I have named the textbox field as follows How can I access the text field value from JavaScript for instance I can't do something like this. document.forms[0].dto(name).value; (but th

Re: Vector of array in session

2004-10-26 Thread Jeff Beal
Henrique VIECILI wrote: Hi all, i have a vector of arrays (double[]) in the session scope, and i want to iterate over the vector and access the array values by index. I've tried a sort of things but I don“t know how to access the value of an array by index. my last innocent try was: Does

Re: reset method causes values not displaying

2004-10-27 Thread Jeff Beal
Implement the Cloneable interface on your ActionForm and call XXX newForm = (XXX)oldForm.clone(). Read the JavaDoc on Cloneable and the Object.clone() method for more information. -- Jeff dmu2201 wrote: Sebastian Ho wrote: Now this is a Java question, if "XXX newForm = (XXX) form" resulted in f

Re: Backup ActionForm on ActionError in Action

2004-10-27 Thread Jeff Beal
This is normal behavior. The reset method is only to clear the values of checkbox fields, not to set all fields in the form to initial values. Read the JavaDoc on the ActionForm.reset() method for an explanation. -- Jeff sqdf qsdf wrote: I tested the redirect set false but I don't know why, t

Re: Spooky Tiles problem

2005-06-07 Thread Jeff Beal
Write JSP comments as <%-- --%> On 6/7/05, andy wix <[EMAIL PROTECTED]> wrote: > I think the problem was due to my having an include file in the footer that > was commented out: > > > It seems this isn't the way to comment out stuff in jsp? Why it worked for > some pages and not others I still

Re: Float Validation not working

2005-06-20 Thread Jeff Beal
On the form bean, what is the type of the field? (String, float, or Float) On 6/20/05, Dornback, Ken <[EMAIL PROTECTED]> wrote: > I have to validate a float. I can type anything or nothing in and never > see a validation problem when I set the depends attribute to "required, > float". The field

Re: Float Validation not working

2005-06-20 Thread Jeff Beal
PROTECTED]> wrote: > It is float in the formbean. > > -Original Message- > From: Jeff Beal [mailto:[EMAIL PROTECTED] > Sent: Monday, June 20, 2005 12:11 PM > To: Struts Users Mailing List > Subject: Re: Float Validation not working > > On the form bean, what is

Re: [OT] Ajax - generic "processStateChange"

2005-06-21 Thread Jeff Beal
Event handlers have to be functions. When you write 'onreadystatechange = processStateChange(spanID);', the processStateChange() function is *immediately* executed, and the returned value is assigned to the event handler. This works great if your processStateChange returns a function, but if it r

Re: I18N by pages

2005-06-24 Thread Jeff Beal
Probably your best bet would be to use a custom ActionMapping and override the findForward() method to return a Locale-specific JSP page. On 6/24/05, Yaroslav Novytskyy <[EMAIL PROTECTED]> wrote: > Hi! > > This is exactli what I'd like to avoid and use l10n on pages level not > level of defined s

Re: I18N by pages

2005-06-24 Thread Jeff Beal
n will be compatible with tiles :( > > What do you think about that? > > Best regards > Yaroslav Novytskyy > > > > Jeff Beal wrote: > > Probably your best bet would be to use a custom ActionMapping and > > override the findForward() method to return a Loca

Re: Render an html button tag

2005-06-28 Thread Jeff Beal
Oddly, the element doesn't work well in Internet Explorer. (I just checked.) I have this form in an HTML page: Click Click 2 Now, if you click on one of the buttons, only that button and its value are supposed to be submitted. However, both are. Not only that, but the bu

Re: Render an html button tag

2005-06-29 Thread Jeff Beal
I sent a couple of additional comments on this to Frank; I guess I should have paid more attention so they made it to the list, too. I won't belabor the points too much, but if you're interested in this question, section 17.13.2 "Successful Controls" (http://www.w3.org/TR/html401/interact/forms.ht

Re: I18N by pages

2005-06-29 Thread Jeff Beal
aroslav Novytskyy <[EMAIL PROTECTED]> wrote: > Hello! > > Jeff Beal wrote: > > ... > > Have you considered locale-specific CSS files to give > > a different presentation to the same JSP page? > > ... > > I h

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Jeff Beal
On 7/6/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > > If by some chance you are, PLEASE do not advise the newbies to do this. > > This totally defeats the pupose of what ActionForms should be used for > > and will create all kinds of maintenance headaches, never mind the fact > > that it's re

Re: javascript

2005-07-06 Thread Jeff Beal
Use the action attribute instead of the page attribute in your tag. See http://struts.apache.org/userGuide/struts-html.html#rewrite for the tag documentation. -- Jeff On 7/6/05, Vijay K Anand <[EMAIL PROTECTED]> wrote: > Hi All > > I used the same way you have said > >

Re: help with a newbie topic-prepopulating a form

2005-07-06 Thread Jeff Beal
On 7/6/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On 7/6/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > > Here's the last paragraph of the JavaDoc for the reset() method > > (emphasis in original): > > > > "This method is *not* the appropriate

Re: Which request is used in Validation when the requirements aren't met?

2005-07-07 Thread Jeff Beal
If your input attribute identifies an Action instead of a JSP page, you can do whatever you need to do within that Action. On 7/7/05, Thai Dang Vu <[EMAIL PROTECTED]> wrote: > Hello everybody, > > This is my action declaration in struts-config.xml > > type="AddProviderAction" >

Re: Validator, sutrts-config and form-property's types

2005-07-08 Thread Jeff Beal
I think that if Mark Galbreath were still around, he'd reply with "Validator sucks" or something similar. Basically, your statements below are all quite correct. I will add (in response to Point 1 below) that the BeanUtils library is what Struts uses internally to copy values from the request to

Re: How to hide URL in Adress bar?

2005-07-13 Thread Jeff Beal
I don't think you even need to have two frames. Try just one frame: Your Site Title -- Jeff On 7/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > The easiest way is to use frames. Have a framset of two frames stacked > vertically, with the first frame having 0 width/

Re: File upload using maxFileSize

2005-07-13 Thread Jeff Beal
IIRC from previous threads, setting the maxFileSize cannot prevent clients from submitting files larger than the limit you set, they can only abort the processing thereof. (This is not a Struts-specific limitation.) I believe the behavior you are seeing is the appropriate behavior. I think the a

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Set validation off in struts-config and call the Validate method from within your Action: if (yourForm.getAction().equals("action_to_validate")) { ActionErrors errors = form.validate(/*params*/); if (errors.isEmpty()) { // all is good } else { saveErrors(errors); return mapping.f

Re: validation client-side. Problem with 2 submit buttons

2005-07-13 Thread Jeff Beal
Sorry -- missed the 'client-side' bit somehow. ;) On 7/13/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > Set validation off in struts-config and call the Validate method from > within your Action: > > if (yourForm.getAction().equals("action_to_validate")) { &

Re: Forwarding in custom RequestProcessor

2005-07-14 Thread Jeff Beal
Calling just request.getRequestProcessor() effectively exits the Struts environment since the request object doesn't know anything about struts_config.xml. You need to use the method and fields of the RequestProcessor instead. Try this: ActionForward expireForward = moduleConfig.findForwardConfi

Re: Forwarding in custom RequestProcessor

2005-07-14 Thread Jeff Beal
request.getRequestProcessor() --> request.getRequestDispatcher() On 7/14/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > Calling just request.getRequestProcessor() effectively exits the - To unsubscribe, e-mail: [EMAIL PR

Re: URL Encoding

2005-07-18 Thread Jeff Beal
Have you looked at the html:link tag? (http://struts.apache.org/userGuide/struts-html.html#link) Link text On 7/18/05, Senthilrajan VS <[EMAIL PROTECTED]> wrote: > Hi All, > > I am calling the action directly using the hyper link, for example > /sample.do?table=test. The values for this action

Re: How do you create a Validator rule to compare 3 fields

2005-07-18 Thread Jeff Beal
Have you considered using radio buttons instead of checkboxes? From a UI standpoint, I think that would make more sense. That aside, I do not know of any easy way to do this sort of validation using the Validator plugin. I would override the validate method in my action form for just those prope

Re: submit form

2005-07-19 Thread Jeff Beal
Mnemonics are onlly non-standard because most people don't use them! Our application uses them all over the place, and our users love us for it. W3C accessibility guidelines strongly recommend heavy usage of mnemonics, also. That said, the standard modifier key for mnemonics is Alt, not Ctrl, an

Re: STruts-EL

2005-07-26 Thread Jeff Beal
It's a lot more clear to compare the difference between: and "/> Especially considering the following scenarios that "just work" in EL: -- What if "someObj" may be in more than one scope? -- What if there *is* no 'someObj'? -- What if someProp is null? -- Jeff On 7/26/05, Dave Newton

Re: STruts-EL

2005-07-26 Thread Jeff Beal
The second example would actually have to be: " /> -- Jeff On 7/26/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > It's a lot more clear to compare the difference between: > > > > and > > "/> > > Especially considering the following scenar

Re: Actions forwarding to actions

2005-07-26 Thread Jeff Beal
See http://wiki.apache.org/struts/ActionChaining?highlight=%28actionchaining%29 On 7/26/05, Lance Semmens <[EMAIL PROTECTED]> wrote: > I'm a newbie to struts and I'm maintaining what I consider to be > spaghetti code. > There actions which forward to other actions and I'm getting lost a bit > lost

Re: [OT] no-cache Actions (or tiles)

2005-07-27 Thread Jeff Beal
SourceForget - Put up your source and forget it! On 7/27/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Agh. Troubleshooting a stupid PDF generation issue all day, my fingers > just won't cooperate :) > > sourceforget... Maybe the French mirror site? ;) > > -- > Frank W. Zammetti > Founder

Re: Struts-EL problem with struts-el-1.3.0-dev

2005-07-28 Thread Jeff Beal
On 7/28/05, Marco Mistroni <[EMAIL PROTECTED]> wrote: > > Hello Wendy, > I missed one point of your statement.. > > >> > > >Even if you're going to use an expression, the 'name' attribute should > >still > >evaluate to the _name_ of the bean, not the bean itself. > > http://struts.apa

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Jeff Beal
Imagine a company currently using PHP who decides their app has grown past the constraints of PHP. It would be silly of them to change the file extension on their URIs just because they're changing technology, so they just map *.php to the Struts Servlet. Of course, if the web developers at that

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Jeff Beal
t they there to give > guidance to their content (Hacker subterfuge excluded)? > > It shouldn't detract from the idea of page "longevity", which would make a > for a better web. > > Christopher Marsh-Bourdon > www.marsh-bourdon.com > > > -Original Mess

html:messages not displaying all messages

2005-07-29 Thread Jeff Beal
I have the following in an action class: msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("This is an Action-inserted error",false)); msgs.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("So is this",false)); addErro

Re: JSF is the beginning of the end of Struts !!!

2005-07-29 Thread Jeff Beal
I think you're missing the point. There's no reason to include .php, .asp, .jsp, .xml, or .html in *any* page. They don't mean anything. Furthermore, any assumptions you make about the technology behind a site based on those extensions is simply not valid. (OT: I'll never forget the day my 7th

Re: Can u help me...I have a problem related to struts.

2005-08-02 Thread Jeff Beal
Hopefully by now you've read the aforementioned JavaBeans specification. It does say that if the method name has two consecutive capital letters after get and set, the property name is not de-capitalized. So, for your method getSTitle, the property name should also be STitle. If the name of your

Re: multiple instances of one ActionForm

2005-08-10 Thread Jeff Beal
Could you just put all of your completed ActionForms in a session-scoped collection, then loop through that collection when the user clicks "Finish"? This isn't a standard procedure, to my knowledge, but it would be the first approach I would take given similar requirements. -- Jeff On 8/10/05,

Re: {Spam?} Re: validate() not called haunts

2005-08-10 Thread Jeff Beal
addErrors() is a new method in 1.2.7. addErrors() and addMessages() are both valid, and both accept ActionMessages as arguments. For more on the difference between ActionErrors and ActionMessages, see http://wiki.apache.org/struts/ActionErrorsAndActionMessages. Also, please get rid of the 'Re: {

Re: How can I refer a control in javascript which hava a "." in its name

2005-08-18 Thread Jeff Beal
You also have the option of doing document.form[0]['myobject.subobject']. On 8/18/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >property="myobject.subobject" styleId="subobject" .../> > > then get the field by using > > document.getElementById("subobject"); > > > Tony Sm

Re: [Friday] [somewhat-ajax-related] XMLHttpRequest scoping problems

2005-08-22 Thread Jeff Beal
I haven't actually tried having multiple simultaneous requests with this, but it's not using the global namespace, so it should work: submitRequest("../yourURL.html",processResponse); function submitRequest(url,handler) { var req = null; if (window.XMLHttpRequest) { // Non-IE browsers req

Re: action.do not found on this server

2005-09-02 Thread Jeff Beal
What does your struts-config look like? On 9/2/05, Emmanuel.Leguy <[EMAIL PROTECTED]> wrote: > Hello, > > Apache: 1.3.33 > Tomcat: 5.5 > Solaris 10 > modjk 1.2 > > I try this direct URI: > > https://myserver/path/action.do > > And if i haven't a session opened I get an apache 404 error: > > T

  1   2   3   >