All
Another newbie question.
I have a list of 10 servers I need to loop through and connect to in
turn inside of my LoginAction object
what's the best way to keep the list of attributes so they arent hard
coded (I can't use a database)
How would I create an ApplicationResources.properties? Idea
Ahhh
Do I need to declare the resource bundle in the struts-config.xml file
the way the messageresources are declared.
or is that only for the message resouces?
On Mon, 20 Sep 2004 16:02:43 -0400, Slattery, Tim - BLS
<[EMAIL PROTECTED]> wrote:
> > How would I create an ApplicationResources.pr
. This is the
syntax I'm using:
What syntax will cause me existant bean to be used instead of a new being
constructed?
(I have very good reason to believe that the property I'm interested on my bean
is properly there since it appears on the form with the correct value).
optionsCollection is created.
I know that a bean exists on my form with the data I need, I use it to
previously output values.
This is the syntax on my JSP page:
What syntax should I use to cause it to use my existant bean instead of
creating a new bean.
Thanks,
Dave
Thanks to all that answered my first question. And, as an explanation when I
said I waited 30 minutes, I meant I did not see my own message after having
waited 30 minutes.
However, what is clear to me is that I did not provide enough information to
generate a solution.
In the forms bean sectio
().
Is there a better way to do this input translation which would be quick
but yet clean to
implement?
And is there anyway to make the validator framework locale aware, apart
from writing my
own checks or using masks?
Thanks
Dave
The information contained in this e-mail is intended only for the p
sp just use:
addOnLoadExpression('alert("hello");', false);
Dave
> -Original Message-
> From: andy wix [mailto:[EMAIL PROTECTED]
> Sent: Donnerstag, 18. November 2004 12:38
> To: [EMAIL PROTECTED]
> Subject: Tiles and on-load events
>
>
Thanks for helping to track down this problem, Jason; Roller (and Struts in
general) should work at any path. Maybe this error is occuring because
Roller is using Struts/Tiles in a non-best practices way?
Dave
On Thu, Jan 31, 2019 at 12:59 AM Jason Pyeron wrote:
> > -Original M
B-INF/tiles.xml
Hope that is helpful. What else can I tell you about Roller and it's use of
Struts & Tiles?
Best regards,
Dave
On Fri, Feb 1, 2019 at 2:41 AM Lukasz Lenart
wrote:
> pt., 1 lut 2019 o 00:38 Dave napisaĆ(a):
> > Thanks for helping to track down this problem, Ja
ine a global forward with two parameters?
Thanks,
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Brantley Hobbs itos.uga.edu> writes:
>
> Try changing your ampersand to "&" or "%26"
>
> B.
Thanks for trying, but, & simply gives me the previous compiler error, and %
26 is not converted to an & at run time.
-
To unsubsc
Try using the -el taglib:
<%@ taglib uri="/tags/struts-html-el" prefix="html-el" %>
...
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Laurie Harper holoweb.net> writes:
>
>
> Looks like your mail client munged Brantley's message: his suggestion
> was not a bare '&' but the entity character reference '&' (i.e. the
> four-character sequence ampersand-a-m-p-semicolon). Try that.
>
> L.
>
Actually, I understood that, howeve
In my struts-config I have the following action:
My class looks like:
class dispatchByURLAction extends ActionMapping
{
protected String secured = "";
public String getSecured() {
return secured;
}
public void setSecured (String Secured) {
secured = Secured;
}
}
BTW, SecurePageAction extends Action. (Don't know if that makes a difference).
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Niall Pemberton blueyonder.co.uk> writes:
>
> How about making your custom ActionMapping a public class?
>
OK, can you tell that I'm an old C++ programmer :)
Unfortunatly, while I had high hopes for that change even after I changed the
declaration to:
public class DispatchByURLAction extend
Niall Pemberton blueyonder.co.uk> writes:
>
> How about making your custom ActionMapping a public class?
>
> Niall
>
BTW, the initial cap of the class name was changed to match the file name, and
the struts-config line was changed to correspond:
Turns out that my ActionMapping needed to inherit from SecureActionConfig. I
think it has something to do with the way someone on the team implemented SSL.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
I'm using Struts 1.1. I have an ActionMapping class:
public class My_ActionMapping extends SecureActionConfig
{
protected boolean secured = false;
public boolean getLoginSecured() {
System.out.println("Getting Login Secured");
return secured;
}
public void setLoginSecured (String S
I'm trying to get the URL of the current page into a attribute (local
variable?).
This was suggested to me, but it doesn't work:
TIA,
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-ma
Amleto Di Salle di.univaq.it> writes:
>
> Try to use
> ${pageContext.request.requestURI}
>
> BR
> /Amleto
This worked thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
re's a way
to say, go read this other sites cookie file.
TIA,
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
che.org/dtds/struts-2.0.dtd";>
...
But I got the same result.
Any idea what I might be doing wrong?
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ges involved in the error above:
* tiles.xml file: http://tinyurl.com/2o4cyr
* tiles-simplepage.jsp http://tinyurl.com/2dr8g4
* login.jsp - http://tinyurl.com/yp5cut
Any other ideas what I might be dong wrong?
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Thanks to Antonio and Elias, Roller is now working fine with Struts 2.0.9.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Env: Struts 1.2.9, Axis 1.4
Where should the number of rooms (bed, bath, etc.) be calculated
so that the roomCount can be accessed in a Struts Action and displayed on a
jsp page?
public class Property implements Serializable {
private Set rooms = null;
}
public class Room implemen
ually want the data to appear).
Can anyone help? I know the resource is there and that the errors
are present as they appear at the top of the main page - they just
don't appear in the tile.
Thanks very m
Make sure that you are requesting the URL that invokes the Action. The
error that you are seeing would happen if you request the JSP directly.
So request http://yourserver/yourapp/list.do
and not http://yourserver/yourapp/form/list.jsp
AKEDJO Guy-Patrick wrote:
I've been trying to solve that iss
Please send resumes to [EMAIL PROTECTED]
Contract to hire (or long-term consulting) so work authorization is a
criteria.
3 different roles, with a financial institution in San Francisco.
J2EE Developers
to work on high-transaction online application for customer service agents.
ust getting started
and I've got a butt-load of Actions. I don't want to manage them in sextuples. That
seems repetitive and error prone, along with being a maintenance headache.
Any help would be appreciated. It seems like this problem must have been solved
elegantly somehow, but I'm lost as to how.
Dave
seems like more responsibility than I want to take on
if I don't have to.
Now, on to those modules
Dave
-Original Message-
From: Joe Germuska [mailto:[EMAIL PROTECTED]
Sent: Friday, September 03, 2004 7:52 AM
To: Struts Users Mailing List
Subject: Re: Staying relative
Dav
nse) that include occurs?
And how do I do more than one for one request/response?
Dave
a PDF -- Opening directly from the browser results in a blank
file. Saving and opening works fine. I gotta believe I'm doing something
not-quite-right in my Action. My code follows. Does anybody see a flaw?
Dave
public ActionForward execute(ActionMapping actionMapping,
different database configs in the different environments,
it seems like you have to edit that file. Am I missing something? Is there
a way around that?
Dave
of Ant for doing this, and that does solve the
problem, but making changes to the configuration files, even though it is done
programmatically, seems like it's crossing the line of having separate environments
for development, testing and production.
Dave
-Original Message-
From:
shows the results below it.
Pretty simple to do as a JSP, but maybe this isn't something that can be done with one
page in Struts?
My module config file is this:
Any help would be appreciated.
Dave
finition line (<%@ taglib
uri="/WEB-INF/struts-html.tld" prefix="html" %>), although other taglibs worked fine
and this taglib worked fine in other modules of the same application.
So, it looked like a Struts issue, but I'm guessing now that something got mucked up
y validation.xml file is configured to validate just one field (hey, I'm just getting
going!):
What am I missing?
Any help would be appreciated. This looks like a good plug-in to use.
Dave
config.xml?
"Dave Bender"
<[EMAIL PROTECTED]>
s contained in different
files for different modules if I so choose? That is I could put the 'profile'
validation rules in profile-validation.xml with this:
Dave
-Original Message-
From: Dave Bender [mailto:[EMAIL PROTECTED]
Sent: Friday, September 17, 2004 10:01 AM
To
x27;/profile/jsp/pages/profile/index.jsp'
How do I get around this? Many thanks in advance. I really
appreciate the help I've gotten from folks on this list.
Dave
o put it
into a servlet filter and then chain that onto the Struts controller
servlet? Or is there a logical spot to put that functionality somewhere
inside the framework (attach to an action or something??). Or would it be a
plug in?
Thoughts?
Dave
if a user can see it, I want it to look professional. It's like
when you buy a new car, they make sure the engine looks clean under the
hood. Not every buyer will look, but those who do get an impression. Might
as well be good.
Dave
---
hi all
Well now I've got this cookie that I need to check for, and if it
exists, lovely. Nothing else needs to be done.
if NOT, I need to send the user to a specific page (/error.jsp).
I was thinking of using to check for the bean, but I
dont want to wrap all my jsp code with that tag, what I r
e looked at the Collections methods but don't see a way to get anything
but one item from a HashMap. I've looked at BeanUtils, but couldn't find
anything. So, I'm iterating through the collection, which works, but it
seems like such a common routine that it'd already be available. Is it?
Dave
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 hav
gh to do what you need it to, but
you can do a fair amount more with only marginally more work.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
f-site, there's no good reason to use the html: tags anyway.
So using html: shortcuts, can this be done? Or do I have to go outside the
framework?
I'm not aware of how it could be done w/o modifying tag source.
Dave
Apparently ;)
Yes, that's wrong: A refresh is just a new request to the current URL.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ame of the bean.
http://struts.apache.org/userGuide/building_view.html#form_beans
http://struts.apache.org/userGuide/building_controller.html#action_mapping_example
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
Daniel Kies wrote:
If I forward to the jsp via an action, how do I make it so when the
jsp refreshes it hits the action?
The URL will show the URL of the action, not the JSP. When you refresh
it's refreshing the action, which will again forward to the JSP.
?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
e."
You may not be able to use "current_timestamp()" in 4.0, but you might
be able to use "now()" (although IIRC I never had particularly goodluck
with getting default values into time or date fields, but that was back
in 3.xx days).
Dave
help future archive searchers; at least
throw a little blurb in giving (at least) minor details
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
sages you're sending, but that might be why you
get more personal replies than you want.
If you're not hitting "Reply All" then your email client is either
ignoring or doing the wrong thing with the "Reply-T
;s a
superclass I don't really think about it anymore. That might be another
way around the issue without any link fixup/etc. as long as you're
POSTing to the same action that shows the form.
Dave
-
To unsubscr
David G. Friedman wrote:
Wendy is my sister's name. If you're expecting her to be a he and not a she,
think again. :)
I thought something was strange about him.
Dave
-
To unsubscribe, e-mail: [EMAIL PROT
more specific information it'll be really tough to be
helpful in any meaningful way.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
27;t be an
issue, should it?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
circumstances
might that happen?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
en't thought about it much at all lately, though, I use
DynaValiatorActionForms almost exclusively.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
it to be when you hit your action?
Have you been able to get _any_ Velocity file to render, i.e., hit one
without going through Struts? An the related Have you checked on the
Velocity list to make sure you have the VelocityViewServlet set up properly?
Have you checked the log files for error messages?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
You don't need to have forwards named "success" or "failure"; I'm not
sure how this part of the thread got started. If they don't make sense
for your app obviously you can call them whatever you want.
Although I'd shy away from 'Fred' ;)
Dave
a lot of
other parts of J2EE, like servlets, JSP, taglibs, etc..
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Tony Smith wrote:
I want the text and textarea have the same widths. But
it is not true with the above code when displayed in
the browser.
How can I fix it?
CSS?
This isn't a Struts issue, but HTML.
Dave
---
exception might be handy.
Should it be configurable?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
much
better than a gzip filter?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Michael Jouravlev wrote:
Does anyone know, how to find out that URL contains session ID in it?
Session ID is separated with semicolon, and is not treated as query
parameter, so I cannot read as parameter.
Check for "sessionId" in getQueryStr
...
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Is anybody else getting a lot of message duplicates this evening? We're
having email server strangeness so I'm not sure if it's me or... uh...
not me.
Dave
Michael Jouravlev wrote:
On 6/16/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
Even quicker would be to check
Simon Chappell wrote:
That's easy:
com.evergreennohypheninvestments
Nah, that's too easily confused with my EvergreenNoHypeInvestements.com
site.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
L embedded in
the code-behind pages.)
Last I heard he wants to use the source for this... thing for
"educational purposes," to which I replied "Hey! Big Win! A great
example of how not to do stuff, and if anybody else steals the code and
uses it we'll have an automagic competi
iki.apache.org/struts/StrutsCatalogDispatchActionImproved
You mean like at the bottom of
http://wiki.apache.org/struts/StrutsCatalogDispatchActionImproved?
Or is this just another incarnation?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Michael Jouravlev wrote:
I'd love to see a package name built from GUID.
What, you don't want to name your packages
013f891c58a842f1ba17a3954dded562.utils.StringUtils?
Pansy!
Dave
-
To unsubscribe, e-ma
permissions to
that port. Evidence would suggest that you do not.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
pretty far afield from Struts.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
ts.apache.org/userGuide/struts-html.html#form
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
e" errors on the JSP page
itself (like the struts tag "html:errors" does)... and then apply the
necessary logic.
Any ideas ? Thanks !
Sure. Set "validate" to false in the action-mapping, call validate()
yourself on a POST, and decide what to do
ss and the get/setters, not the automagic validation.
The validation generally doesn't do what I want it to, so I don't use
it: I still don't have to write bean code, my base action classes know
what to do with GET/POST requests, and my life is easier. For me it's
s
t;url encode byte" to get:
http://jakarta.apache.org/commons/codec/apidocs/org/apache/commons/codec/net/URLCodec.html
which pointed me to if you don't want to use the above:
http://www.w3.org/TR/html4/interact/forms.html#h-17.13.4.1 (how to
encode bytes i
question.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
c tag... ie:
</tt><tt>setTimeout('self.scrollBy(0,500)', 300);
</tt><pre style="margin: 0em;">
I guess that'll work if they have JavaScript turned on.
Gives me the willies, though, and I still think that doing vali
ards me to input page. Since I use tiles in my
application I'd like to be forwarded to tiles definition not input page
(I need to preserve header, menu etc).
The question is: Is it possible to use validate method while using tiles
at the same time?
The input attribute isn't a tiles
Mark Galbreath wrote:
http://www.catb.org/~esr/writings/let-java-go.html
Words to ponder in an age of .NET and Python ascendancy!
Pah, Lisp is still better :/
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
I wouldn't have had to pay
to see movies on Friday nights, I could have just read my struts-users
emails:)
*lol*
Maybe Mark _is_ Dakota Jack and its all been an elaborate hoax to get us
to pull off our own heads?! There were those strange e-mail headers, IIRC...
Dave "Who hid my
but dude, come on, that's pretty
damned offensive.
Ahhh
Feels like home again.
Dave
ple Struts/JSTL page and run it unmodified on my
hackish first draft. The back end, of course, must change :/ (I'm
ignoring application resources for now, but most of the html and core
tags work(ish) besides that).
That part will take a littl
l (I'm also re-learning Lisp after being out
of the biz for over 10 years).
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to explore different options.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
#x27;labelProperty' would be 'name' since the
DataBean stores the label in the 'name' var, and 'property' would be
'value', more or less.
Mostly I was just entertained that you and Mark both work in Maryland.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
isn't the object being put into scope named
whatever you had in the "id" attribute? So
"test1.activity.lastPinChangeDate" would be the reference?
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Mark Galbreath wrote:
Sun's Creator Studio rulez the inexpensive Java IDE world; JetBrain's IDEA
rulez the $300+ IDEs. Eclipse isn't worth a shit.
But REAL programmers prefer ed or vi.
Emacs, dammit.
Eclipse's editor doesn't
using assembly than Java as you could program in the stinking
text editors such as
vi and Emacs. They suck big time.
I dunno, I have refactoring, completion, etc. in Emacs, and if I don't
like something I can change it w/ a wave of my magic (
s off.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Durham David R Jr Ctr 805 CSPTS/SCE wrote:
How exactly do you fix a worst programmer? Take away their keyboard?
Actually, with all this auto-generation stuff, you'll have to take their
mouse too.
Monochrome 80x25 ADM31A or Hazeltine 1510 w/ 9600 baud serial link.
Yan Hu wrote:
Most morons think the majorty are morons..
And we're right.
Dave "Hey! You tricked me!" Newton
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yan Hu wrote:
Since linux has clearly more then 50% of the server market
Linux has never had more than 30% of the server market
http://www.alwayson-network.com/comments.php?id=P5013_0_6_0_C
Was probably referring to web server market share.
Dve
Yan Hu wrote:
I love VS.NET very much.
VS.NET pretty much blows chunks and is outpaced even by Eclipse.
The 2005 version may raise my opinion of it (gee, refactoring... what an
idea), but I haven't had a chance to play with it much yet.
Not too impressed by .NET, though.
ing to web server market share. I never disputed a 40% claim for
ASP; I have no idea (or care) what % ASP has.
Dave
--- Dave Newton <[EMAIL PROTECTED]> wrote:
Yan Hu wrote:
ince linux has clearly more then 50% of the server market
inux has never had more than 30% of the se
Yan Hu wrote:
The other has no choice but VS.NET.
Man, bums NEVER get a break.
Need I go on?
We're considering taking up a collection to pay you to not.
Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED
1 - 100 of 5802 matches
Mail list logo