Thank you, the spaces work.
Volker
> -Ursprüngliche Nachricht-
> Von: Wendy Smoak [SMTP:[EMAIL PROTECTED]
> Gesendet am: Montag, 22. August 2005 14:43
> An: Struts Users Mailing List
> Betreff: Re: LookupDispatchAction-problem getting started
>
> From: "Tiller, Volker" <[EMAIL
Browsers don't allow you to set a file name, as it could be a security risk
eg set file name to be c:\windows\someimportantfile.txt then get the
form to auto submit and send the file to the server
Anuradha S.Athreya wrote:
Hello,
In the JSP, I need to set the default file name in the JSP.
Hi,
I'm a newbie at using strus and have been trying to get client-side validation
to work using Struts, but I 'm receiving a javascript error while trying to use
the
'required ' validation rule. The error in IE and FireFox both say:
Error: 'required ' is undefined
When I look at the gener
Hello,
In the JSP, I need to set the default file name in the JSP.
I'm using html:file taglib.
I'm retrieving the file name (to be set) from a bean. What is the syntax for
this?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Fo
Wendy turned me on to JSwat... as someone who historically hasn't found
much use for a debugger, I have to say it has been a joy to use. And it
is a fairly light app, certainly far lighter than a full IDE would be.
If you develop under Tomcat, it attaches very easily too. If anyone
feels the
I would urge you to strongly consider Oracle JDeveloper
with the caveat that *any* debugger is/are severely resource hungry for both
diskspace and memory
If you want to run your app lite on it feet ..logging is still the best way
to go
HTH,
Martin-
- Original Message -
From: "Larry Mea
Thanks for the reply.
Is the syntax you forwarded in the globalforwards
section of the config file? It looks like you are declaring an action. That
works for me too.
I'm looking to do the same type of thing but in the globalforwards section.
lee
On Mon, 22 Aug 2005 18:32:07 -0400, Robert Ta
Ooops. Responded without comprehending the entire message.
I haven't tried it with global forwards.
Sorry.
/robert
Robert Taylor wrote:
I'm using Struts 1.2.7 running in Tomcat5.x and it works for me.
/robert
lchalupa wrote:
I'm trying to use a feature of Tiles.
I'm using struts 1.2. I
Hi again, everybody!
I promised I'd report back with results. I think the tag is working
quite well so far, and it turned out to be pretty simple to extend the
html:messages custom tag. I got the source code and overrode the
doStartTag() method. I left all the original source in place but added
th
I'm using Struts 1.2.7 running in Tomcat5.x and it works for me.
/robert
lchalupa wrote:
I'm trying to use a feature of Tiles.
I'm using struts 1.2. I'm using Tiles Definitions maintained in a
configuration file.
I want to use the definition names in the strutsconfig file instead of a jsp
I'm trying to use a feature of Tiles.
I'm using struts 1.2. I'm using Tiles Definitions maintained in a
configuration file.
I want to use the definition names in the strutsconfig file instead of a jsp
path.
I'm able to get this feature to work if I use an action to specify an
actionforward wi
This works in IE, Hope this helps. Thanks.
var checkMe = function(thisForm) {
alert(thisForm.elements['uploadedFiles[0]'].value);
return false;
};
On 8/22/05, Dave Newton <[EMAIL PROTECTED]> wrote:
> Gordon Hu wrote:
>
> >
> >
> >
> I was asking as a subtle hin
According to the docs,
http://struts.apache.org/userGuide/struts-html.html#file, the html:file
tag will render and id tag with the attribute styleId. Also, when I use
getElementById I just call it on the document. So what I think you are
trying to do is so:
styleId="uploadedFiles1" accept="
Gordon Hu wrote:
I was asking as a subtle hint that there is nothing with an id of
"uploadedFiles" making your JavaScript not do what you want it to.
On 8/22/05, Dave Newton <[EMAIL PROTECTED]> wrote:
Gordon Hu wrote:
I am trying to set up a Javascript function like the followi
On 8/22/05, Dave Newton <[EMAIL PROTECTED]> wrote:
>
> Gordon Hu wrote:
>
> > >accept="image/jpg, image/jpeg">
> > I am trying to set up a Javascript function like the following:
> > document.form.getElementById("uploadedFiles");
> >Any ideas?
> >
> >
> What does the generated file up
Gordon Hu wrote:
accept="image/jpg, image/jpeg">
I am trying to set up a Javascript function like the following:
document.form.getElementById("uploadedFiles");
Any ideas?
What does the generated file upload HTML look like if you view source?
Dave
---
I am having difficulties referencing struts html tags through Javacript.
I am trying to validate 10 file upload boxes to see if the user has at least
uploaded 1 file and also to validate the extension of the file (.jpg).
..and so on
I am trying to set up a Javascript function like t
Seems to me that you do not really understand what
LookupDispatchAction is for and how does it work. Do you have property
file that maps button caption to "button.add" property name? Well,
even if you do, you do not have to use LookupDispatchAction, because
you use a link.
Use standard DispathActi
On Mon, Aug 22, 2005 at 11:18:50AM -0500, Josh Cronemeyer wrote:
> Hi,
>
> I've been playing with the indexedListProperty to validate what a user has
> selected in my forms. The problem I am having is that when an error message
> gets returned, It does not get associated with the form element
> (
On 8/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
> From: "Rick Reumann" <[EMAIL PROTECTED]>
>
> > Ok, I'll try this with Shale, although I'm really surprised the framework
> > (JSF) doesn't take care of this for you by default? In struts it's so
> > simple, I simply forward to an Action that pop
Wendy, thank you a lot for the help
I ended up solving the problem using smart forwarding... it seemed a little
better (and I must say, it worked faster hehe)
anyways, I'll try the solution you gave so I'll know it the next time
thank you
On 8/22/05, Wendy Smoak <[EMAIL PROTECTED]> wrote:
>
> >
On 8/22/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> David Haynes wrote the following on 8/22/2005 3:57 PM:
>
> > public List getList() {
> >List list = populateList();
> >return list;
> > }
> >
> > The getList would be invoked during the jsp:useBean wouldn't it?
> >
> > I'm probably miss
Well, if it worked like the html:button, it would send the method with the
value from the bean. But it obviously doesn't. So, I put this js function
to
be called onclick:
function dispatchIt()
{
document.addColecaoForm.action="/AugeProducao/UpdateDeleteColecao.do?method=
button.add";
documen
Wendy Smoak wrote the following on 8/22/2005 4:28 PM:
Consider that Struts added services on top of Servlets and JSP... and
now Shale is adding services on top of JSF.
True. I keep forgetting the separation. I keep thinking JSF is to
servlets/JSP as Struts is to servlets/JSP but I remember a
On 8/22/05, David Haynes <[EMAIL PROTECTED]> wrote:
> >
> Sorry to hi-jack this thread a bit, but I am confused. Can't the getter
> methods be enhanced to call the data population methods to do what Rick
> wants? By that I mean something like getList() containing a List which
> is populated by a
From: "Rick Reumann" <[EMAIL PROTECTED]>
Ok, I'll try this with Shale, although I'm really surprised the framework
(JSF) doesn't take care of this for you by default? In struts it's so
simple, I simply forward to an Action that populates my employees.
Consider that Struts added services on to
David Haynes wrote the following on 8/22/2005 4:19 PM:
I'm just fumbling my way through
like most others...
I can relate. Trust me you don't want me as your 'JSF running back'
right now in JSF Fantasy Football. I've been fumbling in all my
pre-season attempts at carrying the ball:) I think I
Rick Reumann wrote:
David Haynes wrote the following on 8/22/2005 3:57 PM:
public List getList() {
List list = populateList();
return list;
}
The getList would be invoked during the jsp:useBean wouldn't it?
I'm probably missing something obvious here, but this seems so much
simpler.
David Haynes wrote the following on 8/22/2005 3:57 PM:
public List getList() {
List list = populateList();
return list;
}
The getList would be invoked during the jsp:useBean wouldn't it?
I'm probably missing something obvious here, but this seems so much
simpler.
I would think that I
Craig McClanahan wrote the following on 8/22/2005 3:38 PM:
Grab Shale. Make your backing bean implement ViewController. Stick
the list setup logic in the prerender() method. Smile, knowing that
this technique works not only for the welcome page, but for *any* page
to which you navigate (in St
Craig McClanahan wrote:
On 8/22/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
Craig McClanahan wrote the following on 8/22/2005 12:50 PM:
It doesn't ... if you want to fire the standard request processing
lifecycle, you need to actually submit the request. Using
will cause "/foo.jsp"
Jeff Beal wrote:
req.onreadystatechange = function() { processResponse(req); }
yeah, I think this is what I was looking for. Thanks.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMA
On 8/22/05, Glen Mazza <[EMAIL PROTECTED]> wrote:
> redirect="true"/>
> redirect="true"/>
You are using redirects here, which causes the browser to make a
second request to the new URL. It's not legal to make a request
directly to a JSP page (or any other resource) inside the /WEB-IN
Hello,
I'm trying unsuccessfully, within an action-mapping, to forward to a
UserQuery.JSP kept within the WEB-INF/pages folder of the web
application. (I'm intentionally placing it there to prevent direct
access of this jsp from the browser.)
I'm getting a Tomcat 5.0.28 error as follows:
"
On 8/22/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote the following on 8/22/2005 12:50 PM:
>
> > It doesn't ... if you want to fire the standard request processing
> > lifecycle, you need to actually submit the request. Using
> > will cause "/foo.jsp" to be rendered
> > (a
Did you read this ?
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html
Especially the section 4.2 Using a Custom Key.
HTH,
Glenn
"draegoon Z" <[EMAIL PROTECTED]>
22/08/2005 02:19 PM
Please respond to
"Struts Users Mailing List"
To
struts-user@jakarta.apache.org
cc
Subj
Rick Reumann wrote:
Craig McClanahan wrote the following on 8/22/2005 12:50 PM:
It doesn't ... if you want to fire the standard request processing
lifecycle, you need to actually submit the request. Using
will cause "/foo.jsp" to be rendered
(assuming you are using the standard extension map
Michael Jouravlev wrote the following on 8/22/2005 2:41 PM:
David Geary advised me to use "rendered" attribute of view of subview,
like this:
You can stick whatever code you want into the method, and simply
return true. I don't know is there a better way to do this.
So you would stick some
Well, I should be embarrassed by now. Actually, you're 100% correct:
something is sending literally 'button.delete' as the value of method param,
instead of the value from the .properties file. And this something would be
me.
It happens that I am not using html:submit buttons to call the dispat
David Geary advised me to use "rendered" attribute of view of subview,
like this:
You can stick whatever code you want into the method, and simply
return true. I don't know is there a better way to do this.
Michael.
On 8/22/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> What I'm trying to figu
Craig McClanahan wrote the following on 8/22/2005 12:50 PM:
It doesn't ... if you want to fire the standard request processing
lifecycle, you need to actually submit the request. Using
will cause "/foo.jsp" to be rendered
(assuming you are using the standard extension mappings), entering the
J
I'm trying to call a LookupDispatchAction from a link, and I'm getting
the error above. I'd like you to help me find the reason...
It looks like something is sending (literally) 'button.delete' as the value
of the 'method' param, instead of using value from
ApplicationResources.properties.
W
Sorry, but I've been reading archives all morning.
Using Struts 1.2.7
Setting up a system to catch all errors/messages on a page.
Getting the errors from my ActionForm:
ActionErrors errors = new ActionErrors();
errors.add("system_name",new
ActionError("errors.required",ar.getMessage("com.drae
Hi Ulrich,
Indeed i do use tiles. I haven't tried a pure jsp as all my pages always
descend from some base.jsp which is defined in my tiles-defs. Hmm, but
this is something I can work with. Never thought that it could be the
tiles plugin... Perhaps some property I can set in the definition or
Hey guys, how's everything?
I'm trying to call a LookupDispatchAction from a link, and I'm getting
the error above. I'd like you to help me find the reason...
my jsp is like this:
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib
Hi,
are you using tiles as well? I experienced the same problem some time
ago, but only in tile-based .jsp, not in 'pure' jsp. I could not
pinpoint the exact time when this started since I wasn't working on
the display part at that time but one of the bigger changes I did
shortly before I noticed
On 8/22/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> I'm looking in my Core JSF book and I can seem to find out how to do
> something that I would think would/should be pretty simple...
>
> How do I use a jsp:forward to trigger a method in my backing bean?
>
>
>
> I see how JSF uses h:commandL
I'm looking in my Core JSF book and I can seem to find out how to do
something that I would think would/should be pretty simple...
How do I use a jsp:forward to trigger a method in my backing bean?
I see how JSF uses h:commandLink for it's link but not sure how this
helps with JSP forwards.
Hi Frank,
Thanks for your time. In fact the 'errors' I expect are mostly
tags where the expected object cannot be found in any of
the scopes. I used to get those "javax.servlet.jsp.JspException: Cannot
find bean xyz in any scope" in my browser but since I switched to 1.2.x
they are all silen
Hi,
I've been playing with the indexedListProperty to validate what a user has
selected in my forms. The problem I am having is that when an error message
gets returned, It does not get associated with the form element
( in my case). I think the problem is that
the message comes back with a key
Hi all,
I have a where I am iterating over a
list of objects. Each object has a property label,
which is being displayed as a textbox.
Now, I have a hidden field hdnField, for each row of
object.
I want to call a javascript function fnUpdate
onChange of the textbox to update the hidden
On Saturday at 9:36am, DB=>Don Brown <[EMAIL PROTECTED]> wrote:
DB> Ok, I looked at the 1.2.7 source, and indeed, it doesn't generate an
DB> "id" or"name" if xhtml mode is on. You are correct, the styleId is a
DB> good workaround, especially if you use the commons-validator checked
DB> out fro
Why not just use a debugger?
There are several very good free debuggers available - netbeans,
eclipse, jedit, ...
Simple to set up, and a bit less "predictive" to use. (By that, I mean
instead of trying to log what you think the problem might be, you can
examine it as it is running to SEE what th
I haven't actually tried having multiple simultaneous requests with
this, but it's not using the global namespace, so it should work:
submitRequest("../yourURL.html",processResponse);
function submitRequest(url,handler) {
var req = null;
if (window.XMLHttpRequest) { // Non-IE browsers
req
From: "Tiller, Volker" <[EMAIL PROTECTED]>
I can't get started with the example about using LookupDispatchAction
of Ted Husted, Tip #3 (http://husted.com/struts/tips/index.html).
What is my error or can I get some working code ?
The 'method' parameter should be set to the _value_ from
App
thanks for this idea; I implemented it the way you suggested - with this
solution everything is still configurable through the struts-config file
as you are stating below ...
thanks a lot,
karin.
Laurie Harper wrote:
Karin Schellner wrote:
I am new to Struts and would appreciate your ideas
Thanks to both of you, that definitely helped.
I'm going to go read a tutorial or two now... I actually have in the
past, and also saw some code-intensive demos at two user group meetings,
so I thought I had at least the JSF basics in my brain already... as it
turns out, that might not be quit
Hi Martijn,
Struts doesn't inherently do anything (that I'm aware of at least) to
stop JSP errors from being displayed in the browser... in fact it's kind
of unlikely it could since it's more or less out of the picture by the
time the JSP is executing (taglib code notwithstanding). Has anythi
Hello list,
Since I've upgraded struts a while back all my JSP generated errors are
only seen at the console. How do tinker my config so that I see een JSP
error in my browser once more?
I'm sorry to ask this question here, bus since the terms of my question
are somewhat 'generic' I'm not find
Hi all,
I can't get started with the example about using LookupDispatchAction of Ted
Husted, Tip #3 (http://husted.com/struts/tips/index.html).
What is my error or can I get some working code ?
This is the problem:
The forward
test it
gets
ERROR DispatchAction:220 - Reques
60 matches
Mail list logo