Hi all...
I am trying to validate a form...
public XForm extends ValidatorForm{
private YForm[] subForms;
getters..
setters--
}
public YForm extends ValidatorForm{
private String field;
getters..
setters..
}
I need to validate my XForm first validating each YForm in subForms...
I mad
On Fri, Jun 03, 2005 at 02:22:18PM -0300, Rolf Fredi Molz wrote:
> I?m trying execute the struts-blank.war example in Jboss 4.0.0.
> I?m using the Windows 2000 Operating system and the struts is 1.2.4
> version.
I've not seen this, and I've probably run this combination at some
point, though on L
Yeah, depending on what language your boss likes, make your action .pl ,
.dll, .exe, .vbs, .ico, or my favorite: .bat
/processCreditCard.bat just instills confidence in me.
- Nic.
amol k wrote:
There are several ways to make this transparent to the user! I can
send details if >you don
Another option might be to use two URL mappings: *.do and /users/*.
Would that get you what you want?
L.
amol k wrote:
There are several ways to make this transparent to the user! I can
send details if >you don't know how?
Do send details if you can.
Something like what Martin is suggesti
Hi
I´m trying execute the struts-blank.war example in Jboss 4.0.0.
I´m using the Windows 2000 Operating system and the struts is 1.2.4 version.
Please, is anyone have the answer contact me.
In the Tomcat don´t have problem, but in Jboss show :
HTTP Status 500 -
-
>There are several ways to make this transparent to the user! I can
send details if >you don't know how?
Do send details if you can.
Something like what Martin is suggesting looks like one way.
Thanks.
On 6/3/05, Ray Madigan <[EMAIL PROTECTED]> wrote:
> Why are you making your users type in th
Amol-
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-apache-howto.html
You can Use setup an alias in your httpd.conf
here is an example from Apache tech doc
# (1) Make Apache know about the context location.
Alias /examples D:\tomcat\webapps\examples
# (2) Optional, customize Apache con
Why are you making your users type in the action anyway. Why don't you mask
this so they don't know how you implemented it. There are several ways to
make this transparent to the user! I can send details if you don't know
how?
-Original Message-
From: amol k [mailto:[EMAIL PROTECTED]
Why not do a URL re-write in the 'front-end' web server -- for example -- a
user types in
http://myserver/Login -- but the front-end web server does a URL-REWRITE
before passing it on to
the app server (I believe you said you are using Tomcat) - and the
re-written URL would be:
http://myserver
amol k wrote:
Here is what I am trying to achieve:
http://myserver/Login.do --> (maps to) LoginAction
http://myserver/Logout.do --> (maps to) LogoutAction
http://myserver/user/blahblah --> UserPageAction (notice that there is
no .do in this case. blahblah can be replaced by anything at runtime)
> Why not just map /do/* to the action servlet insted of *.do
http://myserver/Login.do to http://myserver/do/Login, etc is not an issue but
Making the users type http://myserver/do/user/blahblah instead of
http://myserver/user/blahblah is a usability issue.
(will have to ultimately do that if th
Why not just map
/do/* to the action servlet insted of *.do
Then all of these would go through Struts..
http://myserver/do/Login
http://myserver/do/Logout
http://myserver/do/user/blahblah
This obviously wouldn't go through struts..
http://myserver/pages/blahblah.jsp
amol k wrote the followin
Here is what I am trying to achieve:
http://myserver/Login.do --> (maps to) LoginAction
http://myserver/Logout.do --> (maps to) LogoutAction
http://myserver/user/blahblah --> UserPageAction (notice that there is
no .do in this case. blahblah can be replaced by anything at runtime)
http://myserver
Well, here's what the problem was.
We added a line of code in our header.jsp tile like this:
There were times when the DistrictLogo was empty, which resulted in html
that looked like this:
This img tag with an empty src attribute caused a request to come into the
Struts controller servlet.
Wh
At 1:41 PM -0400 6/3/05, Leandro_Dorileo/[EMAIL PROTECTED] wrote:
I'm working in a project where I'm planning to use my own implementation
of ExceptionHander, I know that I need extend the
org.apache.struts.action.ExceptionHandler and overwrite the execute
method, I also know that I need use the
Thanks woodchuck, but the behavior is happening with any request, not just a
form submit using a button.
In the troubleshooting I've done since the post, I stepped out of the entire
call stack of methods and found out that the second hit on the breakpoint
comes when I step out of CoyoteAdapter.ser
check to see if you are using image buttons to
submit your forms.
these types of buttons submit your form by default. if you define
javascript functions for these buttons to do your submitting that would
be the reason for the double submits your getting. you can get around
this simply by return
I'm working in a project where I'm planning to use my own implementation
of ExceptionHander, I know that I need extend the
org.apache.struts.action.ExceptionHandler and overwrite the execute
method, I also know that I need use the taglib and
configure my action to work with my own ExceptionHan
Not using any Filters.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 11:24 AM
To: Struts Users Mailing List
Subject: Re: Double posting problem
From: "Barnett, Brian W." <[EMAIL PROTECTED]>
> We've spent the last couple of weeks enhancing ou
From: "Barnett, Brian W." <[EMAIL PROTECTED]>
> We've spent the last couple of weeks enhancing our web app and now every
> get/post to Tomcat from our web app is coming in twice.
>
> Any ideas on what I can check?
Do you have any Filters? Check that chain.doFilter(...) is only called
*once*.
--
We have a BaseRequestProcessor which extends the TilesRequestProcessor
defined in the struts-config file. A co-worker is getting the following
error when he tries to use it:
[6/3/05 10:14:03:327 EDT] 690b690b WebGroup E SRVE0026E: [Servlet
Error]-[action]: java.lang.ClassCastException:
org/a
Yes. That's it.
Thanks a lot.
Tim Jian
Momentum systems, Inc.
-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]
Sent: Friday, June 03, 2005 11:27 AM
To: Struts Users Mailing List
Subject: Re: -- is this a bug
From: "Qinjian Jian" <[EMAIL PROTECTED]>
> Next, if I just unc
We've spent the last couple of weeks enhancing our web app and now every
get/post to Tomcat from our web app is coming in twice. I can't figure out
what was changed. I have a breakpoint in the execute() method of our
LookupDispatchAction derived base class and all incoming requests come in
twice no
From: "Qinjian Jian" <[EMAIL PROTECTED]>
> Next, if I just unchecked
> some of checked checkboxes rather then all of them, then refresh the
> page it still works fine. However, if I unchecked them all then refresh
> the page, the previous step checked boxed remained unchanged and still
> were check
Hi All,
I am new to tiles frame work. I've applied tiles throughout my project. My
layout is very commonly used and it includes header, left navigation bar,
main body and footer. I've defined all the JSP pages in
*tiles-defs.xml*file. I'm providing part of
*tiles-defs.xml, layout.jsp *(default l
Hi,
I'm trying to use the tiles framework. Everything runs well, but if I
try to use a custom RequestProcessor I get this error in the console:
Jun 3, 2005 4:54:26 PM org.apache.struts.tiles.TilesPlugin
initRequestProcessorClass
SEVERE: TilesPlugin : Specified RequestProcessor not compatible
commons-logging.properties
# Disable logging
#org.apache.commons.logging.Log = org.apache.commons.logging.impl.NoOpLog
log4j.properties
log4j.enable=OFF
consult the applicable doc for either package
Martin-
in - Original Message -
From: "Abhinav Bhatnagar" <[EMAIL PROTECTED]>
To:
Sen
Hello,
I have a feature request about the "Highlighting
Errors" stuff on the HTML Input Tags. (errorStyleX
attributes)
Each input must have an errorStyleX attribute to have
highlighting on it. Wouldn't it be better to have only
one attribute on html:form tag ?
I made a test with a FormTag subcl
Greeting:
I am using tag on a jsp page. The scope of form bean
associated with this jsp page is session. The Struts version is 1.1.
I first check some of checkboxes and then refresh the page. The bean's
property, i.e. selectedUsers (a String array), got populated and jsp
page also displaye
Mark Benussi wrote:
I am trying to write a comparator that randomly sorts a collection.
I'm not entirely convinced that the word "sort" it applicable here.
Collections.shuffle might do what you want if you have a List.
Dave
---
how do I switch off Struts - internal logging?
I am using struts 1.2.6.
Thanks in advance.
Abhinav
I use xdoclet and since Struts 1.1 you can do something like this in your
Action class where you can specify the list of Roles that have access to
this action.
/**
* @struts.action
* name="CustomerCreateForm"
* path="/operator/customers/customer/CustomerAddAction"
* input="/oper
Yeah looks cool and works with Velocity. I'm working on getting it to
work in me project.
But I still need to have access controls on me different action's.
Vance Karimi wrote:
Have a look at the Struts Menu plugin
http://struts-menu.sourceforge.net/
-Original Message-
From: new
Have a look at the Struts Menu plugin
http://struts-menu.sourceforge.net/
> -Original Message-
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of marc
> Sent: Friday, 3 June 2005 5:51 PM
> To: user@struts.apache.org
> Subject: How do I use JAAS(JbossSX) in Struts?
>
> Now I have made a
ed
it with arrays, I just iterate over them in the validate (...) method of the
form, like so:
UserBean users[] = (UserBean[]) form.get ( "users" );
for ( int i = 0; i < users.length; i++ ) {
// check on the attributes of UserBean users[i]
}
Hope that example clears it
Ok. Now I know it was in the contrib directory.
Thanks,
Ibha
> -Original Message-
> From: Ibha Gandhi [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 03, 2005 5:22 PM
> To: 'Struts Users Mailing List'
> Subject: Newbie Q - Struts expression language taglibs
>
> Hi All,
>
> >From where
Take a look into the contrib/struts-el/lib folder !
Nico.
Ibha Gandhi a écrit :
Hi All,
From where can I download struts el tag libraries.
I downloaded jakarta-struts-1.2.4.zip, but it does
not contain struts-html-el tag libraries
Thanks,
Ibha
-
Hi All,
>From where can I download struts el tag libraries.
I downloaded jakarta-struts-1.2.4.zip, but it does
not contain struts-html-el tag libraries
Thanks,
Ibha
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
Tony-
to allow access by your Struts app's bean tag set the struts-config.xml
(ApplicationResources.properties is located in test folder off root)
Now you can have multiple identify the particular ApplicationResources implementation
You can use bean:message to pull the parameter and substitute
i may be missing something here, but if random is what u want in a
collection, then y don't u use Collections.shuffle() ?
riyaz
Mark Benussi wrote:
Hello.
I am trying to write a comparator that randomly sorts a collection.
I have something like this:
new Comparator() {
Now I have made a Struts app, that uses a LoginContext (Using
jbossSX/JAAS) to login. And this works fin.
But now I what to use the attibutes from the logincontext for more.
And what to be able to make menu's based on what role the user have. I
what to be able to set access controls to differen
Thanks for the answer John...
Could you give me an example as to how we pre populate the array?
Regards,
Nitesh
- Original Message -
From: "John Fitzpatrick" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, June 02, 2005 6:00 PM
Subject: Re: Problem using indexed pr
How much careless one can be!!!
The problem was with the form name in validation.xml (userListAdmin instead
of UserListAdmin)
:)
- Original Message -
From: "Nitesh" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Friday, June 03, 2005 12:40 PM
Subject: Problem using valid
Hello.
I am trying to write a comparator that randomly sorts a collection.
I have something like this:
new Comparator() {
/**
* @see java.util.Comparator#compare(java.lang.Object,
java.lang.Object)
*/
public int compare(Object object1, Object object
I'm trying to use the validator framework. for client and server side
validations. I'm using Struts 1.1.
I have in my struts-config.xml
a form which look like...
public class SampleDynaForm extends DynaValidatorForm
{
/**
* Constructor
*/
public SampleDynaF
45 matches
Mail list logo