Re: [RePOST]: How to avoid Action-Chaining?

2004-02-17 Thread Mark Lowe
You can store the values from formA and put them into the request before forwarding to the jsp with formB FooForm theForm = (FooForm) form; String foo = theForm.getFoo(); String bar = theForm.getBar(); //do what you want with form data. // Then request.setAttribute("foo",foo); request.setAttri

Performance statistics with struts

2004-02-17 Thread shankarr
Hi! I would like to get some figures showing what is the performance gain/hit using Struts1.1 with Tiles We are currently using struts1.1 with tiles in our development and am getting to hear that because of the multitude of entries in the xml files, there is a slowdown occuring. I do not know how

RE: JUnit test cases for struts

2004-02-17 Thread Manjunath Bhat
http://strutstestcase.sourceforge.net/ -Original Message- From: Jitender Kumar C [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 18, 2004 12:19 PM To: Struts Users Mailing List Subject: JUnit test cases for struts Can anybody help me how I can proceed with writing JUnit Test cases f

[RePOST]: How to avoid Action-Chaining?

2004-02-17 Thread subramaniam . o
Hi all,   I have a form named formA which executes actionA, then he is forwarded actionB on submit. now actionB will populate some of the attribtues of formB. [example attributes that are required for listboxes]   The problem is: when I execute actionB, I have to know about some data the

Struts tag external resource?

2004-02-17 Thread Bjørn T Johansen
I need to configure my IDE with an external link, as well as local, to the tld tag files, so I was just wondering which URI I can use for the external resource files? Regards, BTJ - To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

JUnit test cases for struts

2004-02-17 Thread Jitender Kumar C
Can anybody help me how I can proceed with writing JUnit Test cases for Struts Applications. Can I follow the same procedure as if we write for the simple classes or Should I implement any special classes of any 3rd party package. Dont' We need framework for running our action class execute meth

Re: File Upload and DynaActionForm?

2004-02-17 Thread A3T
Hello Carl-Eric, What browser you used for testing? Opera have bug when upload field in form is null. Wednesday, February 18, 2004, 5:45:24 AM, you wrote: CEM> Hello, CEM> I'm having trouble getting file upload working when using a DynaAction CEM> form. Here are the relevant parts: CEM>

RE: Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Bill Johnson
Thanks for the info David. One last question. Do you have to have the Validator plugin in every module's Struts config file if you simply want to have the same validation file for all modules? Can I just put the validator plugin definition in the default module's struts-config.xml and then all of

Re: Form Submission

2004-02-17 Thread avinash . tiwari
Hi Geeta/Paul/Mark/Wendy What Geeta has suggested is basically the same thing but Paul is using JSTL for that. But such is the restriction of my application that I can not use request object to get the values from form directly by calling request.getParameter(...); I will explain this why. The

struts integration with jsp applications

2004-02-17 Thread Coolyogs
hello. I don't know whether this is a drawback! My application is developed with struts and its working fine. As a enhancement I have to integrate Query Builder which is a JSP based application. Query builder is running in a entirely different webserver. I have to pass database driver, database

Re: can tiles be put in a jar?

2004-02-17 Thread Max Cooper
Copy the tiles into each webapp as part of your build. -Max On Tue, 2004-02-17 at 18:44, Raymaker, Dora wrote: > Hello, I am wondering if tiles can be put in a jar so that they become > accessible to multiple struts applications. Any information would be > much appreciated! > > > > Thanks, >

Re: Moving App to Struts - Best Practices

2004-02-17 Thread Max Cooper
Michael, There is no issue with bookmarking. Where the app currently responds to: /viewXXXdetail.jsp?scid=23 The Struts version will respond in the same way to: /viewXXXdetail.do?scid=23 Even for viewing data, you will want to use an ActionForm. In the example URL above, you'll want a property

RE: Using Tile xml definition as an ActionForward

2004-02-17 Thread David Friedman
Nic, We had discussions on this some time ago. I think this link might describe how to use an attribute in another JSP used by that tiles definition: http://www.mail-archive.com/[EMAIL PROTECTED]/msg61368.html I remember thinking it was odd but I recall trying it and making it work because I pos

Re: Using Tile xml definition as an ActionForward

2004-02-17 Thread Nic Waight
The Reason my page was displaying as black was because of an error in my header.jsp when it used the tiles:getAsString tag to ask for the title attribute. The example I was following seemed to imply that the title attribute in the definition would be available to all my tiles. This was not the

can tiles be put in a jar?

2004-02-17 Thread Raymaker, Dora
Hello, I am wondering if tiles can be put in a jar so that they become accessible to multiple struts applications. Any information would be much appreciated! Thanks, Dora Raymaker Sr. Technical Writer XO Communications, Interactive Division 503.972.6808 [EMAIL PROTECTED]

Re: passing beans to tiles

2004-02-17 Thread Niall Pemberton
Doesn't look like a tiles issue to me. Something doesn't add up with the message you say you're getting and the source you're showing - you should only get the "not found in 'page' scope" message if you sepcify scope="page" - your jsp doesn't have that. Try posting the actual source. My bet its a

Re: Tiles and website skinnability

2004-02-17 Thread Niall Pemberton
Havn't done this, but try looking at the Dynamic L&F Chapter in tilesAdvancedFeatures.pdf http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf Niall - Original Message - From: "Kunal H. Parikh" <[EMAIL PROTECTED]> To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> Sent: Wednes

Tiles and website skinnability

2004-02-17 Thread Kunal H. Parikh
Hi All! I am attempting to "tile" my website. However, I have a need to skin websites based on varied requirements, wherein, the "layout" of the site remains the same, with the exception of the graphics. What I additionally need to do, is call a different style sheet based on the URL. Can someo

Re: Using Tile xml definition as an ActionForward

2004-02-17 Thread Niall Pemberton
One cause of the blank page is if the attribute named in yout (or I guess) is/are named incorectly. Tiles seems quite happy and carries on, just outputting nothing if these aren't found. Niall - Original Message - From: "Nic Waight" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: We

Re: Using Tile xml definition as an ActionForward

2004-02-17 Thread Nic Waight
Spot on Niall, My tiles-defs.xml was looking for /tiles/layout/Base.jsp but the directory was layouts. Now I am getting a blank page but I am making progress now. I know iyt must be something small. Thanks for your help Nic. >>> [EMAIL PROTECTED] 02/18/04 01:58p.m. >>> Actually your right,

Re: Checkbox not checked

2004-02-17 Thread Curtis Taylor
Hi Wendy, I'm not exactly sure, but I'm a tad suspect of your 'c:if test' expression. It looks suspiciously like a Python "boolean" test for the object's presence. AFAIK, in JSTL one needs to be more explicit as to what value (or lack thereof) when testing... Unless, of course, it's just a typ

Re: Using Tile xml definition as an ActionForward

2004-02-17 Thread Niall Pemberton
Actually your right, wasn't a clever suggestion - I hadn't used the , but looking at the source code - its identical to and was put there so tiles was compatible with the original struts template tags. I didn't realize you were getting a 404 - I thought from your message you were just getting a b

Re: File Upload and DynaActionForm?

2004-02-17 Thread Hubert Rabago
Did you change the form definition to enctype="multipart/form-data" yet? --- Carl-Eric Menzel <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm having trouble getting file upload working when using a DynaAction > form. Here are the relevant parts: > > name="pollForm" >

Re: Using Tile xml definition as an ActionForward

2004-02-17 Thread Nic Waight
I gave that a go but with the same result the browser displays a 404 not found error. Also I have been following the example in the Struts in Action book which says to use the tiles:get tags in the layout. Nic. >>> [EMAIL PROTECTED] 02/18/04 12:14p.m. >>> Try changing your layout ("/tiles/lay

Moving App to Struts - Best Practices

2004-02-17 Thread Michael Steiger
Hello list, this is my first Struts project, so I hope to get some answers and/or hints for my problems. I already searched the web for some answers but did not find the right ones. I am trying to redesign a partly Struts-enabled application to be a full-fledged Struts app. With partly I mean that

Re: Using Tile xml definition as an ActionForward

2004-02-17 Thread Niall Pemberton
Try changing your layout ("/tiles/layout/Base.jsp") to <%@ taglib uri="/tags/struts-tiles" prefix="tiles" %> Niall - Original Message - From: "Nic Waight" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 9:57 PM Subject: Using Tile xml definition as an Ac

RE: passing beans to tiles

2004-02-17 Thread Appel, Jeremy D
Thad, How are you calling the action? Jeremy -Original Message- From: Thad Humphries [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 5:36 PM To: [EMAIL PROTECTED] Subject: passing beans to tiles I'm trying to move a simple test application to tiles but I cannot get a list of

File Upload and DynaActionForm?

2004-02-17 Thread Carl-Eric Menzel
Hello, I'm having trouble getting file upload working when using a DynaAction form. Here are the relevant parts:

Checkbox not checked

2004-02-17 Thread Wendy Smoak
(No, this isn't the infamous "how do I uncheck my checkbox" question!) I have this:   Unfortunately, the checkboxes corresponding to the String[] 'accounts' property of the form are not being rendered as checked. Before I go back to the

passing beans to tiles

2004-02-17 Thread Thad Humphries
I'm trying to move a simple test application to tiles but I cannot get a list of object from my servlet to the tile. It works without tiles. In struts-config.xml I have ... In screenList.jsp, I have As I said, the above approach works. Now, try

RE: Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Hibbs, David
> I'm curious if anyone out there has gotten Validator > and/or Tiles working with Struts modules? Here are my > questions. If you can answer any of them it would be > a great help. Yep. Got 'em both working. > Do you have to have the validator plugin defined in > each module config fi

Using Tile xml definition as an ActionForward

2004-02-17 Thread Nic Waight
I am new to using tiles and I am having a problem getting my definition defined in my tiles-defs.xml file to be displayed. I have used the debugger to verify that the definition is being loaded when I access the action but the page is not displaying. I have checked the log and I am not getting

tiles advanced features

2004-02-17 Thread Dominik Stöttner
Hi, I am still trying to create an webapplication with tiles that has similar functionality as a webapp written with portlets. Trying to define a default-layout for a tile I am facing some unresolved problems. For more details see the code below (don't be worry about the long mail it's mostly c

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
Cool! I'll write something up tonight that'll provide more info and send it to you so you can see where it's at. --- Niall Pemberton <[EMAIL PROTECTED]> wrote: > Your stuff sounds interesting and I'm up for a bit of collaboration. > > Niall > - Original Message - > From: "Hubert Rabago"

Validator / Tiles and modules - anybody done it?

2004-02-17 Thread Bill Johnson
I'm curious if anyone out there has gotten Validator and/or Tiles working with Struts modules? Here are my questions. If you can answer any of them it would be a great help. Do you have to have the validator plugin defined in each module config file? If so, how? Do you have to have the tiles pl

RE: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
Yes, they were going to be my first option, too. --- Guillermo Meyer <[EMAIL PROTECTED]> wrote: > We could ask to struts.sourceforge.net guys if they are interested in > this kind of Struts extension. > > -Original Message- > From: Hubert Rabago [mailto:[EMAIL PROTECTED] > Sent: Martes,

Re: Problem Dynamically creating form properties

2004-02-17 Thread Niall Pemberton
Your stuff sounds interesting and I'm up for a bit of collaboration. Niall - Original Message - From: "Hubert Rabago" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 7:31 PM Subject: Re: Problem Dynamically creating form properties

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
Nice.. Sounds like the daddy.. On 17 Feb 2004, at 18:32, Guillermo Meyer wrote: We do use Validation framework. DynamicForm is a top level class but we use ValidatorDynamicForm that extends DynamicForm. We use strategies to validate in each form declaring them in the action-mapping:

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
We could ask to struts.sourceforge.net guys if they are interested in this kind of Struts extension. -Original Message- From: Hubert Rabago [mailto:[EMAIL PROTECTED] Sent: Martes, 17 de Febrero de 2004 04:31 p.m. To: Struts Users Mailing List Subject: Re: Problem Dynamically creating form

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
I meant to say "I wonder if we can combine what we have." --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > Niall, > > I wonder if we can what we have. > I wonder what that would look like. > Could be interesting. > > Hubert > > --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > > As long as we're sha

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
Niall, I wonder if we can what we have. I wonder what that would look like. Could be interesting. Hubert --- Hubert Rabago <[EMAIL PROTECTED]> wrote: > As long as we're sharing... =) > > I wrote a plug-in which defines my DynaActionForms based on my DTOs. So if > I > have an employee DTO, it w

Re: Problem Dynamically creating form properties

2004-02-17 Thread Hubert Rabago
As long as we're sharing... =) I wrote a plug-in which defines my DynaActionForms based on my DTOs. So if I have an employee DTO, it will define a DynaActionForm for me with the fields from my employee DTO. It helps me cut down on the repetition when my DTO closely matches my form beans. The fo

Re: Repost : Usage of< html:options>

2004-02-17 Thread Niall Pemberton
I use the which is the same as but uses a more struts "standard" attribute names and you would do it like this: Niall - Original Message - From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 11:57 AM Subject: Repost : Usage of< html:options> Hi, I am

RE: SecurityFilter with Struts quick and easy question

2004-02-17 Thread Paul McCulloch
Have a look at the Servlet spec. Paul > -Original Message- > From: Nathan Maves [mailto:[EMAIL PROTECTED] > Sent: 17 February 2004 19:09 > To: Struts Users Mailing List > Subject: Re: SecurityFilter with Struts quick and easy question > > > It does use a servlet that all request that ma

Re: SecurityFilter with Struts quick and easy question

2004-02-17 Thread Nathan Maves
Never Mind you were right :) Nathan Maves Sun Microsystems On Feb 17, 2004, at 12:08 PM, Nathan Maves wrote: It does use a servlet that all request that match a filter are sent to. Are the filters called in the order that they appear in the web.xml file? Nathan Maves Sun Microsystems On Feb

Re: Html:Form input not being returned

2004-02-17 Thread amr
is this problem intermittent (sometimes the for works)? are you using SSL? [EMAIL PROTECTED] yscapital.com

How to avoid Action-Chaining?

2004-02-17 Thread subramaniam . o
Hi all,   I have a form named formA which executes actionA, then he is forwarded actionB on submit. now actionB will populate some of the attribtues of formB. [example attributes that are required for listboxes]    The problem is: when I execute actionB, I have to know about some data  the user

Re: SecurityFilter with Struts quick and easy question

2004-02-17 Thread Nathan Maves
It does use a servlet that all request that match a filter are sent to. Are the filters called in the order that they appear in the web.xml file? Nathan Maves Sun Microsystems On Feb 17, 2004, at 10:05 AM, Max Cooper wrote: Nathan, Struts actually uses a Servlet rather than a Filter. But you

Re: Problem Dynamically creating form properties

2004-02-17 Thread Niall Pemberton
I have a version of DynaBean based on the MutableDynaClass interface which allows properties to be added dynamically - which anyone would be free to use (I tried to attach here but struts-user rejected the mail saying "we don't accept executable content" ). We have also equivalent versions of the D

RE: Could not find resource error

2004-02-17 Thread Paul McCulloch
Looks like an ibatis issue to me. How about you RTFM then look for an ibatis mailing list and search it's archive? > -Original Message- > From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] > Sent: 17 February 2004 17:29 > To: 'Struts Users Mailing List' > Subject: RE: Could not find resourc

Re: ui gen from db

2004-02-17 Thread Paul-J Woodward
I did this by creating a new Tiles Definition factory and modifying the Action servlet and Local Request Processor. The factory was essentially a (dummy) proxy to a caching layer which in turn grabbed the tiles definitions from the database. Having dynamic action forwards makes things a bit mor

Repost : Usage of< html:options>

2004-02-17 Thread anant.parnami
Hi, I am a newbie in struts, I have to populate a dropdown using html:options. I have to use a collection of beans. This collection should be stored in my Action Form. I have a collection of CountryBeans named as collectionCountry. In my action class I am writing request.setAttribute("co

RE: Html:Form input not being returned

2004-02-17 Thread Scott . Wall
More information - Here is my test for that's exhibiting the behaviour: <%@ taglib uri="/web/tld/struts-html-el.tld" prefix="html" %> Input 1: Input 2:

RE: Html:Form input not being returned

2004-02-17 Thread Slattery, Tim - BLS
> I'm having a problem with html:form input values not > populating my ActionForm. I can get it to work if I > invalidate() the session immediately prior to populating the > form and submitting, or consistantly by using get rather than post. I'd guess a problem in struts-config.xml. The "action

Html:Form input not being returned

2004-02-17 Thread Scott . Wall
Hi, I'm having a problem with html:form input values not populating my ActionForm. I can get it to work if I invalidate() the session immediately prior to populating the form and submitting, or consistantly by using get rather than post. It appears that the form values when posted are not added a

Re: Subclassing DynaValidatorForm

2004-02-17 Thread Paul-J Woodward
Hmm nasty, thinking quickly, I'd guess you have three options: 1. pass the username to the form (dangerous as it's easy to hack) 2. don't display fields the user can't set (again easy to hack) 3. have two copies of the form, one in a session, one in the request. On submission, copy the fields from

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
We do use Validation framework. DynamicForm is a top level class but we use ValidatorDynamicForm that extends DynamicForm. We use strategies to validate in each form declaring them in the action-mapping: . . So you can "plug" any validations you

RE: Could not find resource error

2004-02-17 Thread Barnett, Brian W.
Good point! :) The only reason it is struts related is because it's happening my struts app. (A pretty weak link I must admit.) I suspect it's more of a general java development environment issue. Got any good "java development environment issue" mailing lists? -Original Message- From: Pa

Re: Subclassing DynaValidatorForm

2004-02-17 Thread Arne Brutschy
Paul-J Woodward wrote: The validate method has a request parameter, so I assume you just do request.getSession().getAttribute("..."), or I have I misread what you are trying to achieve? Yes, that is true. But that needs the form to be validated to check the access, too. I want to allow/deny a s

RE: Could not find resource error

2004-02-17 Thread Paul McCulloch
And this is struts related how? > -Original Message- > From: Barnett, Brian W. [mailto:[EMAIL PROTECTED] > Sent: 17 February 2004 17:22 > To: 'Struts Users Mailing List' > Subject: Could not find resource error > > > Can't figure out why this code is giving me an error: > > > > impor

Could not find resource error

2004-02-17 Thread Barnett, Brian W.
Can't figure out why this code is giving me an error: import java.io.Reader; import com.ibatis.common.resources.Resources; Reader reader = Resources.getResourceAsReader("properties/sql-map-config.xml"); The error I'm getting is: java.io.IOException: Could not find resource prope

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
The cost of the getters and setters IMO usually don't outweigh the benefits of the validation framework, and having something in the middle of the form submission and the action. Before struts validator action forms provided a convenient place to stick validation methods (and still do). So how

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
DynamicBean2PersistenceObject is a class that we use and implements org.apache.commons.collections.Transformer. The business layer uses these classes to transform inputBean (DyanmicBean) to the corresponding PersietenceObject and passes this PersistenceObject to the Persistence framework to be "per

RE: Printer Friendly using Tiles

2004-02-17 Thread Eric Dahnke
Thanks for the response. Where would you change the layout? Something like this within the pages/*.jsp files? String layout = ".stackedStandard"; if (request.getParameter(printFriendly) != null) { layout = ".stackedPrintFriendly"; } Or ar

Re: Form Submission

2004-02-17 Thread PAUL BRANT
I use the EL and JSTL to accomplich the same thing: This creates a link for each person in a list that I iterate over using c:forEach. Paul >>> "Geeta Ramani" <[EMAIL PROTECTED]> 02/17/0

RE: html:select

2004-02-17 Thread Wendy Smoak
> From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED] > I need to send the value and text dispayed to the server Now I have to ask, why? Presumably you're generating the selections from something, maybe a Map? All you need is the value, they key, and you can pull the value out of the Ma

Re: html:select

2004-02-17 Thread Nick Heudecker
Yeah, what I do is just use a LabelValueBean form property to pass the value and txt back to the server. I set the text property using the onBlur javascript event. On 2004-Feb-17 17:02, Gonzalez, Sergio Eduardo wrote: > I need to send the value and text dispayed to the server > > -Mensa

RE: Problem Dynamically creating form properties

2004-02-17 Thread Marco Mistroni
That sounds great (I hate write lot of set/get methods.. :-) )! One further enquiry: so the actual DynaBean TO PersistenceObject 'transformation' is done where the DynaBean is 'created' (persistence layer I guess)? Since as far as I understood that is the only place that knows about properties

RE: html:select

2004-02-17 Thread Paul McCulloch
Surely your application is responsible for creating the options in the first place? Why not create a map of the key,value pairs at that time & refer to it later? Paul > -Original Message- > From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED] > Sent: 17 February 2004 16:13 > To: Strut

Re: html:select

2004-02-17 Thread Geeta Ramani
Well, I guess that's what Wendy was suggesting in the first place: make the value and the text the same, that way sending one is tatamount to sending both.. The other option is to use a hidden field and javascript (onSelect fill hidden field kind of thing along with the form.blah-blah[selectedIndex

Re: SecurityFilter with Struts quick and easy question

2004-02-17 Thread Max Cooper
Nathan, Struts actually uses a Servlet rather than a Filter. But you are right about Filters in general -- requests can pass through as many filters as you have configured. If you have both SecurityFilter and Struts in the same app, SecurityFilter will always be called first (when the request URL

Re: Printer Friendly using Tiles

2004-02-17 Thread Mark Lowe
Assuming you're not cramming too much formatting inline then change the layout. On 17 Feb 2004, at 17:58, Eric Dahnke wrote: What is the best way to do printer friendly pages using Tiles? We've got a portal type application. I'm looking at the Dynamic Look & Feel capability of Tiles as a canida

Re: Subclassing DynaValidatorForm

2004-02-17 Thread Paul-J Woodward
http://jakarta.apache.org/struts/api/org/apache/struts/validator/DynaValidatorForm.html The validate method has a request parameter, so I assume you just do request.getSession().getAttribute("..."), or I have I misread what you are trying to achieve? Paul ---

Printer Friendly using Tiles

2004-02-17 Thread Eric Dahnke
What is the best way to do printer friendly pages using Tiles? We've got a portal type application. I'm looking at the Dynamic Look & Feel capability of Tiles as a canidate for implementing print friendly pages. Does anyone have any suggestions or wish to share about how they did it? Many Than

RE: html:select

2004-02-17 Thread Gonzalez, Sergio Eduardo
I need to send the value and text dispayed to the server -Mensaje original- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: martes, 17 de febrero de 2004 17:39 Para: Struts Users Mailing List Asunto: RE: html:select > From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED] > H

RE: Subclassing DynaValidatorForm

2004-02-17 Thread Wendy Smoak
> From: Arne Brutschy [mailto:[EMAIL PROTECTED] > Is there any possibility to get a session variable in the > bean? I need to get the current user the bean is associated with. Or I just set a > variable inside the bean when I'm prepopulating the form.. > Any comments? The Form bean is just a c

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
Sure.. that sounds great. It was just the question where your bean generation supported form beans with sql date, i was querying. On 17 Feb 2004, at 16:43, Guillermo Meyer wrote: Our DynamicBean holds java.util.Calendar, not java.util.Date nor java.sql.Date. We have a persistence framework that

Subclassing DynaValidatorForm

2004-02-17 Thread Arne Brutschy
Hi, I'm subclassing DynaValidatorForm to implement some security features (connected with the value of disabled fields, see my post a few days ago). Is there any possibility to get a session variable in the bean? I need to get the current user the bean is associated with. Or I just set a varia

SecurityFilter with Struts quick and easy question

2004-02-17 Thread Nathan Maves
I am looking into using SecurityFilter to handle all the authentication for my app. Since it uses filters, like sturts, how does the Struts action get called? Will the request pass through multiple servlet filters? Should the authentication servlet filter be placed above the struts filter? Nat

RE: html:select

2004-02-17 Thread Wendy Smoak
> From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED] > How can I do to send the value displayed ? Can you post the code from the JSP the way it is now? Someone can probably help you change it so that it does what you want. -- Wendy Smoak Application Systems Analyst, Sr. ASU IA Informati

RV: html:select

2004-02-17 Thread Gonzalez, Sergio Eduardo
Ok . How can I do to send the value displayed ? -Mensaje original- De: Wendy Smoak [mailto:[EMAIL PROTECTED] Enviado el: martes, 17 de febrero de 2004 17:25 Para: Struts Users Mailing List Asunto: RE: html:select > From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED] > I have

Re: html:select

2004-02-17 Thread Nick Heudecker
form.xx.options[form.xx.selectedIndex].text; On 2004-Feb-17 17:02, Gonzalez, Sergio Eduardo wrote: > > Hello . > I have to get the description from a html:select example in html > > > z > > > how can I do to get the "z" value ??? ( using struts ) > -- Nick Heudecker System M

support for topic selecting

2004-02-17 Thread konf
Hallo, is there any support for listing tree of phorum topics in page? something as - first - reply to first - reply to reply - second etc... Thanks, Jiri - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: html:select

2004-02-17 Thread Wendy Smoak
> From: Gonzalez, Sergio Eduardo [mailto:[EMAIL PROTECTED] > I have to get the description from a html:select example in html > > z > > how can I do to get the "z" value ??? ( using struts ) Make the tag look like this instead: z It's the 'value' that will get sent to the

Re: Form Submission

2004-02-17 Thread Geeta Ramani
Avinash: How about trying something like this: <%String myLink = "/EmplyeeDetailAction.do?employeeId=" + employeeId; %> Employee Detail Page Regards, Geeta [EMAIL PROTECTED] wrote: > > I want to use a hyperlink instead - > > for example > On a typical employee list page clicking the employee

html:select

2004-02-17 Thread Gonzalez, Sergio Eduardo
Hello . I have to get the description from a html:select example in html z how can I do to get the "z" value ??? ( using struts ) thamks .. serge Aquest missatge electronic pot contenir infor

Re: Form Submission

2004-02-17 Thread Mark Lowe
sounds like you want to display an image instead of a submit button. html has provision for such things.. in struts tags this is if you have many employees in one form then you want to use indexed properties or mapped backed form using the id as your key. [Other keywords nested beans, n

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
Our DynamicBean holds java.util.Calendar, not java.util.Date nor java.sql.Date. We have a persistence framework that converts ResultSet in a collection of DynamicBeans, so our Business layer doesn't use java.sql.Date but Calendar. We use DynamicBean as DTO from UI (used by DynamicForm) to persist

Re: overlapping cells in table with firebird

2004-02-17 Thread Frédéric Dreier
Veresh Jain wrote: -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, February 16, 2004 2:24 PM To: Struts Users Mailing List Subject: RE: overlapping cells in table with firebird Have you tried 'dipping' the window? That is - dragging the window by its title

RE: Form Submission

2004-02-17 Thread Wendy Smoak
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > there is a hyperlink in my form - clicking this hyperlink > should submit the form. > I can't use because it displays a button > instead of a hyperlink. > And the restriction is not to use javascript. So the objection is really how the b

Re: Problem Dynamically creating form properties

2004-02-17 Thread Mark Lowe
Should java.sql.Date belong in an form bean? On 17 Feb 2004, at 16:15, Marco Mistroni wrote: Hi Guillermo, I have one question: will 'your trick' work also if I have properties of type, for example, Short, or Integer, or java.sql.Date? Thanx and regards marco -Original Me

Re: Form Submission

2004-02-17 Thread avinash . tiwari
I want to use a hyperlink instead - for example On a typical employee list page clicking the employee id of an employee takes you to the employee detail page. In this scenario employee id can not be displayed over a button - it has to be a hyperlink.. Use of _javascript_ is restricted. So i ca

RE: Form Submission

2004-02-17 Thread Desai, Sunny
Having a button using submits all of the form variables (including hidden). Keeping a button itself gives you more control in Action which you can use to manipulate the forwarding page (if the need be). So in effect, you can achieve the more than "link" -Original Message- From: [EMAIL

Re: Form Submission

2004-02-17 Thread Mark Lowe
In which case you want a in stuts speak On 17 Feb 2004, at 16:26, [EMAIL PROTECTED] wrote: there is a hyperlink in my form - clicking this hyperlink should submit the form. I can't use because it displays a button instead of a hyperlink. And the restriction is not to use javascript.

RE: Problem Dynamically creating form properties

2004-02-17 Thread Guillermo Meyer
DynamicBean can have it's properties typed: Example: DynamicBean db = DynamicBeanFactory.create(); db.setCalendar("date", Calendar.getInstance()); db.setLong("idXX", 123); db.setString("prop", "Hello World"); db.setObject("objPropName", new Object()); db.add("collectionPropName", "Item1"); //this

Re: Form Submission

2004-02-17 Thread Mark Lowe
May I ask why you don't want a submit button? On 17 Feb 2004, at 15:55, [EMAIL PROTECTED] wrote: Hi How can we submit a form without using tag. I dont want to use JavaScript for this? Thanks & Regards Avinash Tiwari Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://

RE: Form Submission

2004-02-17 Thread avinash . tiwari
there is a hyperlink in my form - clicking this hyperlink should submit the form. I can't use because it displays a button instead of a hyperlink. And the restriction is not to use _javascript_. Avinash Tiwari Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com

RE: Problem Dynamically creating form properties

2004-02-17 Thread Marco Mistroni
Hi Guillermo, I have one question: will 'your trick' work also if I have properties of type, for example, Short, or Integer, or java.sql.Date? Thanx and regards marco -Original Message- From: Guillermo Meyer [mailto:[EMAIL PROTECTED] Sent: 17 February 2004 12:43 To: 'S

RE: Retrieving messages from resource bundle

2004-02-17 Thread Gagné Jean-Christian
> -Message d'origine- > De : Wendy Smoak [mailto:[EMAIL PROTECTED] > Envoyé : mardi 17 février 2004 16:06 > À : Struts Users Mailing List > Objet : [SPAM] - RE: Retrieving messages from resource bundle > > > > From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] > > Hi there!

RE: [SPAM] - repost : creation of UI from DB - Bayesian Filter de tected spam

2004-02-17 Thread Guillermo Meyer
You could generate different Skins (for example using Xkins at http://xkins.sourceforge.net) and the user can choose the one that he or she likes. But creating user's own skin on the fly... Xkins doesn't support it nowadays, but i think it could be done. May it be a new feature for Xkins. You cou

  1   2   >