RE: Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()

2008-04-24 Thread Filippov, Andrey
oad and Struts2 + file load + java.lang.IllegalStateException: getOutputStream() Filippov, Andrey wrote: > Hello everybody! > > I am trying to load file from DB. I use https. In Mozilla I get only one > exception but everything finally works. Here is my code and stack trace: >

Two problems: Struts2 + https + file load and Struts2 + file load + java.lang.IllegalStateException: getOutputStream()

2008-04-22 Thread Filippov, Andrey
Hello everybody! I am trying to load file from DB. I use https. In Mozilla I get only one exception but everything finally works. Here is my code and stack trace: public String execute() throws Exception { super.execute(); byte[] file = null; PolicyFileVO pol

RE: Struts2 and JavaScript localization

2008-04-01 Thread Filippov, Andrey
like: wds : new Array('',"tue","wen","thu","fri","sat","sun") , (*Chris*) On Tue, Apr 1, 2008 at 6:40 AM, Filippov, Andrey <[EMAIL PROTECTED]> wrote: > Hello everybody, > > > > > > I have a

Struts2 and JavaScript localization

2008-04-01 Thread Filippov, Andrey
Hello everybody, I have a javascript dropdown calendar on one of my struts2 jsp. I have bi-lingual application. So I need to read bundle files to switch language. Please, does someone know how to use these files in javascript. Here is my js snippet:

RE: Custom validation with Struts2

2008-03-18 Thread Filippov, Andrey
Thanks a lot for your answer. Concerning request = ServletActionContext.getRequest(); and tmp = request.getParameter("cardNo"); - I am doing it cause I did not manage to use getCardNo() method - it always return 0 in the case of int. Here is my action class - probably you will help me again..)) JA

Custom validation with Struts2

2008-03-18 Thread Filippov, Andrey
(cardNo < 1 || cardNo > 99) { addFieldError("cardNo", "Must be int"); System.out.println("INPUT...");     }   }   

RE: using in struts2..

2007-11-22 Thread Filippov, Andrey
the other arrays. d. --- "Filippov, Andrey" <[EMAIL PROTECTED]> wrote: > Hi everybody! > > > > I have the following question - I have several > String[] objects of the > same size. I have to render them on the js

using in struts2..

2007-11-22 Thread Filippov, Andrey
Hi everybody! I have the following question - I have several String[] objects of the same size. I have to render them on the jsp. First I thought that this way is correct:

struts2 & i18n...

2007-11-22 Thread Filippov, Andrey
Hi everybody! I am developing WEBApp now and there is a problem... Well actually - 2 problems... My application should be bilingual. So I have 2 bundle files - locale_ru_Ru.properties and locale_en_Us.properties. As I understand struts2 tag automatically detect the user locale setting and c

isUserInRole on JSP page...

2007-11-16 Thread Filippov, Andrey
Hello Everybody! I need to check roles of a user in my app to decide whether to render some elements on JSP or not. Does someone happen to know how could I do it (I mean the syntax of

RolesInterceptor. How to..?

2007-11-09 Thread Filippov, Andrey
Hi everybody! I need to configure the login and authorization system in my application. I have struts2 together with jboss and mysql. I found the following information about it: (http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/interceptor/RolesInterceptor.html, http://st

FW: struts2 + jaas on jboss...

2007-11-07 Thread Filippov, Andrey
-Original Message- From: Filippov, Andrey Sent: Wednesday, November 07, 2007 6:17 PM To: Struts Users Mailing List Subject: RE: struts2 + jaas on jboss... Hi Martin! Thanx for Your answer! Here is my SessionLogin.java file

RE: struts2 + jaas on jboss...

2007-11-07 Thread Filippov, Andrey
so show us how the result is configured for SessionLogin in struts.xml e.g. /date.jsp Martin - Original Message - From: "Filippov, Andrey" <[EMAIL PROTECTED]> To: Cc: <[EMAIL PROTECTED]> Sent: Wednesday, November 07, 2007 8:50 AM Subje

struts2 + jaas on jboss...

2007-11-07 Thread Filippov, Andrey
Hi everybody! I have this problem - I could not manage to configure it to work together. Does someone happen to know how to do it? I appriciate any kind of information!! Initially I used the following source: http://www.javaworld.com/javaforums/showthreaded.php?Cat=2&Number=2500&page=0 And I

RE: Keep Objects over request

2007-11-07 Thread Filippov, Andrey
Hi everybody! I have this problem - I could not manage to configure it to work together. Does someone happen to know how to do it? I appriciate any kind of information!! Initially I used the following source: http://www.javaworld.com/javaforums/showthreaded.php?Cat=2&Number=2500&page=0 And I