repeat previous action from the other one

2005-11-08 Thread Grzegorz Stasica
hi, My problem could be strange but let me describe it. I've a application where data for every page is customized to some filter. For example there is page showing records from database. The data are limited to currently selected user (user object stored in session). Hence there are many pages wh

calculation table

2005-11-14 Thread Grzegorz Stasica
hi, Have anybody seen a class similar in its behaviour to excel's sheet. I mean the ability to enter values in some cells and in another cell specify some kind of formula Rgs - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Instance of org.apache.struts.action.Action class. Share instance

2005-04-21 Thread Grzegorz Stasica
hi, Am I correct that only one Action instance is being created by the server?. I mean all users/threads share the same instance? Base on this I surmise that if I extend Action like that: public abstract class MyAction extends Action { protected static final IAuthorizer auth=new MyAuthorizer();

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

2005-04-28 Thread Grzegorz Stasica
Nimish Chourey , Tidel Park - Chennai wrote: Hi , I am using struts struts-1.2.4 . I am not able to catch the exception which are caused whenever there is a problem in laying the tiles . For Eg in the below code , if ftpStatus.jsp gives a error , I do not get the exception either in the bro

how to download file (example)

2005-05-11 Thread Grzegorz Stasica
hi, I'm looking for links/examples how to download file in struts action. In action I have OutputStream but what header should I send and the most important how the stram should be send to browser - To unsubscribe, e-mail: [EMAI

Re: how to download file (example)

2005-05-11 Thread Grzegorz Stasica
Frank W. Zammetti wrote: Hello, Do you want to use the Struts DownloadAction? If so, have a look here: http://wiki.apache.org/struts/StrutsFileDownload Even if you don't want to use it, you may find the example helpful, along with the source for DownloadAction, to help you along. Unfortunatelly I

multiple params in

2005-05-18 Thread Grzegorz Stasica
hi, Is there a easy way to have more than one param attached to strut's I know that there is a soultion with HashMap, but in case I just need to attache additional param to already exsisting in some bean I'm bound to use scriplet to create a hashmap. Rgs --

Re: Fw: [HELP] How to restrict access to certain mapping action ???

2005-05-19 Thread Grzegorz Stasica
Aladin Alaily wrote: Hi Pham, I think this was mentioned earlier. There are two things you can do: 1) Use a filter with a url-map to your action 2) Use security constraints Aladin Pham Anh Tuan wrote: Hi all, This is the second time I post this message for help :(. I don't know how to restrict ac

jstl - check bean exsist

2005-05-19 Thread Grzegorz Stasica
hi Is it possible to check in jstl if bean is available? Is this code correct - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

jstl - define bean

2005-05-19 Thread Grzegorz Stasica
I thought defines a new bean in page scope. If this is true I do not understand why attached code keeps throwing exception that no getB() is not defined. Login - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Reading value from HashMap via JSTL

2005-06-07 Thread Grzegorz Stasica
hi, I've a page on which there are a lot of similar data. For every week in a year (52 total) I have 3 different values for instance: week 1 efficiency=98 complaints=45 other=3 I've decided that HashMap will be the best to store all of the values and access each value base on key (key is bein

program for drawing buttons

2005-06-09 Thread Grzegorz Stasica
hi, I know this group focus on other issues but could anybody suggest me any good program for drawing buttons and writing text on transparent background. At this moment I use GIMP but fonts looks woefully !!! Which is the best font for these things -

add new role to user

2005-06-09 Thread Grzegorz Stasica
hi, My application use Tomcat's security mechanism to authorize users. My question is: Is it possible to add user a new role without forcing him to logout. I need this because in some circumstances user has different roles (for instance when in session there is object A user has roles: roleA,

validate data problem in ActionForm - combine with tiles

2005-06-23 Thread Grzegorz Stasica
hi, The problem is that after I validate values in the method, the controller forwards me to input page. Since I use tiles in my application I'd like to be forwarded to tiles definition not input page (I need to preserve header, menu etc). The question is: Is it possible to use validate meth

isUserInRole - how it works

2005-06-28 Thread Grzegorz Stasica
hi, Actinally my question is how to access container from struts action but if I know how isUserInRole is working I'll be able to solve my main problem which is: Is it possible to access container from action. I'm using securityfilter which extends BaseRealm. In this way I can put additional p

Re: isUserInRole - how it works

2005-06-28 Thread Grzegorz Stasica
ok but is it possible to reload roles manually from action. Function getPrinciple() seems to solve some of my problems but still I need to have an possibility to reload roles. I can not find setPrinciple function - To unsubscr

Re: isUserInRole - how it works

2005-06-28 Thread Grzegorz Stasica
Frank W. Zammetti wrote: What do you mean by "reload roles"? Do you mean put changes to your roles in effect in real-time, or do you mean assign a user to a given role? I mean the first one. I want to put changes in roles in real-time

check role - isUserInRole in jstl

2005-06-30 Thread Grzegorz Stasica
I've a code like that but I get an error that namespace has to be specified. IsUserInRole is a function so probably I invoke it incorectlly. How can I check user's role in jstl? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [OT] check role - isUserInRole in jstl

2005-06-30 Thread Grzegorz Stasica
ri="http://jakarta.apache.org/taglibs/request-1.0"; prefix="req" %> -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Grzegorz Stasica Sent: Thursday, June 30, 2005 12:48 PM To: user@struts.apache.org Subject: check role - isUserInRole in jst

Problem with action testing in MockStrutsTestCase

2005-07-05 Thread Grzegorz Stasica
hi, Prior to opening a page I call an action in order to store in request collection of value beans. Although I know how to test situation when everything goes OK I do not know how to test the oposite especially when Hibernate is being used. My action in struts-config.xml is as follow:

Re: architecture of composite action forms - please help

2005-07-05 Thread Grzegorz Stasica
Rivka Shisman wrote: Hello Friends, I have a transfer object called FatherTO that contains a collection of ChildTO's. Can you please help me with how the relevant ActionForm (i.e. FatherForm ) should look like. How should the reset() & validate() methods look like? Should I use the same j

problem with pdf fonts in jasper

2005-07-10 Thread Grzegorz Stasica
hi, I know this question should be asked on jasperreports http://sourceforge.net/forum but after asking it seems that this group is dead. The problem is that I'm limited to standard 14 fonts for PDF. Everytime I try to use different font in PDF the text is not displayed. My definition is: r

packages in /WEB-INF/lib not seen by classes using reflection

2005-07-12 Thread Grzegorz Stasica
hi, In my application I use jasperreports which works fine on my computer but I've a problems to run them on production server. The problem is with compiling report definition. JasperReport uses some packages which are already in /WEB-INF/lib like (commons-collection.jar). Unfortuatelly it do

Re: problem with pdf fonts in jasper

2005-07-12 Thread Grzegorz Stasica
Grzegorz Stasica wrote: hi, I know this question should be asked on jasperreports http://sourceforge.net/forum but after asking it seems that this group is dead. The problem is that I'm limited to standard 14 fonts for PDF. Everytime I try to use different font in PDF the text i

ajax and struts-flow - how to refresh part of a page

2005-07-14 Thread Grzegorz Stasica
hi, I'm checking struts-flow package and one of it's features "Remote RPC support (termed Ajax but with JSON instead of XML) for calling flow methods from the client". As much as I can see now there is no problem to invoke actions from struts-config but as much as I see all page is being rend

Re: actionservlet init-params

2005-07-16 Thread Grzegorz Stasica
Luis Gervaso wrote: Hello, What happen in Struts 1.2.7 with init-params debug application detail I can't find them in ActionServet javadoc where are documented? Did you try to use them? - To unsubscribe, e-mail: [EMAIL PR

ActionMessages vs ActionErrors in jstl

2005-07-16 Thread Grzegorz Stasica
hi, Basically I'd like to ask why I'm not able to access my messages stored in action from jsp. ActionMessages m=new ActionMessages(); m.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("error.no_value")); saveMessages(request,m); in jsp I try this value="${requestScope['org.apache.struts

Re: ActionMessages vs ActionErrors in jstl

2005-07-17 Thread Grzegorz Stasica
Grzegorz Stasica wrote: hi, Basically I'd like to ask why I'm not able to access my messages stored in action from jsp. ActionMessages m=new ActionMessages(); m.add(ActionMessages.GLOBAL_MESSAGE,new ActionMessage("error.no_value")); saveMessages(request,m); in j