RE: request scope and forms

2001-11-14 Thread Rob Breeds
ActionForm alive. Thanks Rob Robert

Top Tip!

2001-11-14 Thread Rob Breeds
Don't use a protected modifier on your setter methods in ActionForms. Make them public so that they can actually be invoked like you expected them to be. I did by 'mistake' and now I'm paying for it... : ) Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e

how to dynamically add to form

2001-11-13 Thread Rob Breeds
bean:write name=el property=name/ /logic:iterate It's almost as if the ActionForm isn't being saved in the request but then why does the display work when I don't use iterate? I'm going round in circles with this so any help to get me moving again is appreciated. Thanks Rob Breeds -- To unsubscribe

RE: how to dynamically add to form

2001-11-13 Thread Rob Breeds
=names bean:write name=el property=name/ /logic:iterate Thanks Rob Breeds Tom Klaasen

RE: how to dynamically add to form

2001-11-13 Thread Rob Breeds
Brian Thanks so much for that pointer - that was the solution to that part of the problem. Now I need to work out why the name value I'm submitting isn't getting into the form... (just get nulls every time) Rob Breeds

multiple html:submit buttons with different names?

2001-11-13 Thread Rob Breeds
. Ultimately I want one form on the page, with several ways of submitting the form depending on which section I'm in, and then have the final submit button indicate to the Action class that the form is complete. Any ideas please? Thanks Rob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED

Re: multiple html:submit buttons with different names?

2001-11-13 Thread Rob Breeds
Brian That would work but what if the text on the button was multilingual, ie could be any one of 100 languages depending on user locale setting, which is what I have to support! Rob

RE: multiple html:submit buttons with different names?

2001-11-13 Thread Rob Breeds
Yes! Thanks to everyone for your help today - if I can't work it out now there's no hope! : ) I'm off for sleep now... Rob Breeds |+- || Nocera, Robert | || [EMAIL PROTECTED]| || fizer.com

Incompatible object error trying to instantiate an Action

2001-11-02 Thread Rob Breeds
for confidentiality reasons but that doesn't change the problem!) Any ideas please? I'm stumped. I'm running in WebSphere App Server 4.0 and up until now, that hasn't been a problem... Thanks Rob Breeds -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto

Re: ClassCastException when moving extended Action and ActionForm classesin the classpath

2001-11-02 Thread Rob Breeds
That's the error message I get in the browser for my current problem too (see earlier post)! I don't think I see a specific ClassCastException though, only 'incompatible object'. You're right - it makes no sense Rob Breeds

RE: Newbe - problem with Struts-Config.xml

2001-11-02 Thread Rob Breeds
You can have your JSPs in the WEB-INF directory - I use that and it works fine. Are you using a html:base/ in your JSP? Rob Breeds |+- || Drozdowski, Terry| || Terry.Drozdowski@s| || chwab.com

Re: problem with html:errors tag

2001-10-23 Thread Rob Breeds
1. You need to put the html:errors property=whatever/ where you want them to appear. If you have several input fields, put a html:errors property=whatever/ next to each input field. The header and footer are for formatting but they are optional. Rob Breeds

RE: problem with html:errors tag

2001-10-23 Thread Rob Breeds
you still get error messages even without the html:errors/ tag? Sounds like a restart web app required? in the ActionForm validation() method, how do you populate Errors? Rob

RE: problem with html:errors tag

2001-10-23 Thread Rob Breeds
looks OK to me. Do the variables _firstName and _lastName get populated by setFirstName() and setLastName()? Other than that I'm afraid I've no idea - I'm still writing my first struts app! Rob

errors not clearing when hitting BACK

2001-10-20 Thread Rob Breeds
long, which is wrong. I have a reset() method in my ActionForm setting the name value to null but this has no effect. Any ideas please on how to prevent the error message(s) displaying when the page is displayed after hitting back button? Thank you Rob Breeds

how to refer to images from JSPs in WEB-INF?

2001-10-19 Thread Rob Breeds
/theimage.gif and will not show the image (can't serve from WEB-INF) Can anyone help please? Thanks Rob Breeds

Re: how to refer to images from JSPs in WEB-INF?

2001-10-19 Thread Rob Breeds
://localhost:9080/myApp/WEB-INF/pages/index.jsp; and that's bad because users shouldn't be able to get to WEB-INF directly should they? Rob Breeds

Form validation errors in different frame?

2001-10-18 Thread Rob Breeds
from the input frame. But if the errors collection is only stored in the request, it'd be too late to retrieve the errors I think. Can anyone offer a solution? Thanks Rob Breeds

Re: java report article says bye-bye struts

2001-06-18 Thread Leland, Rob
Ritter, Steve wrote: Craig, if you read this thread it might not be a bad idea to send a quick email to the editor's of Java Report and let them know about some of the mis-leading statements. Maybe you could also share with the editor what you view as mis-leading statements ? -Rob Robert

RE: uploading files.

2001-05-24 Thread GIBSON,ROB (HP-Boise,ex1)
-user_jakarta_apache_orgrestrict=exclude=words=enctype Rob -Original Message- From: Andy Wicks [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 10:55 AM To: [EMAIL PROTECTED] Cc: Simon Wawra; [EMAIL PROTECTED] Subject: uploading files. Hi, I'm using jakarta-struts-1.0-b1

May 9th Struts.jar Problem

2001-05-09 Thread Leland, Rob
Switching from a May 2nd build of struts to a May 9th build of struts gives the error below. Switching back to the May 2nd jar fixes the error. When switching I am also updating the tld files. Internal Servlet Error: javax.servlet.ServletException at

Re: Where did the name struts originate?

2001-04-23 Thread Rob Leland
http://marc.theaimsgroup.com/?l=struts-userm=96946875918003w=2

Re: Required vs. optional name attribute

2001-04-18 Thread Rob Leland
James Howe wrote: It's not a terribly big deal, but it seems as if the name attribute shouldn't have to be required if some sort of "default" bean is available for the page. The original designers were probably trying not to couple the logic tags to the html tags, or to struts itself. The

Re: Problems setting form in session

2001-04-18 Thread Rob Leland
Eric Rasmussen wrote: I am trying to set a form bean in session so it can be used accross Action classes. Specifically, I am trying to get the form bean to remember a value so it can repopulate the jsp page accordingly when that page appears again (if the user hits 'cancel'). As you

Re: Parsing problem with Tomcat 3.2.1

2001-04-17 Thread Rob Leland
I run the struts applications on tomcat 3.2.1 all the time. [EMAIL PROTECTED] wrote: Has anyone ever tried to use Struts-based applications on a Tomcat 3.2.1 server? org.apache.jasper.compiler.ParseException: /usr/local/tomcat/webapps/night/content.jsp(43,0) Unterminated user-defined

Re: AW: Parsing problem with Tomcat 3.2.1

2001-04-17 Thread Rob Leland
just as you said but why did it work with the former version then? Michael -Ursprungliche Nachricht- Von: Rob Leland [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 17. April 2001 03:57 An: [EMAIL PROTECTED] Betreff: Re: Parsing problem with Tomcat 3.2.1 I run the s

Re: Oracle Servlet Engine

2001-04-16 Thread Rob Leland
No, And it will not work with 9i either. Both use JServ which is a JSP 1.0, Servlet 2.0 container. However, I know 9i uses Apache which could then be modified to use tomcat. Oracle 8i may also use Apache but I am not sure. -Rob Michael Schommer wrote: Hi, we work with Oracle

Re: Link Tag Question - how to turn off Jsessionid

2001-04-13 Thread Rob Leland
It keeps users from double posting information, for more info see: See the struts-dev mailing list on www.mail-archive.org: Subject: Re: [Q] TRANSACTION_TOKEN_KEY Date: Fri, 09 Feb 2001 09:52:04 -0500 From: Rob Leland [EMAIL PROTECTED] To: [EMAIL PROTECTED] "Trieu,

Re: Finding DTD when disconnected from Internet

2001-04-11 Thread Rob Leland
Update to the latest nightly build, this problem was fixed about 5 weeks ago. -Rob "Assenza, Chris" wrote: Well, here I am again - new problem. :| (BTW, thanks to all for helping, this is by far one of the best list I've been on). Problem: Okay, I've been working with

Re: struts-exemple : refresh doesn't work after subscription update

2001-04-05 Thread Rob Leland
the program. Rob Leland

Re: MOVEING CURSOR INTO THE ERROR FIELD.

2001-04-05 Thread Rob Leland
There is a method something like: html:errors property="firstName"/ [EMAIL PROTECTED] wrote: Hi, I 'am using staruts for a small pilot project. On the form bean when validate method collect errors and shows in JSP, I want at the same time my cursor should move to the first error field. how

Re: DISABLE TEXT FIELD ON JSP

2001-04-05 Thread Rob Leland
It's in the subscription.jsp look for the logic:equals action="Delete" Firmin David wrote: Do you have an example of how you'd control this in the Struts action, as I'm having the same problem with Netscape and can't solve it. Thanks in advance for any help. -Original Message-

Re: Using OPTIONS Tag with bean that has a collection

2001-04-03 Thread Rob Leland
d productID that you need to access then you need to store the collection in a request or session scope variable. and access it by collection="%= productList %", property="productID". The example program has an example of this in either the register.jsp or subscription.jsp. -Ro

Re: Thread safety issue with use of token?

2001-04-02 Thread Rob Leland
If you are using multiple threads per session you'll need to find another method for transaction control. Specifically in the session you'll need to create a Map of tokens, and use the request id as a lookup key. -Rob "Handy, Steve" wrote: Previous posts have referre

Re: LinkTag with page attribute creates an absolute URL

2001-04-01 Thread Rob Leland
I am not sure bute have you taken a look at the tag html:base/ ? -Rob [EMAIL PROTECTED] wrote: We are trying to use the link tag to create server relative URI. But the linktag doesn't create a server relative URI like it says in the documentation. "... generate a s

Re: using titles from an application resource file in my templates

2001-03-23 Thread Rob Leland
Luckly someone answered this last week: template:put name="title" direct="true" b bean:message key="publish.title" / /b /template:put Troy Hart wrote: I am using struts-template.tld and I want to be able to use my application resources to get the correct title for any given page. I

Re: ActionMappings

2001-03-22 Thread Rob Leland
^^ [Items deleted] /action Tyen check that the form Instance Name has a class associated with it. form-bean name="logonForm" type="com.solers.portal.pcontrol.common.LogonForm"/ Class associated with the Login Instance -Rob

Fully decoupling the VIEW from the CONTROL

2001-03-16 Thread Rob Leland
Given an action mapping with these attributes set: !-- Process a admin logon -- action path="/admin/logon" type="com.solers.portal.pcontrol.admin.LogonAction" name="logonForm" scope="request" validate="true"

Future of Enumerate tag

2001-03-15 Thread Rob Leland
Is the org.apache.struts.taglib.Enumerate tag going to go away with the other 0.5 tags ? We currently have data structures that use the enumerate interface. Is there any chance this could be migrated into the struts 1.0 taglib ? -Rob

Re: Future of Enumerate tag

2001-03-15 Thread Rob Leland
it doesn't support 'Enumeration'. -Rob -Rob Craig

Re: diiferent html tags packages?

2001-03-13 Thread Rob Leland
Sarbjit Singh wrote: hi, What is the actual intention or actual diferences between the tags in the: org.apache.strtus.taglibs.* Struts 0.5 old org.apache.strtus.taglibs.html.* --- Newest Struts 1.0 org.apache.strtus.taglibs.form.* Struts 0.7, ie

Re: Modeling Struts apps with TogetherJ?

2001-03-02 Thread Rob Leland
In January ,someone posted a sequence diagram of the struts login process, very informative ! Check www.mail-archive.com for it. Maybe that could make it into our docs somehow. Bryan Field-Elliot wrote: I'm exercising my new copy of TogetherJ, and at the same time learning Struts for the

Re: Cannot deploy struts-blank.war onto j2eesdk1.2.1

2001-03-02 Thread Rob Leland
I have no problem with using J2eesdk1.2.1. You'll need to be more specific, as to the problem you are encountering. It is likely a CLASSPATH problem. -Rob Maya Muchnik wrote: With jdk 1.3 it works 100%. Thai Thanh Ha wrote: I can't deploy struts-blank.war (struts 1.0b1) onto

Re: MessageTag

2001-03-02 Thread Rob Leland
Josh wrote: Could someone explain to me why there is: org.apache.struts.taglib.MessageTag This is stuts 0.5 for backwards compatability all tags in this dir are struts 0.5 org.apache.struts.taglib.bean.MessageTag This is stuts 1.0 Thanks, Josh -Rob

Re: double submission of forms

2001-03-02 Thread Rob Leland
Search the www.mail-archives.com for the phrase 'token' The Action.saveToken methods and Action.resetToken methods will do what you want on the server side. -Rob "Nanduri, Amarnath" wrote: Hi all, Will struts be able to handle the double posting of forms ? For example

Re: MessageTag

2001-03-02 Thread Rob Leland
I asked the same dumb question about 3 months ago. They should be depreciated. -Rob Josh wrote: This might be a dumb question, but they don't seem to be deprecated? Are they and I somehow have missed the point? If they aren't, shouldn't they be? - josh --- Rob Leland [EMAIL PROTECTED

Re: MessageTag

2001-03-02 Thread Rob Leland
Also the classes themselves should be marked as depreciated. I just figured out wincvs and ssh so maybe i'll add the depreciated indication. -Rob [EMAIL PROTECTED] wrote: There is a warning in the .tld file (struts.tld) to the effect that all the tags in that taglib are deprecated

Re: ActionError - java.lang.NummPointer Exception HELP!!!

2001-02-23 Thread Rob Leland
ng us know !!! -Rob

Re: setting docBase in JBuilder to run/debug

2001-02-23 Thread Rob Leland
I answered that On Feb 14th and Feb 6th. Take a look at : http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02759.html I always search through the mailing archive first when I have a problem. It is a good bookmark to save !! -Rob

Re: ddata encryption

2001-02-23 Thread Rob Leland
discussion on this topic. -Rob soh syed wrote: i have to add an encryption fields for every record so changes can be tracked with respect to user's id and his private key any ideas .. __ Do You Yahoo!? Yahoo! Auctions - Buy

Re: Small problem with TRANSACTION_TOKEN_KEY + multipart support

2001-02-22 Thread Rob Leland
at the custom tag approach again. -ROb Richard Reich wrote: The transaction enforcement support in class Action assumes that the key will be returned in the request attributes. This is not the case with pages that require multipart support (for file uploads, for example). A direct work

REQUEST for Multi-part form EXAMPLE

2001-02-20 Thread Rob Leland
Does anyone have an example of a multi-part form they would like to donate to the struts example library ? -Rob

Re: Avoid JSP caching by the browser

2001-02-14 Thread Rob Leland
Use the Action.saveToken(), Action.resetToken(), Action.isTokenValid() for form transactions. This does exactly what you want. see http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02888.html for the thread that discusses this. Lind Jrgen wrote: Hi there, I have the

Re: setting docBase in JBuilder to run/debug

2001-02-14 Thread Rob Leland
One Resource for this is the mail archives. http://www.mail-archive.com/struts-user%40jakarta.apache.org/maillist.html Use the keywords 'jbuilder context' This will bring up an answer to your question, last answer. [EMAIL PROTECTED] wrote: Hello, it's only slightly related to STruts,

[Fwd: Re: Avoid JSP caching by the browser]

2001-02-14 Thread Rob Leland
Use the Action.saveToken(), Action.resetToken(), Action.isTokenValid() for form transactions. This does exactly what you want. see http://www.mail-archive.com/struts-user@jakarta.apache.org/msg02888.html for the thread that discusses this. Lind Jrgen wrote: Hi there, I have the

Re: Forwarding an action to multiple JSPs

2001-02-14 Thread Rob Leland
You can probably get javascript to update the parent frame. I did this in a previous project but now avoid frames, even if the speed up page reloads. Shad wrote: Is there a way to forward a request to more than on JSP from the same action class, and have the JSPs updated different frames?

Re: [Q] TRANSACTION_TOKEN_KEY

2001-02-09 Thread Rob Leland
EditRegistrationAction.java SaveRegistrationAction.java provide examples. You would probably never use generateToken(). It is used whenever you want to prevent the user from bookmarking a page, or from using the browser back arrow and then posting a second time. In the

Re: [Q] TRANSACTION_TOKEN_KEY

2001-02-09 Thread Rob Leland
Let me clean this up, and make it a little clearer. Oleg V Alexeev wrote: Hello Rob, +1 to add it to the struts doc.

Re: struts example Exception

2001-01-25 Thread Rob Leland
java.lang.NoClassDefFoundError My guess is that is unable to find one of your class referenced in your jsp file. This could be a custom tag or a java class. Double check your class paths. -Rob

Re: why struts-config.xml AND action.xml

2001-01-25 Thread Rob Leland
It is confusing. If you are starting a new application then use struts-config.xml and delete action.xml. The action.xml was originally used with struts 0.5, after that struts-config.xml was created which replaces action.xml. It is only left in the example application since struts 1.0 will still

Re: Where are the *.tlds ?

2001-01-23 Thread Rob Leland
Once I unpacked the struts-example.war into tomcat I found them in tomcat/webapps/example/WEB-INF [EMAIL PROTECTED] wrote: Hi, where do I find the 'new' *.tld-files. I have downloaded the latest nightly build and try to migrate the example, but I can't find the *.tlds mentioned for example

Struts example uses old Tag Library

2001-01-23 Thread Rob Leland
The struts example for January 23 uses depreciated tags for error handling in login.jsp. This appears to be the last place the old tag library is used. -Rob

Action.xml

2001-01-22 Thread Rob Leland
I thought action.xml, was depreciated, and no longer used however it is still in the struts download as of January 17. Shouldn't this be removed ?

Re: Action.xml

2001-01-22 Thread Rob Leland
Sorry, I didn't make myself clear. In the 'struts example' there is still an Action.xml in the distribution for Jan 22 2001. If it isn't used then at least in the 'struts example' it should be removed. -Rob "Craig R. McClanahan" wrote: Rob Leland wrote: I thought

<    1   2   3