RE: Using JSTL Instead of Nested Tags

2004-03-25 Thread Robert Taylor
Mike, you will have to expose the form like: ...where "myForm" is its name defined in the struts-config file. If its DynaForm then you have to expose the form map: Once you do this, you can use JSTL to access and render values: or robert > -Original Message- > From: Mike

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
+1 > -Original Message- > From: Mark Lowe [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 25, 2004 2:36 PM > To: Struts Users Mailing List > Subject: Re: Handling Date objects in ActionForm gracefully > > > Have it as a string and convert it to a date or calendar when you pass > it b

RE: Handling Date objects in ActionForm gracefully

2004-03-25 Thread Robert Taylor
What's the problem? robert > -Original Message- > From: Sreenivasa Chadalavada [mailto:[EMAIL PROTECTED] > Sent: Thursday, March 25, 2004 2:28 PM > To: Struts Users Mailing List > Subject: Handling Date objects in ActionForm gracefully > > > All, > > We are facing a problem when we de

RE: user login authentication and session timeout

2004-03-22 Thread Robert Taylor
Charles, you can use container managed security or the SecurityFilter to authenticate users when accessing protected resources. You can set the session time out by adding something like the following to your web.xml file: 60 You can find more information on SecurityFilter here: htt

RE: Indexed Property

2004-03-22 Thread Robert Taylor
http://jakarta.apache.org/struts/faqs/indexedprops.html > -Original Message- > From: Prakasan OK [mailto:[EMAIL PROTECTED] > Sent: Monday, March 22, 2004 6:18 AM > To: Struts Users Mailing List > Subject: Indexed Property > > > Hi, > > can anyone give me a sample code for implementing i

RE: Bean:write

2004-03-21 Thread Robert Taylor
Try using the following with JSTL: or you can try the following using If you are still getting a error make sure you are using proper JavaBean naming conventions. You can find this in the JavaBean specification. robert > -Original Message- > From: as as [mailto:[EMAIL PROTECTED] >

RE: access variable value in html tag

2004-03-19 Thread Robert Taylor
You will need to use Struts-EL taglib then you should be able to do what you want. http://jakarta.apache.org/struts/faqs/struts-el.html You might also investigate using the or the http://jakarta.apache.org/struts/userGuide/struts-html robert > -Original Message-

RE: action - delegate - facade

2004-03-18 Thread Robert Taylor
arameters into your > DTO in your form before you validate them. Causes ugly exception > messages on the browser. > > On 03/18/2004 02:25 AM Robert Taylor wrote: > > Well, I would say it depends. If I had a DTO ( a domain object) which had all the > > fields > > I

RE: action - delegate - facade

2004-03-17 Thread Robert Taylor
a form.) > > The only issue I see is that you may end up introducing view helper > methods to your model beans. > > Nick > > Robert Taylor wrote: > > >Adam, its frowned upon to pass a web tier object (ActionForm) into the business > >tier. I believe

RE: action - delegate - facade

2004-03-17 Thread Robert Taylor
Adam, its frowned upon to pass a web tier object (ActionForm) into the business tier. I believe a widely used technique is to use BeanUtils to copy the properties from the ActionForm to a DTO (a Domain Object) which can be passed to the business tier. robert > -Original Message-

RE: action - delegate - facade

2004-03-17 Thread Robert Taylor
;>>>(the > >>>> > >>>> > >>>>>>>factory), and access the plugin interfaces always goes through the > >>>>> > >>>>>plugin > >>>>> > >>>>> > >>>>>>>man

RE: Links within ActionErrors

2004-03-17 Thread Robert Taylor
Use robert > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 17, 2004 1:43 PM > To: [EMAIL PROTECTED] > Subject: Links within ActionErrors > > > I know this probably violates some basic guidlines but... > I am trying to display an html

RE: SSLEXT

2004-03-17 Thread Robert Taylor
sn't work... I don't understand why... > It seems that I'll have to create a page just to change the protocol. What > do you think? > > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: quarta-feira, 17 de março de 2004 17:09 > To: S

RE: SSLEXT

2004-03-17 Thread Robert Taylor
; > Thanks again. > > But now I have this error message: > java.lang.IllegalArgumentException: Path tiles.initial does not start with a > "/" character > > This is because the following action: > > > > > Any idea? > > Thanks! > > -O

RE: SSLEXT

2004-03-17 Thread Robert Taylor
ot;initial"); > > Now I have this action to forward to the tiles definition: >type="org.apache.struts.actions.ForwardAction" > parameter="tiles.inicial"> > > > > What should I put in LoginAction in order to go to a non secure mai

RE: SSLEXT

2004-03-17 Thread Robert Taylor
Correction: ...in that action mapping configuration define it to be non-secure using the set-property element. > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 17, 2004 10:52 AM > To: Struts Users Mailing List > Subject: RE: S

RE: SSLEXT

2004-03-17 Thread Robert Taylor
action defined after > LoginAtion. LoginAction must be secure so the username and password are > trasmitted in a secure way. But after that, no more HTTPS is necessary. > > Is there way in step 4 to forward the user to a non secure page? > > Thanks, > JP > > -Origin

RE: SSLEXT

2004-03-17 Thread Robert Taylor
> Subject: RE: SSLEXT > > > I can't. Because my main page is not a page at all. It's a Tiles definition. > > Where can I find the documentation about SSLEXT? I mean the description of > the tags? > > Thanks, > JP > > -Original Message- > Fr

RE: SSLEXT

2004-03-17 Thread Robert Taylor
Use the on the main page. This should switch it back to HTTP. robert > -Original Message- > From: Joao Batistella [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 17, 2004 9:58 AM > To: 'Struts Users Mailing List' > Subject: SSLEXT > > > Hello. > > I'm now using the SSLEXT for stru

RE: action - delegate - facade

2004-03-16 Thread Robert Taylor
Adam, IMHO the Business Delegate pattern abstracts the client from knowing your business implementation, whether it be EBJ, JDO, POJO, roll your own. The client interfaces with the Business Delegate and not its implementation. For example, if you have an Action (client) interface with the Business

RE: logic:equal

2004-03-16 Thread Robert Taylor
Daniel, it would be easier to use JSTL for this: The string contained the word Struts. JSTL can compare values coming from any scope; application, session, pagecontext, request, or request parameters. Currently, the value attribute doesn not accept runtime values. You can verify this by loo

RE: [OT] Search string tokenizer

2004-03-16 Thread Robert Taylor
Cool! I'll take a look. Thanks David. robert > -Original Message- > From: Hibbs, David [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 16, 2004 9:20 AM > To: 'Robert Taylor'; [EMAIL PROTECTED] > Subject: RE: [OT] Search string tokenizer > > > I

RE: [OT] Search string tokenizer

2004-03-15 Thread Robert Taylor
rns to see how they > match strings or will be split > http://www.weitz.de/regex-coach/ > > Robert Taylor wrote: > > >I did a google search on this and didn't really come up with anything useful. > >Before I implement this myself, is there an existing implementatio

[OT] Search string tokenizer

2004-03-15 Thread Robert Taylor
I did a google search on this and didn't really come up with anything useful. Before I implement this myself, is there an existing implementation of parsing a search string which would produce tokens similar to how Google or other search engines parse search strings. For example, I would like to p

RE: Accessing boolean attribute using

2004-03-15 Thread Robert Taylor
Try this: robert > -Original Message- > From: Theodosios Paschalidis [mailto:[EMAIL PROTECTED] > Sent: Monday, March 15, 2004 2:04 PM > To: [EMAIL PROTECTED] > Subject: Accessing boolean attribute using > > > Hi all, > > I have unsuccessfuly spent all this time trying to figure this a

RE: [SwitchAction] How do you switch in between application contexts?

2004-03-15 Thread Robert Taylor
o you switch in between application > contexts? > > > I know, I'm sorry I meant redirect. I'm just wondering if struts allows > an elegent way to create redirects to other applications without > hardcoding it? > > Robert Taylor wrote: > > >Mike,

RE: [SwitchAction] How do you switch in between application contexts?

2004-03-15 Thread Robert Taylor
Mike, I don't believe the Servlet spec. allows you to forward to another web application. You will have to redirect. robert > -Original Message- > From: Mike Zatko [mailto:[EMAIL PROTECTED] > Sent: Monday, March 15, 2004 9:14 AM > To: Struts Users Mailing List > Subject: Re: [SwitchActi

RE: sslext http/https switching taglib and tiles

2004-03-13 Thread Robert Taylor
Adam, I've been using SecurityFilter (sslext taglib form and link tags) with Tiles for a while without any issues. robert > -Original Message- > From: Adam Hardy [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 13, 2004 11:25 AM > To: Struts Users Mailing List > Subject: sslext http/ht

RE: security framework!!!

2004-03-13 Thread Robert Taylor
http://sourceforge.net/projects/securityfilter/ emulates container managed security. robert > -Original Message- > From: Mailing List [mailto:[EMAIL PROTECTED] > Sent: Saturday, March 13, 2004 6:19 AM > To: [EMAIL PROTECTED] > Subject: security framework!!! > > > I'm developing a web ap

RE: [OT] Object Design Question

2004-03-12 Thread Robert Taylor
children to give their list of objects for that > parent and then constituting the parent completely. I agree getting them > back together and then parsing them out would be better but sure not a clean > OO way of getting data. > > -Original Message- > From: Robert

RE: [OT] Object Design Question

2004-03-12 Thread Robert Taylor
+1. Join the tables in a query and write an algorithm to parse the results into the view you need. One connection, one query, let the database do the work. Not very OO, but very efficient. robert > -Original Message- > From: Hookom, Jacob [mailto:[EMAIL PROTECTED] > Sent: Friday, March 1

RE: [OT] 2 JSF questions

2004-03-12 Thread Robert Taylor
I don't know. You may want to try the JSTL users mailing list: [EMAIL PROTECTED] robert > -Original Message- > From: Anderson, James H [IT] [mailto:[EMAIL PROTECTED] > Sent: Friday, March 12, 2004 1:30 PM > To: [EMAIL PROTECTED] > Subject: [OT] 2 JSF questions > > > 1) Since JSF is wr

RE: can anyone help me address this issue

2004-03-11 Thread Robert Taylor
You can't send "data structures" over HTTP you can only send strings. You could set those values as hidden form elements with a naming convention that would enable your server side code to recognize the elements in the request and create the appropriate server side data structure. This is essentia

RE: [OT] Database locking and deadlock

2004-03-08 Thread Robert Taylor
Is it possible that dbConnection.doUpdate() gets a new connection each time which could possibly use up (exceed max allowed) the connections in the pool. Just a guess. robert > -Original Message- > From: Shyam A [mailto:[EMAIL PROTECTED] > Sent: Monday, March 08, 2004 4:32 PM > To: [EMAI

RE: Validation help for same Form, multiple pages/tabs

2004-03-05 Thread Robert Taylor
Okay. Here is what I do which may or may not help. I have subclassed DispatchAction to handle image buttons. The newer Struts version may handle this, but it didn't prior to 1.1. Image buttons may not be your problem but it has a special method to extract the dispatched operation. Anyhow you can

RE: Validation help for same Form, multiple pages/tabs

2004-03-05 Thread Robert Taylor
Are you using DispatchAction or LookupDispatchAction? robert > -Original Message- > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > Sent: Friday, March 05, 2004 1:24 PM > To: Struts Users Mailing List > Subject: Validation help for same Form, multiple pages/tabs > > > > I'm using the

RE: Sorting table columns in jsp using struts

2004-03-05 Thread Robert Taylor
The JSTL spec is a great reference. I would recommend you download it. robert > -Original Message- > From: as as [mailto:[EMAIL PROTECTED] > Sent: Friday, March 05, 2004 8:48 AM > To: Struts Users Mailing List > Subject: RE: Sorting table columns in jsp using struts > > > Henri, > > Thank

RE: DispatchAction and validate

2004-03-02 Thread Robert Taylor
ugh. > Thanks n advance for the help, > Sam > > Robert Taylor <[EMAIL PROTECTED]> wrote: > Yes. > > The DispatchAction will only invoke the method defined in the request under the name > defined in the parameter attribute of your > action mapping. So if I had up

RE: ServletContextListener & init parameters

2004-03-02 Thread Robert Taylor
page? > > Thanks, > > Regards, > > Harm de Laat > Informatiefabriek > The Netherlands > > > > > > "Robert Taylor" <[EMAIL PROTECTED]> > 02-03-2004 13:43 > Please respond to > "Struts Users Mailing List" <[EMAIL

RE: ServletContextListener & init parameters

2004-03-02 Thread Robert Taylor
The problem is your servlet init parameters don't exist in the ServletContext. If you want them to be available to your code, then define them as init parameters to your application: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http

RE: DispatchAction and validate

2004-03-02 Thread Robert Taylor
Yes. The DispatchAction will only invoke the method defined in the request under the name defined in the parameter attribute of your action mapping. So if I had update() and restore() as methods in a DispatchAction, and I only wanted to validate on the update, then I would only define validate="

RE: servlet filters and authentication

2004-02-26 Thread Robert Taylor
You may want to see if this supports your requirements: https://sourceforge.net/projects/securityfilter/ robert > -Original Message- > From: David Evans [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 26, 2004 12:07 PM > To: Struts Users Mailing List > Subject: servlet filters and

RE: row counts in logic:iterate...

2004-02-26 Thread Robert Taylor
First: Please do not send HTML emails to the list. Now to address your question: JSTL makes this easy. Using Struts tags: <%=indexId.intValue() + 1%> robert > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 26, 2004 12:05 PM

RE: row counts in logic:iterate...

2004-02-26 Thread Robert Taylor
#x27;t that be <%= index.intValue() + 1 %> instead of using indexId, > since you set the index variable to be called "index" in the iterate tag? > > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 26, 2004 11:

RE: Common Services across Different Actions.

2004-02-25 Thread Robert Taylor
Wrap the service in a ServletContextListener. The Servlet2.3 spec and higher mandate that these listeners be invoked before the application can process requests; so initialization can take place here and they have access to the application init parameters through web.xml. Then place them in Servl

RE: A question on Struts taglib.

2004-02-24 Thread Robert Taylor
Try this:       If you can use JSTL, this may work for you, assuming ShopWorkOrderFormBean named shopWorkOrderForm in some scope:   robert > -Original Message- > From: Au-Yeung, Stella H [mailto:[EMAIL PROTECTED] > Sent: Tuesday, Febr

[OT] RE: An OCI - JDBC Source Code snippet is required for inserting CLOB data using Java.

2004-02-18 Thread Robert Taylor
Google: http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Storing+CLOB+in+Oracle+using+JDBC Hit: http://otn.oracle.com/tech/java/jroadmap/jdbc/listing.htm robert > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 18, 2004 7:20 AM >

RE: [OT] Sending email from struts

2004-02-11 Thread Robert Taylor
Matt, we ended up storing our email templates in a configuration file and loading them into memory (using Digester) at application run time. The configuration templates can contain both plain text and HTML message versions. We leverage the java.text.MessageFormat API to replace place holders in the

RE: how to output html symbol to jsp page from user-defined taglib?

2004-02-07 Thread Robert Taylor
Try or don't encode your HTML symbols in your file. Let do it for you. robert > -Original Message- > From: Ricky Lee [mailto:[EMAIL PROTECTED] > Sent: Saturday, February 07, 2004 9:42 AM > To: [EMAIL PROTECTED] > Subject: how to output html symbol to jsp page from user-defined taglib? >

RE: [OT] Examining Response Headers

2004-02-07 Thread Robert Taylor
gt; response headers: > > > > http://www.widgetbuilders.com/ > > > > I recently did some socket programming. DevProxy was an > invaluable tool. You can see exactly > > what flows through the socket between browser and host. Very > good GUI interface. > >

RE: [OT] Examining Response Headers

2004-02-06 Thread Robert Taylor
eed to run it using something like > java org.apache.soap.util.net.TcpTunnelGui > server_host_name 80 > > where is the port the tool listens on. > server_host_name is your app server name > 80 is the port your server listens on. > > You then need to configure your browser to use 8888 >

[OT] Examining Response Headers

2004-02-06 Thread Robert Taylor
Sorry for the OT post, but Googling and searching the mailing list archives are not producing much. I may not be asking the right question though. Anyhow, I need a tool (free) to examine the request and response headers. Any suggestions? robert -

RE: Using Parameter in Action via the struts-config.xml

2004-02-04 Thread Robert Taylor
> But how can I get the value specified in the "parameter" > attribute in my action class. ActionMapping.getParameter() will get you the value of the parameter attribute. > Also using "set-property" inside a > "action" tag does not work? It works for me. You have to subclass ActionMappin

RE: global data objects -- best practices?

2004-02-04 Thread Robert Taylor
Yes, the ServletContext is the most appropriate place to put it if you want your data to be available during the life time of the application. If your container conforms to Servlet spec. 2.3 or higher, a solution is to implement one or more ServletContextListener(s). Is the a best practice? I thi

RE: [OT]CVS client

2004-02-04 Thread Robert Taylor
You might try Tortois CVS: http://www.tortoisecvs.org/ robert > -Original Message- > From: Ramadoss Chinnakuzhandai [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 03, 2004 3:17 PM > To: [EMAIL PROTECTED] > Subject: [OT]CVS client > Importance: High > > > Hi, > can anybody

RE: static variables in actions

2004-02-03 Thread Robert Taylor
John, why not retrieve these from the DB at application start up time and place them in the ServletContext where they are accessible for the life time of the application and easily rendered by JSTL or Struts tags. robert > -Original Message- > From: Menke, John [mailto:[EMAIL PROTECTED] >

RE: [OT] looking for a method that will be called on application startup

2004-02-03 Thread Robert Taylor
The ServletContextListener does exactly what you want. When the web application starts the ServletContextListener.contextInitialized() is invoked passing you ServletContextEvent which contains the ServletContext. These are guaranteed to be invoked before the web application can process any requests

RE: [OT] looking for a method that will be called on application startup

2004-02-02 Thread Robert Taylor
javax.servlet.ServletContextListener robert > -Original Message- > From: Arne Brutschy [mailto:[EMAIL PROTECTED] > Sent: Monday, February 02, 2004 8:00 AM > To: Struts Users Mailing List > Subject: [OT] looking for a method that will be called on application > startup > > > hi, > > I'm

RE: Validation problem

2004-01-29 Thread Robert Taylor
What's the name of your "Cancel" button? Struts should not validate if it finds org.apache.struts.taglib.html.CANCEL or org.apache.struts.taglib.html.CANCEL.x Take a look at the RequestProcessor.processValidate() code: if (request.getAttribute(Globals.CANCEL_KEY) != null) { if (log.i

RE: Unit Test in struts

2004-01-21 Thread Robert Taylor
Google: http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Unit+Test+In+Struts I believe you want: http://strutstestcase.sourceforge.net/ but I could be wrong. robert > -Original Message- > From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 21, 2004 2:17 P

RE: Using ArrayList instead of String[] properties

2004-01-13 Thread Robert Taylor
Wendy, If you simply want to present a list of options to the user represented as check boxes and collect the selected options, and the selected options are just single string values, then you can do the following: Define accounts property as an java.lang.String[] and initialize it to {}. Retr

RE: [OT] Properties and Singleton

2004-01-12 Thread Robert Taylor
You could simply store the loaded Properties object in the ServletContext where the same instance would be available to the entire web application thus acting as a singleton of sorts without necessarily implementing the pattern. robert > -Original Message- > From: jay andrews [mailto:[EMA

RE: Generic Error Handler

2004-01-12 Thread Robert Taylor
Matthew, What we do is define this in our web.xml file so that when the container gets a 500, 404, etc... error status code, I can then assign the appropriate Struts action to handle it. For example: 500 /c/systemError 404 /c/fileNotFoundError For appl

RE: Exception handling in struts

2004-01-11 Thread Robert Taylor
rror message is: > > Unable to read configuration file > ???-Martin > - Original Message - > From: "Robert Taylor" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" <[EMAIL PROTECTED]>; > <[EMAIL PROTECTED]> > Sent: Sunday, January

RE: Exception handling in struts

2004-01-11 Thread Robert Taylor
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac he_org&restrict=&exclude=&words=handle+exceptions http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Struts+Exception+Hand ling robert > -Original Message- > From: vasudevrao gupta [mailto:[EMAIL PROTECTED]

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-09 Thread Robert Taylor
anUtils to Convert DynaValidatorForm) > > > Robert, I followed your advices. Your code works > very well. I have successfully inserted all the > values of my bean properties into the database. Thank > you very much. > --- Robert Taylor <[EMAIL PROTECTED]> wrote: > > The sa

RE: dynamic parameters to DynaActionForm

2004-01-08 Thread Robert Taylor
; > I have been researching all morning and still can not find a good > answer. > > I need to send the action a set of parameters like.. > > param1 > param2 > param3 > . > . > . > param# > > The amount of parameters in the form are dynamic. How or what type of

RE: dynamic parameters to DynaActionForm

2004-01-08 Thread Robert Taylor
Look at IndexedProperties: http://jakarta.apache.org/struts/faqs/indexedprops.html robert > -Original Message- > From: Nathan Maves [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 08, 2004 1:02 PM > To: Struts Users Mailing List > Subject: dynamic parameters to DynaActionForm > > >

RE: html link to a action with parameters

2004-01-08 Thread Robert Taylor
Invoke my action which uses a dyna action form Please do some research before posting. robert > -Original Message- > From: Nathan Maves [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 08, 2004 1:03 PM > To: Struts Users Mailing List > Subject: html link to a action with parameters >

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Robert Taylor
uot;." ); > System.out.println( "The subject is " + > threadTopic + "." ); > System.out.println( "The creation date is " + threadCreationDate ); > System.out.println( "The number of replies are " > + threadReplyCount ); > > md

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Robert Taylor
; > md.createThread( receiver, sender, threadTopic, > threadBody, threadCreationDate, > >threadViewCount, >threadReplyCount ); > > int threadID = 0; > . > . > r

RE: forwarding request from select tag

2004-01-08 Thread Robert Taylor
If you use then the selected value should show as being selected when the page is reloaded. robert -Original Message- From: Namasivayam, Sudhakar (Cognizant) [mailto:[EMAIL PROTECTED] Sent: Thursday, January 08, 2004 9:15 AM To: Struts Users Mailing List Subject: forwarding requ

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-08 Thread Robert Taylor
sender is " + threadBean.getSender() ); > > 3. BeanUtils.copyProperties() uses reflection to copy > properties. Are you using proper JavaBeans naming > convention? > > Yes, I used a pair of get and set methods for each > properties in the JavaBean (ThreadBean.java). And in >

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Robert Taylor
e Business Tier!!! > (Used BeanUtils to Convert DynaValidatorForm) > > > What does BeanUtils.populate(); do? I used > BeanUtils.copyProperties(); > Does it make any difference? > > --- Robert Taylor <[EMAIL PROTECTED]> wrote: > > Have you checked to make sure that the f

RE: All The Bean Properties Are Null in the Business Tier!!! (Used BeanUtils to Convert DynaValidatorForm)

2004-01-07 Thread Robert Taylor
Have you checked to make sure that the fields you expect actually exist in the form before calling BeanUtils.populate()? If so, have you checked to see if the data was copied properly just after BeanUtils.populate()? BeanUtils.populate() uses reflection to copy properties. Are you usingproper Ja

RE: Mix protocols transparently in Struts

2004-01-06 Thread Robert Taylor
Take a look at http://struts.ditlinger.com/ , the Struts SSL Extension. robert > -Original Message- > From: Alain Van Vyve [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 06, 2004 10:48 AM > To: [EMAIL PROTECTED] > Subject: Mix protocols transparently in Struts > > > > I would like

RE: split table

2004-01-06 Thread Robert Taylor
The displaytag library will do what you want: http://sourceforge.net/projects/displaytag/ robert > -Original Message- > From: Hari_s [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 06, 2004 12:50 AM > To: Struts Users Mailing List > Subject: Re: split table > > > thank for your respon

RE: Adding items to a vector of formbean in the jsp

2004-01-05 Thread Robert Taylor
Look at ListUtils.lazyList() http://jakarta.apache.org/commons/collections/api/org/apache/commons/collect ions/ListUtils.html#lazyList(java.util.List,%20org.apache.commons.collection s.Factory) robert > -Original Message- > From: Paulo Rezende [mailto:[EMAIL PROTECTED] > Sent: Monday, Jan

RE: selecting a value from drop down list

2004-01-05 Thread Robert Taylor
; Thanks for your reply robert. > > I am using struts and in the action i am using > request.getParameter("sname"); > > for all other text boxes i get the value using request.getParamter(); > > but I dont get any value for the drop down list. > > Can you help me

FW: selecting a value from drop down list

2004-01-05 Thread Robert Taylor
-Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Monday, January 05, 2004 11:43 AM To: [EMAIL PROTECTED] Subject: RE: selecting a value from drop down list Okay. I just saw something in your original post. You are not supplying any values in your option

RE: selecting a value from drop down list

2004-01-05 Thread Robert Taylor
Assuming you are using Struts to process the form submission, once the user selects a value from the drop down list and submits the form to be processed, the action which you have configured to handle this form submission, will have access to the selected value via the form configured to store the

RE: Problem in Displaying ArrayList constents in jsp

2004-01-02 Thread Robert Taylor
Are you redirecting instead of forwarding? If so, your request attributes will be lost once the page is rendered. robert > -Original Message- > From: Sudhakar G [mailto:[EMAIL PROTECTED] > Sent: Friday, January 02, 2004 12:05 AM > To: [EMAIL PROTECTED] > Subject: Problem in Displaying Arr

RE: server-side validation with Validator

2003-12-30 Thread Robert Taylor
One could use DynaValidatorActionForm for wizard processes that used the same form but validate different fields based on the path. robert > -Original Message- > From: Brice Ruth [mailto:[EMAIL PROTECTED] > Sent: Tuesday, December 30, 2003 1:29 PM > To: Struts Users Mailing List > Subject

RE: [Tiles] Populating Tiles definition attribute at runtime

2003-12-30 Thread Robert Taylor
Thanks to all who replied. I'll look into each suggested solution more closely. robert > -Original Message- > From: Robert Taylor [mailto:[EMAIL PROTECTED] > Sent: Monday, December 29, 2003 2:15 PM > To: Struts Users Mailing List > Subject: RE: [Tiles] Populat

RE: [Tiles] Populating Tiles definition attribute at runtime

2003-12-29 Thread Robert Taylor
ude according to a given > parameter? > > > > <- > > > > > choose.jsp > > > > > Pedro Salgado > > > On 29/12/2003 17:46, "Robert Taylor" <[EMAIL PROTECTED]> wrote: > > > Greetings, I have a tiles definition in my tiles-defs.xml > similar t

[Tiles] Populating Tiles definition attribute at runtime

2003-12-29 Thread Robert Taylor
Greetings, I have a tiles definition in my tiles-defs.xml similar to below: which I would like to be able to modify the "heading" value such that at runtime I could substitute a value for {0}. For example, it would be ideal to use a JSTL type of syntax such as: bu

RE: Testing iterator quantity

2003-12-29 Thread Robert Taylor
Using JSTL tags and assuming you have a collection of elements named "elements" in some scope: robert > -Original Message- > From: Otávio Augusto [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 28, 2003 10:58 PM > To: [EMAIL PROTECTED] > Subject: Testing iterator quantity > > >

RE: Design question regarding struts security features

2003-12-29 Thread Robert Taylor
You should be able to do this with standard J2EE security provided by your web container. If you store your user credentials in a database, then you may want to look at SecurityFilter: http://sourceforge.net/projects/securityfilter/ It allows you to leverage standard J2EE security features but p

RE: DynaBean with JSTL

2003-12-23 Thread Robert Taylor
As long as the DynaBean implentation exposes a Map interface then yes. For example, DynaActionForm implements DynaBean and exposes a Map interface, so if you had a property named "customerName", in a form bean named "customerDetailForm", then you could render that property like so using JSTL. ro

RE: logic:iterate inside a logic:iterate ??

2003-12-18 Thread Robert Taylor
You should probably use JSTL for this. > -Original Message- > From: gentyjp [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 18, 2003 12:16 PM > To: [EMAIL PROTECTED] > Subject: logic:iterate inside a logic:iterate ?? > > > >Hi > > I'am a Struts newbie, s

RE: html:select default value problem

2003-12-18 Thread Robert Taylor
Try this: 0 - INACTIVE 1 - ACTIVE The regular HTML element doesn't "communicate" with Struts. You need to use robert > -Original Message- > From: Keith C. Klopfer [mailto:[EMAIL PROTECTED] > Sent: Thursday, December 18, 2003 6:12 AM > To: [EMAIL PROTECTED] > Subject: html

RE: Help needed in form beans

2003-12-18 Thread Robert Taylor
You may want to consider creating a separate object to hold these values in the session and use your form beans for data input. This way you can decide when to populate your form beans with the data that you've captured in the session. To control when reset() affects my form properties I subclass

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Robert Taylor
="java.lang.String"/> > size="82" maxlength="25" tabindex="1"/> > You could use Struts-EL and do something like: The Struts-EL taglib and jar file can be found in the /contrib directory of the Struts distribution. > Fifth, the error message is

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-18 Thread Robert Taylor
creator}" scope="session"/> did > not put the value in the session scope? > > 2. What is wrong with the tag? > > 3. What should I do if I want to put the value of > "creator" in a session scope? > > -C > > > --- Robe

RE: Commons validation framework and struts

2003-12-17 Thread Robert Taylor
> > Hello Robert, > > Yes. I have also defined the validator plugin in my > struts-config.xml file. > I am attaching my example code here. Please tell me why it is not working. > > Thanks for your help and patience. > > Regards, > Abhishek. > > -Original Mes

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Robert Taylor
pass this Sring and write it out in a > > text > > field in JSP#2 and just could not get it right. I > > got > > this error > > message: > > > > [ServletException in:/article/content/postForm.jsp] > > Cannot find bean cr in scope session' > >

RE: How To Output the Value of a String That Is Passed From Another JSP?

2003-12-17 Thread Robert Taylor
> scope="session"/> >View/Send Messages > > > And in postForm.jsp, I tried to retrieve that String > and write it out in a text field this way: > > scope="session" type="java.lang.String"/> >value="<%

RE: Problem

2003-12-17 Thread Robert Taylor
Did you include the Struts bean tag-lib directive? In other words if you view source, do you see ? robert > -Original Message- > From: Shaun Roach [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 17, 2003 3:13 PM > To: [EMAIL PROTECTED] > Subject: Problem > > > Hello, I have been

RE: Newbie: java.lang.boolean and DynaActionForm?

2003-12-17 Thread Robert Taylor
To address the "fundemental" question, it is considered a "best practice" to only use String or Boolean objects or collections of String and/or Boolean objects or collection of data structures which contain String and/or Boolean objects in your forms. This is because it gives you more control over

RE: How To Output the Value Of a Hidden Field?

2003-12-17 Thread Robert Taylor
There are a couple (3) ways to do it. 1. Have both JSP#1 and 2 use the same form then have the action that processes JSP#1 simply forward to JSP#2 and Struts will auto-populate the field. 2. Have the action that processes JSP#1 forward or redirect to JSP#2 whose form has the same property name

  1   2   3   4   5   6   >