Re: Tiles Usage

2005-04-26 Thread brenmcguire
I don't know it this is the case, but I think you missed the "tiles-defs.xml" file. I think the best place to start is Cedric Dumoulin's tutorial: http://www.lifl.fr/~dumoulin/tiles/doc/tutorial.html And I think you should start directly from chapter 6. > > 1) have a page with classic 4 tile layou

Re: Creating Action Mapping Definition Dynamically

2005-04-26 Thread vinod perla
vinod wrote: Thankyou very much Mr.Joe Germuska u've given enough information for me. regards vinod On 4/26/05, Joe Germuska <[EMAIL PROTECTED]> wrote: > At 5:19 PM +0530 4/26/05, vinod perla wrote: > >vinod wrote: > >Is it possible to create the Action Mapping Definitions dynamically? > >If so pl

layout hierarchies

2005-04-26 Thread Laurie Harper
Hi, how do I create layout tile hierarchies so that one layout extends another and contributes additional content to it? What I'd like to have is a base layout which contains markup common to every page, and then 'child' layouts that extned the base layout and add section-specific additional ma

Re: Handling Remember-Me Checkboxes

2005-04-26 Thread Wendy Smoak
From: "Ivan Jouikov" <[EMAIL PROTECTED]> > What is that you talking about not allowing direct access to JSP? Can > you be more clear please? Just that every request must go through a Struts Action, there are no URLs that end in ".jsp". This gives you the chance to do whatever setup you need to d

Handling Remember-Me Checkboxes

2005-04-26 Thread Wendy Smoak
I'm dragging this over to the user list from a Bugzilla ticket: http://issues.apache.org/bugzilla/show_bug.cgi?id=34612 in which Ivan wrote (in part): > in my form in the reset() I set the checkbox to "on". > > If the user turns it off, I'd expect that despite my reset's actions, a > setCheck

RE: gui html

2005-04-26 Thread David G. Friedman
Now doesn't Struts Layout seem like the presentation layer of JSF? Just an opinion. Regards, David -Original Message- From: Günther Wieser [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 1:57 PM To: 'Struts Users Mailing List' Subject: RE: gui html looks very interesting, has a

RE: Multiple Modules Still Have Issues

2005-04-26 Thread David G. Friedman
Scott, >From what you have included, your understanding of struts seems incorrect. The /*.do Struts mappings only work with "Actions", not "forwards." The forwards are used internally by your actions (which return ActionForwards) and cannot be seen over the web as a direct url. So, to reach /uni

Re: How to config web.xml for struts' Action Object to use APIs provided by external jar file?

2005-04-26 Thread Michael Jouravlev
Drop in WEB-INF\lib and refer needed classes in import? On 4/26/05, T. B. <[EMAIL PROTECTED]> wrote: > > Hi all, > > I currently wants to use some external APIs provided > by a jar file withing the Action Object in struts > framework. Can we configure web.xml or > struts-config.xml to use the ja

How to config web.xml for struts' Action Object to use APIs provided by external jar file?

2005-04-26 Thread T. B.
Hi all, I currently wants to use some external APIs provided by a jar file withing the Action Object in struts framework. Can we configure web.xml or struts-config.xml to use the jar? If so, do you know how? Thanks very much for your advice, Thong Bui --

Re: Action <==> Tile

2005-04-26 Thread rmanchu
Dave Newton wrote: In the struts configuration file. Instead of using a path to the JSP you use the name of the tile. You must also be using the Tiles plugin, as detailed in: i had defined it as that. and the error i get is below. menuAction is the name of tile definition Error :: Path menuActi

Re: PDF Streamed To Client

2005-04-26 Thread Andre Van Klaveren
Brian, While Nick's solution certainly works, it doesn't follow best practices, MVC in particular (No offense Nick). Technically a view component such as a Servlet or JSP should be responsible for writing the response back to the client. The Action is responsible for flow control and interacting

multi-level indexed proproerty validation

2005-04-26 Thread Saul Qunming Yuan
Hi, I'm wondering if it's possible to specify multi-level indexed property validation in Struts validation.xml file. I used indexListProperty attribute inside , which works for one level of indexed property. For multiple nested level indexed properties like company[].it.project[].projectName, I wo

Re: PDF Streamed To Client

2005-04-26 Thread Nick Heudecker
Here are the other support methods. You can choose the one that works best for you. private void setHeaders(HttpServletResponse res, File f, String mimeType) { res.setContentType(mimeType); res.addHeader("Content-Disposition", "attachment; filename=" + f.getName())

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
Nevermind. Dumb question. I got it. -Original Message- From: Brian McGovern [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 4:01 PM To: Struts Users Mailing List; Nick Heudecker Subject: RE: PDF Streamed To Client Follow Up: This works but im having a little trouble outputting

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
Follow Up: This works but im having a little trouble outputting the content type appropriately. -B -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 1:47 PM To: Struts Users Mailing List Subject: Re: PDF Streamed To Client Brian: This is

Re: getting certain properties from message resources to the jsp's

2005-04-26 Thread James Mitchell
This would be very easy to do via a Struts Plugin. You would need to add some additional criteria in the key for sorting and other optional tests, but by the time you finish, you would have practically rewritten struts-menu. http://struts-menu.sourceforge.net/ -- James Mitchell Software Engine

Re: getting certain properties from message resources to the jsp's

2005-04-26 Thread Robert Sanheim
C'mon folks, there has to be some sort of relatively clean way to do this. - rob On 4/25/05, Robert Sanheim <[EMAIL PROTECTED]> wrote: > I want to do something fairly simple which I haven't seen a good > example for yet: iterate through all messages from my default > application.resources file t

Re: Action <==> Tile

2005-04-26 Thread Dave Newton
rmanchu wrote: this is probably very simple but someone please tell me. i've got the tile-defs set up - [name="classicLayout", page="/mypage.jsp"]. i've got the jsps set up. my problem is getting from the action to the tile-def page. currently my myAction extends struts.Action where's the connec

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
thanks jeff. I need something just a bit more scalable cause my app needs to handle uploads and downloads of "n" number of pdfs. But thanks all the same. -B -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 2:39 PM To: Struts Users Mail

Re: PDF Streamed To Client

2005-04-26 Thread Jeff_Caswell
I have successfully used the following technique for file download via an action: Set the mimetype in the web.xml Do nothing action always returns 'success' points to tiles def for file to be downloaded action-map: tiles-def: -Jeff I'm wondering if anyone has any tips on how to

Re: PDF Streamed To Client

2005-04-26 Thread Niall Pemberton
Or use the new DownloadAction - it is in the Struts 1.2.6 beta version, Details on the wiki http://wiki.apache.org/struts/StrutsFileDownload http://svn.apache.org/dist/struts/v1.2.6/ Niall - Original Message - From: "Nick Heudecker" <[EMAIL PROTECTED]> Sent: Tuesday, April 26, 2005 6:4

Re: Dispatch Action "Whitespace In Label Text" and Missing Parameters

2005-04-26 Thread Nick Heudecker
After some additional research, IE is failing to submit HTTP parameters. This error doesn't occur with Firefox. Guess I'll have to keep digging. On 4/19/05, Michael J. <[EMAIL PROTECTED]> wrote: > 1) You checked that button value does not contain whitespaces? By the > way, cannot action strip wh

RE: question about jstl tag c:if

2005-04-26 Thread Ashish Kulkarni
Thanx It works, Ashish --- "Karr, David" <[EMAIL PROTECTED]> wrote: > From a JavaBeans point of view, the "dyna" > attributes are not attributes > of the DynaValidatorForm, they are entries in a > "map" that is an > attribute of the DynaValidatorForm. So, the > following should work: > > >

How to Exclude a String in validation mask

2005-04-26 Thread Saul Qunming Yuan
Hi, I'm trying to validate an input that doesn't allow a particular string, just wondering how to construct the validation mask. Say, the input shouldn't have the string "microsoft". I tried [^(microsoft)], or [^m][^i][^c][^r][^o][^s][^o][^f][^t], neither work. Any help is appreciated. thanks, Sa

RE: gui html

2005-04-26 Thread =?iso-8859-1?Q?G=FCnther_Wieser?=
looks very interesting, has anyone experience in using it? is it stable? would save a lo of time for if so... kr, guenther -Original Message- From: Lucas Bern [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 5:46 PM To: Struts Users Mailing List Subject: gui html has anybody see

throw exception in servlet filter - no error page displayed

2005-04-26 Thread Grzegorz Stasica
hi, My doFilter method looks like that: public void doFilter(ServletRequest arg0, ServletResponse arg1, FilterChain arg2) throws IOException, ServletException { arg2.doFilter(arg0,arg1); try{ HibernateSessionFactory.commitTransaction(); System

RE: PDF Streamed To Client

2005-04-26 Thread Brian McGovern
great.. its the return null part i was missing.. thanks.! -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 1:47 PM To: Struts Users Mailing List Subject: Re: PDF Streamed To Client Brian: This is pretty simple. Just get the output stream f

Re: PDF Streamed To Client

2005-04-26 Thread Nick Heudecker
Brian: This is pretty simple. Just get the output stream from the response object and stream the file down. Return null from the Action's execute method: private void returnFile(File f, OutputStream out) throws IOException { FileInputStream fis = null; try { fis

PDF Streamed To Client

2005-04-26 Thread Brian McGovern
I'm wondering if anyone has any tips on how to render a pdf with struts. I want to mask the name of the pdf and just stream it to client. Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAI

Action <==> Tile

2005-04-26 Thread rmanchu
this is probably very simple but someone please tell me. i've got the tile-defs set up - [name="classicLayout", page="/mypage.jsp"]. i've got the jsps set up. my problem is getting from the action to the tile-def page. currently my myAction extends struts.Action where's the connection ??? thanx

gui html

2005-04-26 Thread Lucas Bern
has anybody seen http://struts.application-servers.com waiting for coments... Lucas - 250MB gratis, Antivirus y Antispam Correo Yahoo!, el mejor correo web del mundo Abrí tu cuenta aquí

RE: [OT] html:text field is getting truncated

2005-04-26 Thread Andy Dailey
No. It is the fact that once I up the field length to display the whole value on the screen, "PRM,WS,CORNER,24X48", it only displays "PRM,WS,CORNER,24". and I was mistaken, Firefox displays it correctly. > -Original Message- > From: Abdullah Jibaly [mailto:[EMAIL PROTECTED] > Sent: Tue

RE: [OT] html:text field is getting truncated

2005-04-26 Thread Abdullah Jibaly
so you're saying that: and are rendered the same size on your browsers? -Original Message- From: Andy Dailey [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 10:33 AM To: user@struts.apache.org Subject: [OT] html:text field is getting truncated This looks to be an html iss

RE: question about jstl tag c:if

2005-04-26 Thread Karr, David
>From a JavaBeans point of view, the "dyna" attributes are not attributes of the DynaValidatorForm, they are entries in a "map" that is an attribute of the DynaValidatorForm. So, the following should work: > -Original Message- > From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] > > H

RE: question about jstl tag c:if

2005-04-26 Thread Abdullah Jibaly
I'm not familiar with DynaValidatorForm but what does this give you: -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 10:15 AM To: user@struts.apache.org Subject: question about jstl tag c:if Hi I have a struts tag like below I tried

[OT] html:text field is getting truncated

2005-04-26 Thread Andy Dailey
This looks to be an html issue and not a struts issue. I have a problem where I have an html:text field on my jsp that will not allow me to set the size of the displayed input field. The value that should be displayed is PRM,WS,CORNER,24X48 The value that is displayed is PRM,WS,CORNER,24 with the

question about jstl tag c:if

2005-04-26 Thread Ashish Kulkarni
Hi I have a struts tag like below I tried to use jstl c:if tag as below i get error An error occurred while evaluating custom action attribute "test" with value "${loginForm.singlesignon == '1'}": Unable to find a value for "singlesignon" in object of class "org.apache.struts.validator.DynaV

Tiles Usage

2005-04-26 Thread rmanchu
hi tiles newbie. am trying to incorporate Tiles to my existing struts project. can someone please explain to me how the following is supposed to work? 1) have a page with classic 4 tile layout (header, menu, body, footer) 2) on selecting a menuitem, the body and menu tiles change. if i submit to a

How to handle "visibility" of form elements

2005-04-26 Thread Horacio de Oro
Hi all! We are using Struts for the view in a "intranet" application. After one year of developing the application, we need to improve the way we do the JSPs, since we put many many scriptlet in the JSPs to check whenever we should show the attributes, and when these attributes shoud be read-on

RE: graphics

2005-04-26 Thread Yu, Ed
You generate your charts on the server end and use AJAX to call a backend action to access your session objects and stream the chart content back to your javascript. -Original Message- From: Lucas Bern [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 8:51 AM To: Struts Users Mailin

RE: graphics

2005-04-26 Thread Lucas Bern
oh oh oh!... AJAX, i have heard about that, but some requirements limit me to use it, i HAVE to generate the chart on the server side ( would jave been wonderfull!!!, but, clients ) "Yu, Ed" <[EMAIL PROTECTED]> wrote: AJAX? -Original Message- From: Lucas Bern [mailto:[EMAIL PROTE

RE: graphics

2005-04-26 Thread Yu, Ed
AJAX? -Original Message- From: Lucas Bern [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 8:39 AM To: Struts Users Mailing List; Michael Jouravlev Subject: Re: graphics Yes, that is a good advise, thanks Michael!... ...but, what i have to do is a litle more complex. Does anyone k

Re: graphics

2005-04-26 Thread Lucas Bern
Yes, that is a good advise, thanks Michael!... ...but, what i have to do is a litle more complex. Does anyone know how to acces the page context form a dataProducer in the cewolf tag library???... I really need it, i have objects in session, objects needesd to create de chart, but de interface

Multiple Modules Still Have Issues

2005-04-26 Thread Scott Purcell
Hello, I am trying to create two modules. I am following the docs here: http://struts.apache.org/userGuide/configuration.html What I have done, is create both entries in my web.xml file like the example shows: unique org.apache.struts.action.ActionServlet config /WEB

Re: Creating Action Mapping Definition Dynamically

2005-04-26 Thread Joe Germuska
At 5:19 PM +0530 4/26/05, vinod perla wrote: vinod wrote: Is it possible to create the Action Mapping Definitions dynamically? If so please help me how to do this. To do this, you're really going to have to dig into Struts' code; as it is now, you can't dynamically add new ActionMappings to the M

TimeStamp validator

2005-04-26 Thread Rodolfo =?iso-8859-1?Q?Garc=EDa_Esteban=2FCYII?=
Hi, I´m using struts 1.2.4, I use GenericValidator.isDate(), when I try to validate with the pattern "dd/MM/" works well, but when I use the pattern "dd/MM/ hh:mm:ss", doesn't work well, it returns false when checks a valid string. How I can validate this pattern date?. Is there any t

Creating Action Mapping Definition Dynamically

2005-04-26 Thread vinod perla
vinod wrote: Is it possible to create the Action Mapping Definitions dynamically? If so please help me how to do this. Thanks in Advance, Vinod. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL P

Re: Struts 1.2.4 compiled by me doesn't find http://java.sun.com/dtd/web-app_2_3.dtd

2005-04-26 Thread Joe Germuska
Your build is probably not correctly including a copy of the DTD in the JAR. Struts uses commons-digester to read the web.xml to learn the servlet-mapping so that it can properly expand action paths to resolvable URLs. Digester allows you to register local copies of DTDs so as to support v

Problem with Ditchnet JSP tabs taglib

2005-04-26 Thread Miquel Angel
Hi to everyone. I'm trying do develop a jsp page using tabs ( Ditchnet JSP tabs taglib). I've followed the example located at http://209.61.157.8:8080/taglibs/ . It works, but the look and feel is not the same as the example. In fact, the titles of the tabs appears one under the other, ins

Re: Caching Java Objects

2005-04-26 Thread Erik Weber
Also, check these out: https://whirlycache.dev.java.net/ http://www.opensymphony.com/oscache/ Erik temp temp wrote: Is it similar to sessions ie each user will have his own cached Object or all the users share the same Cached object . I have a jsp with multiple submit buttons .Each submit butto

Struts 1.2.4 compiled by me doesn't find http://java.sun.com/dtd/web-app_2_3.dtd

2005-04-26 Thread Rodolfo =?iso-8859-1?Q?Garc=EDa_Esteban=2FCYII?=
Hi, I have compiled struts 1.2.4, because I had obtained an error, I put traces in the code of struts, re-compiled and when the application loads in Tomcat I obtain the next error. 2005-04-26 08:47:21,557 ERROR org.apache.struts.action.ActionServlet - The /WEB-INF/web.xml was not found. java.i

Re: MessageTag set specific Local

2005-04-26 Thread delbd
You can also change the locale by mapping org.apache.struts.actions.LocaleAction to locale.do in your struts-config.xml, using a dynaform. The user can then switch language using somthing like locale.do?language=fr&country=be&page=/jsps/myjsptogoto.jsp country and page are optional arguments.