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
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
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
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
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
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
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
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
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
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
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
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
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
ble to
find out better designed (IMHO) solution.
Pavel Kolesnikov
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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:
>
>
>
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
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
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
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
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
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
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"?
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
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
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
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
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
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
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.
>
>
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
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
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
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
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.
35 matches
Mail list logo