great thanks
- Original Message -
From: Fenderbosch, Eric [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:11 AM
Subject: RE: How to expose DynaValidator in Action?
Just did this earlier today for the first time.
thanks!
- Original Message -
From: Alex Shneyderman [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:12 AM
Subject: RE: How to expose DynaValidator in Action?
One of the parameters to the execute in your action
Is ActionForm
Hi.
In tiles-def.xml i have the following definition
definition name=.poll path=/tiles/layouts/tileLayout.jsp
controllerClass=gr.tera.portal.actions.poll.GetPollAction
put name=title value=Poll /
put name=tileBody value=/pages/poll/poll.jsp /
/definition
But when i run the
Yep, you gotta extend the right class.
Try to extend
org.apache.struts.tiles.ActionController
instead
-Original Message-
From: Jim Theodoridis [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:27 PM
To: Struts Users Mailing List
Subject: Tiles and ControllerClass
The problem I ran into with this is if you are using the controllerClass you
are required to
implement Controller even though you are extending Action.
If you are extending Action or Tiles Action and not implementing Controller
then
I was required to use ControllerUrl. This required me to add an
- Original Message -
From: Barry Volpe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 3:41 PM
Subject: Re: Data Source issue in tiles controller execute()
TYPO:
This:
tiles:insert definition=.penguin.view flush=true /
should
I addition if you implement Controller you will
need to declare the (interface requirement) perform method.
- Original Message -
From: Barry Volpe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 11:32 AM
Subject: Re: Tiles and
You can also just implement the Controller:
package gr.tera.portal.actions.poll;
public class GetPollAction implements org.apache.struts.tiles.Controller {
}
the tiles processor currently calls the perform method, but the docs say
that this will be deprecated in 1.2
I found this
Please don't kick me for posting this here, but still, one
or two might possibly be interested in taking notice:
http://www.dba-oracle.com/art_firing.htm
It's always good to know one's enemies :-)
-- Chris
-
To unsubscribe,
I think your way is perfectly acceptable. I like to try and use the
supplied interfaces (i.e. DynaBean) if they suit my needs and, to date,
DynaBean has served me well. You can use BeanUtils to map DynaBeans to
POJO's and visa versa (as a matter of fact you can to it to/from maps also
I
Because i was already using mod_jk2 , the best to configure was to change
it to add the Context in the server.xml with the desired URL. This is cool
isnt itMailing List are great
thanx to u all
--Mohan
If you have developed your application in struts friendly way, this
should be as easy
I'm attempting to write some things with the struts-faces library. I
have had some difficulty and decided to step back and look over the
example again. Now, I'm having issues getting the example app to work!
I have a fresh install of Tomcat 5.0.12b that I'm using. I have
deployed the example
You go from one action to another action by requestdispatcher ..thus
request.getRequestURI() will not serve your purpose
One solution is you can read request header Referer in /doerror.do
Now, above header is optional.
Or else , you may set request.setAttribute in /doNews.do which you
can read
How do I clear a DynaActionForm values?
---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
I have an HTML image map that needs to use the SSLExt links:
pmap name=Map2
area shape=rect coords=17,0,84,26 href=/index.jsp
area shape=rect coords=96,0,187,26 href=/member.do
area shape=rect coords=204,0,284,26 href=/notification.do
area shape=rect coords=302,0,406,26
What's with this?:
Drug and alcohol abusers will vehemently deny their addiction, especially
UNIX systems administrators...
Are Unix Sys Admins the hardest partyers of the IT bunch? Or maybe the
author thinks that Unix is over, and that the sysadmins are just in denial
about that and thus prone
sslext:rewrite / can render URLs to stick into the area href's.
-Max
- Original Message -
From: Mick Knutson [EMAIL PROTECTED]
To: struts [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 1:23 PM
Subject: Re: SSLExt and useMap?
I have an HTML image map that needs to use the
Do you mean Like:
area shape=rect coords=17,0,84,26 href=sslext:rewrite
name='/member.do'/
---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---
- Original Message -
From: Max Cooper [EMAIL PROTECTED]
To: Struts Users Mailing List
Yup, that's the technique I was thinking of. Even though that seems a little
like nested tags, it really is not (and should work fine) because the area
tag is just HTML rather than a JSP custom tag.
-Max
- Original Message -
From: Mick Knutson [EMAIL PROTECTED]
To: Struts Users Mailing
-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 2:14 a.m.
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings
OK, I think I understand #1 now. However, I still disagree with it ;) If
you are using the same form bean
Mainguy, Mike wrote:
I think your way is perfectly acceptable. I like to try and use the
supplied interfaces (i.e. DynaBean) if they suit my needs and, to date,
DynaBean has served me well. You can use BeanUtils to map DynaBeans to
POJO's and visa versa (as a matter of fact you can to it
I added this:
area shape=rect coords=96,0,187,26 href=sslext:rewrite
name='/member.do'/
(and I also have this in other areas of the same JSP page: sslext:link
page=/member.do Log On/sslext:link)
I get this error when I did that:
!--- --E[ServletException
When I am using design #3 my action mappings always specify that
validate=false. Those methods that do require validation explicitly call
the validate method of the bean. Those methods that do not require
validation don't call the method. So no conditioning is needed in the form
bean for design
-Original Message-
From: Sgarlata Matt [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 8:55 a.m.
To: Struts Users Mailing List
Subject: Re: [Poll] action mappings
When I am using design #3 my action mappings always specify that
validate=false. Those methods that do
Oops, I think you need to use the page attribute instead of name. Name will
look for an attribute that it will convert to a String and use as the name
of the action. The page attribute allows you to specify an action (or other
URL) that it will use directly.
-Mx
- Original Message -
With an Action Form we do the following:
form = new UserForm();
form.setUserid(5);
What is the equivalent for a DynaValidatorForm?
Let's say my DynaValidatorForm is myForm
Of course this does not work (compiler does not know what myForm is.)
DynaValidatorForm dynaForm =
In the Action itself, there is a form object already created. Then this
should work inside the action:
( ( DynaActionForm ) form ).set( Constants.USER_ID_KEY, 5);
---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---
- Original Message -
That was it. Thanks very much!
---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---
- Original Message -
From: Barry Volpe [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 2:16 PM
Yes it should clear as long as you have no parameters in the URL and as
long as you have the action mapping scope set to request and not session.
On 09/25/2003 07:52 PM Joseph William wrote:
I did figure that out Adam. Thanks much!
But, in the browser, when I hit the back button and then the
Hi Mick,
This does not appear to be working. I was also wondering let's say
in my struts-config I have two different DynaValidator forms defined.
Both forms have the same property say units. I am not using a Constants.
but how would it know which units needs to be populated?
Thanks,
Barry
Oh I see, Max, it sounds like you might be a Unix systems administrator
yourself... ;)
is it Friday yet?
On 09/25/2003 10:28 PM Max Cooper wrote:
What's with this?:
Drug and alcohol abusers will vehemently deny their addiction, especially
UNIX systems administrators...
Are Unix Sys Admins
Barry Volpe wrote:
With an Action Form we do the following:
form = new UserForm();
form.setUserid(5);
What is the equivalent for a DynaValidatorForm?
Let's say my DynaValidatorForm is myForm
Of course this does not work (compiler does not know what myForm
is.)
DynaValidatorForm
Each JSP will have 1 DynaForm assigned to a given form. So the formA.units
is different than forB.units in the DynaForm.
So, when you submit a form, there is just 1 Dynaform that is submitted. Or
in your case you want to show formA DynaForm with forma.units.
---
Thanks
Mick Knutson
A couple quick questions:
1) Using tomcat is it possible to configure log4j to only be functional for
your particular webapp? Because I put the log4j jar into my web-inf/lib
directory, built a log4j.properties and put it in /web-inf/classes and set
log4j's rootlogger to debug and got log
Well, I do some administration work on a few Unix servers from time to time,
but I wouldn't really call myself a sysadmin. Oh no! I am in denial. :-)
-Max
- Original Message -
From: Adam Hardy [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, September
Personally I'd rather declare that validation occurs in an extra mapping
that have to code it in my action. You lose the whole automation with
the input as well.
So I have 2 mappings for one action - one for starting ( for when
validation fails), and one for validation.
On 09/25/2003 11:01
How do I go from https on /member.do, back to http on index.jsp?
Must I make an /index.do and just eliminate the index.jsp?
---
Thanks
Mick Knutson
http://www.baselogic.com
+001(805) 563-0666 Office
+001 (708) 570-2772 Fax
---
Hi
Can anyone please tell me the advantages of Map/List backed forms over regular Action
Map with array List or even a dyna action form with an arrayList
thank you
Manoj
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi All,
Is there any tool in Struts that can tell if an
invalid session is caused by timeout or simply no
session were ever created?
(In my app, the loginAction creates a session and put
some stuff into the session, in each subsequent
request I'll check if session is valid, if not, send
user
Hi
Sorry if this is OT
I have not used any of the JSTL tags which I am assuming c:set ... is??
So I downloaded the JSTL library and included the core library EL: %@
taglib prefix=c uri=http://java.sun.com/jstl/core; % in my JSP
The c:set ... is recognized :-)
But the ...
-Original Message-
From: Shane Mingins [mailto:[EMAIL PROTECTED]
I have not used any of the JSTL tags which I am assuming
c:set ... is??
So I downloaded the JSTL library and included the core
library EL: %@
taglib prefix=c uri=http://java.sun.com/jstl/core; % in my JSP
-Original Message-
From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 11:25 a.m.
To: Struts Users Mailing List
But the ... disabled=%=disable % ... is not found.
What do you mean is not found? Are you getting an error message? If
so, what's the
I have a Servlet Filter that checks that the user has permission to
access the requested page. If the user does not, I want to send them
back to home.jsp. In home.jsp, I want to use the html:errors tag to
display an error message.
In the filter I do this:
ActionError error = new
I think it will be more simple with html-el:hidden
value=${yourFormBean.yourVariable} property=yourProperty/
-Original Message-
From: Abhijeet Mahalkar [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 25, 2003 5:25 PM
To: Struts Users Mailing List
Subject: Re: Value assignment to
Creating an index.do is one option. If it is not marked as secure, sslext
will write an absolute URL back to http:// for it. Many Struts users
advocate that all requests should be served by Actions, even if the action
merely forwards to a JSP.
I think you can also use the secure attribute in the
Max Cooper wrote:
Creating an index.do is one option. If it is not marked as secure, sslext
will write an absolute URL back to http:// for it. Many Struts users
advocate that all requests should be served by Actions, even if the action
merely forwards to a JSP.
I actually have a more important
Hi,
I am having exactly same problem as in this thread
http://www.mail-archive.com/[EMAIL PROTECTED]/msg38443.html
i.e. Japanese in the form elements (textboxes) becomes garbage once form
is re-shown. I have this tiles/struts application Japanese from
properties or from form is displayed
snip
This just strikes me as a very strange statement -- I don't get it.
/snip
Too much BSD will do that to you...
-Original Message-
From: Max Cooper [mailto:[EMAIL PROTECTED]
Sent: Friday, 26 September 2003 04:28
To: Struts Users Mailing List
Subject: Re: And now for something
Try this link
http://www.anassina.com/struts/i18n/i18n.html
and look item number 7.
The form data being submitted might not be being read as Shift_JIS or
UTF-8 but instead the default ISO-8859-1 format.
You need to set the character encoding of the request before Struts puts
the request
Hi All!
I'm using struts 1.1 , i'm creating a application based on struts
commons-upload ,I'm following
the struts upload example...
I would like to upload a file into a perticular directory..
/webapp
/MyApplication
/WEB-INF
/uploads/**
Hello, struts-user,
[code]
logic:iterate id=customer name=customers type=STB.Customer
bean:write name=customer property=testb/
bean:write name=customer property=pps/
/logic:iterate
[/code]
customers is set by request.setAttribute
pps is string value.
testb is a int value
If
Hi,
I have a query
if(a || b )
{
do certain operation
}
a or b will be attributes present in the session object, how can i use
logic:present tag to perform this operation.
Regards,
Tarun
DISCLAIMER:
This message contains
Under struts 1.0, try as follows:
logic:present name=a scope=session
do certain operation
/logic:present
logic:present name=b scope=session
do certain operation
/logic:present
However, the code can be optimized by using logic:OR tag, which is not
the part of this version.
Regards,
Muzammil
101 - 153 of 153 matches
Mail list logo