> > I tested the code -- not that I needed to do so, but still.
>
> I'm sure you didn't need to test it "Oh almighty coding God."
Maybe I deserved that one. :)
> > Here's an index.jsp that I've ran in Tomcat 5.x:
> >
> >
> >
> >
> >
> > function swapAction( formName, action) {
> >
uts Users Mailing List
> Subject: Re: how about some clarification vs saying things are
ludicrous [partially OT]
>
> Durham David R Jr Contr 805 CSPTS/SCE wrote the following on 9/15/2004
> 9:58 AM:
>
>
> > If we may take a more civil tone, do you still feel this way? Why
don
> > Ok, let me see if I've got it.
> >
> > In a JSP, you have exactly this code (along with other unimportant
stuff
> > before it and after it):
> >
> > function swapAction( formName, action) {
> > formAction = document.getElementById( formName ).action;
> > newAction = '';
> >
> Are you sure you have that javascript snippet on a JSP with the import
> of the html taglib declared correctly on the top of the page (ie <%@
> taglib prefix="html" uri="http://struts.apache.org/tags-html"; %> ) ?
Yes. I get a null pointer.
Here's the stack trace:
java.lang.NullPointerExcepti
> Does anybody know what to do with ActionErrors now that it is
deprecated? I
> want to be able to list the errors in the same as way with the
html:errors
> tag.
Someone correct me if I'm wrong, but you can still use the "addErrors"
method within your action, but you pass it an ActionMessages obje
> From: El Toro [mailto:[EMAIL PROTECTED]
>
> I have an action class which needs to redirect a
> request to an application outside of the current
> context. I also need to pass some parameters to the
> outside application. One of these parameters is too
> big to include on the URL/QueryString.
s within the context of
> struts. I did read the mailing list and there was a
> similar example but it was not relevant to what I
> need. I need a method to POST params to an external
> site within a sruts action class...without using any
> other external libraries.
>
> Th
Is there a way to create a form-bean dynamically? I'd like to have a
form dynamically created and populated with the request parameters.
Right now, I won't be using validation.
- Dave
ActionForm:
>
> http://www.niallp.pwp.blueyonder.co.uk/#lazydynabean
>
> or even just a straight LazyDynaBean
>
>type="org.apache.commons.beanutils.LazyDynaBean"/>
>
>
> For both of these, you need Struts 1.2.4 and BeanUtils 1.7.0
>
>
I've got quite a few. Send an e-mail to [EMAIL PROTECTED] or
[EMAIL PROTECTED] and I'll send an invite to not necessarily the
first requests.
- Dave
> James Mitchell wrote:
>
> >Please do not cross post to both lists. Most of us on dev are also
on user.
> >If I choose to reply or ignore you on dev, I'll do the same on user.
> >
> >Thanks.
>
> I explained my reasons for doing it in the post\.
I think what he's saying is that you'll never need
> >I think what he's saying is that you'll never need to cross post. As
> >in, there isn't a single good reason to cross post to 'user' and
'dev'.
> >
> >
> Yah, Dave, I got dat. And, I tink his reasons were gut. I have to
> admit that I blew it and did not tink about most dev people being on
>
> clugee (sp)
http://dictionary.reference.com/search?r=2&q=kludgy
I'm good for something.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> If the uploaded files do not have to be protected (any
> user can access them), where is the proper location to
> store them?
In this case, it looks like anywhere in your app except WEB-INF. Keep
in mind that if your deployment process involves deleting your web-app
and reconstructing (such as
irectory under WEB-INF which holds all content
> types with their separate directories by extention, e.g.
>
> WEB-INF
>resources
> gif
> jpeg
> jpg
> pdf
> ttf
>
>
> And so on.
>
> Michael McGra
> If they're inside of WEB-INF, then they aren't accessible via a URL --
> something she wants, I think.
I should rephrase this. If the files are stored inside of the WEB-INF,
they aren't *directly* accessible via a URL.
I personally opt to store uploaded files outside of the web-app's
file-syst
> Wendy said that "If you're talking about run-time file
> creation or uploads... keep in mind that a webapp can
> run unexploded from a .war file... in that case you
> can't write to a directory within your webapp, because
> it doesn't exist."
>
> I do upload files from clients' PC and store thos
Try /welcome.do
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I've solved this problem a couple of different ways.
1) Turn off validation in the struts-config and handle it within your
action method. Something like:
ActionErrors errors = form.validate(mapping, request);
if (errors != null && !errors.isEmpty()) {
saveErrors(request, errors);
> I was wondering why Oracle Application Server/JDeveloper is not
> supported by Struts 1.2.4.
Struts 1.2.4 works within Oracle A.S. as well as JDeveloper.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
> Hello,
>
> I have a jsp (create.jsp), a form-bean (CreateMessageForm.java), and
> an action (CreateMessageAction.java).
>
> Currently, the user inputs their info into create.jsp, hits 'submit',
> and the action gets the info from the form-bean and does stuff with
> it. Instead, I would like
> http://wiki.apache.org/struts/StrutsCatalogVariousButtonSolutions
Mike, why not link directly to the Struts related stuff from the wiki.
Or are you trying to drum up business for your flash skills? ;)
- Dave
-
To unsubscribe,
> The reason is that I may want to change this page
> without having to go to every place it is linked
> to do so.
Does that qualify as a "splash" screen? HA HA
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
I'm looking for something that dynamically generates a site map. Simply
spidering pages is not going to work. Basically, I'm looking for
something that uses a configuration to generate HTML/CSS or and
Image/Map combination.
Obviously free would be preferred, but something that costs money is
als
> The validation works fine however, when I just type the
http://localhost:8080/login.do
> in my browser (no submit), the validation error will show up at once.
> I understand that it's just like I submit a form to login.do action
without any
> parameter. My question is, do struts provide any sim
> Basically I would like to temporarily set redirect on a given forward,
> is this possible?
The ActionServlet "freezes" the configuration of Forwards in
ActionServlet.init(), so you're better off creating 2 forwards, IMO.
- Dave
-
I recall reading something about the HTML tags not receiving any
developer attention and new project are encouraged not to use them. My
question is what is the alternative to them? JSTL? Is there a guide or
wiki page regarding the issues of migrating from the HTML tags to
whatever the recommenda
> Its not true that the HTML tags are receiving no developer
> attention.
Ok, my mistake. Thanks for clearing that up.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> go to your bookstore or favorite online store and pick up Core
> Java Server Faces by David Geary and Cay Horstmann.
Since we're plugging, I'll mention that
http://search.safaribooksonline.com/
has this book.
- Dave
---
What does your look like?
- Dave
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 24, 2004 1:21 PM
> To: Struts Users Mailing List
> Subject: Trouble with my first DynaActionForm
>
>
>
>
>
> I am using Struts 1.1. I added my fi
> form-property name="message" type="java.lang.String"
Should this be ?
Notice that you did not include the enclosing less-than and greater-than
signs.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
> so what's the stupidest thing a company has ever done to YOU?
Read the last paragraph on this page:
http://www.techdoctors.com/custom.htm
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
> > So the stupidest thing they did was what?
> > a) Make you WRITE that? (kidding)
Well, I don't work for that company anymore, but yeah, writing the site
was basically wasteful.
> > b) Upgraded you with illiterate computer technicians like
> > the ones who wrote that paragraph?
Hah!
What ma
You might be able to get away with simply adding 'synchronized' to the
execute method's signature.
synchronized public ActionForward execute(...) {
updateXml();
}
private void updateXml() { ... }
The lock/key threading techniques have to do with, I think, a more
complex th
> Are there any thoughts on how a form bean property name could conflict
> with a JDK release?
Did you recompile the entire project with the new JDK? I wouldn't think
that should matter, but perhaps it does in your case.
-
To u
> I need to configure logs on my virtual hosting.
> How can I do it? Till
Since this is OT, first a few words about "till" from Dictionary.com:
Usage Note: Till and until are generally interchangeable in both writing
and speech, though as the first word in a sentence until is usually
preferred:
> i want to know what is bc4j exactly?and how to
> use that ...
Download JDeveloper and pull up a wizard.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> hi
> i put below code in my jsp and solved problem.however
> i use html-meta tags it doesnot work.when i use this
> method it works. but i dont understand why this occurs
> like this
>
> sincerely
Any answer would likely be speculation, but I'm glad to hear it's
working for you.
> <% response
> If you're really daring, check out
> http://wiki.apache.org/struts/StrutsChain
> http://www.apache.org/~germuska/struts-1.3.0-dev/
This is a bit off topic, but the switch to SVN has made it easier for
users like me (behind a proxy) to checkout the source.
How would I checkout the StrutsChain co
>
The problem could be that you aren't returning anything.
Try doing something like this:
onclick="return validate();"
Then:
function validate() {
if (...) // fails
return false;
}
// else
return true;
}
So, you return a Boolean from the validate fun
> I gather than by "grok" you mean the traditional "to drink" or
> (metaphorically) "to profoundly appreciate or understand" in Martian
> in "Grokking the GIMP" by Carey Bunks? I agree when you talk about
> "dispatch actons" but disagree completely when you talk about "lookup
> dispatch actions"
41 matches
Mail list logo