Hi, sorry all, this is my mistake :")
I have just predefined 1 javascript below header tag and I put it into
onLoad in body tag and I ... forgot that script :") ...
Sorry all
Thank u for ur reading :")
- Original Message -
From: "Pham Anh Tuan" <[EMAIL PROTECTED]>
To: "Struts Users Maili
Hello,
Frank W. Zammetti a Ãcrit :
> I'm sure what you've found on the net is sufficient, but in case it
> isn't, here's a quick example I just threw together:
>
> http://www.omnytex.com/XMLHTTPRequestExample.htm
It seems that you have already removed this example from the web site
... That's a sh
Hi all, I need your help :(
Like my subject, I use Struts + iBatis + DAO.
I get error message "document.all.cateInfoFrame is null of not an object" but
... my action is done ???
my code line is:
Main.jsp: contains 2 IFrames: 1 called iframe1 (IFrame1.jsp) and 2 called
cateInfoFrame (IFrame2.js
>2. If URL rewriting is the only alternative, is there a way to configure
>Tomcat to use URL rewriting regardless of whether >the browser allows cookies
>or not?
Use apache as a http front-end and use mod_rewrite to handle the urls. This
works w/o requiring cookies.
-Original
We would like to allow our users to have multiple sessions going from the same
workstation. My first thought was to use URL rewriting to keep the sessions
straight, but I can not find any way to force URL rewriting at the
server/container level. It appears that the browser must disable cookies i
To clarify my previous post:
I have a series of identical fields; the quantity varies per user.
For example, if I was keeping track of a user's friends and allowed the user
to edit their friends' names from a list, I would have a series of text
boxes:
friend1,
friend2,
...
friendN
Each text box
> That said, I don't know how you differentiate between
> messages and errors if you do that...
This two links on the Wiki explain a lot about ActionErrors and
ActionMessages usage...
http://wiki.apache.org/struts/ActionErrorsAndActionMessages?highlight=%28actionerrors%29
http://wiki.apache.org/
To the best of my knowledge, ActionErrors is deprecated
in 1.2. Note that ActionError is NOT deprecated, nor are
ActionMessages or ActionMessage. The API documentation
says to use ActionMessages.GLOBAL_MESSAGES instead.
That said, I don't know how you differentiate between
messages and errors if y
How can I obtain a reference to a non-default MessageResources instance
from within the execute method of an ExceptionHandler?
The signature is:
public ActionForward execute(Exception e, ExceptionConfig config,
ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletRespo
i have a form with fields like this:
field1,
field2,
field3,
...
fieldN
where N varies with each request. a jsp dynamically emitts the
tags as necessary.
can i use the struts validator on such a form so that a field is validated
iff it is present?
---
That was too simple to have even asked about :-/
Didn't use the request object. What I did was:
<% String l1 = new Locale("lang1").getDisplayLanguage(new Locale("lang1"));
String l2 = ... %>
And used the identifier when I needed it.
Tx again
> -Original Message-
> From: Smith, T
That was too simple to have even asked about :-/
Didn't use the request object. What I did was:
<% String l1 = new Locale("lang1").getDisplayLanguage(new Locale("lang1"));
String l2 = ... %>
And used the identifier when I needed it.
Tx again
> -Original Message-
> From: Smith, T
A follow up to this thread.
I built my app using 1.1 and the O'Reilly book. Upon my upgrade, and prior
threads, I am getting some depreciated warnings when I compile. This seems to
be the problem:
ActionError newError =
new ActionError("global.error.login.requiredfield", userNameL
You can use the getDisplayLanguage in java.util.Locale to do this:
<%= request.getLocale().getDisplayLanguage(request.getLocale) %>
This displays the language of the locale in the locale you specify. If
you don't specify a locale it will use the default locale of the system.
Regards,
Thad Smith
The API change occurred with the 1.1 release. With that release,
Action.MESSAGES_KEY was deprecated, as well as other constants there.
Those deprecated items were removed in the 1.2 releases.
Hubert
> -Original Message-
> From: Scott Purcell [mailto:[EMAIL PROTECTED]
> Sent: Monday, Mar
You can still have an http server on the same machine as your
application server and create a virtual directory that points to the
directory you are creating the reports in.
In other words, let's assume your application is creating the reports in
a file system directory /pdfReports. You can create
Brad Balmer wrote:
Many different people/groups need to access these so I thought that the
first person in would generate it and save it to a common location. Then, the
next user in would see a link to the PDF instead of re-generating it.
I obviously don't know your users, but beware of your expe
Is this an api change from 1.1? Does anyone know?
-Original Message-
From: Hubert Rabago [mailto:[EMAIL PROTECTED]
Sent: Monday, March 28, 2005 1:45 PM
To: Struts Users Mailing List
Subject: Re: MessageResources in ActionForm
Use Globals.MESSAGES_KEY .
On Mon, 28 Mar 2005 13:39:17 -0
Use Globals.MESSAGES_KEY .
On Mon, 28 Mar 2005 13:39:17 -0600, Scott Purcell
<[EMAIL PROTECTED]> wrote:
> Hello,
> I am trying to obtain a MessageResources object in a ActionForm and I cannot
> figure out how.
>
> Prior to the new 1.2.4 struts I used this:
>
> MessageResources resources =
>
It's easy to confuse them, and I check their javadocs each time I use them.
Globals.MESSAGES_KEY gives you access to MessageResources specific to a module.
Globals.MESSAGE_KEY contains the ActionMessages for that request.
Globals.ERROR_KEY contains the ActionErrors for that request.
Hubert
On Mo
You might want to check Globals.MESSAGES_KEY
although this isn't how I understood the MessageResources to
work, I thought the ActionMessages was stored in the request
under the Global.MESSAGES_KEY and not the MessageResources...
anybody else?
> -Original Message-
> From: Scott Purcell [
Hello,
I am trying to obtain a MessageResources object in a ActionForm and I cannot
figure out how.
Prior to the new 1.2.4 struts I used this:
MessageResources resources =
(MessageResources)req.getAttribute( Action.MESSAGES_KEY );
But it appears depreciated, or non existant in the acti
But my application is also going to create them. My app needs to generate
the PDF and save it off so that it won't need to be generated again (they
are fairly large, db intensive reports).
Many different people/groups need to access these so I thought that the
first person in would generate it an
Are you expecting the application server that runs your Struts
application to serve up these pdf files? If so, this is a no no!
Application servers (and servlet containers) are geared to run with
lower numbers of more processing intensive threads than a simple http
server will.
I would recommend p
Rick Reumann wrote:
Nic Werner wrote the following on 3/28/2005 1:06 PM:
I view the unspecified() method as the equivalent to 'index.jsp'. I
deliberately put an index.jsp (or html) in the directory to provide
the correct output, as opposed to leaving it unhandled - I see Struts
and unspecified()
Nic Werner wrote the following on 3/28/2005 1:06 PM:
I view the unspecified() method as the equivalent to 'index.jsp'. I
deliberately put an index.jsp (or html) in the directory to provide the
correct output, as opposed to leaving it unhandled - I see Struts and
unspecified() as a mirror of this
I view the unspecified() method as the equivalent to 'index.jsp'. I
deliberately put an index.jsp (or html) in the directory to provide the
correct output, as opposed to leaving it unhandled - I see Struts and
unspecified() as a mirror of this.
- Nic.
Rick Reumann wrote:
nitin dubey wrote the f
You didn't provide your unspecified method code below. Provide that please.
nitin dubey wrote the following on 3/28/2005 9:35 AM:
Thanks Saulo for your reply, here is the code for
config and html:form
struts-config.xml
~
name="co
nitin dubey wrote the following on 3/28/2005 4:43 AM:
The problem I am facing is my unspecified() is always
giving me a null ActionForm object.
As others have mentioned, I'm not fan of providing an unspecified()
dispatch method. I like to always make sure I provide the exact dispatch
parameter as
An utter shot in the dark here..
I'm trying to force the printing of language names into their native
languages. That is to say English is "English" and French would be
"francais".
I realize that if I know what language I want to put display it in, I don't
_really_ need a bean:message tag, but it
An utter shot in the dark here..
I'm trying to force the printing of language names into their native
languages. That is to say English is "English" and French would be
"francais".
I realize that if I know what language I want to put display it in, I don't
_really_ need a bean:message tag, but it
Dave,
Very true for the most part. The one case where I have seen the struts
libraries in a common (be it tomcat, jboss, weblogic, etc) directory is
when you want to enforce a certain version across all applications on
the server. Mainly this is in "productized" applications and allows
product sup
Scott Purcell wrote:
Well, not sure why this is happening, and I would like to know, I took the jar files from the "struts-examples" lib and put them into my tomcat, their sizes were different, but it worked.
My impression has been that the struts libraries should go in to your
web app's lib di
Ok,
Well, not sure why this is happening, and I would like to know, I took the jar
files from the "struts-examples" lib and put them into my tomcat, their sizes
were different, but it worked.
Now what I downloaded for this was the Struts 1.1 here my my download
"jakarta-struts-1.1" which I tho
Hello,
I began creating my application on IPLanet 6.1, and I got validation (dynamic)
working, etc. Now because of speed concerns, we have moved locally to our local
box, and we will work from there.
I am running Tomcat 5-5.7 on a PC and the validation is no longer working. I am
using a war cr
J2ee solution?
How i do it:
executeAction is called first, it puts executing flag into session, starts
the execution process, and redirects to a wait action
Wait action checks whether the execution is complete and presents a wait
screen, with rotating image, if not. It also contains
J2ee solution?
How i do it:
executeAction is called first, it puts executing flag into session, starts
the execution process, and redirects to a wait action
Wait action checks whether the execution is complete and presents a wait
screen, with rotating image, if not. It also contains
I am trying to develop a waiting page when the submit button is clicked on. The
waiting page will be simply some dynamic images rotating indicating the process
on going. When the process behind the scene is done, the waiting page is done
too.
Do you folks have a J2EE solution? Thanks.
_
Please feel free to scold me if I'm missing something obvious but I can't
think of a way to link to files (specifically pdf's) that have already been
generated and are sitting in a folder external to any web application.
I've tried to create a symbolic link to the directory inside my web
applicati
Thanks Saulo for your reply, here is the code for
config and html:form
struts-config.xml
~
Main.jsp
Regards,
Nitin Dubey
--- Eugênio Saulo <[EMAIL PROTECTED]> wrote:
> Check your definiti
Check your definition and the definition of
the it uses.
Maybe if you paste it here we could help you.
Regards,
Eugênio Saulo
On Mon, 28 Mar 2005 01:39:21 -0800 (PST), nitin dubey
<[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am using DispatchAction for my application. When I
> use the URL
> "ht
how do you send the file to the user? is it going through a servlet, or is
it just "normal file download" through e.g. apache? in the later case, it
will get complicated
easy solution is to serve the file through a servlet, and if your servlet
doesn't get any ioexception during sending the file
I think that's the one she was referring to, and apparently it was
exactly what he needed ;)
Dakota Jack wrote:
Not sure what you mean here, but there is an "unspecified" method for
methods that are unspecified.
Jack
On Sun, 27 Mar 2005 08:57:39 -0800, Nic Werner <[EMAIL PROTECTED]> wrote:
Tha
Hi
I have an application that allows users to download some files. Is it
possible to know if the download finished correctly (if the file was
really received by the user)?
Kelly.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
That's what I am trying to do in my application. I
know this works. You can have the code to load the
form in the same Action as unspecified method. When
you use the .do directly in URL it will hit the
unspecified method. Then in the unspecified method
you can pre-populate the action form and t
Hello,
I am using DispatchAction for my application. When I
use the URL
"http://localhost:8080/myapp/admin/main.do"; it
directly hits the unspecified() method first where I
am trying to populate the action form. The ActionForm
object I am getting in the unspecified() method is
null always.
Anyo
46 matches
Mail list logo