Re: Getting name of form bean?

2005-05-17 Thread John Moore
Paul McCulloch wrote: In request scope, under the key 'org.apache.struts.action.mapping.instance' is an object of type ActionMapping. The name property of this ActionMapping is the name of the form bean being handled by the current request. This relates to the form bean specified for the request

RE: tree structure with struts

2005-05-17 Thread Barnett, Brian W.
Here are some links to tree controls: http://pragmaticobjects.com/demo.html http://www.common-controls.com/en/resources/taglib/tags/ctrl_tree.html http://struts.application-servers.com/ (Struts Layout) http://www.softcomplex.com/products/tigra_tree_menu/ And then of course, you have Java Server

RE: tree structure with struts

2005-05-17 Thread Charles . Gouin-Vallerand
Hi Pankaj, In one of ours applications, we use the com.bea.tree lib. I don't know if its a non-public lib from BEA, but you can build some nice tree with it. Charles -Original Message- From: pankaj dekate [mailto:[EMAIL PROTECTED] Sent: May 16, 2005 4:14 PM To:

Re: Getting name of form bean?

2005-05-17 Thread Frank W. Zammetti
Not sure if anyone else gave this answer yet, but I needed to do the same thing in StrutsWS's default response template, and here's how I wound up doing it (modified slightly to be a little better!): String formName = ((org.apache.struts.config.ActionConfig)request.getAttribute(

[OT] JSP custom taglib issue in duplicate environments

2005-05-17 Thread Mark Benussi
I have two environments with the same mysql DB, both running the same war on tomcat 5.0 and I have a problem which I can only think may lie in my JSP taglib and its extra info. Essentially I call a tag three times in the same page, and depending on taglib arguments the tag should display data

Re: AjaxTags v1.0 beta 1 released

2005-05-17 Thread Dakota Jack
Congratulations! Good work! On 5/12/05, Frank W. Zammetti [EMAIL PROTECTED] wrote: Finally got it all set up on http://struts.sf.net. The first official release is up! AjaxTags is a project to add AJAX functionality to the existing Struts HTML taglib. It allows a developer to jump on the

validating two fields HELP

2005-05-17 Thread Metal KoRn
Hi guys Im having this error but I dont know why is this happening can u help me?? ERROR: May 16, 2005 10:14:06 PM org.apache.struts.validator.ValidatorForm validate SEVERE: validator.FMvalidator org.apache.commons.validator.ValidatorException: validator.FMvalidator at

RE: Reports

2005-05-17 Thread Sachin Bhutada
hi, Try out JReports. Sachin -Original Message- From: Rafael Taboada [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005 12:50 AM To: Struts List Subject: Reports Hi folks. I'm doing reports for my project and I was asking me if there are tools in order to help to

Re: sTRUTS 1.3 - chain flow

2005-05-17 Thread Joe Germuska
At 10:05 AM +0100 5/17/05, Marco Mistroni wrote: Hello Joe, I am trying to port an app (Frank Zammetti's strutsws)that was using Struts 1.1 to Struts 1.3. I have a quick question: in which class/method the ActionForm is populated with parameters from request?

Re: Reports

2005-05-17 Thread Martin Gainty
FOP: Java application that reads a formatting object (FO) tree and renders the resulting pages to a specified output. Output formats currently supported include PDF, PCL, PS, SVG, XML (area tree representation), Print, AWT, MIF and TXT. The primary output target is PDF

Re: Reports

2005-05-17 Thread Martin Gainty
Rafael- what format are you looking for output? PDF? doc? rtf? Saludos! Martin- - Original Message - From: Rafael Taboada [EMAIL PROTECTED] To: Struts List user@struts.apache.org Sent: Monday, May 16, 2005 3:20 PM Subject: Reports Hi folks. I'm doing reports for my project and I was

Need all functionality in one screen/form (check box , dynamic rows , user inputs , validation) all using dynaform.

2005-05-17 Thread Shirish
Need all functionality in one screen/form (check box , dynamic rows , user inputs , validation) all using dynaform. Here is the code. -- * Dynaform form-bean name=adjustmentForm

Re: session-problem

2005-05-17 Thread Hubert Rabago
When you switch from session to request, do you remember to change the scope where you set the form in your action class? What I mean is, in your action class, you should also change session.setAttribute(exForm, exForm); to request.setAttribute(exForm, exForm); Hubert On 5/16/05, Mohan

Re: Saving context in web application with exception-driven authentication

2005-05-17 Thread Yaroslav Novytskyy
Hi! No, because there is no place to login here... You propose (if I anderstand correctly) such a way: case 1: jsp submit (1)- form validate - APIcall() returns no errors - action case 2: jsp submit (1)- form validate - APIcall() returns _errors_ - validation fails - back to calling jsp with

Re: Reports

2005-05-17 Thread Woodchuck
hihi, in my project i have template-driven reports as well as reports totally made from scratch, and these are outputted in PDF format mainly. take a look at these: http://www.lowagie.com/iText/ http://ireport.sourceforge.net/ with iText, i scanned a form to create a template, then i populated

Re: [OT] context-param

2005-05-17 Thread Frank W. Zammetti
Never mind, I found it... // ServletContextEvent sce sce.getServletContext().getInitParameter(myParam) It was a little less than obvious because when you see a method getInitParameter() of a SERVLET context, at least my interpretation is that I am accessing the init params of a servlet element

[OT] context-param

2005-05-17 Thread Frank W. Zammetti
Not really Struts-related, but there's some smart folks here, so... You can have a context-param element under web-app in web.xml, and this is perfect for a task I have (I'm initializing some things in a ServletContextListener that have to be initialized even before ActionServlet initializes -

Re: Reports

2005-05-17 Thread Rafael Taboada
I want to show results and graphics in a jsp. For example in PHP I use phplot in order to show graphics showing data. I want to show tables showing records too. In general, showing data in pages. If the user wants to export to pdf or doc, it must be an option to do that. Is there a tool to help

RE: Reports

2005-05-17 Thread Jimmy Emmanual
Rafael, Try BIRT (Business Intelligence and Reporting Tools) by Eclipse. It is developed jointly with Actuate which is a Enterprise Reporting Infrastructure. http://www.eclipse.org/birt/ Jimmy -Original Message- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 17, 2005

Re: Link on Struts Page broken

2005-05-17 Thread Hubert Rabago
In the meantime, you can use: http://nagoya.apache.org/eyebrowse/SummarizeList?listId=241 or the one people here use more often: http://marc.theaimsgroup.com/?l=struts-user http://www.mail-archive.com/user%40struts.apache.org/ Hubert On 5/15/05, Ingo Adler [EMAIL PROTECTED] wrote: The link

Reports

2005-05-17 Thread Rafael Taboada
Hi folks. I want ur experiences making reports. I'm doing reports in my project and i want to know if there are some reports tools. Is it possible to use Crystal Reports with struts? Any experience? THanks for help me -- Rafael Taboada

sTRUTS 1.3 - chain flow

2005-05-17 Thread Marco Mistroni
Hello Joe, I am trying to port an app (Frank Zammetti's strutsws)that was using Struts 1.1 to Struts 1.3. I have a quick question: in which class/method the ActionForm is populated with parameters from request? Thanx and regards marco

LookupDispatchAction and html:image tag

2005-05-17 Thread Dean, Michael
I've been reading the API docu...trying to figure out how implement LDA where one of my submit buttons is an html:image tag...when I dump the request for the standard html:submit tag, I can see method=year (where property=method in tag)...of course, when I dump the request for html:image, I see

Re: Saving context in web application with exception-driven authentication

2005-05-17 Thread Michael Jouravlev
Just define the form with session scope, it will retain values for you. The catch: now you need to clean these values in reset() method when they are not needed. So, you need to distinguish when they are needed (refresh) and when not (you show that page for the first time. I need something like

Re: Subclassing ActionForward

2005-05-17 Thread Dave Newton
Lee Harrington wrote: I wrote a bit of code that if I put it in the beggining of an action class...does just that. But I don't want to have to put this in the front of each of my actions (particularly since I've already written a good portion of the app). Do I solve this by subclassing the action

Re: Subclassing ActionForward

2005-05-17 Thread Frank W. Zammetti
Use a filter. Or, write an Action base class and have all your Actions subclass it. The filter is the better answer. -- Frank W. Zammetti Founder and Chief Software Architect Omnytex Technologies http://www.omnytex.com Lee Harrington wrote: I want to check to see if the user is logged in

Re: Subclassing ActionForward

2005-05-17 Thread Joe Germuska
From my first take on your description of the problem, I don't think that subclassing ActionForward is the area of Struts where you would enforce this. For a new app, the simplest solution is an abstract subclass of Action which all of your classes extend; your subclass implements execute,

Re: Subclassing ActionForward

2005-05-17 Thread Josh
Lee Harrington wrote: I want to check to see if the user is logged in before performing any action, and redirect to the login page if they are not. For example...they have a page open and their session times outand then they click a button. Right now an error occurs because they are no longer

Re: Way of reading this mailing list as a heirachy

2005-05-17 Thread Adam Hardy
On 16/05/05 19:24nbsp;Michael Jouravlev wrote: Gmail actually works pretty well for me. Can send an invitation, have 50 of them ;) Gmail is AJAX, right? Does it do heirarchies then? Never used it myself. I've written AJAX apps and I've always been suspicious of Javascript. Adam

Re: Subclassing ActionForward

2005-05-17 Thread Yan Hu
Hello: I would suggest that you use servlet filters. --- Lee Harrington [EMAIL PROTECTED] wrote: I want to check to see if the user is logged in before performing any action, and redirect to the login page if they are not. For example...they have a page open and their session times

Re: Subclassing ActionForward

2005-05-17 Thread Robert Taylor
Look into using Filters. They are great for this kind of stuff. /rober Lee Harrington wrote: I want to check to see if the user is logged in before performing any action, and redirect to the login page if they are not. For example...they have a page open and their session times outand then

Re: bean:include doesn't work but jsp:include does

2005-05-17 Thread James Mitchell
First, you should ask on the proper list. That would be the Struts Users List (CC'd on this reply). I'll help you over there. -- James Mitchell Software Engineer / Open Source Evangelist Consulting / Mentoring / Freelance EdgeTech, Inc. http://www.edgetechservices.net/ 678.910.8017 AIM: