Thanks Erik will do that.
-Original Message-
From: Erik Weber [mailto:[EMAIL PROTECTED]
Sent: 21 April 2005 05:41 PM
To: Struts Users Mailing List
Subject: Re: Struts Radio button
I think that my answer to another post earlier this morning applies
here, so I have pasted it:
. . . Form
Thanks Jay
-Original Message-
From: Jay Burgess [mailto:[EMAIL PROTECTED]
Sent: 21 April 2005 05:45 PM
To: user@struts.apache.org
Subject: RE: Struts Radio button
I think this write-up from Ted Husted explains it nicely:
http://husted.com/struts/tips/016.html
Jay
| Jay Burgess [Ver
Hi
i have
for(int i=0; i< vec.size(); i++)
{
if(i=5)
{
// do some thing
}
}
how can i use the same code in
Help me out with example.
-Thnx in Advance
Jeevan
__
Do Y
The problem is, I use ValueList for the listing page, it will automaticaaly
append the action=add when selecting the next/previous page.
so, after I add the record, it will go to the listing page (return
(mapping.findForward("afflist"))), at the same time, it will append the
action=add (base on
Let me just make sure I'm being clear, since you appear to use separate
Actions whereas I typically use one.
I do it like this:
execute( . . .) {
//switch
case view:
getDelegate().doViewStuff();
break;
case save:
getDelegate().doSaveStuff();
getDelegate().doViewStuff();
break;
That's the way I do it. If your Actions are light, as they should be, it
doesn't add a lot of code. Some redundant code is not a bad thing, it
can make things clearer. If you were to "chain" actions, then you'd be
going through the entire request processor chain again.
I think that Struts 1.3,
Hi,
I have an action which save the data into the database, after the saving, I
would like to forward to the listing page, where I have another action doing
the listing.
Should I repeat the same listing method (method list) in the save action
itself..? Or, is there any better way?
Thanks for a
Ah ah! It turns out that I should change
parameter="/pages/Login.jsp"/>
to
input="/pages/Login.jsp"/>
Thanks all for spotting that!
Thong
--- Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> You have "validate" set to "true", thus Struts tries
> to locate
> error/input
You have "validate" set to "true", thus Struts tries to locate
error/input page and cannot find it, because "input" attribute is not
defined.
"input" must be renamed to "error".
Michael.
On 4/21/05, T. B. <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am trying to deploy a simple struts on r
Hi!
I think the input attribute must be setted with the value of the page where
the errors of validation will be displayed...
I mean.
I wish it helps you
Lucas
"T. B." <[EMAIL PROTECTED]> wrote:
Hi all,
I am trying to deploy a simple struts on resin 2.1.12
and got this error when accessing
hi guys.
for all whose interested.
all that is needed is 2 files;
1) formatter-rules.xml (of type validation-rules.xml). add file to
ValidatorPlugin resource path
2) java class containing methods to execute
of course, validating n formatting r very different things. but its
small work and effi
Hi all,
I am trying to deploy a simple struts on resin 2.1.12
and got this error when accessing my port
http:/myApp/Logon.do
The error is:
500 No input attribute for mapping path /Logon
The mappings in struts-config.xml are as followed:
.
Heh. Normally I hate stuff like this, but for some reason, that one was
so silly it just cracked me up. Must be because I just woke up. :)
Erik
Vic Cekvenich (netsql) wrote:
[EMAIL PROTECTED] wrote:
I think
all salient points have been made.
Agree.
It's almost friday:
http://www.moronland.com/i
[EMAIL PROTECTED] wrote:
I think
all salient points have been made.
Agree.
It's almost friday:
http://www.moronland.com/image.php?media=Apple%20Weed
.V
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail
This would work until they leave application, browse somewhere else,
and then return back to original app by typing location directly in
the address bar. This is why I do not like stateless: because they are
stateless.
On 4/21/05, K.C. Baltz <[EMAIL PROTECTED]> wrote:
> Do you have the option of u
Do you have the option of using URL-rewriting instead of cookies for
your session tracking? If you've used or etc for
all your addresses, you should be able to just switch it on. Then, each
time a user hit a link that didn't have the jsessionid encoded, they'd
receive a new session when one
Hi folks. Thanks for ur help. Those projects are so cool... But i have
built all my jsp and used taglibs...
If I decide to use this tags. Does it mean I have to rebuild my jsps?.
--
Rafael Taboada
-
To unsubscribe, e-mail: [E
Jim, I have used:
TabTitle
in the jsp succesfully to position action output with anchors.
I have not tried it but possibly something like:
Hope this helps.
-Jeff
Is there any way I can set up an action mapping so that, if control is
redirected back to the "input" JSP page, I can make it
If you are returning a "redirecting" action forward, it shoul be no
problem to append an anchor -- but if your ActionForward results in a
RequestDispatcher forward (as in the default case), then the anchor
would probably cause the dispatcher to choke.
The problem is that errors are normally sav
Maybe I'm understanding you wrong, but your multiple windows are all used by
the same user, right?
In this case user name and operation id should be the same for all
'vsessions'
(virtual sessions between one browser window and the webserver).
The only thing differs between vsessions is your 'vali
Maybe I'm understanding you wrong, but your multiple windows are all used by
the same user, right?
In this case user name and operation id should be the same for all
'vsessions'
(virtual sessions between one browser window and the webserver).
The only thing differs between vsessions is your 'vali
Thanks for the responses.
Currently I store the following in session: user name (display it in my
tiles header and use it in my tile definition with mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 2:26 PM
To: 'Struts Users Mailing List'
Subject: AW: Can you make Tomcat 5 create multiple J
Aehm,
document.location.href = document.location.href+'#errors';
At the bottom of your document?
I mean, you should remind yourself, that an anchor in your document has
nothing to do with the forward.
It's like renaming the class file if you need to call method B() of the
object instead of met
Aehm,
document.location.href = document.location.href+'#errors';
At the bottom of your document?
I mean, you should remind yourself, that an anchor in your document has
nothing to do with the forward.
It's like renaming the class file if you need to call method B() of the
object instead of met
I have a JSP page in my application that consists of several lines of
explanatory text (a screen's worth or so) followed by a form. When the
user submits the form, the ActionForm validate method is called and, if
there are errors, the user is returned to the same JSP page where
html:errors displa
> hi,
>
> Am I correct that only one Action instance is being created
> by the server?. I mean all users/threads share the same
> instance?
yes
>Base on this I surmise that if I extend Action like that:
> public abstract class MyAction extends Action {
>
> protected static final IAuthorizer
> hi,
>
> Am I correct that only one Action instance is being created
> by the server?. I mean all users/threads share the same
> instance?
yes
>Base on this I surmise that if I extend Action like that:
> public abstract class MyAction extends Action {
>
> protected static final IAuthorizer
hi,
Am I correct that only one Action instance is being created by the
server?. I mean all users/threads share the same instance? Base on this
I surmise that if I extend Action like that:
public abstract class MyAction extends Action {
protected static final IAuthorizer auth=new MyAuthorizer();
On Feb. 28th, I posted a sample of doing multiple uploads, as seen in this
message:
http://www.mail-archive.com/user@struts.apache.org/msg22400.html
I am in need of that sample, but I do not seem to have it anywhere. Does
anyone here have a copy by any chance? Thanks all!
--
Frank W. Zammetti
The ActionForm is stored in the request with the same name as the
form-bean's name. If you have a form bean:
You can get the form in the JSP like this:
<%
project.struts.form.LoginForm myLoginForm = (project.struts.form.LoginForm)
request.getAttibute("loginForm");
%>
-Greg
-Original
Just define multiple hosts. Cookies are stored per host; host is the
mid-part of the uri.
So if you have two virtual servers like:
xxx.mydomain.net and zzz.mydomain.net the jsessionid wouldn't be shared.
So in your case, if you have control over the dns server, you could define
1000 hosts for you
Just define multiple hosts. Cookies are stored per host; host is the
mid-part of the uri.
So if you have two virtual servers like:
xxx.mydomain.net and zzz.mydomain.net the jsessionid wouldn't be shared.
So in your case, if you have control over the dns server, you could define
1000 hosts for you
The MessageResources bundle which contains a key definition is
considered a view-level choice, not a property of the ActionMessage
itself.
As such, you control the resolution when the message is rendered,
probably using with the "bundle" attribute.
See http://struts.apache.org/userGuide/strut
LOL... apologies... I meant in which page is the link?
"Scott Purcell" <[EMAIL PROTECTED]>
21/04/2005 02:01 PM
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List"
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:RE: h
The code snippet lives between the
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 12:56 PM
To: Struts Users Mailing List
Subject: Re: html:link invalid for DTD???
The slash is okay in the action.
Where is exactly this snippet of c
The slash is okay in the action.
Where is exactly this snippet of code in the welcome.jsp?:
Jeff Beal <[EMAIL PROTECTED]>
21/04/2005 01:10 PM
Please respond to "Struts Users Mailing List"
To: Struts Users Mailing List
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCH
I guess you cannot do this. I don't think that it is possible to start
new Firefox window in separate process. And cookies are bound to the
process. This is the implementation detail, but I guess all browser
vendors bind cookies to the process. This is not Tomcat issue.
Anyway, relying on session
Hi
In my struts-config.xml file i have defined 2 resource
files,
Is it possible to access messages defined in approvals
message file, in ActionMessage.
I am using struts 1.2.4.
If i do the following
ActionMessage message = new ActionMessage("mykey");
I need to define "mykey" in maps message fi
Have you tried removing the slash so you just have 'action="welcome"'?
I can never remember when the slash is required and when it is not
allowed, but I think that for action "names" you don't use the slash.
-- Jeff
On 4/21/05, Scott Purcell <[EMAIL PROTECTED]> wrote:
> As soon as I try and crea
Great!
it works fine...
thanks Jeff and Erik.
Lucas
Jeff Beal <[EMAIL PROTECTED]> wrote:
>From http://struts.apache.org/userGuide/struts-logic.html#iterate:
collection: A runtime expression that evaluates to a collection
probably evaluates to a String.
What you need is
name=''
On 4/21/05, Luc
>From http://struts.apache.org/userGuide/struts-logic.html#iterate:
collection: A runtime expression that evaluates to a collection
<%=Globales.AreaPersonal.MODULOS_KEY%> probably evaluates to a String.
What you need is
name='<%=Globales.AreaPersonal.MODULOS_KEY%>'
On 4/21/05, Lucas Bern <[EMA
Hmm I didn't even notice that.
However, this is the section of code that throws that Exception (from
1.2.4 src):
/**
* Construct an iterator for the specified collection, and begin
* looping through the body once per element.
*
* @exception JspException if a JSP exception has o
Looks like you are trying to iterate over string.
How about this:
Michael.
On 4/21/05, Lucas Bern <[EMAIL PROTECTED]> wrote:
>
> Hi all...
>
> I get this exception trying to render options with logic iterate tag...
>
> javax.servlet.jsp.JspException: Cannot create iterator for this collecti
I would like to get a null pointer exception or a "can not set bean to null"
when my list is null...
I use to solve this kind of problem with html:options and
html:optionsCollection but what i have to do in this page is very complex for
this tags...
thanks for your answer Erik
Lucas
Erik W
It is very simple as I am just getting underway with some preliminaries.
I basically want to go through the FrontController then to some jsp pages
before they log in.
Thanks
Scott
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent
I think your List reference is probably null.
Also, have you looked at html:options and html:optionsCollection?
Erik
Lucas Bern wrote:
Hi all...
I get this exception trying to render options with logic iterate tag...
javax.servlet.jsp.JspException: Cannot create iterator for this collection
My act
Scott Purcell wrote:
As soon as I try and create this shop image into a link like so.
I get this error message:
org.apache.jasper.JasperException: /jsp/welcome.jsp(34,7) Attribute action invalid for tag link according to TLD
I am looking at the docs here:
http://struts.apa
The property should be set on your ActionForward, and you should be
able to do this:
ActionForward f = mapping.findForward("NameOfForward");
SubClassOfActionForward scoaf = (SubClassOfActionForward) f;
if (!("TitleForThePage".equals(scoaf.getPageTitle)) throw new
IllegalStateException("What did
I stand corrected. It *should* work, since, as the wiki says, "Struts
1.2.4 will wrap the LazyDynaBean in a BeanValidatorForm
automatically." I don't have time to look into it right now, though.
Maybe someone else can see what the problem is.
Hubert
On 4/21/05, [EMAIL PROTECTED] <[EMAIL PROTE
I am using Tomcat 5.0.18 and Firefox 1.0.3. A client opens several
windows accessing the same web application.
When using the IE 6 browser, Tomcat 5 creates one JSESSIONID cookie for
each window. Every thing works fine.
When using the Firefox browser, Tomcat 5 creates only one JSESSIONID
cookie f
Hi all...
I get this exception trying to render options with logic iterate tag...
javax.servlet.jsp.JspException: Cannot create iterator for this collection
My action just get a List form a Srevice layer and store it in session scope
under Globales.AreaPersonal.MODULOS_KEY.
<%=((Contenibl
The form is already defined as a bean. You can access it using the name you
gave it in your struts-config file.
i.e. mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 9:16 AM
To: Struts Users Mailing List
Subject: How to get form from JSP
Hi all,
Is there a way to get the ActionForm obj i
What does the Action Mapping look like for /welcome ?
"Scott Purcell" <[EMAIL PROTECTED]>
21/04/2005 12:07 PM
Please respond to "Struts Users Mailing List"
To:
cc: (bcc: Glenn Deschenes/NAT/CMHC-SCHL/CA)
Subject:html:link invalid for DTD???
Clas
Thanks Hubert !
Perhaps the wiki: http://wiki.apache.org/struts/StrutsCatalogLazyList is
not correct or I am interepting it falsely,
It has this note in the section LazyDynaBean/LazyValidatorForm:
N.B. Solutions here require Struts 1.2.4 and Bean Utils 1.7.0
- Glenn
Hubert Rabago <[EMAIL
Hi all,
Is there a way to get the ActionForm obj in the JSP instead of using
tag
Thanks!
Billy
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello,
I am creating a new site, and I am having trouble interpreting an error message:
I have a jsp page with the following html:img in it.
and this shows the image with the context and all is happy.
As soon as I try and create this shop image into a link like so.
I ge
You need to use an ActionForm subclass for your form-bean. The
Lazy-flavored form bean was added after 1.2.4. If you're unable to
upgrade from 1.2.6, consider adding it directly to your code base for
now.
You can get it here:
http://svn.apache.org/viewcvs.cgi/struts/core/branches/STRUTS_1_2_BRAN
I think that my answer to another post earlier this morning applies
here, so I have pasted it:
. . . Form field values (generated by the Struts tags) are synced with
corresponding ActionForm field values when the page is rendered. So you
can override the ActionForm's reset method to specify ini
I think this write-up from Ted Husted explains it nicely:
http://husted.com/struts/tips/016.html
Jay
| Jay Burgess [Vertical Technology Group]
| "Essential Technology Links via RSS"
| http://www.vtgroup.com/
-Original Message-
From: Neil Meyer [mailto:[EMAIL PROTECTED]
Sent: Thursda
Hi All,
I'm trying to do the following using the struts radio button. Please advise.
small
medium
large
I want to use the following but check one specific
small
medium
large
Regards
Neil
-Original Message-
From: Vamsee Kanakala [mailto:[EMAIL PROTECTED]
Sent: 18 January 2005 01:
Oh man... I'm slightly confused this morning... perhaps an espresso is
required !
I have been reading and searching based on the links below... however I am
stuck.
For the time being this is what I have done; upgraded to :
- Struts 1.2.4
- BeanUtils 1.7
- Collections 3.1
- Digester 1.6
- Logging
take a look at Displaytag:
http://displaytag.sourceforge.net/
-Original Message-
From: Rafael Taboada [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 8:11 AM
To: Struts List
Subject: Pagination
Hi folks, i'm again :) with my list of customers.
I could do my CRUD approach. So t
have a look to struts-layout and its "collection" tags
http://struts.application-servers.com/doc/index.html
hope it helps
- Original Message -
From: "Rafael Taboada" <[EMAIL PROTECTED]>
To: "Struts List"
Sent: Thursday, April 21, 2005 3:10 PM
Subject: Pagination
Hi folks, i'm again :)
Nils,
In your @struts.form you need to give it a name like...
@struts.form name="accountForm"
Al
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 2:03 AM
To: 'Struts Users Mailing List'
Subject: [OT] xdoclet actionforms
Hi,
I am using
What do you get when you add the following right before the "c:if"
(including the square brackets):
[]
> -Original Message-
> From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 21, 2005 2:29 AM
> To: Struts Users Mailing List
> Subject: Reg. JSTL expression.
>
>
The point is that few, if any, of the 140+ posts in the thread are
DIRECTLY related to struts. The majority are in the arena of discussing
the merits/pitfalls AJAX-related technologies. And to be honest, I think
all salient points have been made.
I think we can all agree that the horse is dea
The validator tags must be on the setter methods, not the getters.
On 4/21/05, Nils Liebelt <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am using the webdoclet module to generate my struts-config.xml. It works
> very nice for my action classes. But for some reason I doesn't parse the
> tags in my Form
Hi folks, i'm again :) with my list of customers.
I could do my CRUD approach. So thank u for ur help.
My question is if there is some approach to do pagination with struts.
I don't know, maybe a plugin, extention...
Thanks again
--
Rafael Taboada
--
Craig McClanahan wrote:
The 3000 or so people that are here want to be able to ask questions
about using Struts
IMO, using Struts with client side technologies such as .js, dojo and
ajax is on topic.
.V
-
To unsubscribe, e-mail:
I must have missed getting across what I was trying to convey...
Basically the below was a proof-of-concept to show the same code that
would be added to taglibs could be added to a javascript library and be
freely distributed which would resolve the issues at hand. Then only
the implementers would
Hi Nils!
Have you tried to give a name to your formbean like this:
*
* @struts.form name="addUserForm"
*
It might help...
Aron Gombas
3NF Corporation
www.3nf.com
-Original Message-
From: Nils Liebelt [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 9:03 AM
To: 'Struts
Hello again
Thank you Niall for your suggestion, again it was a mistake with my quick
muck/mock-up. However, the issue still occurred.
After a fair amount of investigation, I have managed to work out that it was
down to the fact that the html:errors and html:messages could not find the
resourc
Hi,
This is regarding the forward declarations of the action mapping tags
in Struts-config xml,
For instance, in the below tag, a property is defined for "pagetitle".
The question here is ,
* In which object this "pageTitle" property will be available
The coding of Tag classes is actually not a very difficult thing to
learn. I recommend you take a look at the source from Abey
Mullassery's image tags in commons sandbox to see how you can do all
this. It really is not hard. After about ten minutes study and ten
minutes coding, I had successfull
The method signature on these validators has changes - you need to deploy
the updated validator-rules.xml with your app
Niall
- Original Message -
From: "Riyaz Mansoor" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Thursday, April 21, 2005 10:57 AM
Subject: struts 1.3 dev wi
Hi guys
sort of a repost - more details
using Validator 1.2 (nightly build) on struts 1.3 dev build
keep getting this error during validation. and not just for "required"
but all checks. error is printed on the tomcat log standard out.
further the action to which the form is submitted is execute
You don't appear to have validate="true" on your "/testMessages" action
mapping in the struts-config.xml.
Niall
- Original Message -
From: "Marsh-Bourdon, Christopher" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Thursday, April 21, 2005 10:47 AM
Subject: RE: Validation's
hi guys.
i would like to standardize some fields on a submitted form.
eg: FirstName field shud be first letter capital and the rest simple
regardless of
whatever Case the submitted text is. am NOT looking to validate
against a mask but rather format it transparently
what is the best way to do i
Niall
Thanks, that was an oversight that only happened in my quick mock-up. I now
return the errors object, there is still no change is the request objects or
output.
Cheers
Christopher Marsh-Bourdon
-Original Message-
From: Niall Pemberton [mailto:[EMAIL PROTECTED]
Sent: 21 April 200
You seem to be returning "null" from the ActioForm's validate method -
should be returning the ActionErrors - otherwise they won't get stored in
the request under the appropriate key.
Niall
- Original Message -
From: "Marsh-Bourdon, Christopher" <[EMAIL PROTECTED]>
Sent: Thursday, April
Try this instead
//
//
Hope this helps.
Regards,
Ashutosh
-Original Message-
From: Iyanu, Rajasekaran [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 21, 2005 2:59 PM
To: Struts Users Mailing List
Subject: Reg. JSTL expression.
Hi,
I'm using the following
Hi,
I'm using the following JSTL expression in my JSP page,
//
//
The value for the attribute MODE is assigned in my Action class and is
available in the request.
But the JSTL expression always returns false even if the MODE is set
as Primary.
Can anyone please
In doEndTag() I have some code like:
String includeFile = "/shared/tagsupport/somepage.jsp?somearg=" +
someargval;
pageContext.include(includeFile );
return EVAL_PAGE;
And that's it. What isn't working for you?
Paul
> -Original Message-
> From: David Whipple [mailto:[EMAIL PROTECTED]
Morning
First of all, apologies for the length, but I thought it best to give all
the info I could!
I went away last night and from scratch built a Struts 1.2 project with a
very simple form, an action and a piece of JSP (via a tile, which is the
default way I do things). I get exactly the same
Here is a post on Cocoon, which show the present end of a long series
of posts using Frank Zammetti's idea propounded here and elsewhere,
see the attribution in this posting. Cannot tell which list to post
this to and I realize that everyone is going to ape sh__ over this
because .
Yes, form field values (generated by the Struts tags) are synced with
corresponding ActionForm field values when the page is rendered. So you
can override the ActionForm's reset method to specify initial values.
But typically you only want to do this when you are showing a fresh
"add" form, not
Hi,
I am using the webdoclet module to generate my struts-config.xml. It works
very nice for my action classes. But for some reason I doesn't parse the
tags in my Form classes. I can't see the form bean definitions in the struts
config after building. I ran Ant in debug and I saw that finds the
a
Hi,
I am using the webdoclet module to generate my struts-config.xml. It works
very nice for my action classes. But for some reason I doesn't parse the
tags in my Form classes. I can't see the form bean definitions in the struts
config after building. I ran Ant in debug and I saw that finds the
a
88 matches
Mail list logo