Re: Problem in validation?

2003-07-21 Thread Siva
This can be validated using the basic validators provided by the struts framework itself. just specify the validators you want (like required, minLength, maxLength etc) in the validatior-rules.xml and associate this with your form using the validation.xml file. Sriman Venkatasubbu , Tidel Park -

RE: FW: Migrating from Struts 1.0.2 to 1.1

2003-07-21 Thread Gopalakrishnan, Jyothikumar
Thanks for the effort. I am properly closing action-mappings tag in my struts-config.xml.(It is placed after closing all the action tags and before /struts-config tag) but mistakenly I missed out when I copied that from structs-config.xml to mail. Jyothikumar. -Original Message-

Struts modules does not work with Tiles, is there a tiles plugin problem?

2003-07-21 Thread Ionel D Condor
Hi ! I have two web applications developed with Struts that are linked together using the struts modules. The pages worked well but after we have passed to Tiles when we try to do the integration via the same procedure, i mean the struts modules, seems that the tiles plugin is never called as

RE: Struts modules does not work with Tiles, is there a tiles plugin problem?

2003-07-21 Thread Andrew Hill
This is just a guess - (I have no idea what Im talking about ,I just remember seeing this somewhere) - do you link straight to your JSPs? If so you wont hit the controller (tile request processor) so it can get confused when modules are involved. You might need to use a SwitchAction or something

Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
Hi. I've been using Struts for a long time, and I've been very happy with the framework. However, a recent discussion on Sun's Java forums has left me wondering if Struts is necessary. It seems that the servlet container itself provides an MVC framework very similar to that of Struts. All

Re: Struts 1.1 prepareStatement woes

2003-07-21 Thread Siva
Dear Joel, You are using some struts API in your class which was implementes (not abstract) in RC2 and become abstract in 1.1 final release. AbstractMethodError will happen only in these scenario. Siva Joel Hainley wrote: I have been trying to get this working for a few hours and am going to

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Navjot Singh
hi, No doubt, they are vaguely the same. After all STRUTS is based on container. BUT struts make your life EASY. How? By providing scalable and reusable code - base principle of frameworks. 1. Frameworks are the semi-complete applications. They are standardized answer to the very common set of

validator sequence execution

2003-07-21 Thread Nagendra Kumar O V S
hI, i have something like this my validation.xml field property="cwbPrice" depends="required,float,floatRange,mask" arg0 key="cwbPrice.displayname"/ arg1 name="floatRange" key="${var:min}" resource="false"/ arg2

html:form in a html:logic

2003-07-21 Thread bruno . morin
Hello, When I try to execute the following Jsp code logic:equal name=responseActionForm property=aBoolean value=true html:form method=post action=/action1.do /logic:equal logic:equal name=responseActionForm property=aBoolean value=false html:form method=post action=/action2.do

Problems in usage of html:select tag

2003-07-21 Thread Dirk Behrendt
Hello! I want, that the user can switch the language at runtime and he can chose the language without pressing the submit button. The selection of another item should replace the pressing of the submit button. Can anybody help me? html:form action=/language method = GET html:select

RE: html:form in a html:logic

2003-07-21 Thread Swaroop George
Hi, I think it's a pretty straight forward issue. You have given html:form inside inside the logic:equal tags. Now from your perspective the property 'aBoolean' cannot be other than 'true' or 'false'. But for struts there could be a value other than these two for which the html:form tag is

RE: html:form in a html:logic

2003-07-21 Thread Alex Shneyderman
This is not a well formed XML document tag1 tag2 /tag1 /tag2 I think is illegal in XML and since custom tags are xml you can not do it. So you will have to do something like: logic:equal name=responseActionForm property=aBoolean value=true html:form method=post action=/action1.do

RE: Problems in usage of html:select tag

2003-07-21 Thread Swaroop George
I had a similar problem. I used javascript to submit the form forcibly in the onchange event of the html:select Swaroop -Original Message- From: Dirk Behrendt [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:27 PM To: [EMAIL PROTECTED] Subject: Problems in usage of html:select

RE: Problems in usage of html:select tag

2003-07-21 Thread Alex Shneyderman
html:select property=language html:select property=language onchange=javascript: submit () There are a tutorial how to use the Stuts Tags??? Documentation is included as a war struts-documentation.war There are User guides and API docs for tags. If you do not want to run the war as an app you

RE: html:form in a html:logic

2003-07-21 Thread Swaroop George
Yes Alex's argument seems to be valid. I almost forgot about that.. Sorry.. -Original Message- From: Alex Shneyderman [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:27 PM To: 'Struts Users Mailing List' Subject: RE: html:form in a html:logic This is not a well formed XML

error..!

2003-07-21 Thread virupaksha hosamath
Dear All, I am new to struts framework, please any body can help me to come out from the following error... Bean Name : Dept.java Action Name:ListDepartmentsAction.java JSP name: DeptListing.jsp

XML To Database

2003-07-21 Thread Konstantina Stamopoulou
Hello everyone, I have the following problem. I need for my application to use a database which is in form of .xml. I want to convert this database to a real database such us ORACLE. I have a .dtd but I cannot find a way to do this transformation automatically. Can anyone help by giving me

RE: error..!

2003-07-21 Thread Altug B. Altintas
Hi , Be careful about case sensitivity issues instead of listdepartments write ListDepartmentsAction Regards Altug. -Original Message- From: virupaksha hosamath [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 2:12 PM To: [EMAIL PROTECTED] Subject: error..! Dear All, I am

Re: error..!

2003-07-21 Thread Buics
put your object in the request attribute ex. % request.setAttribute(listdepartments, listdepartments); % virupaksha hosamath wrote: Dear All, I am new to struts framework, please any body can help me to come out from the following error... Bean Name : Dept.java Action

RE: XML To Database

2003-07-21 Thread Navjot Singh
hi, this is off struts but anyway... It's simple. Most of the recent developments in databases now supports XML-DB table mapping. So, it can be transformed automatically. For more details, search for xmldb on otn.oracle.com I have not done this before but as you are working can i expect words

RE: error..!

2003-07-21 Thread Alex Shneyderman
There is really no code that shows that you actually attached the listdepartments bean to any of the contexts. Where do you do it? If you call your jsp directly then the error above is in deed correct. Before you are ready to display your content you have to set it up first. A good place to do it

Re: error..!

2003-07-21 Thread virupaksha hosamath
Dear Buics, Thanks for ur immediate response.. I tried by putting request.setAttribute(listdeprtments,listdepartments).. please have look on my ListDepartmentAction.java DeptListing.jsp -ListActionDeprtment.java- package app; import

RE: error..!

2003-07-21 Thread Swaroop George
Although u have listed down the errors its not clear what exactly you want to do.. I assume that u want to iterate over a collection of departments and print the name of the department. So here it goes logic:iterate property -Name of the property whose getter method returns the

RE: html:form in a html:logic

2003-07-21 Thread Mark Galbreath
Because the tag body is interpreted in its entirety, you have to end the html:form within the logic:equal, not outside it. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 6:48 AM To: [EMAIL PROTECTED] Subject: html:form in a

Réf. : RE: html:form in a html:logic

2003-07-21 Thread bruno . morin
thanks Alex. I should have thought about it sooner. Everything is allright now. bruno. Alex

Re: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
there's a lot of stuff it gives you out of the box. 1. solid code 2. validation framework 3. tile framework 4. auto-population framework 5. role based actions 6. xml configuration of all the links or actions of your application 7. best practices framework bundling (scaffolding) complete with

Re: Struts MVC framework similar to that of a servletcontainer?

2003-07-21 Thread rajendra . x . yadav
Sandeep, You mentioned role based actions in your list... which has caught my eye. Can you please elaborate on this ? Or point me to some documentation ? thanks -raj

RE: FW: Redirect to home page on logon

2003-07-21 Thread Tarek M. Nabil
Thanks Rick. I did something similar to that and it works. But, behind the scenes, still execution is forwarded to the error page. Of course the filter intercepts that and corrects things. But I still can't understand the error that occurs. I wrote that in a later post, don't know if you've

Re: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
http://jakarta.apache.org/struts/userGuide/building_controller.html 4.8 4.21 sandeep --- [EMAIL PROTECTED] wrote: Sandeep, You mentioned role based actions in your list... which has caught my eye. Can you please elaborate on this ? Or point me to some documentation ? thanks -raj

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
I understand the point of frameworks, I was just wondering if the one Struts aims to provide one that is already largely provided by the container. -Original Message- From: Navjot Singh [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 4:14 AM To: Struts Users Mailing List Subject:

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
there's a lot of stuff it gives you out of the box. 1. solid code so does the container i guess. 2. validation framework This is one of those changes that could be added by way of utility classes. Have that Filter that autopopulates, check for correct types like Struts. 3. tile framework You

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Navjot Singh
hi ranko, Assume you don't use struts. You start writing your first app for your requirements. Being an expert programmer, you have done with first one by wriitng lots of utility classes and base code. Now you start with second. You will realize that the second app can use most of the

clicking a hyperlink to populate a field

2003-07-21 Thread yan
Hi all, This is what I want to do: A user will enter part of a school name in one field on an ActionForm and part of a school address on in another field on the same form. The user then clicks on a find school button which opens a new page and lists a collection of matching candidate schools by

getting an ActionMapping class from within a custom tag

2003-07-21 Thread p
Hi, What: I would like to find the roles associated with an ActionMapping from within a custom tag, but I only have the action name so I guess I need to get an instance of the ActionMapping class. How can I do this? How do I get an ActionMapping class, given the name of the action? Why: I

Setting a cookie

2003-07-21 Thread bort
Hi all How do I go about setting a cookie via Struts? I've tried this within the perform() of an Action, and it doesn't seem to work: Cookie cookie = null; cookie = new Cookie(u, LoginForm.getUsername()); response.addCookie(cookie); cookie = new Cookie(p, LoginForm.getPassword());

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Paul McCulloch
This is possible. Put the original form into Session scope so that you don't lose the data the user enters prior to using the 'Find School' button. Each match could be a hyperlink to a UseSchoolAction, passing the ID of the school to use as a parameter. The UseSchoolAction could then set the

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Alex Shneyderman
Sure, this is what I do. An easy way: Use Javascript. When you pop up the window and user finds his/her school you need to put the following code in your link onclick event: Javascript: parent.document.form ['formname'].schoolField.value='Whatever the name of your school'; window.close ();

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Amit Kirdatt
The parent window would have to be refreshed though for the selected value to show up on the parent form On how to do this here is a link http://forums.devshed.com/archive/1/2002/11/2/46942 I am sure there are other resourcesgoogle it! -Original Message- From: Paul McCulloch

RE: getting an ActionMapping class from within a custom tag

2003-07-21 Thread Alex Shneyderman
-Original Message- From: p [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:46 AM To: [EMAIL PROTECTED] Subject: getting an ActionMapping class from within a custom tag Hi, What: I would like to find the roles associated with an ActionMapping from within a custom tag,

RE: clicking a hyperlink to populate a field

2003-07-21 Thread Paul McCulloch
I was going on the basis of only a single browser window being open. The one window shows the initial form, then the search, then back to the original form. -Original Message- From: Amit Kirdatt [mailto:[EMAIL PROTECTED] Sent: 21 July 2003 15:58 To: 'Struts Users Mailing List' Subject:

Using the validator for client side field modifications

2003-07-21 Thread Gregory F. March
Hi. I've been reading through some of the documentation and I haven't found exactly what I'm looking for. I'm sure (famous last words) that this is possible, but I need confirmation for a presentation I'm making. I have a form with text fields that I need to convert to upper case, verify they

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
I guess the main difference between what you mention and struts is that you can use this stuff right away for the app you want to build without modification. As long as you understand the concepts you can apply them. Similar to how you understand a servlet/filter spec. Now you have common

Re: paramId in html-el:link tag - Referenceing a Constant

2003-07-21 Thread Adam Levine
If you want to use a Constants class to use within JSTL syntax, here are the basic rules: 1: Constants has to be a true Bean. -- it must have a public constructor that takes no parameters (public Constants()) 2: The fields you want to access must also be true Bean fields: ie: private

Re: paramId in html-el:link tag - Referenceing a Constant

2003-07-21 Thread Adam Levine
Ignore my glaring typos: 2: The fields you want to access must also be true Bean fields: ie: public Static CONSTANT_KEY_1 = a_constant_key; // perhaps used by your code elsewhere public String getConstantKey() { return CONSTANT_KEY_1; } To: [EMAIL PROTECTED] Subject: Re: paramId in

Re: dificult problem, preventing population (repost)

2003-07-21 Thread Sandeep Takhar
I guess the issue is the same one you mentioned earlier which is that we have to know which action is preparing the token and which one is checking it. To do this generically means adding something to action-mapping, but since this is not an option currently then I don't think it should be since

How to get MessageResources in ValidatorForm

2003-07-21 Thread Sturzebecher Dirk (extern)
Hi, I need to get the MessageResources (i.e., application.properties) while I am in the validation of my ValidatorForm (i.e., validate(...)). The only way I have seen is to get it from the ActionServlet (servlet.getResources()), but that is deprecated... What is the new way? The doc says to get

RE: How to get MessageResources in ValidatorForm

2003-07-21 Thread Alex Shneyderman
Check out org.apache.struts.util package. There are bunch of ways there. -Original Message- From: Sturzebecher Dirk (extern) [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 12:06 PM To: ' ([EMAIL PROTECTED])' Subject: How to get MessageResources in ValidatorForm Hi, I

Re: [OT] Precompiling JSP with JSTL tag Libs

2003-07-21 Thread Pat Quinn
Cheers Craig you were spot on. From: Craig R. McClanahan [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Subject: Re: [OT] Precompiling JSP with JSTL tag Libs Date: Fri, 18 Jul 2003 09:14:45 -0700 (PDT) On Fri, 18 Jul

RE: How to get MessageResources in ValidatorForm

2003-07-21 Thread Sturzebecher Dirk (extern)
The only thing in there would be MessageResource r=MessageResourcesFactory.createFactory().createResources(String config); but what is config (besides a String)? and what local will be used? -Original Message- From: Alex Shneyderman [mailto:[EMAIL PROTECTED] Sent: Montag, 21. Juli

html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Christopher Bare
Hi, Does anyone know why the name and type attributes of the form tag are deprecated? It seems to me that a tight coupling between a jsp and it's associated ActionForm makes more sense than coupling the ActionForm with the Action, which is the consequence of the putting the name attribute in the

RE: html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Alex Shneyderman
What if you want to write an Action that can service a family of several different ActionForms?? You can do it. Just need to do it yourself (well sort of). Alex. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
ok. assume i go through the process below. now i have RANKo framework :) (which I did actually). Then I learn about Struts and say, hey this serves the same function as my framework, let me switch to that cause everybody uses that so its standardized in some way. Then, some time later you

Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Dirk Behrendt
Hello! I want to use some values from the properties file in my JSP page. ApplicationRessources.properties file: language.german = Deutsch language.english = Englisch Normally such values are used within a JSP page like this: bean:message key= language.german / But how I can use this

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
Yes Struts does definitely solve many problems and make it easier. But is seems that it solves a lot of problems that are already solved. I'm looking for the reasons why this would not be the case. Thanks for the help, ranko -Original Message- From: Sandeep Takhar [mailto:[EMAIL

RE: html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Suzette Daniel
I just wanted to add a little bit more to Alex's comment. 1.Create a form interface that represents your family of forms abstract class PersonForm extends ActionForm{ getFirstName(); getLastName(); getMiddleName(); } 2.Make your

Resetting inputparameters to a jsp-page?

2003-07-21 Thread Terje Hopsø
Hi, Is there an easy way to reset inputparameters? I use them like this input name=dato type=text class=small id=dato size=5 maxlength=5 value=c:out value='${param.dato}' / The problem is that a reset-button will not reset the fields when using jstl. I have a feeling this is not possible

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Adam Levine
for my $0.02. Using just pure servlet and base JSP, dealing with forms is not intuitive or clean. You either rely on too much code in a JSP, or too much reading and parsing at the start of your servlets. And, the development cycle increases as your changes increase. I find the Struts mode

RE: html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Brendan . Johnston
I don't think Daniel's idea will work. If the action form does not exist then struts wants to instantiate the form. Therefore struts needs to know the type. It might work if you have a session scope form already there. I think of actions as the most dependent class, i.e. nothing should depend

RE: html:form tag and coupling between ActionForm and Action

2003-07-21 Thread Alex Shneyderman
Actually I meant something like this: Create BaseAction with three methods { protected ActionForm createForm ( HttpServletRequest request, String actionName) throws Exception { ModuleConfig mc = RequestUtils.getRequestModuleConfig (request); ActionMapping am =

Suggestions

2003-07-21 Thread Saman Ghodsian
-Original Message- From: Saman Ghodsian [mailto:[EMAIL PROTECTED] Sent: Saturday, July 19, 2003 10:43 AM To: 'Struts Users Mailing List' Subject: Suggestions Hi everyone, I just completed phase one of my project which is the development and testing of my business model. some

Struts 1.1 Final - Validate Date field in struts-validator.war

2003-07-21 Thread Guillaume Cormier
I am not able to validate the date field when I am in French Canadian Mode. SomeOne have the same problem ? Details : When I click on French Canadian | Francais Canadien - On the JavaScript Type Form the integer field should fall in a range of 100-200 and the date field should have a format of

validate() method - and form in session scope

2003-07-21 Thread Khalid K.
Hello all, If an ActionForm bean's scope is session, does the validate() method get called only once ?? I have several actions that post to the same form, but it seems that the validate method is only called once when the form gets created Any help is appreciated. Khalid p.s. i am using

Problem with ActionErrors

2003-07-21 Thread Canning, Chuck
Hi, I am fairly new to struts and I am using struts1.1. I have some code which basically follows the LogonAction example that comes with the code. I use the message tag with id=error to view the errors. When the validator returns errors, they are displayed correctly. When my action saves the

Re: validate() method - and form in session scope (solved)

2003-07-21 Thread Khalid K.
humm..was a dumb mistake :) in struts-config i had validate set to false :) - Original Message - From: Khalid K. [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED] Sent: Monday, July 21, 2003 10:23 AM Subject: validate() method - and form in session scope Hello all,

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
I would not call it persnickety, although there is no immediate problem. My concern is that there is a lot of duplication of funtionality (if there is). If form handling equal to that of Struts was added to the Servlet specification (for example by providing a standard implementation of a Filter

RE: Problem with ActionErrors

2003-07-21 Thread Chen, Gin
Show us how your saving the errors and how your accessing them in the JSP. If you can dig up the logs with your exact errors that would be very helpful. -Tim -Original Message- From: Canning, Chuck [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 1:28 PM To: '[EMAIL PROTECTED]'

RE: Using the validator for client side field modifications

2003-07-21 Thread Yansheng Lin
You can call validateDate, etc anywhere in your form, provide that you loaded then correctly. Something like onblur=validateInteger() will validate whether they are integers: I don't think they implemented validateDecimals yet, so Hex and Oct would be considered as valid as well.

A column consisting of html:select widgets

2003-07-21 Thread atta-ur rehman
Dear All, I'm using struts 1.0.2. I have a requirement where i need to show a column consisting of dropdown lists. Every row of the table for the column shows a dropdown with the same list of options. I've used String[] getCategory() and setCategory(String[]) getter/setter in thr ActionForm. On

RE: Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Yansheng Lin
1. html:options expects a Collection, I think. 2. Try to change to ' for value='bean:.. Key=.. /' -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: July 21, 2003 10:38 AM To: [EMAIL PROTECTED] Subject: Use ApplicationRessources.properties values in

logic:iterate tag fails on large dataset, succeeds on smallone?

2003-07-21 Thread Aaron Humphrey
I am trying to do a very simple data-display web application using Struts, with MySQL on the back end. Basically, I take a ResultSet and its ResultSetMetaData and put it into some beans. I have a TableDataView object which contains a FieldList and a RecordCollection. FieldList has a

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread David Graham
--- Ranko Bijelonic [EMAIL PROTECTED] wrote: I would not call it persnickety, although there is no immediate problem. My concern is that there is a lot of duplication of funtionality (if there is). If form handling equal to that of Struts was added to the Servlet specification (for example

RE: A column consisting of html:select widgets

2003-07-21 Thread Amit Kirdatt
Atta, In your JSP page do the following html:select property=item html:options collection=myOptions property=value labelProperty=label/ /html:select Where the collection myOptions is a List of beans. Those beans have two fields value and label Hope that helps! -Original Message-

Re: logic:iterate tag fails on large dataset, succeeds on small one?

2003-07-21 Thread David Graham
I suggest you use the JSTL's c:forEach tag instead of the Struts iterate tag. I have dynamic query pages that use forEach and display n number of fields with no problem. As an added bonus you'll get improved page rendering time because containers can optimize the performance of JSTL tags. David

Ant task to merge Struts config files

2003-07-21 Thread Vijay Balakrishnan
Hi, Is there an Ant task to merge the Struts config files for various sub-modules into 1 struts-config.xml file. Thanks, Vijay - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Using the validator for client side field modifications

2003-07-21 Thread Gregory F. March
On Jul 21, 2003, Yansheng Lin [EMAIL PROTECTED] wrote: |You can call validateDate, etc anywhere in your form, provide that you loaded |then correctly. | |Something like onblur=validateInteger() will validate whether they are |integers: Yansheng, So, what you are saying is that struts

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
I'm guessing you already have code to solve these problems... Another advantage is that you can hire a struts coder/expert... There is miles of readable framework code that is easily extendable and built (from my point of view) by coders better than myself. Something else to keep in mind.

Re: A column consisting of html:select widgets

2003-07-21 Thread atta-ur rehman
Thanks Amit. And that's exactly what i'm doing! Still i fails to show the correct option for the dropdowns. Are you sure its available in struts 1.0? moreover, is my approach to define String[] getter/setter is correct? ATTA - Original Message - From: Amit Kirdatt [EMAIL PROTECTED]

Re: Use ApplicationRessources.properties values in html:options value=.... tag

2003-07-21 Thread Sandeep Takhar
this doesn't work because of the xml specification (cannot embed xml like this) Have to use el or scriptlet instead. sandeep --- Dirk Behrendt [EMAIL PROTECTED] wrote: Hello! I want to use some values from the properties file in my JSP page. ApplicationRessources.properties file:

RE: A column consisting of html:select widgets

2003-07-21 Thread Amit Kirdatt
Atta, Can you post the relevant code both JSP and Java objects for us to look at and point you in the right direction? Thanks, Amit -Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 1:27 PM To: Struts Users Mailing List Subject: Re: A column

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
The fact is that the Servlet spec does not provide equivalent features to Struts. Struts wouldn't exist if the Servlet spec already had everything web developers needed. Ok, so Struts started with providing ActionServlet which forwards requests to handlers (Actions) based on its

Putting to HashMap within ActionForm

2003-07-21 Thread Henrik Lindqvist
A ActionForm can get values from a HashMap using html:text property=myHashMap(myKey)/, but does'nt put them back when the form is posted? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Sandeep Takhar
If you've built it already, then you've defeated part of the purpose of adopting it, but not all. I don't understand when you say you want to re-write the servlet spec. Maybe you meant, why isn't it in the servlet spec? Java Server Faces may very well replace (now I'm in trouble...) struts in

RE: Using the validator for client side field modifications

2003-07-21 Thread Yansheng Lin
Yes. Struts Validator comes with only the basic type validation. You can extend it both on the server side and client side(in your case). -Original Message- From: Gregory F. March [mailto:[EMAIL PROTECTED] Sent: July 21, 2003 12:07 PM To: Struts Users Mailing List Subject: Re: Using

Re: Accessing Page Scope Var in Scriptlet

2003-07-21 Thread Sandeep Takhar
use item sandeep --- Hunter Hillegas [EMAIL PROTECTED] wrote: When I use nested:iterate as such: nested:iterate id=item property=lineItems indexId=lineItemCount I get a page scope variable called 'lineItemCount'. I have a need to use that variable in a scriptlet (I know, I know...).

Re: A column consisting of html:select widgets

2003-07-21 Thread atta-ur rehman
okay, here goes my JSP code: REPATE FOR ALL THE BLOCKS html:select property=blockDataSource style=WIDTH: 110px; font-size: 8pt onchange=blockDataSourceChanged(); html:options collection=blockDataSourceList property=value labelProperty=label/ /html:select END REPEAT The blockDataSourceList

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread David Graham
--- Ranko Bijelonic [EMAIL PROTECTED] wrote: The fact is that the Servlet spec does not provide equivalent features to Struts. Struts wouldn't exist if the Servlet spec already had everything web developers needed. Ok, so Struts started with providing ActionServlet which forwards

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
yes, Java Server Faces provides a different programing model from that of Struts. Its also an MVC framework, but is more Swing like (or ASP.NET like :)). This kind of programing might win over a lots of developers. But in map a request to a handler a dispatch the request to it point of view, we

Struts article at Apple developer site

2003-07-21 Thread Chappell, Simon P
Just noticed this article at the developer section of apple.com. I haven't read it in detail yet, but skimming it, seemed to show that it's a nice introductory article. Perhaps, even suitable for non-apple developers. http://developer.apple.com/internet/java/struts.html Simon

Building Dynamic Tables with DyanValidatorForms

2003-07-21 Thread Natalie Rassmann
Can anyone help? I have been trying to build a dynamic table using a DynaValidatorForm as my form. I am having trouble. I have javascript code to dyanmically add rows to the table but when I hit the submit button, the form does not contain these new rows. I don't know how to get these new

RE: A column consisting of html:select widgets

2003-07-21 Thread Vijay Balakrishnan
Have you tried using a separate ViewAction for the display and a SubmitAction for the submittal.The ViewAction could populate the data from the DB and set multiple selected values depending on the values in the DB. Vijay -Original Message- From: atta-ur rehman [mailto:[EMAIL PROTECTED]

bean:write and the format attribute

2003-07-21 Thread Paananen, Tero
I'm having a little bit of trouble using the format attribute in bean:write. I'm trying to use the FormatStyles as documented in java.text.MessageFormat. bean:write ... format={0, number, currency}/ and bean:write ... format={0, date, long}/ But these are not working. Is this not supported,

Question on how to remove a detail row?

2003-07-21 Thread Norr, Peter
Hi, I have the following code.. It prints out a remove button on each row.. How do I determine on which row the remove button was pressed? c:forEach items=${OptimizerInputFormBean.constraints} var=constraint varStatus=iter tr tdc:out

RE: Struts MVC framework similar to that of a servlet container?

2003-07-21 Thread Ranko Bijelonic
You could certainly code each Action as a Servlet but it would take more work. I'm not sure exactely how it would take more work (provided there were Struts like utils writen one time). You've mentioned changing the Servlet spec several times and seem to be under the impression that it's easy

RE: Question on how to remove a detail row?

2003-07-21 Thread Mike Jasnowski
You could generate an onclick eventhandler for each button, parameterized with the record ID, or some other data. Then when the button is clicked, it can set a parameter (or hidden form field) that identifies the row. -Original Message- From: Norr, Peter [mailto:[EMAIL PROTECTED] Sent:

Re: A column consisting of html:select widgets

2003-07-21 Thread atta-ur rehman
Thanks Vijay. That's is an excellent idea to separate the view and submittal logic. But i'm not yet sure if struts can automatically select the appropriate selection in a dropdown based on the arry of strings from the form object. ATTA - Original Message - From: Vijay Balakrishnan

Error Using select tag To Create Drop-Down Menu

2003-07-21 Thread Caroline Jen
I am doing testings step by step. I simply want to add a drop-down menu feature to something that works OKay. I am a newbie to struts. I do not know where to look for my mistakes when I encounter problems. Something is wrong in my .jsp page. This .jsp page had worked fine before

RE: A column consisting of html:select widgets

2003-07-21 Thread Amit Kirdatt
Okay I see what you are trying to do. Here is a suggestion from the top of my head: Create a new action class which uses the same form as the Action in question (populateDataSourceAction or something...). Use this class to load the data from the DB into the blockDataSource field in the form. Put

RE: Question on how to remove a detail row?

2003-07-21 Thread Norr, Peter
I prefer non-javascript if possible? -Original Message- From: Mike Jasnowski [mailto:[EMAIL PROTECTED] Sent: Monday, July 21, 2003 3:12 PM To: Struts Users Mailing List Subject: RE: Question on how to remove a detail row? You could generate an onclick eventhandler for each button,

RE: Question on how to remove a detail row?

2003-07-21 Thread Adam Levine
have each row be its own separate form. add a hidden field that indicates which row it's on. read that field on the submit. From: Norr, Peter [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Subject: RE: Question on how to

RE: Question on how to remove a detail row?

2003-07-21 Thread Adam Levine
or, for those who aren't fans of having multiple forms. Add checkbox/radio button (Depending on your business logic) to each row, obviously indexed to the row #, and then place one button below the rows labeled delete/removed selected item(s) From: Norr, Peter [EMAIL PROTECTED] Reply-To:

  1   2   >