Re: Advice requested, what's the best way to mimic tab panes in Struts?

2002-03-04 Thread Rob Breeds
1 ActionForm (session scope), 5 ActionMappings, one Action, 5 JSPs. Each tab has link which submits form with that tab's form values, the tab submit link is differentiated by mapping parameter attribute (or hidden form field). ActionForm validate checks data is OK. Each submit of the current tab

Re: internationalisation

2002-02-28 Thread Rob Breeds
Struts supports this very well. You just add the resource properties files you need and Struts uses the correct one according to browser language setting. Errors and messages use keys to lookup values in the resource properties. Rob

Re: Is internationalization with japanese possible?

2002-02-28 Thread Rob Breeds
Pretty much - add resources as required. In your JSP add html:html locale=true You will need to add META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=UTF-8 to JSP if using UTF-8. And set up your app server to encode in UTF-8 if you want to support multiple languages in same page. See

changing from *.do to /do/* screws up everything?

2002-02-27 Thread Rob Breeds
Hi I hope this is me being dumb but I have a working Struts application that uses a *.do servlet mapping for ActionServlet Because I found that the servlet spec doesn't allow partial URL mappings for security (eg. I can't specify a url-mapping of '/pub*'), I must now change my app to use /do/*

Re: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Rob Breeds
this inside the head block of all your JSP pages: html:base/ Here is a URL to the docs for this tag: http://jakarta.apache.org/struts/doc-1.0.2/struts-html.html#base It solves exactly this problem. Bryan On Wed, 2002-02-27 at 10:39, Rob Breeds wrote: Hi I hope

Re: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Rob Breeds
, silly question time. Why would you want to put your pages under WEB-INF? Honestly, I don't see why you would, but ... I'm hardly a 'guru'. Thanks, Eddie - Original Message - From: Rob Breeds [EMAIL PROTECTED

Re: changing from *.do to /do/* screws up everything?

2002-02-27 Thread Rob Breeds
this line: action path=/header forward=/WEB-INF/pages/header.jsp/ TO forward name=header path=/WEB-INF/pages/header.jsp/ and then use html:rewrite to render this in your JSP. HTH, Matt --- Rob Breeds [EMAIL PROTECTED] wrote: Hi I hope this is me being dumb but I have a working Struts

Re: changing from *.do to /do/* screws up everything? - Jerry Springersums up...

2002-02-27 Thread Rob Breeds
with the context. Yep - img tag is what you need. Matt --- Rob Breeds [EMAIL PROTECTED] wrote: Matt I changed '/header' to 'header', but now if I enter /do/header in the browser address field it is now not found. Changed it back so it works For this example, I have one mapping and one JSP

RE: changing from *.do to /do/* screws up everything? - Jerry Sp ringersums up...

2002-02-27 Thread Rob Breeds
-Original Message- From: Rob Breeds [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 27, 2002 2:54 PM It seems that migrating from a *.do to /do/* is not as straightforward as I'd hoped. Especially if putting JSPs under WEB-INF (which is better than leaving them exposed). -- To unsubscribe

Possible to setup Hashmap to pass multi params in link without usingscriptlet?

2002-02-04 Thread Rob Breeds
Hi I'm currently using scriptlet to set up a Hashmap of params to pass in a html:link. Works great. Is it possible to use bean:define tags to setup the Hashmap without scriptlets. Similarly (?) how do I invoke setter methods on a bean I've defined with the bean:define tag? Thank you Rob

RE: Implementing HTTPS in Struts

2002-02-04 Thread Rob Breeds
Ditlinger, Steve To: Rob Breeds/UK/IBM@IBMGB, Struts Users Mailing List

form target to different frame leaves current frame busy

2002-02-04 Thread Rob Breeds
I've got a problem with forms and frames I hadn't noticed until now. Two frames - input form in one, which when submitted, the results appear in the second. Works functionally (results appear in target frame) but the mouse cursor remains with hourglass image when it is over the source frame. I

Re: form target to different frame leaves current frame busy

2002-02-04 Thread Rob Breeds
source, only the generated HTML! I am so confused by this! Help! Rob Rob

Re: Internationalization issue

2002-01-31 Thread Rob Breeds
Yug I've just done this very thing with my Struts app which has to accept multiple languages and output multiple languages on same pages. I set my application server (WebSphere App Server v4.0.2 AE) encoding to be UTF-8 for all languages (in WAS, you set 'client.encoding.override' to 'UTF-8@

Re: internationalisation question

2002-01-29 Thread Rob Breeds
You can add a user defined language in IE, say 'ss_IE' and make it the top level language. Add: html:html locale=true to JSP and then bean:message will pickup the correct resource file. probably not quite what you were after but an alternative! Rob

Re: Struts on WebSphere 4.0

2002-01-29 Thread Rob Breeds
If you have an ear or war you should be able to deploy just like any other web app. What do you mean by configure'? Beware that if you have a version prior to 4.0.2 you will need a 'patched' version of struts.jar Rob Breeds

Re: AW: Struts on WebSphere 4.0

2002-01-29 Thread Rob Breeds
is that? -Ursprüngliche Nachricht- Von: Rob Breeds [mailto:[EMAIL PROTECTED]] Gesendet am: Tuesday, January 29, 2002 2:40 PM An: Struts Users Mailing List Betreff: Re: Struts on WebSphere 4.0 If you have an ear or war you should be able to deploy just like any other web app. What do you mean

advice on linking to help pages from Struts app

2002-01-22 Thread Rob Breeds
Hi I need to link my Struts app to a separate help web site such that links in my JSPs point to context-sensitive anchors in pages on the help site. If I don't know the base location of the help site until runtime, I can't put the locations in the mapping configuration file. What would be the

Re: CHARACTER ENCODING !

2002-01-22 Thread Rob Breeds
Wojtek Are you setting locale with: html:html locale=true ? Rob Breeds wojtek

Re: Quick (And Probably Dumb) Question

2002-01-22 Thread Rob Breeds
# (hash) Rob Matt Koidin

Re: FW: Help problem with migrating from websphere v3.5.5 to v4.0.1

2002-01-08 Thread Rob Breeds
to be modified to locate your messages resource files, jsps and classes I'm surprised there is no output at startup though. Rob Breeds Jay Milam

Struts intermittently not working after startup

2001-12-13 Thread Rob Breeds
I've been developing my first real Struts application for last several weeks and things have been going OK. But I reached a point (about Sunday) where the web app now doesn't always work correctly, in that it give errors like: Error 500: No action instance for path /findEntity could be created

html:base screwing mappings - please help

2001-12-06 Thread Rob Breeds
are under WEB-INF? Please help Thank you Rob Breeds -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

html:link href to external URL in a

2001-12-05 Thread Rob Breeds
effectively want to do: html:link href=bean:write name=abcd property =xyz/ bean:write name=abcd property=xyz/ /html:link but can't do nested tags. How do I dynamically populate the content of the href attribute? Help please! Thanks Rob Breeds -- To unsubscribe, e-mail: mailto

RE: html:link href to external URL in a

2001-12-05 Thread Rob Breeds
No way to do this with purely Struts tags? Thanks Rob Breeds Siggelkow, Bill

Re: html:link - submit

2001-12-03 Thread Rob Breeds
Use JavaScript to submit the form - the html:link has an onclick event. Beware of having links and buttons simultaneously - Struts calls buttons it generates 'submit' which causes a naming clash. Rob Breeds

RE: session id is same for different Browser

2001-11-30 Thread Rob Breeds
You will see the same session ID for two browser windows if you 'clone' the browser window with CTRL+N (in IE). To get a separate session ID you need to start two instances of the browser, not clone the existing window. Rob Breeds

Re: Problem: JavaScript in StrutsForm

2001-11-29 Thread Rob Breeds
and used links instead Rob Breeds Wolfgang Frank

Two security roles, one ActionServlet?

2001-11-27 Thread Rob Breeds
security so any help is appreciated! Thanks Rob Breeds -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Dynamic selection of correct language value in pulldown list

2001-11-26 Thread Rob Breeds
before presenting to the user? All help appreciated Thank you Rob Breeds -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: back button causes form resubmit

2001-11-26 Thread Rob Breeds
need to use a transaction token? Thanks Rob Breeds -- 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]

back button causes form resubmit

2001-11-21 Thread Rob Breeds
deleted value. How can I prevent the user doing a double add/delete? Do I need to use a transaction token? Thanks Rob Breeds -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

Re: Stuts-simple doesn't work (husted.com)

2001-11-15 Thread Rob Breeds
Thomas struts-simple does work! The struts config file does not have to be in the WEB-INF dir - it's location is specified in web.xml. The struts.xml file is the config file in this case. Rob

Re: Stuts-simple doesn't work (husted.com)

2001-11-15 Thread Rob Breeds
://localhost/struts-simple/do/start;jsessionid=6knsr97rw1; I deployed struts-simple like all other examples (struts-example, struts-blank a.s.o). It does not work? Any reason available? Thank you in advance Thomas -Original Message- From : Rob Breeds [EMAIL PROTECTED] To : Struts Users

RE: Websphere 4.0/IBM Web server configuration

2001-11-15 Thread Rob Breeds
That 'fixed' version of struts.jar would not cause this problem (you'd be getting a 'missing attributes' type error message). WAS 4.01 doesn't need the special struts.jar as the original bug in WebSphere is fixed. Can you see your deployed application in the WAS admin console? Rob Breeds

links to javascript with index variables

2001-11-15 Thread Rob Breeds
(document.forms[0],'del', 0) (last param being the index) html:link href=javascript:subForm(document.forms[0],'del', 1) html:link href=javascript:subForm(document.forms[0],'del', 2) . . . Is the only way to do this using scriptlets? Thanks Rob Breeds -- To unsubscribe, e-mail: mailto:[EMAIL

Re: If someone is interested

2001-11-15 Thread Rob Breeds
Yuriy I'm keen to see the source for this - all working examples are useful to help me (and others) avoid what must be common pitfalls. Thanks Rob Breeds

Re: links to javascript with index variables

2001-11-15 Thread Rob Breeds
Rob Breeds/UK/IBM@ To: Struts Users Mailing List [EMAIL PROTECTED

Re: links to javascript with index variables

2001-11-15 Thread Rob Breeds
Rob Breeds/UK/IBM@ To: Struts Users

Re: links to javascript with index variables

2001-11-15 Thread Rob Breeds
','%= i.toString() %');try this/A and it works! Why doesn't it work when the same code is put into the Struts html:link href attribute ? Rob Rob Breeds/UK/IBM@ To: Struts Users Mailing List [EMAIL PROTECTED] IBMGBcc

RE: request scope and forms

2001-11-14 Thread Rob Breeds
, we'll do the rest. -Original Message- From: Rob Breeds [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 11:03 AM To: Struts Users Mailing List Subject: request scope and forms I'm getting stuck with request scope and ActionForm objects not sticking around across requests

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,

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
Hi Is it possible to have multiple html:submit tags in a html:form different only in name such that the action can differentiate between them. The docs indicate there is no 'name' attribute for the html:submit tag corresponding to the name attribute for a HTML input type=submit tag.

Re: multiple html:submit buttons with different names?

2001-11-13 Thread Rob Breeds
then assign the forward based on the value of 'action' MyFormBean form1 = (MyFormBean) form; String sAction = form1.getAction(); if (sAction.equals(Submit)) Brian --- Rob Breeds [EMAIL PROTECTED] wrote: Hi Is it possible to have multiple html:submit tags in a html:form different only in name

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
all the errors. Also, I would have thought that not including any error tag would mean no errors would be displayed. Marcos -Original Message- From: Rob Breeds [mailto:[EMAIL PROTECTED]] Sent: 23 October 2001 12:07 To: [EMAIL PROTECTED] Subject: Re: problem with html:errors tag 1

RE: problem with html:errors tag

2001-10-23 Thread Rob Breeds
/tr tr td align=right html:submit styleClass=form1 property=submit value=Submit/ /td td align=left html:reset styleClass=form1/ /td /tr /table /html:form /body /html:html Any help gratefully received! Marcos -Original Message- From: Rob Breeds

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