Hi Gary,
Thx for your help, but still no improvements...
My Method getIdent is like this:
public String getIdent() {
return ident;
}
So really returning a String. It is called and I initialzed with
"somethingString". In debug it is not null.
Still the converter error :(
Hi Gary,
Thx for your help, but still no improvements...
My Method getIdent is like this:
public String getIdent() {
return ident;
}
So really returning a String. It is called and I initialzed with
"somethingString". In debug it is not null.
Still the converter error :(
I have now modified the statements as
set JAVA_OPTS=%JAVA_OPTS% -Dprogram.name=%PROGNAME% -classic -Xdebug
-Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
here when the value of suspended=y then my server is suspended and
displaying the message
application.properties file:
errors.footer=
errors.header=
errors.abc.required=This is a test
when I use ,I get following error:
org.apache.jasper.JasperException: /index.jsp(10,20) Attribute header
invalid for tag errors according to TLD
org.apache.jasper.servlet.JspServletWrapper.handleJspExce
No, no database access in the action form - yech, bleh, ptui! :-)
General principle: Form > Action > Business Layer > DAO > Database.
Errors and messages from the lower layers can be handled via the
Action.saveMessages() method, then exploited via the
structures in the .jsp.
hth,
On 2/23/06, S
Try having the following in your message resources:
errors.footer=
errors.header=
... or rather than using the default, you could specify empty header/footer
labels. In your application resources:
empty.footer=
empty.header=
... then on the errors tag:
...or you could use the messages tag
Thanks Niall, works well. But I find
another question,first look at my application.properties file:
errors.footer=
errors.header=
errors.abc.required=This is a test
In my jsp,use follows statement
If errors is not empty,it will should the error message "This is a test"
My question is when I ru
Browsers only transmit values when the checkbox is "checked" - in the reset
method of your ActionForm set the "lockedFlag" to the false value.
Niall
- Original Message -
From: <[EMAIL PROTECTED]>
Sent: Thursday, February 23, 2006 9:22 PM
> I have problem with checkbox property not comm
Action has some convenience methods for saving errors - you can do something
like the following in your Action's execute method:
if () {
ActionMessages errors = new ActionMessages();
errors.add("myProperty",
new ActionMessage("myProperty.error"));
sav
You should be using the "property" attribute (as you had in your first post)
to do what you want...
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html#section5
...not the "name" attribute - that does a different job...
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMe
I have a number of scenarios where I need to validate against a set of
rows in a database table. For example, when logging in, it's all fine
and dandy to make sure a username and password is entered in the
ActionForm.validate method, but should database access go in the
ActionForm? If so, how
I changed following code
if ((abc != null) && (abc.length() > 10))
but when the content of text abc is '123',it's length isn't equals 10,so it
should raise error,but it don't show any error!
If I use instead of ,I can get right
value. Why works well,and don't
work. I am puzzled with it.
On
Planning to use Hibernate query in my DAO.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 23, 2006 9:06 AM
To: Struts Users Mailing List
Subject: Re: Sorting & paging search results with delete button for each
row?
Narayanan, Shiva wrote:
> I woul
>From: Timo Schnölzer <[EMAIL PROTECTED]>
>
> Hi Gary,
>
> It is strange:
>
> 1. using common jsf component:
> java.lang.IllegalArgumentException: Value is no String and component
> clayView:base:_id0:_id31:_id49:SUCHEN:_id91_0:radio does not have a
> Converter
> at
> org.apache.myfaces.r
Hi Gary,
It is strange:
1. using common jsf component:
java.lang.IllegalArgumentException: Value is no String and component
clayView:base:_id0:_id31:_id49:SUCHEN:_id91_0:radio does not have a
Converter
at
org.apache.myfaces.renderkit.RendererUtils.getConvertedStringValue(RendererU
tils.j
From: Timo Schnölzer <[EMAIL PROTECTED]>
> Hi folks,
>
> I try to build a datatable in clay like:
>
>I try to build a datatable in clay like:
>
>allowBody="false">
>
>value="[EMAIL PROTECTED]" />
>
>
>
Hi folks,
I try to build a datatable in clay like:
In order to realise a "choose one row" my customer likes to use a radio
input type.
I have problem with checkbox property not communicating with my Action.
I have String property with "Y"/"N" in FormBean populated from DAO , I
convert it to "yes"/"no" before sending it to form and I do conversion
back from "yes"/"no" to "Y"/"N" after I receive from form and send it to
DAO.
What
Here is an one example of what the validation.xml would look like
In jsp:
In validation.xml:
maxlength
6
minlength
6
-Original Message-
From: Juergen Schmailzl [mailto:[EMAIL PROTECTED]
Sent: Thursday, Februa
**DISCLAIMER**
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this e-mai
Michael, The reason for the buttons in the form is in case that Moosbauer
wanted to identify what button was pressed by the user, if he wants to include
more than one submit button in the form, once in the function specified in the
action definition, of course. I might not have understood his re
Michael, The reason for the buttons in the form is in case that Moosbauer
wanted to identify what button was pressed by the user, if he wants to include
more than one submit button in the form, once in the function specified in the
action definition, of course. I might not have understood his re
Hi all:
I am populating all fields in the ActionForm, and also populating an
array of QueryResults from the data base. This bean called QueryResults
has a field on it called selected. This QueryResults bean lives in the
Actionform.
Going out to the jsp, and returning on the execute():
Hi Leon,
Thanks for the reply. I refactored my bean so that the method no longer
takes a String parameter which is as per the bean spec. I might have a look
at your suggestion to see if that would have worked.
Regards
Jim
- Original Message -
From: "Leon Rosenberg" <[EMAIL PROTECTED
There is a requirement for my app to go back to the browser in order to
redirect.
Is the "use HTTP response code 307" more seamless to the user/browser,
compared to the "Javascript onload submit" way of doing it?
Also, how do I tell Struts controller to redirect with code 307?
Alain.
---
>
sure, but I didn't get it work...
My jsp code looks like this:
how should the validation.xml look like?
- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, February 23, 2006 8:15 PM
Subject: Re: validate indexed pro
Have you tried google?
http://www.google.com/search?hl=en&q=validating+indexed
+properties&btnG=Google+Search
--
James Mitchell
EdgeTech, Inc.
http://edgetechservices.net/
678.910.8017
Skype: jmitchtx
On Feb 23, 2006, at 1:58 PM, Juergen Schmailzl wrote:
thanks,
is it possible to use this
I'm fairly new to struts, so this might be a trivial question. I have
an action as follows:
public class MyAction extends Action {
public ActionForward execute( /* ... */ ) {
return mapping.findForward( "success" );
}
}
And a form:
public class MyForm extends ActionForm {
private String
thanks,
is it possible to use this on the client side?
is there a tutorial anywhere how to use it`?
- Original Message -
From: "James Mitchell" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Wednesday, February 22, 2006 9:23 PM
Subject: Re: validate indexed properties
Yes.
On 2/23/06, St-Pierre, Alain <[EMAIL PROTECTED]> wrote:
> Here is my requirement:
>
> I have two separate Application servers. The server A will host my html
> form.
>
> When I submit my form, I want to go in an Action class of my server A,
> which will prepare a new form (different one), to be se
I don't think you want an HTTP redirect at all. I would include, on the
second form (the one created by A to be posted to B), client-side
JavaScript that does the form submission when the page is loaded.
If there is any chance that JavaScript wouldn't be available, you could
include static HT
On 2/23/06, St-Pierre, Alain <[EMAIL PROTECTED]> wrote:
> Is there a built-in mechanism in Struts which allows a Redirect with an
> HTTP POST method instead of GET method?
Use HTTP response code 307. If browser supports it correctly, a user
has to confirm redirection. Many browsers do not support
Is there a built-in mechanism in Struts which allows a Redirect with an
HTTP POST method instead of GET method?
Here is my requirement:
I have two separate Application servers. The server A will host my html
form.
When I submit my form, I want to go in an Action class of my server A,
which w
This all depends on what the tag does with it's body ;)
btw if i see in a jsp i kill it's author,
whatever the tag is
Leon Rosenberg a écrit :
>>Am pretty sure, JSP is not about xml at all :)
>>
>>
>>
>>and will never fit in a xml parser!
>>
>>
>
>no, but jsp can produce well formed xhtml (a
I can't answer JBoss questions -- better to ask the list about those. I
don't know if you're supposed to have the classic option or not -- I
don't, but I'm not running JBoss either. I still haven't seen what the
actual app server startup command looks like -- that's where you should
start debugging
True to some degree, but the generated page still has to be rendered by the
browser once the custom tags and scriptlets etc. are resolved.
will not render properly (if at all) because it's not well-formed. To that
degree at least, JSP pages still have to follow XML rules. Even HTML browser
> Am pretty sure, JSP is not about xml at all :)
>
>
>
> and will never fit in a xml parser!
no, but jsp can produce well formed xhtml (actually its an optional
setting, isn't it?)
so is invalid,
but the output of your example:
is a valid xhtml.
It's not about the jsp itself, but the output
Am pretty sure, JSP is not about xml at all :)
and will never fit in a xml parser!
Chris Loschen a écrit :
>But you can't do that -- it's not well-formed XML.
>
>Chris
>
>-Original Message-
>From: David Delbecq [mailto:[EMAIL PROTECTED]
>Sent: Thursday, February 23, 2006 7:53 AM
>To
Here you are http://java.sun.com/developer/releases/petstore/index.html happy
reading.
Bryan LaPlante
-- Original Message ---
From: gomathi <[EMAIL PROTECTED]>
To: user@struts.apache.org
Sent: Thu, 23 Feb 2006 01:13:52 -0800
Subject: Object based project
> hai,
> I would like to
Hi,
i don´t think so, because i do not have a "department -> customer" structure
(1 to many structure). i only have a list of objects, each object has 3
properties (a, b, c) of type integer (a,b,c can have a value from 0 to 2).
I want to display a list of these ojects and 3 groups of either 3
r
I think there is an even easier solution.
Code below...
Java (the Array)
import java.util.ArrayList;
import org.apache.commons.beanutils.LazyDynaBean;
public class MyLazyArray extends ArrayList {
private Class persistentClass;
public MyLazyArray(){
t
On 2/23/06, Leon Rosenberg <[EMAIL PROTECTED]> wrote:
> On 2/23/06, Simon Chappell <[EMAIL PROTECTED]> wrote:
> > I'm sure someone can give you a much more Comp.Sci. answer, but here's
> > my "in the trenches" answer.
> >
> > A business object is any object that you use to represent a business
> >
Narayanan, Shiva wrote:
> I would like to page and sort the data (10 thousand records) retrieved
> from the database. I don't want to sort it in memory.
>
How/where do you want to sort it?!
Dave
-
To unsubscribe, e-mail: [
Not sure if you are looking for a good open source solutions here.
If you are, have a look at the following site:
http://extremecomponents.org/extremesite/welcome.jsp
Chandra
-Original Message-
From: Narayanan, Shiva [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 23, 2006 8:23 PM
T
I would like to page and sort the data (10 thousand records) retrieved
from the database. I don't want to sort it in memory.
I am using Struts & DAO Hibernate) and want to page search results and
sort the data within that page. Also, I should have delete button for
each row and this button should
On 2/23/06, Simon Chappell <[EMAIL PROTECTED]> wrote:
> I'm sure someone can give you a much more Comp.Sci. answer, but here's
> my "in the trenches" answer.
>
> A business object is any object that you use to represent a business
> concept. Classic examples would be customer, address and order.
>
I'm sure someone can give you a much more Comp.Sci. answer, but here's
my "in the trenches" answer.
A business object is any object that you use to represent a business
concept. Classic examples would be customer, address and order.
A data transfer object is anything that you use to send data fro
But it *is* a good way to lose customers. ;-) I, for one, tend not to do
business with sites like that.
> -Original Message-
> From: Josh McDonald [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 22, 2006 5:45 PM
> To: user@struts.apache.org
> Subject: Re: AW: Disabling Back Button
A Business Object is generally a part of the Domain Model (see
http://martinfowler.com/eaaCatalog/domainModel.html). A Data Transfer
Object is a data "object" used to transfer information to/from a remote
system (see http://martinfowler.com/eaaCatalog/dataTransferObject.html).
I highly recommend M
is it always the same object (class) and the same method you are
calling? In this case I'd suggest you write a three-line custom tag
for it. If you have to do it more often, maybe a tag using reflection
api would be an answer. I you write one, let me know, I may need one
too :-)
regards
Leon
On 2
class Person{
Date birthday;
public void setBirthday(Date aBirthday){
int age = calculateAge(aBirthday);
if (dMAX_AGE)
throw new PersonValidationException("You are probably dead by now");
birthday = aBirthday;
}
...
}
something like this... whatever your requirements
**DISCLAIMER**
This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the named addressee, please notify the sender immediately by e-mail if you have received this e-mai
mea culpa :-)
my superfast fingers... :-)
I thought it were self explaining... so he could still choose between
...
and
;-)
On 2/23/06, Chris Loschen <[EMAIL PROTECTED]> wrote:
> But you can't do that -- it's not well-formed XML.
>
> Chris
>
> -Original Message-
> From: David Delbecq [m
But you can't do that -- it's not well-formed XML.
Chris
-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 23, 2006 7:53 AM
To: Struts Users Mailing List
Subject: Re: How to inject code between of a generated page ?
Na, he just asummed the tag
Na, he just asummed the tag was doing additionnal work at a later part:
Dave Newton a écrit :
>Leon Rosenberg wrote:
>
>
>>?
>>
>>
>>
>Ah, see, that won't work.
>
>Try
>
> instead.
>
>;)
>
>(Hey, it was either this or I would have had to respond to the "I want
>to write a fully ob
You'd have to look at what actually gets into the java startup command:
you've got two different debug statements in what you quoted, one active
mapped to JAVA_OPTIONS and one commented out mapped to JAVA_OPTS. When
the server actually starts, does the{ startup command include
JAVA_OPTIONS? JAVA_OP
Leon Rosenberg wrote:
> ?
>
Ah, see, that won't work.
Try
instead.
;)
(Hey, it was either this or I would have had to respond to the "I want
to write a fully object-based Java program, how do I do that?" thread ;)
Dave
red phoenix wrote:
> I modify my code,like follows,this time it don't show any error,but when the
> content of text abc is '123',it's length isn't equals 10,so it should raise
> error,but it don't show any error! Why?
>
Most likely because in your code you check to see if its length is
greater t
can I get more information about the business logic validation? can I get
some simple example.
Regards
Shasi
-Original Message-
From: Kanuri, Chand [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 23, 2006 5:59 PM
To: 'Struts Users Mailing List'
Subject: RE: Business logic validation sh
just create java beans(your business objects) similar to your form beans and
copy the properties from form beans to respective business objects.use these
business objects in your action classes to perform busines logic.
use struts validator for basic validation for ints,floats etc.business logic
v
Hi
need information about what is the business logic validation and what are
business objects. What is the difference between serverside validation and
clientside validation.when using struts which is the best place for
serverside validation and clientside validation and business logic
validation
Hi
What is the difference between a BusinessObject and DataTransferObject.
Can the DTO be serialized.
Thanks and Regards
Shasi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
does anyone knows a really good docu (with examples) how to use the
iteration (with indexed tags)?
Because my indexed iteration is not working, the first time the values are
fine (loading), but after submitting the data, the changes are not mapped to
the array (or arraylist).
Here is the pro
hai,
I would like to develope one java project.Its fully object based.
Is there is any site for fully object based samples. In which document is used
for this .
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional command
The JSP writer writes http response, not html response. You can use jsp
to generate html, txt, xml, whatever you want.
jsp tags are supposed to output content where they are. If you need to
autogenerate the section while you are already in the middle of
your .jsp, then you will need your taglib to
Is this the unique method to do this ?
I expected to use a JspWriter like to get a writer to the web page header !
Thank you,
David
Leon Rosenberg a écrit :
?
regards
leon
On 2/23/06, David Duke <[EMAIL PROTECTED]> wrote:
Hi everybody,
This is my first post on this mailing list.
I dev
I modify my code,like follows,this time it don't show any error,but when the
content of text abc is '123',it's length isn't equals 10,so it should raise
error,but it don't show any error! Why?
<%@ taglib uri="/WEB-INF/struts-form.tld" prefix="html" %>
On 2/23/06, [EMAIL PROTECTED] <[EMAI
Which version of Struts are you using?
>From Struts 1.0:
DEPRECATIONS - The entire custom tag library that is documented in
struts-form.tld has been deprecated because this library has been
renamed struts-html.tld instead; for ref:
http://struts.apache.org/struts-action/userGuide/release-notes-1.0
?
regards
leon
On 2/23/06, David Duke <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>
> This is my first post on this mailing list.
>
> I developped a personal tag librairy which need to inject code - link a
> javascript or stylesheet file - between the XHtml tags
> of my generated page. The JspW
Hi everybody,
This is my first post on this mailing list.
I developped a personal tag librairy which need to inject code - link a
javascript or stylesheet file - between the XHtml tags
of my generated page. The JspWriter object don't seem to suite me.
Is someone know how to do that ?
Tha
70 matches
Mail list logo