RE: Multiple forms in JSP using struts

2004-11-05 Thread Freddy Villalba A.
I've never liked this since I've always thought that, if one uses this approach, as soon as one of those forms requires remembering its values, all (action)forms (including that one) are forced to having session scope (then you'd have to setup a garbage collection process for those session forms).

Re: Multiple forms in JSP using struts

2004-11-05 Thread Koushik
I agree with u that Action Forms should not session scoped unless required but i guess the question was whether u can use mulitple forms in jsp,i.e. html:form. I hope i have guess it right? - Original Message - From: Freddy Villalba A. [EMAIL PROTECTED] To: Struts Users Mailing List

Re: Using Tiles outside of an ActionServlet

2004-11-05 Thread William Ferguson
Doh - I guess I wasn't clear enough. I want to have the Requests for the html pages (Section2) forwarded to a standardLayout page which uses tiles to provide consistent screens. The originally targetted html page needs to be included/embedded within the standardLayout page. David, I guess I

RE: Struts Best Practices

2004-11-05 Thread Kinjal Sonpal
I am handling a web project and using struts framework. Can any one tell me where to find stuff on Struts Best Practices or Desgin and Coding Standards for a struts Application. There are couple of good articles that I found useful when I was building my first struts based project. I've put

Multiple input forms - one action - one validator, how?

2004-11-05 Thread Can Gencer
Hello, I have multiple forms that point to the same action. It is not a multipage form, it is done as different types of searches done on different pages) and I would like to validate the forms individually using the validate() method on the form bean. However, I am required to define an input=

Re: Multiple input forms - one action - one validator, how?

2004-11-05 Thread William Ferguson
If you want different types of validation to be performed before the Action is executed, then assuming you are using the Struts Validator I recommend that you : 1) ensure your Forms extend from ValidatorActionForm, 2) Create separate ActionMappings for each type of validation you want to perform

Re: Need an alternative to bean:define

2004-11-05 Thread James Mitchell
As an FYI. I don't think it is wise to say that the Struts taglibs will be going away. I am of the opinion that they will be around for quite some time. At least until JSF is adopted considered as the default choice for all new web development. On a somewhat related note, do you even know

Re: [****] Including a Struts action in a JSP - IllegalStateException / truncated response issue

2004-11-05 Thread Jeff Beal
I think that it is unusual to directly include Struts actions in JSP files. When composing pages of different parts, Tiles is the much more common approach. The standard usage of Tiles is to include JSP files directly, but you can use tiles to include Struts actions in JSP files. (See

[OT] Re: Need an alternative to bean:define

2004-11-05 Thread Erik Weber
Many times newer developers don't care so much about the academics of what is proper. For example, they see the Struts tags and like them, and then become attached to them. It can be disconcerting to them to find out that they are using an outdated technology so soon after they have discovered

Re: Struts Best Practices

2004-11-05 Thread Adam Hardy
hi rajagopal, dynaforms are useful for putting something together quickly, but I find them less useful than hardcoded form classes sometimes, especially if there are many form fields. The way to access some data from the form submit in your action is usually so for a dynaform:

RE: Using Tiles outside of an ActionServlet

2004-11-05 Thread David G. Friedman
If you are only serving HTML pages and want to wrap them in your standard layout, forget tiles and check out SiteMesh: www.opensymphony.com/sitemesh The Tiles mapping I suggested can do more complex things for you than SiteMesh. It would require setting up a tiles controller. They are explained

How use the BeanUtils and interface converts

2004-11-05 Thread Gabriel França Campolina
Hi, I'd like know how I can use BeanUtils.copyProperties(form, model), when I my objects have name equals but types noequals, example, in my form I have a attribuite named dateInsert of type string, but in my model I have this attribuite of the type java.util.Date. How I specified to BeanUtils

Re: How use the BeanUtils and interface converts

2004-11-05 Thread Joe Germuska
Writing a date converter is pretty simple; the only reason there isn't one included in the beanutils distribution is that there's not a very easy way to configure the date format in a universal way. Below is an example. This one is implemented as a static inner class within the only class

Re: Connection Pooling With Struts

2004-11-05 Thread Peng Tuck
Tomcat can provide a connection pool, you just have to configure the pool and look up the resource in your application. The details can be found here : http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html Tushar Agrawal wrote: Hi Freinds, I am using struts-config

Re: [****] Including a Struts action in a JSP - IllegalStateException / truncated response issue

2004-11-05 Thread Parke Jeff
Thanks for the information, Jeff. Unfortunately, though the Tiles Advanced Features Guide indicates it is possible to include multiple Struts actions (using tiles:insert) on one page, I _still_ get the IllegalStateException Response has already been committed. We often need to prepare data to

How to use getServletConfig( ) outside a Servlet.

2004-11-05 Thread Morkeleb
Hi. I want to make a static class which access a configuration file in /WEB-INF/. I tried Classname.class.getResourceAsStream(/WEB-INF/config-file.xml); but it wont work. So I thought I have to do it by using getServletConfig().getServletContext( ).getResourceAsStream(/WEB-INF/config-file.xml)

Re: [****] Including a Struts action in a JSP - IllegalStateException / truncated response issue

2004-11-05 Thread Kris Schneider
Can't really comment on Tiles since I don't use it, but this recent thread may be of interest: http://marc.theaimsgroup.com/?t=10976831933 Quoting Parke Jeff [EMAIL PROTECTED]: Thanks for the information, Jeff. Unfortunately, though the Tiles Advanced Features Guide indicates it is

Hi

2004-11-05 Thread Srilatha Salla
Hi, I have a logic:iterate tag in my jsp. logic:iterate name=autoForm property=menuEntries id=menuEntries tr td valign=middle bean:write name=menuEntries property=key/ html:hidden name=menuEntries property=key/ /td

Struts html:checkbox

2004-11-05 Thread Jean-Philippe Couture
Hi, Sorry if this problem has already been solved, I cannot seem to find anything in the Struts List Archive... I have an Action class that sets, in the ActionForward method of the said Action class, an attribute of an object in the request scope to push it to the presentation layer (JSP). In

Re: Multiple input forms - one action - one validator, how?

2004-11-05 Thread Axel Groß
Hi Can! actually, i can't think of any other 'standard' solution (using the actionValidator you still would need the single input attribute) Maybe you could use a combined change of ActionMapping and ValidatorActionForm. Subclass those and set them in your config files. Change the ActionMapping

RE: Struts html:checkbox

2004-11-05 Thread Robert Taylor
Set the corresponding form property to true prior to loading the page. If the actual form property value equals the ${boolValue}, then the checkbox should render as checked. That is, it should produce the appropriate HTML which should render the checkbox as checked. robert -Original

Re: Hi

2004-11-05 Thread Niall Pemberton
Using indexed=true will generate names such as menuAction[0], menuAction[1] etc... html:select name=menuEntries property=menuAction indexed=true Niall - Original Message - From: Srilatha Salla [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, November 05, 2004 4:41 PM

Re: Hi

2004-11-05 Thread Srilatha Salla
Thanks for the help. I tried to understand what was on the site, it might take some time. If possible can you let me know how to implement it in my case. I have MenuEntry[] menuentries. in my form. MenuEntries has properties key, description and menuaction. So, what should i change this

Authentication and Authorization

2004-11-05 Thread Davi Salgueiro
Hi Every One, Does Struts have any type of authentication/ authorization mecanism? Best regards, Davi Salgueiro

Authentication and Authorization

2004-11-05 Thread Davi Salgueiro
Hi Every One, Does Struts have any type of authentication/ authorization mecanism? Best regards, Davi Salgueiro

Re: Authentication and Authorization

2004-11-05 Thread Vic (Vinny) Cekvenich
Struts requires Servlet support container. Therefore containers (such as tomcat, resin, etc). support declerative security via web.xml. You can read for example about tomcat jdbc realms. So struts leverages J2EE security and you can extend it and customize it. .V Davi Salgueiro wrote: Hi Every

Re: Authentication and Authorization

2004-11-05 Thread Mauro Morales M.
El vie, 05-11-2004 a las 13:37 -0600, Vic (Vinny) Cekvenich escribió: Struts requires Servlet support container. Therefore containers (such as tomcat, resin, etc). support declerative security via web.xml. You can read for example about tomcat jdbc realms. So struts leverages J2EE security

Re: Authentication and Authorization

2004-11-05 Thread Hubert Rabago
Once you have your users and roles defined, you can read use the roles attribute for action mappings to restrict access to those actions to a set of roles. Hubert On Fri, 05 Nov 2004 16:46:51 -0300, Mauro Morales M. [EMAIL PROTECTED] wrote: El vie, 05-11-2004 a las 13:37 -0600, Vic (Vinny)

Re: [****] Including a Struts action in a JSP - IllegalStateException / truncated response issue

2004-11-05 Thread Thompson Marzagão
I use tiles for it. A typical set of related definitions in my tiles configuration file: definition name=page.site.home path=/WEB-INF/jsp/layout/main.jsp put name=menu value=action.site.menu / put name=calendar value=action.site.calendar / put name=survey

Re: Using Forward and Include using RequestProcessor

2004-11-05 Thread Sanjay Choudhary
posting again On Fri, 5 Nov 2004 10:49:25 -0800, Sanjay Choudhary [EMAIL PROTECTED] wrote: Hi All, I have an application which contains 100+ jsp's. Use case is to inject the Javascript conditionally into the JSP's. Condition is - If a cookie is present in the request, inject the

Fwd: Using Forward and Include using RequestProcessor

2004-11-05 Thread Sanjay Choudhary
-- Forwarded message -- From: Sanjay Choudhary [EMAIL PROTECTED] Date: Fri, 5 Nov 2004 10:49:25 -0800 Subject: Using Forward and Include using RequestProcessor To: [EMAIL PROTECTED] Hi All, I have an application which contains 100+ jsp's. Use case is to inject the Javascript

RE: [****] Including a Struts action in a JSP - IllegalStateException / truncated response issue

2004-11-05 Thread David G. Friedman
Jeff, Try this previous post on IllegalStateException response has already been committed: http://marc.theaimsgroup.com/?l=struts-userm=108152145227595w=2 The author suggested 2 courses of action: 1. Try increasing the buffer size on myjsp.jsp. Default is 8kb 2. Make sure that you are not

Re: Hi

2004-11-05 Thread Srilatha Salla
Hi, I am able to display the text field for phoneNumber now. The code i wrote is logic:iterate name=autoForm property=menuEntries id=menuEntries indexId=idx tr td valign=middle bean:write name=menuEntries property=key/ html:hidden

struts tiles tab and border

2004-11-05 Thread PC Leung
For page or summary tab, a tab is label of words. Can I change it to an image file? If not, can I add an image file? Moreover, there is a purple border after clicking a tab. Can I change the border color and even remove it? Thanks

problem with tiles

2004-11-05 Thread Amit Gupta
Hi Every body, I developed a page using tiles and used struts-html tags in template page. As a result when main page is excuted struts-html tags in template page are not rendered. How to get Struts-html tags rendred when calling template page in main page? Amit Gupta

Re: Authentication and Authorization

2004-11-05 Thread Eddie Bush
There used to be (haven't checked on it for a while) a project called Security Filter that was a security database implementation you could package with your application. I believe it was a SourceForge project. One of the projects I'm currently architecting has need for specialized security -

RE: Authentication and Authorization

2004-11-05 Thread David G. Friedman
There used to be (haven't checked on it for a while) a project called Security Filter that was a security database implementation you could package with your application. I believe it was a SourceForge project. SecurityFilter hasn't been updated since January:

RE: problem with tiles

2004-11-05 Thread David G. Friedman
Amit, What do you mean by main page? Your web.xml's welcome-file-list such as index.jsp? If so, I posted about it within the last 24 hours. Try something like this in your index.jsp file: %@ taglib uri=/WEB-INF/tiles.tld prefix=tiles % tiles:insert definition=someDefinition/ Regards, David