Re: Using message resources to specify value in an button

2005-11-24 Thread nitin mandolkar
Oh Yes I am sorry. -Ni3 On 11/25/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi > > He asked for resourcebundle backed - not hardcoded. Frank has shown one of > the possible ways of doing it. > > In addition to fmt:message you can of course use bean:message (including also > the "bundle

RE: Using message resources to specify value in an button

2005-11-24 Thread hermod.opstvedt
Hi He asked for resourcebundle backed - not hardcoded. Frank has shown one of the possible ways of doing it. In addition to fmt:message you can of course use bean:message (including also the "bundle" attribute if you have multiple modules for instance) Hermod -Original Message- From:

Re: Using message resources to specify value in an button

2005-11-24 Thread Wendy Smoak
On 11/24/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I had to ask this same question a day or two ago actually :) Here's one > of the two provided solutions... this one seems to me the more > straight-forward... > > Here's the thread: http://www.nabble.com/JSTL-messages-problem-t600572.

Re: Using message resources to specify value in an button

2005-11-24 Thread nitin mandolkar
Hi Mon Cab here is the example And Equivalent Html code generated is like Thanks. Nitin Mandolkar. On 11/25/05, Mon Cab <[EMAIL PROTECTED]> wrote: > Does anyone know how to specify what is written on the > submit button using message resources? I thought it > might be titleKey but when I t

Re: Using message resources to specify value in an button

2005-11-24 Thread Frank W. Zammetti
I had to ask this same question a day or two ago actually :) Here's one of the two provided solutions... this one seems to me the more straight-forward... The other approach involved getting the button's text into a variable via JSTL's tag and using that in conjunction with the HTML-EL ta

Re: Using message resources to specify value in an button

2005-11-24 Thread Wendy Smoak
On 11/24/05, Mon Cab <[EMAIL PROTECTED]> wrote: > Does anyone know how to specify what is written on the > submit button using message resources? I thought it > might be titleKey but when I tried to use that, it > just labelled my submit button "submit". Try putting it in the body of the submit t

Using message resources to specify value in an button

2005-11-24 Thread Mon Cab
Does anyone know how to specify what is written on the submit button using message resources? I thought it might be titleKey but when I tried to use that, it just labelled my submit button "submit". __ Yahoo! Music Unlimited Access over 1 mil

Re: conditional validation

2005-11-24 Thread Raghu Kanchustambham
Hi Laurie, Thanks for responding. > Firstly, the check for marks <= 100 in the validwhen rule is redundant, True! I realize that and have removed that. > Second, shouldn't you allow an empty value for marks if degree.id isn't set, > rather than forcing the user to enter numeric data that's going

iterating over collection

2005-11-24 Thread Malhotra, Amitkumar \(Exchange\)
Hello All, Am stuck up with a simple problem and could not find solution to the same over the net my DAO sets a list in the session , this list contains java bean classes, the action class forwards the flow to a jsp page. I want to iterate over the collection and read the java beans stor

RE: Tiles Again - Can anyone help?

2005-11-24 Thread David G. Friedman
Kevin, What you described is perfect for a controllerClass="..." or controllerUrl="..." attribute inside a tile definition, as I suggested ina previous post. A controller lets you add, remove, or alter the pieces of a tile. It sounds like you might want one of your items to be a list which you

problem with form bean properties

2005-11-24 Thread patwary rao
Hi all, I want to know is it possible to send form bean property to the custom tag.basically i want to display static text instead of text box if the user has read only ability to the page else show him text box.user role is checked in the custom tag surrounding the text box . i want to imple

Re: [struts-faces] html:form vs. s:form

2005-11-24 Thread Laurie Harper
Craig McClanahan wrote: On 11/24/05, Laurie Harper <[EMAIL PROTECTED]> wrote: I have code for populating form beans dynamically, as follows (I'll spare you the dirty details of why I'm doing this instead of relying on Struts' standard form bean population): String formKey = Constants.FORM_KE

Re: [struts-faces] html:form vs. s:form

2005-11-24 Thread Craig McClanahan
On 11/24/05, Laurie Harper <[EMAIL PROTECTED]> wrote: > > I have code for populating form beans dynamically, as follows (I'll > spare you the dirty details of why I'm doing this instead of relying on > Struts' standard form bean population): > >String formKey = Constants.FORM_KEY; >getJspCo

Re: Can RequestDispatcher be used in an Action class

2005-11-24 Thread Laurie Harper
Mon Cab wrote: Thanks Lorrie. I hadn't realized that one could return a null mapping. More than likely I will redirect to the referring url using a dispatcher. Does that sound like the best way to redirect to the referring URL/URI? This url would more than likely be another "blaBla.do" pag

Re: Can RequestDispatcher be used in an Action class

2005-11-24 Thread Mon Cab
Thanks Lorrie. I hadn't realized that one could return a null mapping. More than likely I will redirect to the referring url using a dispatcher. Does that sound like the best way to redirect to the referring URL/URI? This url would more than likely be another "blaBla.do" page. I am presumi

[struts-faces] html:form vs. s:form

2005-11-24 Thread Laurie Harper
I have code for populating form beans dynamically, as follows (I'll spare you the dirty details of why I'm doing this instead of relying on Struts' standard form bean population): String formKey = Constants.FORM_KEY; getJspContext().findAttribute(formKey); String formBeanName = formTag.ge

Re: struts-faces and Tiles

2005-11-24 Thread Laurie Harper
I'm not sure why it would be treated as an external context, but it seems both the RI and MyFaces are treating it as such. The only thing I can think of if that's the case would be to prefix the path with the application context, which would be painful if I wanted to deploy the app to a differe

Re: conditional validation

2005-11-24 Thread Laurie Harper
Raghu Kanchustambham wrote: Hi, I have the following situation: 1. educationDetails[0].degree.id is not chosen. (drop down return value = -1). OR 2. educationDetails[0].degree.id > 0 (the user chose one of the options from the drop down) which implies the marks should be atleast 35% and not mo

Re: Migrating a full blown app from Turbine to Struts (Is it really possible???)

2005-11-24 Thread Laurie Harper
R Raghavan wrote: Dear all, We have a full blown app written based on the core Velocity & Turbine model. I have a couple of questions? 1. is it really possible to migrate this app to a struts framework? if so what complications needs to be faced? 2. If not? Is it possible to start the app

Re: Can RequestDispatcher be used in an Action class

2005-11-24 Thread Laurie Harper
Mon Cab wrote: I am trying to build a login page which will direct the user to a different page depending on what action they were trying to perform before they logged on. I was thinking of using a passing a request parameter in the request for the login page which could be used by a request

conditional validation

2005-11-24 Thread Raghu Kanchustambham
Hi, I have the following situation: 1. educationDetails[0].degree.id is not chosen. (drop down return value = -1). OR 2. educationDetails[0].degree.id > 0 (the user chose one of the options from the drop down) which implies the marks should be atleast 35% and not more than 100% I tried the atta

Re: Problem with org.apache.struts.upload.FormFile

2005-11-24 Thread Laurie Harper
[EMAIL PROTECTED] wrote: Hello, I'm currently having a problem with the Struts org.apache.struts.upload.FormFile. In particular, I want to upgrade my J2EE-Struts application with the upload file functionality. In one of the existing jsp I put this line of code: ... ... and in the Form class

Re: Collection and logic:iterate

2005-11-24 Thread Laurie Harper
Per Jørgen Walstrøm wrote: hello, is the following true? 1) if I do a logic:iterate over a Collection when viewing the items in the Collection, I can use e.g. a HashSet 2) if I do a logic:iterate over a Collection and I want to be able to also update the items, I need to use an indexable Colle

Re: populating two form properties at the same time?

2005-11-24 Thread Laurie Harper
Kanuri, Chand wrote: hi all, i am having a form in which a bean is instatiated(bean has 2 properties "name" and "code"). i am using like this in the jsp:

Re: Problems with a bundle when using the Validator in Struts

2005-11-24 Thread Laurie Harper
starki78 wrote: Hi, perhaps someone faces the same problem: I would like to specify a bundle for example in this way: but it is never recognized only when the default message-ressources in struts-config without any key are defined Because of that I'would like to test validator 1.2 and I'

Re: Action executing twice

2005-11-24 Thread Laurie Harper
'#23.jpg' is an anchor -- a link to a point somewhere in the current document. So when the browser loads your page, it sees that you've asked for a background image and tries to load it from the URL you've specified, which in this case is the page itself, not what you intended. L. su mo wrote

Re: [shale] Design questions

2005-11-24 Thread Alexandre Poitras
I don't agree. In the OO world it is true but here using inheritance allow you to specify some default values that you can override (think about Tile). This is impossible in composition unless you have some substitution mechanism. On 11/24/05, Dakota Jack <[EMAIL PROTECTED]> wrote: > Composition a

Re: Inserting special character into MySQL 5 problem

2005-11-24 Thread Paul Benedict
OK. I think I know what is going on here. For some reason, everytime we email you the ampersand entity, it get translated into a literal & again and it looks like nothing has changed. I am going to use "@amp;" but you change @ to & in your code: jdbc:mysql://localhost/[EMAIL PROT

Can RequestDispatcher be used in an Action class

2005-11-24 Thread Mon Cab
I am trying to build a login page which will direct the user to a different page depending on what action they were trying to perform before they logged on. I was thinking of using a passing a request parameter in the request for the login page which could be used by a request dispatched in the

Re: [shale] Design questions

2005-11-24 Thread Dakota Jack
Composition and inhertitance are fundamentally incompatible. If they are being used together conceptually, this is a design nightmare. On 11/22/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > So how would you implement composition, with inheritance, using Clay > instead of > > Til

Re: [shale] Design questions

2005-11-24 Thread Dakota Jack
Composition and inheritance are fundamentally antithetical. If they are being mixed up here, this is a design sinkhole. On 11/22/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > > Hi > > > > So how would you implement composition, with inheritance, using Clay > instead of > > Tiles?. > I'm a bi

Re: [shale] Design questions

2005-11-24 Thread Dakota Jack
Composition and inheritance are two antithetical patterns. One of themost important things you can do is to favor composition over (instead of) inheritance. If they are being mixed up here, this is an architectural nightmare. On 11/22/05, Gary VanMatre <[EMAIL PROTECTED]> wrote: > > > > Hi > > >

Re: Problem with org.apache.struts.upload.FormFile

2005-11-24 Thread Borislav Sabev
[EMAIL PROTECTED] wrote: Hello, I'm currently having a problem with the Struts org.apache.struts.upload.FormFile. In particular, I want to upgrade my J2EE-Struts application with the upload file functionality. In one of the existing jsp I put this line of code: set it as borislav --

RE: [Maybe Spam] Re: populating form difficulty??

2005-11-24 Thread Kanuri, Chand
wendy my from has the item bean instantiated which has both name and code. i need the name in the form bean because my business logic code needs both code and name? can you please let me know the way to achieve this using hidden property(i mean going back to webConstants) for name for that particul

Re: populating form difficulty??

2005-11-24 Thread Wendy Smoak
On 11/24/05, Kanuri, Chand <[EMAIL PROTECTED]> wrote: > how can i go back to webconstants and get the name? > thats the main problem i got now. > > property="name"/>"> > as itemType giving me the last name value(in the collection) at the moment . My take on this is that you don't need the hidden

RE: populating form difficulty??

2005-11-24 Thread Kanuri, Chand
wendy, how can i go back to webconstants and get the name? thats the main problem i got now. "> as itemType giving me the last name value(in the collection) at the moment . regards and many thanks -Original Message- From: Wendy Smoak [mailto:[EMAIL PROTECTED] Sent: 24 November 2005 16

Re: populating form difficulty??

2005-11-24 Thread Wendy Smoak
On 11/24/05, Kanuri, Chand <[EMAIL PROTECTED]> wrote: > my dropdown is populating properly but i couln't populate "name" in my > itembean. > > > > > > > here the value "code" is populated to the field "code" in my item bean. > how can i populated "name". > how can i link the both as the

RE: populating form difficulty??

2005-11-24 Thread Kanuri, Chand
wendy, my dropdown is populating properly but i couln't populate "name" in my itembean. > > here the value "code" is populated to the field "code" in my item bean. how can i populated "name". how can i link the both as the "name" should be populated based on the selected "code". can

Re: populating form difficulty??

2005-11-24 Thread Wendy Smoak
On 11/24/05, Kanuri, Chand <[EMAIL PROTECTED]> wrote: > hi all, > i have a dropdown list in my struts web app, > i am having a form in which a bean is instatiated(bean has 2 properties > "name" and "code"). > > i am using like this in the jsp: > > >name="<%=WebConstants.getItemTypeListName

populating form difficulty??

2005-11-24 Thread Kanuri, Chand
hi all, i have a dropdown list in my struts web app, i am having a form in which a bean is instatiated(bean has 2 properties "name" and "code"). i am using like this in the jsp:

Help with a custom validation.xml generator

2005-11-24 Thread Jan
Hello, I find property validations in validation.xml file difficult to create. I've searched, but not found a tool or Eclipse plugin to maintain validation.xml so I wrote an HTML/javascript file to generate automatically theses validation. This file is not very clean and still a little buggy

Collection and logic:iterate

2005-11-24 Thread Per Jørgen Walstrøm
hello, is the following true? 1) if I do a logic:iterate over a Collection when viewing the items in the Collection, I can use e.g. a HashSet 2) if I do a logic:iterate over a Collection and I want to be able to also update the items, I need to use an indexable Collection, e.g. an ArrayList. Ha

RE: Tiles Again - Can anyone help?

2005-11-24 Thread Leahy, Kevin
Yes what you provided works fine, but it doesn't allow me to 'put' other components into the 'OuterLayout' as well as into the 'InnerLayout'. What I'm trying to do is to have one generic layout that all pages following and then sublayouts that are more geared to different parts of the site. For

Problem with org.apache.struts.upload.FormFile

2005-11-24 Thread gianfranco . bello
Hello, I'm currently having a problem with the Struts org.apache.struts.upload.FormFile. In particular, I want to upgrade my J2EE-Struts application with the upload file functionality. In one of the existing jsp I put this line of code: ... ... and in the Form class: ... import org.apache.s

populating two form properties at the same time?

2005-11-24 Thread Kanuri, Chand
hi all, i am having a form in which a bean is instatiated(bean has 2 properties "name" and "code"). i am using like this in the jsp:

Re: how to add additional parameters to a form url?

2005-11-24 Thread Nicolas De Loof
Use a hiden input : Hiden value can be a runtime expression (EL if you use the JSTL like struts taglib) You can also not set value in JSP but in the form-bean, and use struts mapping between form-bean ant HTML form. Nico. Henning Moll a écrit : Hi! I use the tag in my jsps. For exa

how to add additional parameters to a form url?

2005-11-24 Thread Henning Moll
Hi! I use the tag in my jsps. For example: This will be rendered to ... ... Now i need to have an parameter in that action, something like this: ... ... At least the value needs to be dynamic. I can't find a solution. Any suggestions? Kind regards Henning -- Telefonieren Sie schon od

RE: Inserting special character into MySQL 5 problem

2005-11-24 Thread hermod.opstvedt
Hi Turn off "View as html" in your e-mail reader and you will see that this was exactly what Emmanouil wrote. Hermod -Original Message- From: Stanislav [mailto:[EMAIL PROTECTED] Sent: Thursday, November 24, 2005 9:54 AM To: Struts Users Mailing List Subject: Re: Inserting special charac

Re: Inserting special character into MySQL 5 problem

2005-11-24 Thread Stanislav
> Either i did the mistake or my email client :-) > > the '&' character must become & (thats one of the five predefined > XML entities) so the URI (one more try now) must be > > jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8 > I still got the same thing, but i sur

Re: Inserting special character into MySQL 5 problem

2005-11-24 Thread Emmanouil Batsis
Stanislav wrote: Because you're doing XML, you need to escape XML entities. Change your value to this: jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8 I don't know where to put this :- If I put this line of code in data-source I get error

RE: How to stop struts logging in my web application

2005-11-24 Thread Ramaswamy, Palaniappan
Hi Nitin, For More information on Logging Read this simple tutorial http://logging.apache.org/log4j/docs/manual.html Have a Good Day!!! Best Regards Pal -Original Message- From: nitin mandolkar [mailto:[EMAIL PROTECTED] Sent: Thursday, November 24, 2005 1:42 PM To: Struts Users Maili

AW: Debugging Struts Application with Eclipse

2005-11-24 Thread R. Markham
Hallo Martin, I found the solution: Create a batch file with the name setenv.bat. In the Batch file set set JPDA_ADDRESS=8000 set JPDA_TRANSPORT=dt_socket Stores this file in /CATALINA_HOME/bin directory. Starts tomcat with Catalina jpda start So you don't need additional plugins in Eclipse.

Re: How to stop struts logging in my web application

2005-11-24 Thread nitin mandolkar
Hi I added this enrty in log4.properties files looks like it is helping me. log4j.logger.org.apache=INFO Can you please explain this one. What actullay it is doing. it is like we can set the log level by package level or class level also. On 11/23/05, Gary Feidt <[EMAIL PROTECTED]> wrote: > D

Re: Inserting special character into MySQL 5 problem

2005-11-24 Thread Stanislav
> >>Because you're doing XML, you need to escape XML entities. > >> > >>Change your value to this: > >> > >>jdbc:mysql://localhost/databaseName?useUnicode=true&characterEncoding=utf-8 > >> > >> > >> > >I don't know where to put this :- > > > >If I put this line of code in data-source I get