Re: Tiles

2002-07-23 Thread Kevin Viet
Le mar 23/07/2002 à 08:32, Adarsh a écrit : Hi all, Can any body guide me on what tiles is all about...where can it be used?and how can it be used with struts Adarsh Gupta Software Engineer Patni Computer Systems Limited SDF-7, 4th Floor, Unit 17, SEEPZ Tel : (022)-8290479/8291454 Extn :

Stylesheets

2002-07-23 Thread Adarsh
Hi all, How to apply external css file to a form elements???In html like we do class=txtfield what is the corresponding thing in struts?? Adarsh Gupta Software Engineer Patni Computer Systems Limited SDF-7, 4th Floor, Unit 17, SEEPZ Tel : (022)-8290479/8291454 Extn : 5741 Mobile : 9820224341

RE: Stylesheets

2002-07-23 Thread René Eigenheer
did you read the fine manual ;- try it with: styleClass=txtfield -Original Message- From: Adarsh [mailto:[EMAIL PROTECTED]] Sent: Dienstag, 23. Juli 2002 10:06 To: Struts Users Mailing List Subject: Stylesheets Hi all, How to apply external css file to a form

RE: Tiles

2002-07-23 Thread Lister, Tom (ANTS)
I hava an application that requires a master/detail type maintenance form. e.g. order/order items. Does anyone have any experience of modelling this in struts. Ideally i will have the form contain a collection of order items (either directly or inside a 'value object' nested bean) Is it possible

Master/Detail data - editing multiple entities in a grid

2002-07-23 Thread Lister, Tom (ANTS)
I hava an application that requires a master/detail type maintenance form. e.g. order/order items. Does anyone have any experience of modelling this in struts. Ideally i will have the form contain a collection of order items (either directly or inside a 'value object' nested bean) Is it

RE: Tiles

2002-07-23 Thread Todd Pierce
http://www.lifl.fr/~dumoulin/tiles/ -Original Message- From: Adarsh [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 23 July 2002 4:33 PM To: Struts Users Mailing List Subject: Tiles Hi all, Can any body guide me on what tiles is all about...where can it be used?and how can it be used with

org.apache.struts.taglib.html.FormTag.lookup Exception

2002-07-23 Thread Christophe Andreoli
Hello ! I am getting this exception when I type in my brower /start.do. Might you help me ? Here my code: struts_config.xml: ?xml version=1.0 encoding=ISO-8859-1 ? !DOCTYPE struts-config PUBLIC -//Apache Software Foundation//DTD Struts Configuration 1.0//EN

Latency Problem

2002-07-23 Thread Sudhir
Hi, I feel Struts has got latency problem. Recently i have started using struts. Before that the system is very fast. But now the system became very slow for the first time. Later it is ok. Can anybody tell me how can I fix this latency. Thanks and Best Regards, -- To unsubscribe,

Setting indexed properties - ArrayIndexOutOfBounds

2002-07-23 Thread Colin Wilson-Salt
Hi everyone. I've looked through the archives for this and the commons list, without finding an answer to my problems with receiving indexed properties from a form. I've tried with both 1.1 beta and a nightly build from a couple of nights ago. I'm not sure if my problem is with Struts, Commons /

Re: Strutsproblem: Sending files from Server to client!

2002-07-23 Thread Patrick Refondini
I am not clear about your problem but the following code sample works fine. Maybe the only important difference is that the perform method returns null ? public ActionForward perform(ActionMapping mapping, ActionForm form,

Re: Not necessary to specify Tiles plugin in struts-config.xml?

2002-07-23 Thread Cedric Dumoulin
Hi, The prefer way to enable Tiles in Struts1.1 is now to specify the Tiles plugin in each struts-config. If you do that, you don't need to specify the TilesRequestProcessor and the ActionComponentServlet. For backward compatibility, the old methods to initialize Tiles still working

Re: Including parameters in Forward

2002-07-23 Thread Cedric Dumoulin
Try something like this: forward name=success path=/Admin/main.jsp?param1=aValueparam2=aValue/ Cedric Christian Pich wrote: How do specify additional parameters in the forwarding, e.g. for one of my actions I have forward name=success path=/Admin/main.jsp/ but I would like to

Re: How to bind a request parameter to a tile definition ?

2002-07-23 Thread Cedric Dumoulin
You can't do it directly. The preferred way to pass parameters to a Tiles is to pass it some attributes. You can specify attributes values in the Tiles definition. Cedric Slava_L wrote: I often use tile's definition name as a forward in my action mappings. Since this is not an

Struts doesn' t find my class ?

2002-07-23 Thread Christophe Andreoli
Hi ! When I am going to /start, struts according to he log file below can not find my class GetProteinsAction ALTHOUGH the class file is present under WEB_INF/classes/com/ihg/mitop/gui . Do you have an idea why ? thank you Log file: processing a GET for /start 2002-07-23 10:53:41

html:error iterator

2002-07-23 Thread mhanel
Is there a possibility to iterate over an array of errormessages in struts1.0? I've an errorpage which displays all errors in an table. How can I write each error in a cell without having the TD and TR elements in my resources? Thanks Matthias

Re: Form bean properties data types and conversions

2002-07-23 Thread JensStutte
So the answer is, that without changing struts there is no way to achieve this in automatic, i assume. Maybe could be an interesting enhancement for future releases? Otherwise the automatism on type conversions is really useless outside U.S. Regards, Jens Stutte

Re: Tiles + ActionForm.validation - problem !

2002-07-23 Thread Cedric Dumoulin
Checking the code, it appears that the error comes from a Struts code part (copied as is to ComponentActionServlet). The exact same code exist at the same place in the Struts servlet. You can encountered such kind of java.lang.IllegalAccessError when you try to run some classes against a

Custom tag for If condition

2002-07-23 Thread Harinath
Hi , Do we have any equivalent custom tag for IF.statement -Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

examples

2002-07-23 Thread Michael Luy
are there any good examples for forms with tabular data, sort of like an invoice containing a list of items...how do you do this using struts? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]

problem with ActionForm object

2002-07-23 Thread Thomas Praschl
Hi, I have a simple form on my jsp page. In my ActionForm class I validate whether a checkbox was clicked or not. If the checkbox was not clicked an error is returned and displayed on the same jsp-page. This works fine but: Some (not all!) of the properties which were given by the user are not

Re: problem with ActionForm object

2002-07-23 Thread Jean-Baptiste Onofré
Your ActionForm contains all accessors to the fields of html form ? For exemple, if you have a text field name things, you must have a attributes String things in your ActionForm. Do you use the tag html:form or directly the html form tag ? -- Jean-Baptiste Onofré (Nanthrax) Membre fondateur

Re: problem with ActionForm object

2002-07-23 Thread Thomas Praschl
This is the select box tag on the jsp page: html:select property=ewrStaaten html:options property=ewrStaatenValue labelProperty=ewrStaatenLabel/ /html:select These are the getter and setter methods in the ActionForm class: public String getEwrStaaten() { return (ewrStaaten); }

Re: Code generation

2002-07-23 Thread Shane Witbeck
I have been thinking about building such a tool. Based on the schema the tool would start out by creating all the beans (ActionForms), actions, and basic views such as view all objects and add/edit forms. Once this is done, then customization based on the generated actions and views. I have

RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-23 Thread Chappell, Simon P
Actually, Jesus said much stronger words than that when addressing the Pharasees, so Would someone mind removing this idiot? doesn't shatter my fragile sensibilities. (In my spare time I'm the reserve Preacher at the church I attend. :-) Simon

Re: Code generation

2002-07-23 Thread James Holmes
Adalon from Synthis is an excellent tool for generating code from a business requirements perspective. http://www.synthis.com/ Not exactly what you're looking for, but thought I'd throw it out there. -james [EMAIL PROTECTED] http://www.jamesholmes.com/struts/ --- Shane Witbeck [EMAIL

RE: Out of Office Response: RE: Can I read internationalized messages in Action classes ?

2002-07-23 Thread Galbreath, Mark
I made him say it. -Original Message- From: Barry Glasco [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 8:36 PM Kind of strong language for a self proclaimed evangelist... what would jesus Say? -- Original Message -- From: James Mitchell

Re: Custom tag for If condition

2002-07-23 Thread ajTreece
It is the Struts taglib logic Later... Harinath wrote: Hi , Do we have any equivalent custom tag for IF.statement -Hari -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail:

Design Advice: Using DispatchAction

2002-07-23 Thread Robert Taylor
I'll try to keep this as short as possible. Background: I have various groupings of common events in my web app where I would like each grouping of common events handled by a single Action class. The DispatchAction class allows me to do this. I want to do this because in my scenario, the Action

RE: Custom tag for If condition

2002-07-23 Thread Galbreath, Mark
Take a look at most of the logic tags: http://jakarta.apache.org/struts/struts-logic.html Mark -Original Message- From: Harinath [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 6:13 AM To: struts Subject: Custom tag for If condition Hi , Do we have any equivalent custom tag

RE: examples

2002-07-23 Thread Galbreath, Mark
Check out the logic:iterate tag: http://jakarta.apache.org/struts/struts-logic.html Mark -Original Message- From: Michael Luy [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 6:37 AM are there any good examples for forms with tabular data, sort of like an invoice containing a

Re: Code generation

2002-07-23 Thread Robert Williams
I have done some code generation to support the work I am doing. I have found that using XSLT and XML files is a good way to go. It is very flexible and easily expandable. Also, I plan to eventually map the XML structure to/from Java objects (which is easily done using Digester or Castor or

RE: Code generation

2002-07-23 Thread Galbreath, Mark
Wow. Now if we could only do that with beer! -Original Message- From: Robert Williams [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 9:59 AM Ultimately, you end up with an application that builds itself. bob -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

RE: Code generation

2002-07-23 Thread andre . powroznik
I feel I rebuild myself every time I really drink beer or I drink real beer. Belgian one, of course (that's joke). -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: 23 July 2002 16:00 To: 'Struts Users Mailing List' Subject: RE: Code generation Wow. Now if we

RE: Design Advice: Using DispatchAction

2002-07-23 Thread Hoang, Hai
You don't need to use the DispatchAction for this. Call the isLoggedIn method whenever you need it. And make sure to have the actionName property on your form. if (!isLoggedIn(request)) { return new ActionForward(Constants.GLOBAL_FORWARD_LOGON, true); } ApplicationForm

RE: Custom tag for If condition

2002-07-23 Thread Arik Levin ( Tikal )
Title: RE: Custom tag for If condition I have some code that I haven't tried, you can use it. -Original Message- From: Galbreath, Mark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 4:50 PM To: 'Struts Users Mailing List' Subject: RE: Custom tag for If condition Take a

Re: Code generation

2002-07-23 Thread Robert Williams
I think that have tried that and they ended up with Red Stripe! I hope my venture is successful. :-) bob - Original Message - From: Galbreath, Mark [EMAIL PROTECTED] To: 'Struts Users Mailing List' [EMAIL PROTECTED] Sent: Tuesday, July 23, 2002 8:59 AM Subject: RE: Code generation

struts book

2002-07-23 Thread Jose Casas
Is chapter 8 of the O'Reilly struts book not going to be up for review? Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL PROTECTED] ** Notice: The area code for the Wal-Mart Bentonville General Office in the US

RE: Design Advice: Using DispatchAction

2002-07-23 Thread Robert Taylor
Hai, thanks for your response. 1. The login example was just that, an example. My problem extends beyond the simple example. 2. DispatchAction is used to solve the spagetti type logic exemplified by your example below. 3. This does not solve my problem of needing to apply certain constraints

question about lists...

2002-07-23 Thread Emerson Cargnin - SICREDI Serviços
I'd like to know if having a bean (that holds a collection to populate a options list), I can hold this collection in form bean and still using options struts tag. -- Emerson Cargnin - MSA SICREDI - Tel : 3358-4860 -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional

sort of off topic validation in console window

2002-07-23 Thread Rick Reumann
What do I need to configure, add or whatever to keep Tomcat from displaying all my validation rules information in the console window when it loads up? It really slows things down. Thanks so much -- Rick mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For

Re: Wrapping Collections in LazyList to auto-populate form on Submit

2002-07-23 Thread Arron Bates
Hemant, Sorry about the issues you're having, but at face value it seems that you're almost trying too hard. Without seeing the rest of your code, it's hard to see what your generateWrappedCollection() method is trying to acheive, so I'll try to answer with code... With the collection

RE: question about lists...

2002-07-23 Thread Galbreath, Mark
Yes. Try it. Mark -Original Message- From: Emerson Cargnin - SICREDI Serviços [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 10:23 AM I'd like to know if having a bean (that holds a collection to populate a options list), I can hold this collection in form bean and still

RE: sort of off topic validation in console window

2002-07-23 Thread Robert Taylor
Just a guess Rick, but I would imagine that Struts Validator uses Digester to read the rules from the appropriate xml file and convert them into in-memory objects. Have you set Digester logging to -1. I could be way off base though. robert -Original Message- From: Rick Reumann

Re[2]: sort of off topic validation in console window

2002-07-23 Thread Rick Reumann
On Tuesday, July 23, 2002, 10:36:14 AM, Robert wrote: RT Just a guess Rick, but I would imagine that Struts Validator uses RT Digester to read the rules from the appropriate xml file and RT convert them into in-memory objects. Have you set Digester logging RT to -1. I could be way off base

Re: question about lists...

2002-07-23 Thread Emerson Cargnin - SICREDI Serviços
ok, but in the struts doc, it says : * The collection attribute is interpreted as the name of a JSP bean, in some scope, that itself represents a collection of individual beans, one per option value to be rendered. how do I do to reference the collection inside the formBean from inside

Re: struts book

2002-07-23 Thread Chuck Cavaness
It's not going to be available for review, but it will be in the book. I'm still rewriting this very moment :) chuck At 09:14 AM 7/23/2002 -0500, you wrote: Is chapter 8 of the O'Reilly struts book not going to be up for review? Jose Casas E-Commerce Applications (501) 277-3112 [EMAIL

RE: Latency Problem

2002-07-23 Thread Kulp, Arian
If you aren't accustomed to using JSP in your application, the initial latency (that you say occurs the first time then is OK) would occur as the web container compiles the JSP into a servlet. If you were using JSP's in your application even prior to Struts, then it may just be a need to set the

Web Browsers and Browser Indepedent HTML

2002-07-23 Thread CB Thomas
I am considering using Struts for a project and I need to know what browsers will Struts work on (for example, IE version 5, Netscape version 6, etc) and if the HTML tags used in the JSP pages are browser-independent? _ Chat with

Re: struts console bug?

2002-07-23 Thread Vincent Stoessel
I just wanted to say that this bug went away after I installed struts console 2.0. Which works great so far. Thanks. James Holmes wrote: Vincent, We can take this offline and I'll help you debug what's going on and see if there's a bug in Struts Console. What version of Struts Console

Re: Web Browsers and Browser Indepedent HTML

2002-07-23 Thread ajTreece
Any browser should be fine. Struts is just the framework that is used to while building your servlets, JSP's, etc. The app I'm developing runs equally as well on either Internet Exploder, Netscape v6 and v4.x. Later... CB Thomas wrote: I am considering using Struts for a project and I

RE: JSP Completion for Struts tags using NetBeans?

2002-07-23 Thread Mark Nichols
WebSphere Studio Application Developer 4.x does this very nicely. /mark -Original Message- From: Scott Linford [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 5:09 PM To: Struts Users Mailing List Subject: RE: JSP Completion for Struts tags using NetBeans? That works for

RE: question about lists...

2002-07-23 Thread Galbreath, Mark
use bean:define tag to place the collection in page scope. -Original Message- From: Emerson Cargnin - SICREDI Serviços [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 10:51 AM To: Struts Users Mailing List Subject: Re: question about lists... ok, but in the struts doc, it says

RE: Web Browsers and Browser Indepedent HTML

2002-07-23 Thread Robert Taylor
Struts is a server side framework so it will work with any browser. The Struts html: .../ tags generate standard HTML code. I'm not sure if it is 3.2 or 4.0. robert -Original Message- From: CB Thomas [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 11:10 AM To: [EMAIL

Re: Web Browsers and Browser Indepedent HTML

2002-07-23 Thread Craig R. McClanahan
On Tue, 23 Jul 2002, CB Thomas wrote: Date: Tue, 23 Jul 2002 10:10:20 -0500 From: CB Thomas [EMAIL PROTECTED] Reply-To: Struts Users Mailing List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Web Browsers and Browser Indepedent HTML I am considering using Struts for a project and I

Re: Design Advice: Using DispatchAction

2002-07-23 Thread @Basebeans.com
Subject: Re: Design Advice: Using DispatchAction From: Vic C. [EMAIL PROTECTED] === Robert Taylor wrote: The problem I am running into is that pre-processing requirements vary within the common event groupings. For example, let's say eventGroupA handles events 1, 2, 3, and 4. Events 3 and 4

Re: how can I invoke a Tile Definition directly from the browser

2002-07-23 Thread Cedric Dumoulin
There was a bug preventing the 'DefinitionDispatcherAction' to work in 1.1b1. It will be in 1.1b2. If you want to use it in 1.1b1, get 1.1b1 sources, replace class 'DefinitionDispatcherAction' with the latest version and recompile. The simplest solution is to use a nightly build ;-)

Re: Code generation

2002-07-23 Thread Eddie Bush
It might be rather difficult to post a beer on the mailing list. I suppose they could send screen-shots though :-P (Is it Friday already?!? LOL) Jano Fetyko wrote: Will you post to this list when you have some version ready to look at ? Or do you have it on the web somewhere ? J

XHTML compliant tags

2002-07-23 Thread CB Thomas
Is there a way to get Struts to produce XHTML compliant tags? _ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,

RE: Design Advice: Using DispatchAction

2002-07-23 Thread Robert Taylor
Vic, thanks for the response. I hate to be a broken record as well, but my problem does not just deal with authentication. It is more general than that. I used the authentication example because it is simple and common. Maybe I should have used another example because you are the second

RE: Beer generation

2002-07-23 Thread James Mitchell
I'd like to see self-generating beer. I wonder if being refrigerated would slow the processh. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Eddie Bush

RE: XHTML compliant tags

2002-07-23 Thread James Mitchell
Yes. There were a few posts on this last week. Try to search the mail-archive for XHTML. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: CB Thomas [mailto:[EMAIL

html:link and new window properties

2002-07-23 Thread @Basebeans.com
Subject: html:link and new window properties From: deco [mail][EMAIL PROTECTED] === Hi... Here's my problem. I'm opening a link in a new window, passing a parameter like this: html:link paramId=missionCode paramName=mission paramProperty=missionCode page=/do/admin/viewMissionArchive

problem with HttpSession in Resin-2.1.2

2002-07-23 Thread David Mulligan
Hey All, Sorry, this isn't really a struts problem (but I'm using struts in my application :-) The problem is with HttpSession and resin-2.1.2 Everthing works just fine on Tomcat 4.0.3 and Websphere. But for some strange reason the HttpSession I create in my LogonAction loses an attribute

How to write an ActionForm property as just plain text

2002-07-23 Thread David Wood
Suppose you wanted to have an entry screen, then a confirmation screen. The entry screen could have one field (email address) for example. In my jsp, I'll use html:text property=email to accomplish this. The user enters an email address and submits the form. I want the Action to then forward

Re: How to write an ActionForm property as just plain text

2002-07-23 Thread ajTreece
Try using bean:write name={your form name} property=email/ Later, ajTreece David Wood wrote: Suppose you wanted to have an entry screen, then a confirmation screen. The entry screen could have one field (email address) for example. In my jsp, I'll use html:text property=email to

RE: How to write an ActionForm property as just plain text

2002-07-23 Thread James Mitchell
Take a look at the html:hidden tag, there's an attribute to specify having the text written. Example: html:hidden property=someField write=true/ James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta

RE: How to write an ActionForm property as just plain text

2002-07-23 Thread James Mitchell
If you need to retain the value(e.g. have struts put it back into your formbean), use hidden. Otherwise, use the below example. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original

Is it possible to get message as a String from ActionMessage?

2002-07-23 Thread @Basebeans.com
Subject: Is it possible to get message as a String from ActionMessage? From: Matt Raible [EMAIL PROTECTED] === I want to do something like the following: // construct the subject of the e-mail String subject = new ActionMessage(courseCatalog.email.subject).toString();

nested:iterate nested colletions

2002-07-23 Thread James Krygowski
Hi - I'm trying to work out the usage of the nested:iterate tag. I have three beans, one called report which contains an array list of years. The year bean contains an array list of weeks. each bean has a get method that returns an object array. This is my markup: nested:nest

RE: How to write an ActionForm property as just plain text

2002-07-23 Thread Kamholz, Keith (corp-staff) USX
Why not just use bean:write? If you're just writing it out, that's all you need. http://jakarta.apache.org/struts/userGuide/struts-bean.html ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: James Mitchell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 23, 2002 1:12

Re: How to write an ActionForm property as just plain text

2002-07-23 Thread David Wood
I get: Cannot find bean XX in scope null I know I'm missing something early on to use this correctly. Any idea what? -- dave ajTreece wrote: Try using bean:write name={your form name} property=email/ Later, ajTreece David Wood wrote: Suppose you wanted to have an entry screen, then

Re: How to write an ActionForm property as just plain text

2002-07-23 Thread David Wood
html:hidden seems to only support name, property, and value attributes Are you sure that hidden has a setting to write out as text? -- dave James Mitchell wrote: Take a look at the html:hidden tag, there's an attribute to specify having the text written. Example: html:hidden

RE: Is it possible to get message as a String from ActionMessage?

2002-07-23 Thread James Mitchell
Have you looked at the struts-example.war? James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Struts Newsgroup [mailto:@[EMAIL PROTECTED]] Sent: Tuesday, July 23,

DynaValidatorActionForm validation order of operations?

2002-07-23 Thread Hodgeman, Robert (LNG)
I've got validation working for several forms. I have noticed, however, that there is a definite order to things regarding validation. And, it seems somewhat cumbersome from a user perspective (IMHO). I'm looking for input on how to improve the situation either by using a different

RE: How to write an ActionForm property as just plain text

2002-07-23 Thread Kamholz, Keith (corp-staff) USX
You're just trying to write out the property as text? Why mess around with html:hidden? Like I said, bean:write works perfectly fine. http://jakarta.apache.org/struts/userGuide/struts-bean.html ~ Keith http://www.buffalo.edu/~kkamholz -Original Message- From: David Wood

RE: How to write an ActionForm property as just plain text

2002-07-23 Thread James Mitchell
Oh, forgot to mention. I think that's a post-1.1b1 thing. Try using a nightly snapshot. I can't graph cvs from here or I would let know exactly when it was added. Sorry. James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network

Re: Not necessary to specify Tiles plugin in struts-config.xml?

2002-07-23 Thread David M. Karr
Cedric == Cedric Dumoulin [EMAIL PROTECTED] writes: Cedric Hi, Cedric The prefer way to enable Tiles in Struts1.1 is now to specify the Tiles Cedric plugin in each struts-config. If you do that, you don't need to specify the Cedric TilesRequestProcessor and the

RE: How to write an ActionForm property as just plain text

2002-07-23 Thread James Mitchell
To each his own I guess. If you want to retain a value, such as an id for a row, but only allow read-only access to it. Don't use html:text with disabled, it doesn't work in NS 4.7 and a few others. You can use html:hidden and it will: a) create a hidden name=blah blah b) write out the

Re: How to write an ActionForm property as just plain text

2002-07-23 Thread David Wood
Sorry, I still need help on this part. What do I need to use to get the bean:write to work? I get an error saying: Cannot find bean XX in scope null I assume I'm missing some statement earlier that I need. I actually like the hidden approach (since you can see the value and it will get

Re: How to write an ActionForm property as just plain text

2002-07-23 Thread David Wood
Never mind. I was using the class name (MyActionForm) instead of the logical name in the struts-config.xml file (myActionForm). Thanks everybody for all the help. -- dave David Wood wrote: Sorry, I still need help on this part. What do I need to use to get the bean:write to work? I get

Struts Persistence

2002-07-23 Thread Elderclei R Reami
Hi again, Does anyone know about usage of persistence frameworks, like Torque OJB from Apache Group, with Struts? Thanks for all the help with code generation. I downloaded StrutsBuilder and Eclipse+EasyStruts to evaluate and they are great tools. About self- generated apps from database

RE: How to write an ActionForm property as just plain text

2002-07-23 Thread Kamholz, Keith (corp-staff) USX
Ok, I see what you're saying. I'm actually working on my first web app, and the my main objects are stored in the session so I don't have to worry about retaining the value. I can definitely see how you would need the html:hidden tag for some scenarios though. ~ Keith

Tiles: if useAttribute ignore is true, what about script var?

2002-07-23 Thread David M. Karr
In Tiles, the useAttribute tag declares a scripting variable. It also has an ignore attribute. If the ignore attribute is true, it's supposed to do nothing. Is it possible to do nothing in a tag that declares a scripting variable? Wouldn't it declare the variable, even if ignore was true? --

Re: XHTML compliant tags

2002-07-23 Thread @Basebeans.com
Subject: Re: XHTML compliant tags From: Matt Raible [EMAIL PROTECTED] === Soon (hopefully). Watch this bug to find out: http://issues.apache.org/bugzilla/show_bug.cgi?id=5518 CB Thomas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Is there a way to get Struts to produce XHTML

RE: Struts Persistence

2002-07-23 Thread James Mitchell
I'll be uploading a modified version of the example app (struts-example.war) which uses OJB as soon as I can finish it. Basic O/R mapping using JDO API w/MySql on the backend. It's not there yet, but here's the url: http://sourceforge.net/projects/struts/ James Mitchell Software

RE: Struts Persistence

2002-07-23 Thread Mete Kural
OJB is great. (jakarta.apache.org/ojb) You can easily map your tables to objects. It works with MySQL. I recommend that you implement DAO objects that call OJB's APIs and keep all the persistence operations there. Good luck, Mete --- James Mitchell [EMAIL PROTECTED] wrote: I'll be uploading a

RE: Struts Persistence

2002-07-23 Thread Joe Barefoot
I haven't had time to play with OJB yet, but does anyone know if it works properly with Oracle? I mean, I know it should work fine with any DB for generating select and update statements, but what about inserts when you are using sequence numbers? The increments are handled differently in

populating JSP from

2002-07-23 Thread I-Sampige, Srinivas
Does anybody know if it is possible to populate a form in a JSP with data from a formbean ?(reverse to what happens when the form gets submitted to an action). What I am trying to do is,... when user enters some data data on a screen(JSP) and submits to an action if there is an error in the

RE: Struts Persistence

2002-07-23 Thread Graham Lounder
I've been using OJB for the past couple of weeks so I'm by no means an expert. What I can tell you is that OJB requires an OJB_SEQ table in the database. This allows OJB to hanlde autoincrementing fields on its own, and not on any one specific implementation. I have been using OJB with

Re: populating JSP from

2002-07-23 Thread David Wood
I think the easiest way to explain it would be to take a look at the struts example that comes with the binary. They have a simple application where the first screen is a login. If the user enters a login name, but not a password, the same screen is returned with an error message and with

RE: populating JSP from

2002-07-23 Thread Joe Barefoot
Yes, this actually happens by default if the form bean associated with a JSP already has data. So, if you have an ActionForm named myActionForm with a field userName, and userName has a value, then the Struts tag below will render the text input with that value already in it. html:text

RE: Struts Persistence

2002-07-23 Thread Chappell, Simon P
The OJB site contains a useful looking page that lists the RDBMS that it supports: http://jakarta.apache.org/ojb/platforms.html The list is near the bottom of the page, but Oracle and DB2 are both supported out of the box, as is my favourite ... HSQLDB. Simon

RE: Struts Persistence

2002-07-23 Thread Chuck Cavaness
I used this on the Storefront application including in several chapters as if my memory serves me correctly, you can plugin different sequence manager implementations in the ojb.properties class. Something like this I think:

RE: Struts Persistence

2002-07-23 Thread Joe Germuska
At 12:24 PM -0700 2002/07/23, Joe Barefoot wrote: That makes sense, I was wondering how it could handle it in a generic fashion. I suppose it adds a row to the OJB_SEQ table for every table column that it has to autoincrement. I further suppose it could accomplish an auto-increment insert with

ActionError messages

2002-07-23 Thread Jerry Jalenak
Is it possible to set an ActionError similar to the following? errors.add(ActionErrors.GLOBAL_ERROR, new ActionError(myMessage)); where myMessage is a variable? Jerry Jalenak Web Publishing LabOne, Inc. 10101 Renner Blvd. Lenexa, KS 66219 (913) 577-1496 [EMAIL PROTECTED] This

RE: Struts Persistence

2002-07-23 Thread Joe Barefoot
Very cool. And if you already have populated tables, I assume you can specify what number to start at, etc. I'd really like to test out OJB with an EJB session layer, and compare it with an EJB session + entity CMP implementation, just to see what the performance metrics look like when you hit

RE: Struts Persistence

2002-07-23 Thread James Mitchell
I was hoping that someone was going to say. Yes, I'm building an add-on component that allows you to use your existing form-bean declarations to map your tables right in the struts-config.xml and you can even use DynaActionForms! Any takers? (Tumble weeds blow by as the wind howls) James

RE: html:radio, needing to pre-check a button with DynaActionForm

2002-07-23 Thread Kamholz, Keith (corp-staff) USX
Well, the radio button will be automatically selected based on the value attribute of the html:radio. If the corresponding property is equal to the value specified, it will be selected automatically. Just make sure that the property is set to whatever it needs to be before it hits the JSP with

Re: html:radio, needing to pre-check a button with DynaActionForm

2002-07-23 Thread David M. Karr
Keith == Keith Kamholz Kamholz writes: Keith Well, the radio button will be automatically selected based on the value Keith attribute of the html:radio. If the corresponding property is equal to Keith the value specified, it will be selected automatically. Just make sure that

RE: Refering form variables from the JavaScript function

2002-07-23 Thread James Mitchell
Have you seen the way its done in the struts-example.war? James Mitchell Software Engineer\Struts Evangelist Struts-Atlanta, the Open Minded Developer Network http://www.open-tools.org/struts-atlanta -Original Message- From: Ramu, Manjukumar [PRDUS] [mailto:[EMAIL PROTECTED]]

  1   2   >