Niall
Just a question on LazyDynaForm. I'm already sold on the benefits for
JSP folf to be able to knock out JSPs before ActionForms are written.
But how does the LazyDynaForm perform? When I experimented with
implementing MutableDynaClass few years ago I found it heavy going
(this was with java
Hello, Niall,
Nice addition. Let me suggest that you indicate how to apply the
content-disposition header with filename. That is where my knowledge
runs out at this time. The difference in the JSP page between inline
and attachment is what has me puzzled. I could just try various
options and
Good question, I do have live apps running with it, but performance isn't an
issue for me, its an internal app and I don't have zillions of users and my
boss just bought me a new big mother of a server (I kicked up a fuss after
he bought one for some app from the Evil Empire he was implementing)
Hi Niall,
Thank you very much. The thing is I have found a sample application
that uses the DownloadAction. Discussion is at
http://www.mail-archive.com/dev@struts.apache.org/msg04600.html while
the source codes are at http://www.omnytex.com/downloadapp.zip.
I think I have a working version now
David,
Many thanks.
-Miles
-Original Message-
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: 25 November 2004 17:49
To: Struts Users Mailing List
Subject: RE: Client side validation broken when using
DynaValidatorActionForm.
Miles,
Validation based on actions has
Dam, should pay more attention to the lists :-(
Anyway, I've add a link to it on that new wiki page. Thanks for pointing it
out. Listen if you have it working and theres stuff you learn from doing
it - feel free to update the wiki page.
Niall
- Original Message -
From: Richard [EMAIL
OK I added something. to the wiki on Content Disposition, but yes thats how
it works.
Niall
- Original Message -
From: Dakota Jack [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 26, 2004 8:29 AM
Subject: Re: Sending Binary Files from Action
Thanks for the input David.
It sounds like this must be the reason. I am running Xp with Tomcat 5.0.27
and Struts 1.1.
I run Tomcat as a service - how do I find out (or set up) the permissions?
Thanks,
Andy
_
Use MSN Messenger to
In the services control panel select the relevant service, choose
properties, and then choose the Log On tab. You can now decide which user
runs the service.
Paul
-Original Message-
From: andy wix [mailto:[EMAIL PROTECTED]
Sent: 26 November 2004 09:25
To: [EMAIL PROTECTED]
Subject:
right click on the service in services and go to properties.
go to the Logon tab, and there you can change the log on.
I don't know what user you'll need to run as, but if this is
a public server then an administrator is probably none too
sensible :-) I run mine as NETWORK SERVICE which you can
Hi,
I have now set up the Tomcat service to run as administrator (temporarily)
but this doesn't resolve the problem.
I am now only trying to run notepad from the exec command:
Runtime runtime = Runtime.getRuntime();
Process proc = runtime.exec(C:\\WINDOWS\\system32\\notepad.exe);
This code works
Hi,
My jboss tries to resolve the DTDs for the validator plugin. Can anyone
tell me how to avoid this?
Thanks,
Manos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Emmanouil Batsis Emmanouil.Batsis 'at' eurodyn.com writes:
Hi,
My jboss tries to resolve the DTDs for the validator plugin. Can
anyone tell me how to avoid this?
Have it locally. See thread:
http://thread.gmane.org/gmane.comp.jakarta.struts.user/96922
--
Guillaume Cottenceau
I'd start by getting things working running tomcat *not* as a service. Once
that is done switch to using a service.
If you look at the service Log On control panel you'll see a Allow service
to interact with desktop checkbox. This will need to be set for you to see
a program running on your
Hi All,
If I declare my bean scope=session (struts-config.xml) the same
instance of it turns up on both the request and the session:
Session key: bean name from struts-config.xml
Request key: org.apache.struts.taglib.html.BEAN
If I then change the declaration to scope=request the same bean
The attribute in org.apache.struts.taglib.html.BEAN is set by the
html:form tag. This is how the other html: tags know which form bean
they are dealing with.
I'd be interested to know why the other html tags are made aware of the form
bean this way, rather than directly asking their enclosing
Hi,
I get the same results when Tomcat is not run as a service. Does this mean
it must be the Tomcat security policy?
Cheers
Andy
_
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
I wasn't aware that Tomcat had any functionality related to running external
programs. I can tell you that I have successfully called external programs
(our own win32 commandline exes) from Tomcat and JBoss/Tomcat (using
Runtime.getRuntime().exec() as you do).
I think that, unfortunatly, it's
Did the sample app not help you Jack? What wasn't clear from it? Maybe
I can update it to be more helpful...
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
Dakota Jack wrote:
Anyone have an example of JSP code for DownloadAction? I am
Hi, Frank,
Yes and no. Yes, because I can put your whole example together and
watch what happens and figure it out from there. And, no because I
would like to understand it so that I can do my own.
What I don't understand is how the file download works in relation to
the GUI. Where does the
log4j.logger.com.myapp=DEBUG,A1
log4j.logger.org.apache.struts=FATAL,A2
where A1 and A2 are different console or file appenders.
-Original Message-
From: Nicholas Hemley [mailto:[EMAIL PROTECTED]
Sent: 26 November 2004 12:29
To: [EMAIL PROTECTED]
Subject: Applicaton-specific logging in
Chris,
many thanks for the info, I was actually looking for an xml config
example, having looked through the examples with log4j it is not so
obvious...
Cheerio,
Nic.
[EMAIL PROTECTED] 26/11/2004 13:59:10
log4j.logger.com.myapp=DEBUG,A1
log4j.logger.org.apache.struts=FATAL,A2
where A1 and A2
The a tag would _normally_ take you to a target location, but with
file download what usually happens is that the browser realises its a
file and either prompts you to choose somewhere to open it, or tries to
display it in the browser page (internet explod^Hrer will tend to try
this if it
It's also worth checking out Chainsaw as a Log4J viewer - It has
filtering capabilities that will probably work just as well for you as
separate log files
The settings would be (for instance)
# log4j.properties in /WEB-INF/classes
log4j.rootLogger=ERROR, Chainsaw
What he said :)
It comes down to the browser recognizing what the server sends back as
the result of clicking a link or submitting a form. Normally, it
recognizes it as an HTML page and displays it (overwriting what's
already in the browser obviously).
In the case of downloading a file
Here are the relevant snippets from my XML configuration file:
appender name=LogFile class=org.apache.log4j.RollingFileAppender
param name=File value=C:\\test\\logs\\webmedx.log/
param name=MaxFileSize value=1024KB/
param name=MaxBackupIndex value=5/
layout
We do this using the jakarta taglibs. There is a tag called mailer. When
wrapped around the email body in a jsp will send an email.
I see that the example (mailer.jsp) is assisted by the request tag.
%@ taglib uri=http://jakarta.apache.org/taglibs/mailer-1.1;
prefix=mt %
%@ taglib
Hi,
If you aren't using Validator, you might find these useful:
public static boolean isValidEmailAddress (String eMailAddress)
{
return eMailAddress.matches
(^[_A-Za-z0-9-]+(\\.[_A-Za-z0-9-]+)[EMAIL PROTECTED](\\.[A-Za-z0-9-]+)*(\\.[_
A-Za-z0-9-]+));
}
public static boolean isValidURL
Hey Richard,
Are you upgrading your Struts to 1.2.6 to make use of the DownloadAction, or
do you need something that works with your current Struts version?
Wiebe
-Original Message-
From: Richard [mailto:[EMAIL PROTECTED]
Sent: Friday, November 26, 2004 12:55 AM
To: Struts Users
I made some tutorials using eclipse with myeclipse plugin.
There is one for
struts basic
struts
tiles
struts and ejb
www.laliluna.de/tutorials.html
It is best to try them to decide if your like them.
Regards Sebastian
Donie Kelly wrote:
Hi all
I've been given a half finished struts project to
This pattern will reject some valid email addresses. The local part (the bit
bofore the @) is interpreted by the target email system and should not be
interpreted by source or intermediate systems. The meaning of it, including
what characters are legal, is entirely up to each email host. I cannot
I have never found any luck on google, but the top secret solution for such
things is whispered as :-
whisperHTTP Headers /whisper
Now I honestly do not know how to set the **EXACT-SPECIFIC** HTTPRequest
headers.
In the header supposedly, you can specify something similar to the
use disabled instead of readonly.
IIRC , HTML rarely uses readonly -- its mostly disabled attribute everywhere.
It works just fine for me.
html:multibox property=selectedCheckboxes disabled=truebean:write
name=item//html:multibox
-Original Message-
From: Olivier Croisier
I've added a Tutorials page on the wiki - feel free to update.
Niall
- Original Message -
From: Sebastian Hennebrueder [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 26, 2004 5:50 PM
Subject: Re: Any good struts tutorials online?
I made some
In the applet, open the
URL(http://myserver/mywebapp/appletSupport.do?param1=xparam2=y;);
And read the response.
Alternatively, you can URL(http://myserver;);
and write to the opened URL as :-
GET /mywebapp/appletSupport.do?param1=xparam2=y
This works for HTTPS also I believe.
Nathan,
I briefly looked into using jsp for email templating recently, and
decided that it was not the right fit for the task in my situation.
Instead I ended up building a basic template merge facility using
Velocity, and a mail sender facility based on JavaMail. I tied them
together with a
OK
;-)
Niall Pemberton wrote:
I've added a Tutorials page on the wiki - feel free to update.
Niall
- Original Message -
From: Sebastian Hennebrueder [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, November 26, 2004 5:50 PM
Subject: Re: Any good struts
It seems hard to believe that no one ran across this before, but
it appears that it's not possible to specify quotes in the criteria
used for validwhen. I tried to use a criteria that looks like this:
((somefield == foo) or (*this* lt; 123))
However that caused javascript errors on the
Hello,
Is there any way to post to an HTTPS URL in the html:form? It appears I cannot
use a relative URL or a fully qualified URL. I see the SSLEXT but I would like
a quicker and easier solution if possible. I am already at an HTTPS URL for the
current page.
Thank You,
Dave
Thanks for the responses, Bill Niall.
This is what I finally found out, and thought would be useful sharing.
Struts 1.1 calls the 'initialize(ActionMapping)' method as part of
RequestUtils.createActionForm() .
Struts 1.2.4 does NOT seem to call the
DynaActionForm.initialize(ActionMapping
Hello,
can i use dynabean inside a jsp using jstl ?
i'm using struts 1.2.4
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
First off, Craig if you are reading this, how come no one has started a
jsf-users mailing list? I hate using web forums. yuk:) Seems like you
post more on this list here than on the JSF forum so figured I'd start
here with my question, plus I know there are many struts users dabbling
in JSF
Hi folks,
Let me describe my problem,
I am generating a PDF doc in the Action and all works fine, it could be
show in IE, in Netscape and in Firefox, when I try to showing it in a
new window (user requirement) using JS it works in NS and Firefox, but
IE shows a popup window asking if I want
Sorry , I already see was my problem, so let me put the solution here:
All the problem was in the struts-config.xml in this line:
controller nocache=true inputForward=true maxFileSize=2M/
change to this:
controller nocache=false inputForward=true maxFileSize=2M/
and voilá!
Hope this works for
On Tue, Nov 23, 2004 at 09:43:19AM -0600, Matt Bathje wrote:
My only problem with doing it this way is it changes the mime-type of
the file sometimes, which makes it harder for users to download.
Depending on the userbase you may or may not have this problem.
The problem with using
Hi,
I am using tiles in my project using the classic layout
This is my tiles-defs.xml
definition name=site.mainLayout path=/layouts/classicLayout.jsp
put name=title value=The Project /
put name=header value=/tiles/common/header.jsp /
put name=menu value=site.menu.bar /
Peter,
I believe you are confusing frames, or possibly inline frames, with tiles.
The tile definition assembles the components of a page and hands that
completed page back to your client's browser. If your tiles defintion
includes parts such as a header, footer, navigation bar, and main (i.e.
Hi,
I am trying to call an action from a Flash file. My applications are all
called as such:
Main.com/app1
Main.com/app2
The problem is that I want to keep flash script universal so I call action
as such:
/myAction.do
However, what happens is that Main.com/myAction.do is
Hi,
I am trying to call an action from a Flash file. My applications are all
called as such:
Main.com/app1
Main.com/app2
The problem is that I want to keep flash script universal so I call action
as such:
/myAction.do
However, what happens is that Main.com/myAction.do is
You need to fix your Flash not your Struts. I call from Flash all the
time. The new ActionScript is rad.
Jack
On Fri, 26 Nov 2004 22:37:05 -0800, Fedor Smirnoff [EMAIL PROTECTED] wrote:
Hi,
I am trying to call an action from a Flash file. My applications are all
called as such:
50 matches
Mail list logo