query parameters

2006-03-07 Thread Madhav Bhargava
Hi All, It is a common practice to encode special characters such as ' ', %, #, :, $ etc.. when sending parameters in the query string along with the URL. We have a similar requirement. Some of the query parameters can contain special characters and therefore we went for UTf-8 encoding. Before

Struts Tiles EL problem

2006-03-07 Thread Chris Benoit
Hello, I want to use Struts Tiles to do this: tiles:insert attribute=${something} / It doesn't work, I get following exception: javax.servlet.jsp.JspException: ServletException in '/jsp/columnLayout.jsp': /jsp/columnLayout.jsp(31,1) According to TLD or attribute directive in tag file,

Re: query parameters

2006-03-07 Thread David Delbecq
Encoding and decoding of query parameters is the job of container (tomcat, jboss, websphere, what ever you are using). The only struts related exception is for multipart/form-data (used for file uploads). There it's common-fileupload library which does the decoding. Why would you want to do the

Scriptlets cannot use inside the tabs, html:link problem

2006-03-07 Thread Sony Thomas
Hi friends, I have a problem in displaying a link. I am using tabs in one of my jsp's. I have a link which is a property in my form bean. % TaskForm taskForm = (TaskForm) request.getAttribute(TaskForm); String *objectLink *= taskForm.getObjectLink(); % p align=right

dynamic input form

2006-03-07 Thread Rivka Shisman
Hi friends, I need to present my user an html form whose fields are built dynamically using data I get from the database. I need your advice on how to do that. Thanks Rivka

Re: dynamic input form

2006-03-07 Thread Niall Pemberton
You could use lazy dyna beans: http://struts.apache.org/struts-action/userGuide/building_controller.html#lazy_action_form_classes Niall - Original Message - From: Rivka Shisman [EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 1:46 PM Hi friends, I need to present my user an html form

Re: Scriptlets cannot use inside the tabs, html:link problem

2006-03-07 Thread Angelo zerr
Hi, you can't use scriplet whith taglib. The aim of taglib is not use scriptlet. So, for your problem, tou can use EL syntax. With EL syntax, you wille able to do html:link action=${objectLink} But, if you want use EL syntax, you must use taglib of Struts EL see

RE: dynamic input form

2006-03-07 Thread Rivka Shisman
Hi Niall, Can you please explain how do lazy dyna beans solve my problem? Thanks Rivka -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 3:54 PM To: Struts Users Mailing List Subject: Re: dynamic input form You could use lazy dyna beans:

Re: How To Use Existing Tags to Test and Write Out the Value of the Size of a Collection?

2006-03-07 Thread Ed Griebel
If you're using a JSP 2.0 container you can use fn:length(expr), see http://www.onjava.com/pub/a/onjava/2003/11/05/jsp.html?page=last and http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fn/length.fn.html If you're not using a JSP 2.0 container, you can use a taglib in the Jakarta Taglibs

Re: dynamic input form

2006-03-07 Thread Niall Pemberton
The link I gave does that - it also has a link to some additonal how tos which give more details. Essentially though any properties can be added dynamically to a lazy dyna bean at run time - they don't have to be defined in advance. Niall - Original Message - From: Rivka Shisman [EMAIL

Re: How To Use Existing Tags to Test and Write Out the Value of the Size of a Collection?

2006-03-07 Thread Niall Pemberton
Theres also a bean:size in Struts http://struts.apache.org/struts-doc-1.2.x/userGuide/struts-bean.html#size Niall - Original Message - From: Ed Griebel [EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 2:48 PM If you're using a JSP 2.0 container you can use fn:length(expr), see

Re: JavaT Application Verification Kit (AVK) : test results

2006-03-07 Thread Emmanouil Batsis
http://java.sun.com/j2ee/avk includes links to installation and release notes, as well as a user guide etc... Raghuveer wrote: I am new to Using AVK for my JSP web Application. My Environment: jdk1.4 Struts 1.2 hibernate3 OC4J 10g (9.0.4) SQL server2000 LDAP Plum tree portal. I am new

RE: dynamic input form

2006-03-07 Thread Rivka Shisman
O.k. if I understand correctly this can also be achieved by map-backed Action Form. In the how-to you referenced the JSP contains only html:text elements with previously knows field names (like custNo, custName etc). But what if the fields number and names come from the database and the types

RE: dynamic input form

2006-03-07 Thread [EMAIL PROTECTED]
Basic cofig file set up uses LazyValidatorForm for the bean !-- Form Beans -- form-beans form-bean name=lazyForm type=org.apache.struts.validator.LazyValidatorForm/ /form-beans Associate the lazy bean with your action. !-- Action Mappings --

Template action include

2006-03-07 Thread Marcio Ghiraldelli
Hello, I am including an Struts action inside an JSP file, passed by GET as an action attribute, exposing with bean taglib: GET: template.jsp?action=List.do template.jsp: (...) bean:include id=action page=%=request.getParameter(action)% /

[OT] RE: Shale Container Managed Security

2006-03-07 Thread James Reynolds
Thank you Craig, that's very helpful to understand. There are two things I was hoping to accomplish with Container Managed Security. 1. Ensuring that a user is logged in before serving up protected pages. I believe this is handled easily by using a Servlet Filter to check for a required session

Re: Template action include

2006-03-07 Thread Michael Jouravlev
Do jsp:include or c:import not work for you? On 3/7/06, Marcio Ghiraldelli [EMAIL PROTECTED] wrote: Hello, I am including an Struts action inside an JSP file, passed by GET as an action attribute, exposing with bean taglib: GET: template.jsp?action=List.do template.jsp:

Re: [OT] RE: Shale Container Managed Security

2006-03-07 Thread Gary VanMatre
From: James Reynolds [EMAIL PROTECTED] Thank you Craig, that's very helpful to understand. There are two things I was hoping to accomplish with Container Managed Security. 1. Ensuring that a user is logged in before serving up protected pages. I believe this is handled easily by

Re: Template action include

2006-03-07 Thread Marcio Ghiraldelli
jsp:include appears doesn't fit ok with Struts with another action. When it's called, the response output stream is overrided by it, supressing the template content. besides c:import worked ok, it keep the request values and integrate ok the output, but: c:import

Re: Template action include

2006-03-07 Thread Michael Jouravlev
On 3/7/06, Marcio Ghiraldelli [EMAIL PROTECTED] wrote: c:import worked ok, it keep the request values and integrate ok the output, but: c:import url=%=request.getParameter(action)% / According to TLD, the attribute URL canĀ“t accept any expression You can copy request parameter to

Re: Template action include

2006-03-07 Thread Marcio Ghiraldelli
This is exactly the behavior I need: c:import url=${requestScope.action} / but the above code shows me the same error. The taglib doesn't accept expressions in url value. I am new in JSTL, but I got all libs instaled. How can these RT and RL help me? Thanks! - Original

Re: Template action include

2006-03-07 Thread Marcio Ghiraldelli
It worked now! I was using this taglib declaration: [EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jstl/core; % According to a forum, with Tomcat 5 (my case) I should use this (with a jsp in the URL): [EMAIL PROTECTED] prefix=c uri=http://java.sun.com/jsp/jstl/core; %

RE: [OT] RE: Shale Container Managed Security

2006-03-07 Thread James Reynolds
If you are using J2EE container managed security, why not use the standard declarative security constraint on a url-pattern? You then assign roles to the constraint and to groups and/or users. Gary Thanks Gary, Maybe I'm misunderstanding Craig's response (below). Perhaps he is referring to

Re: [OT] RE: Shale Container Managed Security

2006-03-07 Thread Craig McClanahan
On 3/7/06, James Reynolds [EMAIL PROTECTED] wrote: If you are using J2EE container managed security, why not use the standard declarative security constraint on a url-pattern? You then assign roles to the constraint and to groups and/or users. Gary Thanks Gary, Maybe I'm

RE: [OT] RE: Shale Container Managed Security

2006-03-07 Thread Gary VanMatre
From: James Reynolds [EMAIL PROTECTED] If you are using J2EE container managed security, why not use the standard declarative security constraint on a url-pattern? You then assign roles to the constraint and to groups and/or users. Gary Thanks Gary, Maybe I'm

RE: [OT] RE: Shale Container Managed Security

2006-03-07 Thread James Reynolds
Now I get it completely (I'm still getting up to speed on a lot of this). Thanks! -Original Message- From: Gary VanMatre [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 1:26 PM To: Struts Users Mailing List Subject: RE: [OT] RE: Shale Container Managed Security From: James

RE: [OT] RE: Shale Container Managed Security

2006-03-07 Thread James Reynolds
There is a subtle but important issue. Container managed security only operates on the original URL to which a GET or POST was directed ... it does *not* apply to RequestDispatcher.forward() calls. In JSF terms, that means you can protect the form submit, but it is up to the application to

Collection of Options

2006-03-07 Thread PETER BLIZNAK
Hi there, I run into something I cant figure perhaps someone here can help me to shed some light on it. Basically I have dynamic table - meaning I iterate over supplied colection and build up table. No problem there that is simple stuff. Confusion starts when one of the columns must be list of

Re: [OT] RE: Shale Container Managed Security

2006-03-07 Thread Craig McClanahan
On 3/7/06, James Reynolds [EMAIL PROTECTED] wrote: There is a subtle but important issue. Container managed security only operates on the original URL to which a GET or POST was directed ... it does *not* apply to RequestDispatcher.forward() calls. In JSF terms, that means you can

[OT] RE: JavaT Application Verification Kit (AVK) : test results

2006-03-07 Thread George.Dinwiddie
http://developers.sun.com/prodtech/javatools/jsenterprise/reference/pres entations/jse8/jse8_avk.html -Original Message- From: Raghuveer [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 1:44 AM To: user@struts.apache.org Subject: JavaT Application Verification Kit (AVK) :

Re: [OT] RE: Shale Container Managed Security

2006-03-07 Thread Gary VanMatre
From: Craig McClanahan [EMAIL PROTECTED] On 3/7/06, James Reynolds wrote: There is a subtle but important issue. Container managed security only operates on the original URL to which a GET or POST was directed ... it does *not* apply to RequestDispatcher.forward() calls. In

Struts 1.1 and IExplorer

2006-03-07 Thread Yariel Ramos Moreno
Hello: I'm developing a web application using Struts 1.1 and Tiles. I have a tile for searchs consisting in a JSP with the following code: . html:form action=/search table width=100% border=0 cellpadding=0 cellspacing=0 tr td colspan=3Buscar Noticias/td /tr

Re: Struts 1.1 and IExplorer

2006-03-07 Thread Michael Jouravlev
On 3/7/06, Yariel Ramos Moreno [EMAIL PROTECTED] wrote: When I execute my application in Mozila Firefox, pressing Enter in the input area, it works fine and forwards to showSearch correctly. But when execute it in Internet Explorer, I get the following exception: SEVERE: Servlet.service()

Re: Collection of Options

2006-03-07 Thread Rick Reumann
PETER BLIZNAK wrote: Hi there, I run into something I cant figure perhaps someone here can help me to shed some light on it. Basically I have dynamic table - meaning I iterate over supplied colection and build up table. No problem there that is simple stuff. Confusion starts when one of the

validate dynamic properties

2006-03-07 Thread Lionel Port
I have a form where the properties to be displayed are dynamically generated with the format of the properties is defined in the database. Base on the the format I can change how the page is rendered (e.g. show a date, text, select box) Is it possible to leverage the validation rules defined for

[OT] Book recommendation requested: Object-Oriented Analysis and Design

2006-03-07 Thread atta-ur rehman
Folks, I was wondering if someone could please share some recommendations on a good beginner book on the topic of OO analysis and design. Thanks. ATTA

ActionForm Patterns? Nested Javabeans as ActionForm properties

2006-03-07 Thread news.gmane.org
I am revisiting the internals of Struts after quite a while of not working with it. I'm working on a webapp that is currently still using Struts1.1, but it may be upgraded. My questions revolve around best practices and patterns for using the ActionForm to do what I really want. If any of this

Re: [ANN] Struts Dialogs library 2.0 has been released

2006-03-07 Thread anil_a
I am going to use Struts Dialog for new project. Thanks Michael. rukka Michael Jouravlev wrote: The new version of Struts Dialogs library does not contain new features. Instead, it cuts a lot of fat. Well, all of it. The library consists of only two Struts-related classes: EventDispatcher

Re: ActionForm Patterns? Nested Javabeans as ActionForm properties

2006-03-07 Thread Craig McClanahan
On 3/7/06, news.gmane.org [EMAIL PROTECTED] wrote: What are the recommendations for dealing with ActionForms that contain or represent complex nested data structures, preferrably using JavaBeans that already exist within the application? In addition to understanding current design patterns

Re: [ANN] Struts Dialogs library 2.0 has been released

2006-03-07 Thread Michael Jouravlev
Stuts 1.2.9 and 1.3.1+ will include EventActionDispatcher, which is the main asset of Struts Dialogs 2.0. See here for more discussion: http://issues.apache.org/bugzilla/show_bug.cgi?id=38343 http://wiki.apache.org/struts/EventActionDispatcher http://wiki.apache.org/struts/DataEntryForm