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 define

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 back to

RE: Using JSTL Instead of Nested Tags

2004-03-25 Thread Robert Taylor
Mike, you will have to expose the form like: c:set var=form value=${myForm}/ ...where myForm is its name defined in the struts-config file. If its DynaForm then you have to expose the form map: c:set var=form value=${myForm.map}/ Once you do this, you can use JSTL to access and render

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 indexed

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: session-config session-timeout60/session-timeout /session-config

RE: Bean:write

2004-03-21 Thread Robert Taylor
Try using the following with JSTL: c:set var=myValue value=${teacher.SSN}/ or you can try the following using bean:*.../ bean:define id=myValue name=teacher property=SSN/ If you are still getting a error make sure you are using proper JavaBean naming conventions. You can find this in the

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 html:select property=no_account c:forEach var=accounts items=${Accounts} varStatus=status html_el:option value=${account.no_account} c:out

RE: action - delegate - facade

2004-03-18 Thread Robert Taylor
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 needed to display...including types like int, Date, boolean, etc... I would

RE: SSLEXT

2004-03-17 Thread Robert Taylor
Use the sslext:pageScheme secure=false/ 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

RE: SSLEXT

2004-03-17 Thread Robert Taylor
To: 'Struts Users Mailing List' 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- From: Robert Taylor [mailto:[EMAIL

RE: SSLEXT

2004-03-17 Thread Robert Taylor
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 -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 17 de março de 2004 15:29 To: Struts

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: SSLEXT Yes. Instead

RE: SSLEXT

2004-03-17 Thread Robert Taylor
another action? -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 17 de março de 2004 15:52 To: Struts Users Mailing List Subject: RE: SSLEXT Yes. Instead of forwarding directly to the Tile, define an action which simply forwards (or redirects

RE: SSLEXT

2004-03-17 Thread Robert Taylor
: action path=/initial forward=tiles.initial set-property property=secure value=false/ /action Any idea? Thanks! -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 17 de março de 2004 16:35 To: Struts Users Mailing List Subject: RE: SSLEXT

RE: SSLEXT

2004-03-17 Thread Robert Taylor
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: Struts Users Mailing List Subject: RE: SSLEXT Hmmm. Okay, then try using your original action mapping def: action

RE: Links within ActionErrors

2004-03-17 Thread Robert Taylor
Use c:out value=${error} escapeXml=false/ 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

RE: action - delegate - facade

2004-03-17 Thread Robert Taylor
your business services accessible from other platforms, systems, whatever... My few bucks...Anyone has comments...they are welcome... Regards Henrik - Original Message - From: Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED

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
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 a widely used technique is to use BeanUtils to copy the properties from the ActionForm

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 wrote some code to do this for an open-source

RE: logic:equal

2004-03-16 Thread Robert Taylor
Daniel, it would be easier to use JSTL for this: c:if test=${myValue == 1} The string contained the word Struts. /c:if JSTL can compare values coming from any scope; application, session, pagecontext, request, or request parameters. Currently, the bean:define .../ value attribute doesn not

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: [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: [SwitchAction]

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

2004-03-15 Thread Robert Taylor
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, I don't believe the Servlet spec. allows you to forward to another web

RE: Accessing boolean attribute using logic

2004-03-15 Thread Robert Taylor
Try this: logic:equal scope=session name=userid property=admin value=false 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 logic Hi all, I

[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

RE: [OT] Search string tokenizer

2004-03-15 Thread Robert Taylor
like this: (.+|[\d\w]*) You should get close to what you need (i think the above will return the space character as a token too, not sure). And here is a program that lets you test out patterns to see how they match strings or will be split http://www.weitz.de/regex-coach/ Robert Taylor

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

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/https

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 written

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 12,

RE: [OT] Object Design Question

2004-03-12 Thread Robert Taylor
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 Taylor [mailto:[EMAIL PROTECTED] Sent: Friday, March 12, 2004 1:01 PM To: Struts Users Mailing List

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

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: [EMAIL

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, Thanks for the

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 same

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

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

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: ?xml version=1.0 encoding=UTF-8? web-app version=2.4 xmlns=http://java.sun.com/xml/ns/j2ee;

RE: ServletContextListener init parameters

2004-03-02 Thread Robert Taylor
from a JSP 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 PROTECTED] To Struts Users Mailing List [EMAIL PROTECTED] cc Subject RE

RE: DispatchAction and validate

2004-03-02 Thread Robert Taylor
and validate do I need an updated .xdt file for this? y xdoclet generated Struts-config.xml is not having the action mappings for the actiin class of mine, extending Dispatch Action. It shows it fine for classes extending Action class though. Thanks n advance for the help, Sam Robert

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. c:forEach var=item items=${form.items} varStatus=status tr tdc:out value=${status.count}//td tdc:out value=${item.someValue}//td /tr /c:forEach Using Struts tags: logic:iterate id=item

RE: row counts in logic:iterate...

2004-02-26 Thread Robert Taylor
% 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:15 AM To: Struts Users Mailing List; [EMAIL PROTECTED] Subject: RE: row counts

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: 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

RE: A question on Struts taglib.

2004-02-24 Thread Robert Taylor
Try this: logic:iterate id=parts indexId=index collection=%=ShopWorkOrderFormBean.getShopWorkOrder().getPartList()% type=com.cat.sdl.fdd.dataBean.shopWorkOrder.PartBean/td tr td class=formCellbean:write name=parts property=partNumber/nbsp;/td td class=formCellbean:write name=parts

[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=enie=UTF-8oe=UTF-8q=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 To:

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

RE: [OT] Examining Response Headers

2004-02-07 Thread Robert Taylor
socket programming. DevProxy was an invaluable tool. You can see exactly what flows through the socket between browser and host. Very good GUI interface. Mike --- Robert Taylor [EMAIL PROTECTED] wrote: Sorry for the OT post, but Googling and searching the mailing list archives

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

2004-02-07 Thread Robert Taylor
Try c:out value=${symbal} escapeXml=false/ or don't encode your HTML symbols in your file. Let c:out .../ 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

[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: [OT] Examining Response Headers

2004-02-06 Thread Robert Taylor
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 and localhost to proxy. Regards, Richard --- Robert Taylor [EMAIL PROTECTED] wrote

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 suggest

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

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 ActionMapping and

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

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-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 looking

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

RE: Unit Test in struts

2004-01-21 Thread Robert Taylor
Google: http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=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 PM

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 {}.

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: error-page error-code500/error-code location/c/systemError/location

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

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_orgrestrict=exclude=words=handle+exceptions http://www.google.com/search?hl=enie=UTF-8oe=UTF-8q=Struts+Exception+Hand ling robert -Original Message- From: vasudevrao gupta [mailto:[EMAIL PROTECTED] Sent:

RE: Exception handling in struts

2004-01-11 Thread Robert Taylor
- Original Message - From: Robert Taylor [EMAIL PROTECTED] To: Struts Users Mailing List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, January 11, 2004 8:45 AM Subject: RE: Exception handling in struts http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_ja karta_apac

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

2004-01-09 Thread Robert Taylor
) 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 same problem exists, you are calling getters on a ThreadBean instance

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

2004-01-08 Thread Robert Taylor
. 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 my action class, I could print out the value of those properties. --- Robert

RE: forwarding request from select tag

2004-01-08 Thread Robert Taylor
If you use html:option .../ 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

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; . . return threadID; } } --- Robert Taylor

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

2004-01-08 Thread Robert Taylor
, threadReplyCount ); int threadID = 0; . . return threadID; } } --- Robert Taylor [EMAIL PROTECTED] wrote: Your code seems a bit confusing based upon what you want to achieve. If indeed you want ThreadHandler to inherit from ThreadBean

RE: html link to a action with parameters

2004-01-08 Thread Robert Taylor
html:link action=/myDynaActionFormActionNameInvoke my action which uses a dyna action form/html:link 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

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 is it

RE: dynamic parameters to DynaActionForm

2004-01-08 Thread Robert Taylor
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 object would you use in a form bean. Nathan On Jan 8, 2004, at 11:18 AM, Robert Taylor

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

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

2004-01-07 Thread Robert Taylor
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 fields you expect actually exist in the form before calling

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 response

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 to mix

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

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. select name=sName style=width:225px logic:iterate id

RE: selecting a value from drop down list

2004-01-05 Thread Robert Taylor
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 more Regards Kamal -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED

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,

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

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] Populating Tiles definition attribute

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: 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

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: table ... c:forEach var=element items=${elements} varStatus=status c:if test=${(status.index % 10 == 0) !status.first}/tr/c:ifc:if test=${status.index % 10 == 0}tr/c:if td!-- put data here --/td c:if

[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: definition name=search extends=layout put name=heading value={0}Search type=string / put name=content value=/search.jsp type=page / /definition which I would like to be able to modify the heading value such

RE: [Tiles] Populating Tiles definition attribute at runtime

2003-12-29 Thread Robert Taylor
=header value=/header.jsp/ put name=body value=/choose.jsp/ - put name=footer value=/footer.jsp/ /definition choose.jsp c:import url='/WEB-INF/com/website/tiles/choose/${request.choose}'/ Pedro Salgado On 29/12/2003 17:46, Robert Taylor [EMAIL PROTECTED] wrote: Greetings

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. c:out

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

2003-12-18 Thread Robert Taylor
var=cr value=${articleForm.creator} scope=session/ did not put the value in the session scope? 2. What is wrong with the c:set tag? 3. What should I do if I want to put the value of creator in a session scope? -C --- Robert Taylor [EMAIL PROTECTED] wrote: Are you sure

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

2003-12-18 Thread Robert Taylor
=creator value=${cr}/ The Struts-EL taglib and jar file can be found in the /contrib directory of the Struts distribution. Fifth, the error message is that cr cannot be found in the session scope. Once again, this is because the JSTL taglib directive is missing. -Caroline --- Robert Taylor

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

RE: html:select default value problem

2003-12-18 Thread Robert Taylor
Try this: html:select property=status html:option value=00 - INACTIVE/html:option html:option value=11 - ACTIVE/html:option /html:select The regular HTML option/ element doesn't communicate with Struts. You need to use html:option / robert -Original Message- From: Keith C.

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

2003-12-18 Thread Robert Taylor
logic:iterate id=document name=formName property=documents logic:iterate id=lv name=document property=labelValueBeans bean:write name=lv property=label/ bean:write name=lv property=value/ /logic:iterate /logic:iterate You should probably use JSTL for this. c:forEach var=document

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

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: 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 bean:write name=statLine property=lineDate/ ? robert -Original Message- From: Shaun Roach [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 3:13 PM To: [EMAIL PROTECTED]

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

2003-12-17 Thread Robert Taylor
/ html:text property=creator value=%=author% size=82 maxlength=25 tabindex=1/ -Caroline --- Robert Taylor [EMAIL PROTECTED] wrote: 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

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

2003-12-17 Thread Robert Taylor
--- Robert Taylor [EMAIL PROTECTED] wrote: 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

RE: Commons validation framework and struts

2003-12-17 Thread Robert Taylor
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 Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 8

  1   2   3   4   5   >