RE: struts books

2003-07-15 Thread Butt, Dudley
thx to everyone for their input once again, sorry to have to duplicate the efforts, but it was fun anyways... -Original Message- From: Tin Pham [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 2:28 AM To: [EMAIL PROTECTED] Subject: Re: struts books I recommend getting 2 books,

RE: accessing more than 1 formbean in an action class

2003-07-15 Thread Madhu Nair
Thanks shane , I didnt know you could do this. My problem is solved. -Original Message- From: Shane Mingins [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 2:02 AM To: 'Struts Users Mailing List' Subject: RE: accessing more than 1 formbean in an action class Hi Can you not just

trigger an action from a filter?

2003-07-15 Thread Terje Hopsø
Hello, How can I call my actionservlet without using a FORM/SUBMIT? Can I trigger it from a Filter-servlet and in that case how? - Terje

Where to build dropdown lists?

2003-07-15 Thread vellosa
Sorry if this is a stupid question, but any help is much appreciated! I have some drop down lists that I populate in my action class, which means I call myPage.do each time. This was working nicely, until I tried adding some validation. If this fails the action class is not called and then when

RE: Where to build dropdown lists?

2003-07-15 Thread Mohd Amin Mohd Din
Need help here too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 4:52 PM To: [EMAIL PROTECTED] Subject: Where to build dropdown lists? Sorry if this is a stupid question, but any help is much appreciated! I have some drop down lists

How to use bean:write format/formatKet

2003-07-15 Thread KISHORE KUMAR KOTA Rao
Hi , Can anybody let me know how to use bean:write for formatting the text. What is the difference between format / formaKey in Bean:write attributes ? What are all the valid message format texts that I can use in ApplicationResourse. Kishore Kumar K Covansys India Pvt Ltd

Re: How to use bean:write format/formatKet

2003-07-15 Thread Nagendra Kumar O V S
hi, u can use bean:write to format dates and numbers. for ex. u have action form private Date date1; if u want to format that using bean:write bean:write name="form" property="date1" format="MM/dd/"/ this renders the date using

Re: Where to build dropdown lists?

2003-07-15 Thread Nagendra Kumar O V S
hi, u can set the collection objectas the request attribute for the first time in the action class. so as long u use the same request , u will not need to repopulate the list again. reset is not the right place to populate ur dropdowns

Re: Where to build dropdown lists?

2003-07-15 Thread vellosa
OK, another stupid question then! How do I ensure I use the same request? (Sorry my servlet programming isn't as good as it should be! Infact all my programming isn't!) Thanks IV from:Nagendra Kumar O V S [EMAIL PROTECTED] date:Tue, 15 Jul 2003 11:19:10 to: [EMAIL

Re: trigger an action from a filter?

2003-07-15 Thread Max Cooper
You could send a redirect or forward the current request to the Struts action (mapping) from a Filter or Servlet. What has lead you to want to do this? Perhaps a simpler solution to your functional needs is possible. -Max - Original Message - From: Terje Hopsø [EMAIL PROTECTED] To:

Re: Iterating the resultset contents in the view (jsp)

2003-07-15 Thread Kris Schneider
Well, okay, that makes the discussion a bit more abstract ;-). I understand your point, but the bottom line is that it's just a namespace (package) and an external library (JAR file). To my mind, the real question with either Result or RowSetDynaClass is how far from the data layer do you want the

Re: two little questions

2003-07-15 Thread Dichotomy
I would think that Q2 basically depends on which database you're using. You should be able to find out what character encoding your database supports by reading the documentation for the field type you're using (eg varchar). To complete the answer to your first question with a why, yes, you

Re: Where to build dropdown lists?

2003-07-15 Thread Dichotomy
My solution, which is perhaps not the most efficient memory-wise, is to simply put it in (and retrieve it from) the session rather than the request. Then when I do go through the populating action, if this is a list that is liable to change often I reload it from the database. If it is a fairly

Re: DynaActionForm

2003-07-15 Thread Dichotomy
The same way as any other action-form? In short, you build an html:select with an html:options tag inside, giving the collection containing the options as a parameter to html:options... -- If education is too expensive, try ignorance. On Mon, 14 Jul 2003 11:58:11 +0100 Qasim Khawaja [EMAIL

Re: trigger an action from a filter?

2003-07-15 Thread Kris Schneider
Not sure if this is what Terje is after, but you can use a link instead of a form: html:link action=/action/path.../html:link http://jakarta.apache.org/struts/userGuide/struts-html.html#link As Max asked though, it would help to have some more detail on what the requirements are. Quoting Max

MessageRessources

2003-07-15 Thread Juraj . Lenharcik
Hello, I have the following scenario. I want to configure the count of items and the values of these in a drop down list. These entries should be shown in the language dependency of the browser. So I created some values like: val.1=house val.2=dog and so on. Unfortunately there is no

Re: FW: need help

2003-07-15 Thread Dichotomy
It all depends on how much maintenance you expect this project will require once you're finished. If it's a fire-and-forget, any shortcuts will do so long as you finish the project on time. If you're going to have to maintain this, you want to do it properly. With this in mind, actions should

RE: MessageRessources

2003-07-15 Thread Hookom, Jacob
For your MessageResources, you might want to put those values in a comma, delimited list, and then use the String.split(,) to get your items. JSTL can also take that string and iterate over it via it's own tags. Jacob Hookom Senior Analyst/Programmer McKesson Medical-Surgical Golden Valley,

Re: FW: need help

2003-07-15 Thread Adam Hardy
The question is whether you have the time to familiarise yourself with struts in order to take advantage of its time-saving features. Tiles would be good, having an action class for each object would be sensible, with different action mappings for display, create, update, delete and other

Re: [ARTICLE] Succeeding with Struts Pt 2: Indexed Properties ofBeans

2003-07-15 Thread Rick Reumann
On Mon, Jul 14,'03 (06:32 AM GMT-0400), James wrote: http://www.developer.com/java/ejb/article.php/2233591 This month, I covered using indexed arrays of beans to do master/detail records in forms. Thanks James, excellent example! One thing I would now still like to see.. could you

Re: Where to build dropdown lists?

2003-07-15 Thread Adam Hardy
I designed a system where I can specify in my action which dropdown lists I require with a method call. I route my failed validate requests thro' the action (using the action mapping input tag) every time so the call is always made, and if I specified it should be in the request, the system

Re: Where to build dropdown lists?

2003-07-15 Thread Rick Reumann
On Tue, Jul 15,'03 (01:56 PM GMT-0100), Dichotomy wrote: My solution, which is perhaps not the most efficient memory-wise, is to simply put it in (and retrieve it from) the session rather than the request. I agree this is the best solution (using Session or Application scope). I brought

Re: Where to build dropdown lists?

2003-07-15 Thread Rick Reumann
On Tue, Jul 15,'03 (02:32 PM GMT+0200), Adam wrote: I designed a system where I can specify in my action which dropdown lists I require with a method call. I route my failed validate requests thro' the action (using the action mapping input tag) every time so the call is always made, and if

Re: Where to build dropdown lists?

2003-07-15 Thread Dennis
Rick Reumann [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Tue, Jul 15,'03 (01:56 PM GMT-0100), Dichotomy wrote: My solution, which is perhaps not the most efficient memory-wise, is to simply put it in (and retrieve it from) the session rather than the request. I agree

Re: Please Help: ActionForm Re-Population

2003-07-15 Thread Susan Bradeen
On 07/14/2003 01:25:58 PM Aaron Longwell wrote: Oops, spoke too soon. You discussed 2 options: 1) All drop-down list data goes into session 2) input attribute for the update event goes back to edit Action instead of edit JSP I went with #2 and that brings up a new issue. Doing that

Re: Where to build dropdown lists?

2003-07-15 Thread vellosa
When using the client side validation, there is always a javascript pop up box that says something along the lines of 'Your a thick b*stard, fill in xxx!' Our client requirement is that we produce a list of errors at the top of the page, (the red UL kinda thing), which rules out the use of

RE: [ARTICLE] Succeeding with Struts Pt 2: Indexed Properties of Beans

2003-07-15 Thread James Turner
Rick, I haven't found a good way to do this without a lot of gross %= hacking, specifically because the Struts and JSTL interators give you a handle to the index of the interated object, not the key. But frankly, I don't see a huge need to do this. Since the ActionForm is a separate object

Re: Where to build dropdown lists?

2003-07-15 Thread Susan Bradeen
On 07/15/2003 08:47:14 AM Rick Reumann wrote: On Tue, Jul 15,'03 (02:32 PM GMT+0200), Adam wrote: I designed a system where I can specify in my action which dropdown lists I require with a method call. I route my failed validate requests thro' the action (using the action mapping input

RE: radio button issue

2003-07-15 Thread Mathew, Manoj
that is working.. But you know business requirements are always awkward. they want to use Tab itself man... thank you matt -Original Message- From: Jing Zhou [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 11:19 PM To: Struts Users Mailing List Subject: Re: radio button issue I

Re: Where to build dropdown lists?

2003-07-15 Thread Phil Shrimpton
On Tuesday 15 July 2003 12:52, [EMAIL PROTECTED] wrote: Hi, Another thing that I noticed when playing with the JavaScript pop ups was that all the validator JavaScript, whether used or not is included in the JSP code. I ende up with hundreds of lines of JavaScript, including date, email and

Re: Populating Drop downs

2003-07-15 Thread Qasim Khawaja
How do you distinguish the when the execute method is being called to populate the form and when it is being called to post the data from the form? An example for the struts-config would be most useful. Q Aaron Longwell wrote: The Action is called prior to presenting the JSP only if you've

URL validation with struts???

2003-07-15 Thread Prashanth.S
Hi all, I need to upload a resource present at a particular location by making user enter a valid URL...How can i do URL name validation using struts???Is there anything to do so??Do i need to do this in action form or action class??[what User entered is a valid url i.e,both name as well as

RE: Use of Validator in a Wizard Validator

2003-07-15 Thread Kearney, Michael
Hmmm, no response. Let me rephrase the question. How do you perform field validation in your wizards? Thanks, Michael -Original Message- From: Kearney, Michael [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2003 12:28 PM To: '[EMAIL PROTECTED]' Subject: FW: Use of Validator in a

Re: Iterating the resultset contents in the view (jsp)

2003-07-15 Thread David Graham
--- Kris Schneider [EMAIL PROTECTED] wrote: Well, okay, that makes the discussion a bit more abstract ;-). I understand your point, but the bottom line is that it's just a namespace (package) and an external library (JAR file). To my mind, the real question with either Result or

Re: Where to build dropdown lists?

2003-07-15 Thread Dichotomy
Client-side validation is a useful gimmick at best. I certainly would not trust it in any web application which will have more than one user (me). It is far too easy to get around (eg disable javascript?). -- If education is too expensive, try ignorance. On Tue, 15 Jul 2003 14:42:34 +0200

Re: Iterating the resultset contents in the view (jsp)

2003-07-15 Thread Ben Anderson
That is true, but when columns are added to the table - you need not edit any file other than the jsp(doing it Kris' way). From: David Graham [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Iterating the resultset contents in the view

Re: URL validation with struts???

2003-07-15 Thread Dichotomy
Steps: 1) Use a regular expression to check that the url fits the pattern you are looking for (here's a good tutorial on regexes: http://www.zvon.org/other/PerlTutorial/Output/index.html). You can do this directly with the validator framework if you're using it, or later from the action. 2)

Text tag sizes

2003-07-15 Thread ruben_carvalho
Hello everybody, I'm having a problem which I think nobody ever had. I need to create a form with multiple (equal) lines. Each line will have a few text boxes. It's made to work on a 800x600 resolution. While I was trying to reduce the size of every text box, I've noticed that if I create an

RE: URL validation with struts???

2003-07-15 Thread Amit Kirdatt
I think the URL validation should be done in the form's validate() method. -Original Message- From: Dichotomy [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 11:48 AM To: Struts Users Mailing List Subject: Re: URL validation with struts??? Steps: 1) Use a regular expression to

RE: Text tag sizes

2003-07-15 Thread Mark Galbreath
yes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 9:55 AM To: Struts Users Mailing List Subject: Text tag sizes Hello everybody, I'm having a problem which I think nobody ever had. I need to create a form with multiple (equal)

RE: URL validation with struts???

2003-07-15 Thread Greg Hess
Hi Prashanth, I have done this using the Struts validator. I use the mask rule as follows: form name=serviceProviderForm field property=URL depends=required,mask msg name=mask key=error.invalid.ServiceProviderURL/ arg0

Text tag size

2003-07-15 Thread ruben_carvalho
Hello everybody, I'm having a problem which I think nobody ever had. I need to create a form with multiple (equal) lines. Each line will have a few text boxes. It's made to work on a 800x600 resolution. While I was trying to reduce the size of every text box, I've noticed that if I create an

Re: URL validation with struts???

2003-07-15 Thread Prashanth.S
Hi all, How abt throwing MalformedURLException in the service method inside action class?? Than no need to do validation in action form?? Is it correct?? Help?? Thanks Prashanth Dichotomy [EMAIL PROTECTED] wrote: Steps: 1) Use a regular expression to check that the url fits the pattern you are

Re: Where to build dropdown lists?

2003-07-15 Thread Adam Hardy
Susan Bradeen wrote: I also use a method call to retrieve my dropdown lists, but I gave up using an action as the input mapping parameter. I didn't see how I could implement it without putting a returning from validation check in there somewhere, and those particular setup actions have become

Re: radio button issue

2003-07-15 Thread Jing Zhou
I went to the similar situations before. Tabbing to focus needs some understanding of UI design technology. The IE browser treats a group of radio buttons (with an identical name) as one logical unit on a page. So the tabbing can only give you the focus to one of the radio buttons. If you would

RE: URL validation with struts???

2003-07-15 Thread Gandle, Panchasheel
That shoud do it right Open a new URL with a specified URL, if it throws MalformedURLException its bad URL Panchasheel -Original Message- From: Prashanth.S [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 10:04 AM To: Struts Users Mailing List Subject: Re: URL validation with

Re: FW: need help

2003-07-15 Thread mohan
Hi Mohan You can have one action form and one action class for different JSP pages.But it would be a good design if all the JSP pages represent one type of function in your application. A typical example would be a Registration Module. Registration requires say around 2-3 JSP pages one after the

Re: URL validation with struts???

2003-07-15 Thread Dichotomy
You could definitely do that, too. If you just create a new Url(yourstringhere) it will raise that exception if it's malformed, so it won't waste time creating a connection to a malformed url. I guess that's probably a better solution than the regex one, too, because it's simpler. -- If

URL changed by user - how to restrict?

2003-07-15 Thread sriram
Hi, I am developing a web application in which some parameters are passed through query string. I do not want to allow users to manipulate the query string. If they manipulate, they should be logged off and taken to login page. For ex.., I have a page

RE: URL changed by user - how to restrict?

2003-07-15 Thread Amit Kirdatt
Sriram, I would suggest you put sensitive information like that in a user's session and not in the query string. thanks, Amit -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 9:10 AM To: 'Struts Users Mailing List' Subject: URL changed by user - how

RE: URL changed by user - how to restrict?

2003-07-15 Thread Gandle, Panchasheel
If you desparately want to do such things, then may be you can put the generated query string in the session and validate it , if the user has changed the query manually Panchasheel -Original Message- From: sriram [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 10:10 AM

RE: URL changed by user - how to restrict?

2003-07-15 Thread Paananen, Tero
For ex.., I have a page http://mymachine:8080/appln/test.jsp?user=1004 In this page, user details are displayed. If a user changes the query string - from user=1004 to user=1005 - and clicks ENTER, then the details of 1005 are being displayed. I want to avoid this. In such cases, user

Re: URL validation with struts???

2003-07-15 Thread Rob Leland
Prashanth.S wrote: Hi all, I need to upload a resource present at a particular location by making user enter a valid URL...How can i do URL name validation using struts???Is there anything to do so??Do i need to do this in action form or action class??[what User entered is a valid url i.e,both

Re: URL changed by user - how to restrict?

2003-07-15 Thread James Mitchell
From what you've described, you don't need to pass any user number or id. With the internet, being the stateless beast that it is, how will your application know that any particular request is or isn't supposed to access some particular user number? I think you are going about this the wrong way.

Re: Use of Validator in a Wizard Validator

2003-07-15 Thread Ludovic Maitre
Hello, I use do my validations in the brackets. For example i test that a field of the form on the page 1 is valid : //first launch automatic validation ActionErrors errors = super.validate(mapping, request); //second do specific validation. if (page == 1) { //Check page 1 properties

Re: URL changed by user - how to restrict?

2003-07-15 Thread Dichotomy
I agree with what the others said. You can never, and should never, trust anything that the user can change. And you should certainly not be storing the logged in user's id in the query string. I think you may need to read a bit about basic http security. A framework like Struts requires you to

Re: URL validation with struts???

2003-07-15 Thread Rob Leland
Dichotomy wrote: You could definitely do that, too. If you just create a new Url(yourstringhere) it will raise that exception if it's malformed, I would encourage you to look at the implementation of URL. It does only a small amount of validation on the format, but that may be enough, for your

Re: Passing Parameters Between Actions

2003-07-15 Thread Jung Yang
Is there any reason you are forwarding from JSP? Try using Dispatcher in Action1 class like request.getRequestDispatcher(/Action2.do).forward(request, response); - jung Hunter Hillegas wrote: I am trying to pass a parameter between two actions and running into trouble. I call action 1 like

Re: Populating Drop downs

2003-07-15 Thread Aaron Longwell
Qasim, I actually use separate actions. I have an edit action, an update action (which handles both creation of a new record and updating of an existing record) and a list action (which views data about certain records): !-- BAND LIST -- action path=/band/list

Re: Text tag size

2003-07-15 Thread Jing Zhou
Using the size attribute to control the field width of a text input is not recommended. In our demos at http://www.netspread.com, we use style=width: 100pt; for many input fields. Note that the pt is one of absolute units used by browsers. It gives you the ability to control the screen layouts

RE: Use of Validator in a Wizard Validator

2003-07-15 Thread Kearney, Michael
Yes but... It's my understanding that super.validate() validates all the form's fields at once. In the case of a wizard you don't have all the fields populated by the user until they reach the last page. I'd like to take advantage of the rules in validation.xml and not (re)write the code inside

RE: Indexed form values

2003-07-15 Thread Amit Kirdatt
Sandeep, Thank you for your response. I checked in mail archive and found several suggestions. In particular I looked at this suggestion http://www.mail-archive.com/[EMAIL PROTECTED]/msg72404.html and realized that there is a slight problem with this code. For those who would like to know how I

Re: Text tag size

2003-07-15 Thread ruben_carvalho
Thank you Jing, we were already using css. Now you confirmed it :) Rúben Citando Jing Zhou [EMAIL PROTECTED]: Using the size attribute to control the field width of a text input is not recommended. In our demos at http://www.netspread.com, we use style=width: 100pt; for many input

bean:size tag in Struts 1.0.2

2003-07-15 Thread Dmitri Ilyin
Hello all, i have problem with bean:size tag it works so for me: bean:size id=ak_size scope=request name=cawisReport property=userArbeitskreis/ but don't work so: bean:define id=cawisUserArbeitskreis name=cawisReport property=userArbeitskreis scope=request/ bean:size

Re: Where to build dropdown lists?

2003-07-15 Thread Susan Bradeen
On 07/15/2003 10:04:13 AM Adam Hardy wrote: Susan Bradeen wrote: I also use a method call to retrieve my dropdown lists, but I gave up using an action as the input mapping parameter. I didn't see how I could implement it without putting a returning from validation check in there

Re: 4th Of July Struts Challenge...

2003-07-15 Thread Kris Schneider
As it turns out, some of my ideas about a standard property of type Map versus a mapped property were a bit off. So, if you're still interested, here's something I hacked together. You'll notice I used a session scoped form so that Struts doesn't choke when it tries to populate the form.

RE: [ARTICLE] Succeeding with Struts Pt 2: Indexed Properties ofBeans

2003-07-15 Thread Craig R. McClanahan
On Tue, 15 Jul 2003, James Turner wrote: Date: Tue, 15 Jul 2003 08:59:30 -0400 From: James Turner [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Rick Reumann' [EMAIL PROTECTED], 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: [ARTICLE]

Re: Iterating the resultset contents in the view (jsp)

2003-07-15 Thread Craig R. McClanahan
On Tue, 15 Jul 2003, Kris Schneider wrote: Well, okay, that makes the discussion a bit more abstract ;-). I understand your point, but the bottom line is that it's just a namespace (package) and an external library (JAR file). To my mind, the real question with either Result or

Re: bean:size tag in Struts 1.0.2

2003-07-15 Thread Sandeep Takhar
scope on bean:size isn't doing what you think it is doing. bean:size create page scope and scripting var... The bean scope within which to search for the JSP bean specified by the name attribute. If not specified, the available scopes are searched in ascending sequence. sandeep --- Dmitri Ilyin

[OT] auto convert resource property files to different language

2003-07-15 Thread Ashish Kulkarni
Hi, I have a properties file which is in english, now i have to create properties files for different langauage like russian, spanish, french etc. now i dont know any of these languages is there any automatic conversion tool which will translate the properties file to different languages. If it

tlds not found compiling in Netbeans

2003-07-15 Thread Richard_Shearin
I am developing using Netbeans and had the following line of code in my jsp files and similar for each other tld. %@ taglib uri=./../WEB-INF/struts-bean.tld prefix=bean % Everything compiled and worked fine when I ran the application in Tomcat. However, when I attempted to move the application

How do you access an application.properties value directly from within a class?

2003-07-15 Thread Mark Galbreath
When Struts load, it grabs application.properties and stores it's keys and values somewhere. From within an action class I need to access a value in application.properties. How could one do this? tia, mark - To unsubscribe,

A dynamic _map_ (not list) index?

2003-07-15 Thread Martin Naskovski
I was looking at http://jakarta.apache.org/struts/faqs/indexedprops.html, and realized it's possible to get a dynamic arraylist index by using Struts-EL. Well, my question is, if I have a radio button like: logic:iterate id=element html:radio property='userSkill' value=value(somekey)/

Re: How do you access an application.properties value directly fromwithin a class?

2003-07-15 Thread Dichotomy
Hi Mark, This bit of code should help (from Ted Husted's book! ;-) ) Locale locale = (Locale) session.getAttribute(Action.LOCALE_KEY); MessageResources messages = servlet.getResources(); String message = messages.getMessage(locale, important.message); And if there are replacements ({0}..), eg:

RE: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Jarnot Voytek Contr AU HQ/SC
getResources() -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Mark Galbreath [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 11:28 AM To: 'Struts Users Mailing List' Subject: How do you access an application.properties value directly

Re: [OT] auto convert resource property files to different language

2003-07-15 Thread Dichotomy
You're dreaming mate. But depending on the size of the file I'll do it for $50/hour :-) If you're really adventurous and have time to kill what you could do is write something using the altavista babel fish page and parsing the results out of the page automatically and make it translate

Re: Iterating the resultset contents in the view (jsp)

2003-07-15 Thread Kris Schneider
Sure, understood. In fact I do this myself. But the reality is it's still an identifier that's defined in the data layer, in this case embedded in SQL. My point was that I'd be more concerned with identifiers defined in the data layer getting referenced in the view layer then I would with using

Re: tlds not found compiling in Netbeans

2003-07-15 Thread Dichotomy
Try with: %@ taglib uri=http://jakarta.apache.org/struts/tags-bean; prefix=bean % Normally it will load it from the cached copy in the struts.jar. This should also reduce the clutter in web-inf. -- If education is too expensive, try ignorance. On Tue, 15 Jul 2003 12:22:04 -0400 [EMAIL

RE: [OT] auto convert resource property files to different language

2003-07-15 Thread Kearney, Michael
You've just asked for the Holy Grail of language translation. I don't think that tool exists yet. There are companies that provide that service. -Michael -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 10:21 AM To: [EMAIL

RE: How do you access an application.properties value directly from within a class?

2003-07-15 Thread Raible, Matt
If you're just looking for the values, grab it as a resource bundle. Here's how I grab it in a Business Delegate: // Get the application's messages resources ResourceBundle resources = ResourceBundle.getBundle(ApplicationResources); String appDBVersion =

RE: How do you access an application.properties value directly fr om within a class?

2003-07-15 Thread Raible, Matt
I forgot to add the simplest way in an Action class: MessageResources resources = getResources(request); resources.getMessage(keyName); -Original Message- From: Raible, Matt Sent: Tuesday, July 15, 2003 10:51 AM To: 'Struts Users Mailing List' Subject: RE: How do you access an

Tiles and %@ taglib

2003-07-15 Thread Erez Efrati
In tiles, where should I be best putting the %@ taglib uri=required lib %? Each tile jsp with its own tags or put them all in the layout JSP I use? Thanks, Erez - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Tiles and %@ taglib

2003-07-15 Thread Chen, Gin
That's a matter of preference and application server capabilities. I prefer to keep them all in the same layout.jsp but I'm using jboss-3.2.0 with jetty and it doesn't support it that way. From what I know, only JRun currently supports that option. (Correct me if I'm wrong someone). Once you find

Extending RequestProcessor with Tiles

2003-07-15 Thread Pat Quinn
I have extended the org.apache.struts.action.RequestProcessor (i.e. processPreprocess() method) then i continued to implement tiles i.e. defining the plugin in my struts-config.xml. Now on startup i get the following error: TilesPlugin : Specified RequestProcessor not compatible with

RE: Extending RequestProcessor with Tiles

2003-07-15 Thread Jarnot Voytek Contr AU HQ/SC
extend org.apache.struts.tiles.TilesRequestProcessor -- Voytek Jarnot Quidquid latine dictum sit, altum viditur. -Original Message- From: Pat Quinn [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:08 PM To: [EMAIL PROTECTED] Subject: Extending RequestProcessor with Tiles

reusing same form for inserts and updates

2003-07-15 Thread Wes Rood
I've searched the archives for this type of discussion but I'm not really finding what I want. I'd like to reuse the same jsp form for both inserts and updates of a particular set of data. My current solution is to come into the action with a flag of new or edit. If edit, the action will

RE: URL validation with struts???

2003-07-15 Thread Craig R. McClanahan
On Tue, 15 Jul 2003, Gandle, Panchasheel wrote: That shoud do it right Open a new URL with a specified URL, if it throws MalformedURLException its bad URL Unfortunately, there's a gotcha to this approach -- the JVM you are running on has to understand the scheme part of the URL you are

RE: How do you access an application.properties value directly fr om within a class?

2003-07-15 Thread Mark Galbreath
Nice, clean, elegant solution - thanks a lot, Matt! -Original Message- From: Raible, Matt [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 12:54 PM To: 'Struts Users Mailing List' Subject: RE: How do you access an application.properties value directly fr om within a class? I

RE: URL validation with struts???

2003-07-15 Thread Gandle, Panchasheel
Thats true, so if you have https, we could always truncate the 's' after http and pass it to URL to check whether it throws MalformedURLException. should work. Panchasheel -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2003 1:12 PM

[Error Handlers] instanceof ?

2003-07-15 Thread Hookom, Jacob
Off hand, would Struts be able to catch the exception with this desired handler? Action throws ServiceNotFoundException ExceptionHandler catches ServiceException Where ServiceNotFoundException is an instance of ServiceException? Thanks, Jacob

Re: Iterating the resultset contents in the view (jsp)

2003-07-15 Thread Craig R. McClanahan
On Tue, 15 Jul 2003, Kris Schneider wrote: Date: Tue, 15 Jul 2003 12:42:36 -0400 From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: Iterating the resultset contents in the view (jsp)

Re: reusing same form for inserts and updates

2003-07-15 Thread Wes Rood
Woops... after thinking about this more, I realized that I *have* to put the primary key in the form somewhere, or I won't know what record to update... I'd still like to hear your experiences in this area though... Thanks Wes Rood wrote: I've searched the archives for this type of discussion

Is this really the best way to handle this problem

2003-07-15 Thread Linus Nikander
I've been struggling with a problem similar to the one described (and solved) at http://www.mail-archive.com/[EMAIL PROTECTED]/msg50901.html . Is this really the recommended way to solve population / repopulation of properties stored in a List() of whatever-data-object-i-need-in-the-form-of-a-bean

Re: Iterating the resultset contents in the view (jsp)

2003-07-15 Thread David Graham
--- Craig R. McClanahan [EMAIL PROTECTED] wrote: On Tue, 15 Jul 2003, Kris Schneider wrote: Date: Tue, 15 Jul 2003 12:42:36 -0400 From: Kris Schneider [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject:

Re: [Error Handlers] instanceof ?

2003-07-15 Thread David Graham
--- Hookom, Jacob [EMAIL PROTECTED] wrote: Off hand, would Struts be able to catch the exception with this desired handler? Action throws ServiceNotFoundException ExceptionHandler catches ServiceException Where ServiceNotFoundException is an instance of ServiceException? Not currently.

RE: reusing same form for inserts and updates

2003-07-15 Thread Mark Galbreath
My primary keys are the email addresses of the users, and I always bring up a blank form and allow the user to choose (radio buttons) to retrieve, update, or submit new records based on date. The userId is stored in session scope at login. Mark -Original Message- From: Wes Rood

mapping.findForward( mapping.getInput() ) ?

2003-07-15 Thread Michael Muller
In Cavaness's book Programming Jakarta Struts, there is a code sample on page 188 that contains a line I don't understand. In the execute method of an implementation of an Action class, is the following line of code: return mapping.findForward( mapping.getInput() ); Doesn't the input have to be

RE: [ARTICLE] Succeeding with Struts Pt 2: Indexed Properties of Beans

2003-07-15 Thread James Turner
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED] The iterated object has key and value properties to give you access to either the key or the value with a nested expression. Right, but there's no way to use them with the indexed=true flag of the html tags. You still end up having to

Re: Is this really the best way to handle this problem

2003-07-15 Thread John M. Corro
I've seen two ways of dealing w/ this problem, both of which I see as 'hackish' in nature. Solution A: In your getters/setters you implement the following code public MyCustomBean getMyCustomBean(int index) { while(index = myCustomBeanList.size()) { myCustomBeanList.add(new

Re: A dynamic _map_ (not list) index?

2003-07-15 Thread Martin Naskovski
Never mind this question, I answered it to myself. The EL works just as well on map backed forms as it does on list-backed forms, or list backed form properties, more correctly :). Sorry to bug anyone. Martin Tuesday, July 15, 2003, 9:34:16 AM, you wrote: MN I was looking at

  1   2   >