Re: Struts - passing unicode parameter from jsp to action

2004-08-11 Thread Pavel Kolesnikov
On Thu, 12 Aug 2004, Masoud Kalali wrote: > I use post for sending parameter to action and also add > (request.setCharacterEncoding("UTF-8"); > to my action before reading parameter from it , also i add two You should better call request.setCharacterEncoding() in a filter or overriden ActionSer

Re: If not logged in, login and redirect do requested page scenario.

2004-08-16 Thread Pavel Kolesnikov
On Mon, 16 Aug 2004 [EMAIL PROTECTED] wrote: > I'm trying to implement a scenario in which if the user who has not > logged in clicks on a link to a page "for logged in users only" should > be redirected to "login page", and then if the login operation succeeds > another redirection takes the use

Re: Disable validate in actionForm

2004-08-17 Thread Pavel Kolesnikov
On Tue, 17 Aug 2004, Sebastian Ho wrote: > I have an validate method in my actionform and everything works fine. I > added a 'Back' button in my webpage, and therefore validation is not > necessary if the 'Back' button is clicked. Validation should occurs only > if 'Next' is selected. > > How do

Re: passing a dynamic range of values to jsp page

2004-08-17 Thread Pavel Kolesnikov
On Tue, 17 Aug 2004, vineesh . kumar wrote: > I want to pass a range of values which is dynamic(values retrieved from > a database using a dynamic query) from an action class to corresponding > jsp page. I hav to access it from the jsp page and dispaly. How can i do > this in struts. what about

Re: Re: passing a dynamic range of values to jsp page

2004-08-17 Thread Pavel Kolesnikov
in your JSP. Just a usability none - if your business logic returns 400 objects for your request, maybe it's not a good idea to display all of them on one page. Pavel On Tue, 17 Aug 2004 Pavel Kolesnikov wrote : >On Tue, 17 Aug 2004, vineesh . kumar wrote: > > > I want to pa

Re: Re: Re: passing a dynamic range of values to jsp page

2004-08-17 Thread Pavel Kolesnikov
ul there may be two reasons for it: - I don't understand your problem - or you should get some book about basics of java web programming ;) Pavel On Tue, 17 Aug 2004, vineesh . kumar wrote: > > sir, > can u specify some code snippet or a link which leads to the example > c

RE: Disable validate in actionForm

2004-08-17 Thread Pavel Kolesnikov
On Tue, 17 Aug 2004, Sebastian Ho wrote: > I fixed the Back problem using javascript (using javascript > history.back()). Although it is resolved, I am still very much > interested in the struts solution without using javascript. what about checking for the "back" property in your validate method

RE: Bean's get method with parameter

2004-08-27 Thread Pavel Kolesnikov
On Fri, 27 Aug 2004, Václavík Radek wrote: > 2) I don't see how the format of the date changes accrding to selected > locale. There is one locale in session (the struts one - Globals.LOCALE_KEY) > but this one has no influence. So I've tried to change the locale settings > in windows to, e.g. ENGL

Re: ActionErrors

2004-09-16 Thread Pavel Kolesnikov
On Thu, 16 Sep 2004 11:58:17 -0400, Leung, Albert <[EMAIL PROTECTED]> wrote: > Does anybody know what to do with ActionErrors now that it is deprecated? > I want to be able to list the errors in the same as way with the html:errors According to the Javadoc ActionErrors is not deprecated, ActionErr

Re: ActionErrors

2004-09-16 Thread Pavel Kolesnikov
On Thu, 16 Sep 2004 12:25:26 -0400, Slattery, Tim - BLS <[EMAIL PROTECTED]> wrote: > But the one and only method of ActionErrors, add, is deprecated. And so is > ActionErrors.GLOBAL_ERROR. > > I thought we were supposed to not use ActionError or ActionErrors, instead > handle error messages with A

Re: substring.....

2005-02-16 Thread Pavel Kolesnikov
On Wed, 16 Feb 2005 13:29:41 +0100, Peter Maas <[EMAIL PROTECTED]> wrote: > what would be the best way to obtain a substring using taglibs and > struts... > > I now there is the fn taglib in jstl1.1 but we couldn't get it to work > on struts-el 1.2.4. AFAIK JSTL 1.1 is part of Servlet 2.4 specif

Re: Regarding HTML:options tag

2005-02-17 Thread Pavel Kolesnikov
I guess you should better use the "collection" attribute instead of "name". See http://struts.apache.org/userGuide/struts-html.html#options Pavel On Thu, 17 Feb 2005 14:05:06 +0530, Krishna Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: > > > HI, > > I have one doubt regarding the use of html

Re: read html tags from database and display

2005-01-03 Thread Pavel Kolesnikov
ynamically, in struts framework, by reading the list from the database > and without having to hard code the getters and setters in a bean or > adding these fields to the configuration files for dynaform? What about indexed/mapped properties? See http://struts.apache.org/faqs/indexedp

Re: ActionForm automatic type conversion

2005-01-03 Thread Pavel Kolesnikov
ble to find out better designed (IMHO) solution. Pavel Kolesnikov - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Check Tag problem?

2005-01-03 Thread Pavel Kolesnikov
It simply says it can't find tile definition referenced by "name" attribute of your "useAttribute" tag. Try to check out if your tiles definitions. Pavel On Mon, 03 Jan 2005 03:08:57 +, Jim Douglas <[EMAIL PROTECTED]> wrote: > I used the example that came with tiles to create a site and I ke

Re: ActionForm automatic type conversion

2005-01-04 Thread Pavel Kolesnikov
On Mon, 3 Jan 2005 11:16:16 +0200, dsarris <[EMAIL PROTECTED]> wrote: > Hi all and happy new year, > > I am trying to fill an ActionForm with values that are neither Strings > or primitives. The specified values are selected using the > tag. This a sample of my JSP code: > > >

Re: How to implement OR functionality in STRUTS

2005-01-05 Thread Pavel Kolesnikov
On 05 Jan 2005 10:47:40 +0100, Guillaume Cottenceau <[EMAIL PROTECTED]> wrote: > Neil Erdwien writes: > > > How about: > > > > > >... > > > > > >... > > > > Are you serious? When "..." is longer than say 1 or 2 lines, this Neil's answer was as well serious as

Re: formatting of strings

2005-01-06 Thread Pavel Kolesnikov
On Thu, 6 Jan 2005 13:37:47 +0530, Krishna Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: > The below mentioned is the code. But from the address class we will > retrieve it as 10 digit string. > > > > For example if 9845612345 is the number I want to display it as > follows. > 984-561-2345 W

Re: formatting of strings

2005-01-07 Thread Pavel Kolesnikov
Krishna, what's the class of your telefoneno property? The format attribute is used only if the value to be displayed is NOT instance of java.lang.String. Pavel On Thu, 6 Jan 2005 18:56:23 +0530, Krishna Mohan Radhakrishnan <[EMAIL PROTECTED]> wrote: > Sorry Tommy, > The thing that u said simple

Re: Handling Dynamic Input Fields in ActionForm

2005-01-07 Thread Pavel Kolesnikov
Look at indexed or mapped properties (choose what you feel is more suitable for you). http://www.google.com/search?q=struts%20indexed%20mapped%20properties Pavel On Fri, 7 Jan 2005 21:10:27 +0530, Venkata Krishna V. <[EMAIL PROTECTED]> wrote: > Hi All, > > I have got a jsp page which has dynami

Re: Runtime expressions

2005-01-08 Thread Pavel Kolesnikov
On Sat, 8 Jan 2005 22:16:49 +1000, William Ferguson <[EMAIL PROTECTED]> wrote: > > You can't nest any custom tags like this. Following works well with JSP 1.2: but you need the html-el taglib (it means NOT the original html taglib included in the minimal struts-lib distribution). You ha

Re: Two Data Base Connections in struts-config.xml ?

2005-01-17 Thread Pavel Kolesnikov
However, you should better define data source in your environment and look up them via JNDI. Tomcat 4.1 settings are described at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html (pay your attention to Resource and ResourceParams tags). For Tomcat 5 change "4.1" t

Re: How to limit the result?

2005-01-18 Thread Pavel Kolesnikov
On Tue, 18 Jan 2005 01:34:02 -0800 (PST), Manisha Sathe <[EMAIL PROTECTED]> wrote: > After long search i found out that MSSQL does not support Limit / range of > records to be fetched. what about "set rowcount" or "select top"?

Re: JBoss does not reflect changes without restart

2005-01-18 Thread Pavel Kolesnikov
On Tue, 18 Jan 2005 19:47:45 +0530, sachin <[EMAIL PROTECTED]> wrote: > > I hope you are using ant for compiling & building application. You > > can use following ant tag to redeploy without restarting the jboss > > during development time i don't use Ant ... i directly compile the changed > file

Re: Connection Pool best practice

2005-01-19 Thread Pavel Kolesnikov
On Wed, 19 Jan 2005 15:52:20 +0530, Kalluru Uma. Maheswar <[EMAIL PROTECTED]> wrote: > And in the classes where I need database connection, I am saying > > DBPool dbPool = new DBPool(); > > dbPool.getDataSource(); > > By doing this, my application is getting slower. Initially I configured > db

Re: Connection Pool best practice

2005-01-19 Thread Pavel Kolesnikov
On Wed, 19 Jan 2005 16:43:25 +0530, Kalluru Uma. Maheswar <[EMAIL PROTECTED]> wrote: > Hi, > I am looking for an example using org.apache.commons.dbcp.BasicDataSource and > more over, I cant use a .war file to deploy my app (there are some problems) If I understand you right, you need to set up y

Re: NullPointerException, how to determine cause?

2005-01-19 Thread Pavel Kolesnikov
I guess the only plase where NPE may occure is the line: String sqlQuery = ((ExecuteQueryForm) form).getSQLQuery(); Are you sure there's a form definition available for this action? It means, is there a "name" attribute defined in an appropriate element in your struts-config.xml? Pavel

Re: need help precompiling jsps

2005-01-19 Thread Pavel Kolesnikov
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Web%20Application%20Compilation (tomcat 5 is required) pavel On Wed, 19 Jan 2005 13:40:24 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I can not find any docs on how to precompile my jsps. I've seen some > references and

Re: need help precompiling jsps

2005-01-19 Thread Pavel Kolesnikov
On Wed, 19 Jan 2005 15:06:27 -0500, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I'm using 4.1 and got the impression that the jasper.bat in the bin > directory does the compile. Is this incorrect? Not work well? I've never tried it with 4.1, I just know the Tomcat 5 solution I've sent is wor

OT: Welcome to sportslovers.net which is powered by Struts!

2005-01-20 Thread Pavel Kolesnikov
maybe you could add Taiwan ;) On Wed, 19 Jan 2005 14:07:21 -0800 (PST), t t <[EMAIL PROTECTED]> wrote: > Since I only have the names of states/provinces of those coutries for now. > T.T. > > Huw Richards <[EMAIL PROTECTED]> wrote: > Interesting choice of countries on your registration page. > >

Re: Need a sample for DBConnection Pooling code

2005-01-20 Thread Pavel Kolesnikov
Following link describes how to configure a DBCP connection pool and access it using JNDI (for Tomcat): http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-datasource-examples-howto.html BTW this link was sent to this mailing list at least three times during the last week ;) Pavel On Thu, 20 J

Re: how to substring with JSTL taglib

2005-01-20 Thread Pavel Kolesnikov
On Thu, 20 Jan 2005 21:53:23 +0800, PC Leung <[EMAIL PROTECTED]> wrote: > <%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %> > > Then I substring the ending characters with the following codes. > > type="org.apache.struts.tiles.beans.MenuItem" > > <% > ... > String suffix

Re: installing Struts on JBoss

2005-01-20 Thread Pavel Kolesnikov
On Thu, 20 Jan 2005 15:22:01 -0500, Alex Kravets <[EMAIL PROTECTED]> wrote: > Are there any special requirements to install and run Struts > applications on JBoss? If you application doesn't need to use any external resources like a datasources, EJBs or so on, you don't need to do anything special

Re: installing Struts on JBoss

2005-01-20 Thread Pavel Kolesnikov
alve.java:174) > at > org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) > at > org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) > at > org.apache.catalina.core.Container

Re: installing Struts on JBoss

2005-01-20 Thread Pavel Kolesnikov
Greg, could you please explain this a bit more? I'm curious about it, because I'm running multiple Struts based application on JBoss without this setting and I've never encountered any problems with mysterious ServletExceptions. BWT I've just tried to deploy struts-examples on a vanilla JBoss 4.