Interesting idea... I think if I wind up doing it I'd be more inclined
to offer it to Craig as an example for Shale first though. But in any
case, I just haven't had the time yet to do anything aside from a little
early exploration, so I don't know what I'm going to do first yet. I
still inte
Thanks... I think :)
Frank
David G. Friedman wrote:
Frank,
That's a very interesting bit of coding. :)
Regards,
David
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 1:06 AM
To: Struts Users Mailing List
Subject: Re: Check Disk sp
Frank,
That's a very interesting bit of coding. :)
Regards,
David
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 1:06 AM
To: Struts Users Mailing List
Subject: Re: Check Disk space before file upload
Hi Jack,
You can grab the late
Hi Jack,
You can grab the latest version off the Bugzilla ticket:
http://issues.apache.org/bugzilla/show_bug.cgi?id=36325
It's one of those things that you'll look at the code and go "D'oh!
That's obvious as hell!", but amazingly I couldn't find anything similar
anywhere before I wrote it (th
Frank, could you shoot this code to me? That sounds interesting as
all get out! Thanks ahead of time.
On 8/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> There's no easy cross-platform way to do this, believe it or not. Seems
> like it should be in the SDK, but it isn't.
>
> There is ho
There's no easy cross-platform way to do this, believe it or not. Seems
like it should be in the SDK, but it isn't.
There is however some code I contributed to the Commons IO project that
does exactly this. It is currently in SVN only, but I just submitted
some updates today that hopefully w
Hello,
How can I check for disk space on the server before uploading a file on the
server?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
On 8/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Craig McClanahan <[EMAIL PROTECTED]> wrote on 08/23/2005 06:33:35 PM:
> [snip the ]
>
> Correct. And I have indeed coded for situations similar to your search
> example, for Struts apps in the past. What i mean is (continuing your
> examp
Craig McClanahan <[EMAIL PROTECTED]> wrote on 08/23/2005 06:33:35 PM:
>
> But, I would caution you to avoid a mistake that lots of Struts users
> make as well -- think of an outcome (JSF) or an ActionForward (Struts)
> as a description that says "this is what happened", not "this is where
> to g
From what I can see you your alias could be incorrect in httpd.conf
notice the Alias, Redirect, Directory and Location assignments in this
example
http://syger.com/jsc/docs/reader/jsp/environ.htm
*or your actions in your webapp are not defined correctly* in
struts-config.xml
take a look at
ht
Frank,
You could always write your JSF blog with Shale and post it to a created,
but empty (abandoned), dev.java.net JSF blog project:
https://jsfblog.dev.java.net/
(grin)
Regards,
David
-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Monday, August 22, 2005 1
You can (and should) use the DAO pattern with Hibernate, too.
The iBATIS DAO even has built-in support for hibernate (of course, it
has support for sql maps, too).
Larry
On 8/23/05, Paul Benedict <[EMAIL PROTECTED]> wrote:
> Erik,
>
> Oh, I have worked on a project where that was the
> pattern
Erik,
Oh, I have worked on a project where that was the
pattern I designed for myself!! One accepted a
connection for transactions, the other for
self-contained singleton executions. Yup, it's a great
pattern.
You raise an interesting point. I never thought about
using a middle-man between my bus
Not sure if this is really much help because I'm sure you've thought of this,
but I mirror many or all of my DB DAO methods with methods that take the
Connection as a parameter . . . In the primary method, they obtain their own
Connections, but in the secondary method, they use whatever Connecti
Have you looked at using something like the iBATIS DAO?
I think it could save you alot of pain.
One thing to watch out for is thread safety - putting a connection on
an instance (especially a shared instance) is pretty risky, especially
when you start thinking about transactions and the like...th
Guys,
This is off-topic but I need your help. There are some
good programmers here and I would like to receive some
advice back. I am sure there's a simple answer to it.
My Struts app is a multitier app (Web -> Business ->
DAO) and it uses Jakarta Commons DbUtils for the DAO
layer. My DAO methods
On 8/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Rick Reumann <[EMAIL PROTECTED]> wrote on 08/23/2005 04:53:35 PM:
>
> > If that's the case, though, I'd find that as a severe limitation of JSF.
>
> > In Struts my DispatchActions can be called from anywhere and there isn't
>
> > really
If all your links and actions have the same problem (the paths can be
translated following the same rule), then the easiest fix I can think of is to
either use Apache mod_rewrite, or if you are using a bare Tomcat, a redirect
Servlet.
Erik
-Original Message-
From: [EMAIL PROTECTED]
Se
Chum,
Have you moved your webapp to the webapps/ROOT tomcat folder?
Also, do you have Tomcat directly on port 80 or are you using
Apache or a connector (mod_jk or mod_jk2) to send port 80 to
your Tomcat instance?
Regards,
David
--
Hi,
Frantically trying to get a client demo working for the morning and I
feel like I ought to be able to work this out but I just can't.
I've got a demo system (not) running on a URL on tomcat 5.5/Java 1.5
with a file structure like
myserver/mydomain_com/mydomain.com/ so until I get the domain
> [EMAIL PROTECTED] wrote the following on 8/23/2005 4:39 PM:
>
> > Funny, I was *just* thinking that! And then I figured it is because in the
> > Struts world, we are typically used to thinking of a form bean as being
> > shared by many jsps. But I think in the Faces world perhaps the backing
Craig McClanahan wrote the following on 8/23/2005 4:47 PM:
Is it typical then to end up with several ManagedBean definitions for
the same backingBean but for different mappings?
Why would you need that? I typically use a 1:1 mapping between JSP
pages and backing beans.
I guess that probab
Greeting
Setup Win 2K , Tomcat 5.0.28 with struts 1.2.7
Problem: Every action being "forward to" always
execute the webapps/mycontext/index.jsp prior to the
action being invoked
Web.xml
index.jsp
index.jsp
%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld
Rick Reumann <[EMAIL PROTECTED]> wrote on 08/23/2005 04:53:35 PM:
> If that's the case, though, I'd find that as a severe limitation of JSF.
> In Struts my DispatchActions can be called from anywhere and there isn't
> really a need for a tight coupling. "getEmployee" returns "success" and
>
[EMAIL PROTECTED] wrote the following on 8/23/2005 4:39 PM:
Funny, I was *just* thinking that! And then I figured it is because in the
Struts world, we are typically used to thinking of a form bean as being
shared by many jsps. But I think in the Faces world perhaps the backing
bean and the js
On 8/23/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote the following on 8/23/2005 4:10 PM:
>
> > The important principle is really pretty easy to articulate:
> >
> > IF you want your backing bean to implement ViewController
> > and get its event methods called, THEN t
Craig McClanahan <[EMAIL PROTECTED]> wrote on 08/23/2005 04:38:23 PM:
> Yep :-).
>
> > Well, not exactly. Now my logon method isn't getting hit..(:(.
> > Instead I have nasty errors like this:
> >
> > javax.servlet.ServletException: Error testing property 'username' in
bean
> > of type null
>
Rick Reumann <[EMAIL PROTECTED]> wrote on 08/23/2005 04:31:41 PM:
> Craig McClanahan wrote the following on 8/23/2005 4:10 PM:
>
> > The important principle is really pretty easy to articulate:
> >
> > IF you want your backing bean to implement ViewController
> > and get its event method
On 8/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Craig McClanahan <[EMAIL PROTECTED]> wrote on 08/23/2005 03:27:18 PM:
>
> > Change this to "logon" and update any value binding expressions that
> > use it as well.
> >
>
> Craig, as ever many thanks for your detailed reply!
>
> ok, so I
Craig McClanahan wrote the following on 8/23/2005 4:10 PM:
The important principle is really pretty easy to articulate:
IF you want your backing bean to implement ViewController
and get its event methods called, THEN the name of the
managed bean MUST conform to the mapping rules.
T
uh, ohsorry!! Was being a dufus again... Please ignore my earlier
note. Had another profile$logon stuck in the username and pw fields in my
jsp.. Sorry! Everything's working just fine now..:)
Thanks a lot for the help, Craig! (and especially the explanation..:)
Geeta
[EMAIL PROTECTED] wro
I posted this to the MyFaces list, but posting here as well since not
sure where the best list is for posting these questions. (Ok, well,
since Craig is active here, I'm taking advantage of that fact and
sneaking in as many JSF posts here as I can:).
For sake of this discussion imagine a c
Craig McClanahan <[EMAIL PROTECTED]> wrote on 08/23/2005 03:27:18 PM:
> Change this to "logon" and update any value binding expressions that
> use it as well.
>
Craig, as ever many thanks for your detailed reply!
ok, so I changed my faces.config.xml and now my manged bean looks like
this:
Perhaps you mean something like rentacoder.com.
Erik
-Original Message-
From: Brian McGovern <[EMAIL PROTECTED]>
Sent: Aug 23, 2005 3:59 PM
To: Struts Users Mailing List
Subject: [OT] RFP resources for java projects
Sorry for the off topic request, but I figured this might be a good pl
On 8/23/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote the following on 8/23/2005 3:27 PM:
>
> > Thus, the managed bean name corresponding to "/logon.jsp" *must* be
> > named "logon" for it to be recognized as a ViewController. In your
> > scenario, you left the name copied
Ok, Looks like at least a few other people have found Struts guilty here. I
have found a existing bug report 23372
http://issues.apache.org/bugzilla/show_bug.cgi?id=23372 that deals with this.
Basically Validator can handle indexed properties, but the indexed error
messages that it creates cannot
I did not want to be greedy, but OK.
;-)
Larry
On 8/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Larry Meadors <[EMAIL PROTECTED]> wrote on 08/23/2005 03:59:50 PM:
>
> > On 8/23/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> > >
> > > Hmm ... sounds like a "shale-blank" app (corre
Sorry, forgot the Javascript file.
On 23/8/05 20:59, "Daniel Schaller" <[EMAIL PROTECTED]>
wrote (with possible deletions):
> Hi,
>
> Try the javascript in the attached file. Works brilliant for me:
>
> The function you need to use is moveOptions(srcID, targetID) where srcID and
> targetID a
Larry Meadors <[EMAIL PROTECTED]> wrote on 08/23/2005 03:59:50 PM:
> On 8/23/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> >
> > Hmm ... sounds like a "shale-blank" app (corresponding to
> > struts-blank) might be a good idea ...
>
> +1!
>
> :-D
>
+..like.. a gazillion..? ;)
On 8/23/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
>
> Hmm ... sounds like a "shale-blank" app (corresponding to
> struts-blank) might be a good idea ...
+1!
:-D
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional c
Hi,
Try the javascript in the attached file. Works brilliant for me:
The function you need to use is moveOptions(srcID, targetID) where srcID and
targetID are the IDs of your both select boxes.
I hope that helps.
Cheers,
Daniel
On 23/8/05 20:22, "Laurie Harper" <[EMAIL PROTECTED]> wrote (with
Craig McClanahan wrote the following on 8/23/2005 3:27 PM:
Thus, the managed bean name corresponding to "/logon.jsp" *must* be
named "logon" for it to be recognized as a ViewController. In your
scenario, you left the name copied from the Use Cases example
("logon$profile"), which would be suita
Sorry for the off topic request, but I figured this might be a good place to
ask. Im looking for a resource that lists requests for proposal on java
projects? Any ideas?
Thanks
-B
On 8/23/05, Rick Reumann <[EMAIL PROTECTED]> wrote:
> Craig McClanahan wrote the following on 8/23/2005 3:27 PM:
>
> > And yes, the javadocs do need to be clearer about the need for this.
> > I'll add some more information to the ViewController class docs to
> > explain it.
>
> I'm still really c
Craig McClanahan wrote the following on 8/23/2005 3:27 PM:
And yes, the javadocs do need to be clearer about the need for this.
I'll add some more information to the ViewController class docs to
explain it.
I'm still really confused by all of it as well. Actually what would be
great I think
Unless I'm missing something, that is for populating combo boxes based on
selections in other combo boxes, e.g. for populating the State/Province
combo box based on Country selection, etc. That's not quite the same.
L.
C.F. Scheidecker Antunes wrote:
Hi Laurie,
I am trying to do the same a
On 8/23/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi all:
>
> I have been struggling all day to understand the features provided by
> Shale. Here's what i have so far:
>
> I have a new skeletal project with just the jars in usecases.war in my
> WEB-INF/lib and 2 trivial jsps. index.jsp w
I guess that'd depend on the Tomcat version, but look at the documentation
on session persistence and clustering.
L.
d d wrote:
First of all thanks for replying...
Actually i am authenticating user based on session attribute. i.e if user name
is present in session.
As u said told abt 'sess
[EMAIL PROTECTED] wrote on 08/23/2005 03:10:38 PM:
>
> I have a LogonAction class (using org.apache.shale.usecases.profile
> .LogonActions) which extends AbstractViewController. From the API docs
for
> ViewController:
I mean:
I have a LogonAction class (using org.apache.shale.usecases.profile
Hi all:
I have been struggling all day to understand the features provided by
Shale. Here's what i have so far:
I have a new skeletal project with just the jars in usecases.war in my
WEB-INF/lib and 2 trivial jsps. index.jsp which forwards to logon.faces.
logon.jsp is a usual logon page with u
That was it--just switch redirect to "false" in order to forward
instead. Thanks Craig!
Glen
Craig McClanahan wrote:
On 8/22/05, Glen Mazza <[EMAIL PROTECTED]> wrote:
You are using redirects here, which causes the browser to make a
second request to the new URL. It's not leg
Sudhaker Raj wrote:
You may want to check OpenRICO - http://openrico.org
Good link. Much appreciated.
- Dave
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
From: "Chatzinikos, Fotis, VF-GR Consultant"
<[EMAIL PROTECTED]>
Some days ago I sent a mail here (Title: Pre-population of
tag using multiple tags) and got no reply.
Try re-posting just the section and the resulting HTML when
you 'view source' on the page. If your form bean has a matchin
S. it is true. The browsers won't allow you to set the name of the file.
The user have to select the file name using the browse button.
Thanks
Regards
V.Karthi
-Original Message-
From: Jason Lea [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 23, 2005 11:09 AM
To: Struts Users Mailing
Yes..Most corp environments have big brother software to make sure you're
not 'contaminating' their environment
Personally I like bringing my laptop for that reason
Martin
- Original Message -
From: "Pilgrim, Peter" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'"
Sent: Tuesday, A
That is not the point. The secsoft is triggering on the
contents of the JAR or zip file. In other word said
corporate software is reading the entire mistakenly
(hash) matching on a word, and saying "No way Charlie, out you go".
Anyway I now have the file. Do you remember back in the
days before
You know, you could have just gone here:
http://archive.apache.org/dist/struts/struts-1.1/
--
James Mitchell
Software Engineer / Open Source Evangelist
Consulting / Mentoring / Freelance
EdgeTech, Inc.
http://www.edgetechservices.net/
678.910.8017
AIM: jmitchtx
Yahoo: jmitchtx
MSN: [EMAIL PR
I've put it on dropload.com for you, retrieval information sent as
private e-mail. (dropload allows a user to send a big file, and
another user can download it once by visiting the website.)
-ed
On 8/23/05, Emmanouil Batsis <[EMAIL PROTECTED]> wrote:
>
> Right, no dice. Perhaps one should email
Luiz Godoy wrote:
java.lang.RuntimeException: Exception building SessionFactory: null
Search the hibernate forums, could be anything from your
hibernate.cfg.xml location to your JDK version. In any case, it has
nothing to do with struts.
hth,
Manos
-
hELLO,
how r you initializing your SessionFactory?
Specifically, how are you integrating Hibernate inside Struts?
Are you using a struts plugin for hibernate?
If you check www.hibernate.org, there are FAQ for how to properly use
A SessionFactory
Proper way was using a ServletFilter if I rem
Hi,
If I understood you correctly, you are trying to have a default filename when
you click download from within your application. In this case here's how it may
be done:-
response.setContentType("application/ms-excel"); // or whatever the content
format is...
response.setHeader("Content-Dis
Here is it, i´m trying to test an action, but the error seem to come from
Hibernate.
testLoadPage(test.com.bm.pcs.corporativo.actions.TestFamiliaDNCAction)
servletunit.struts.ExceptionDuringTestError: An uncaught exception was thrown
during actionExecute()
at
servletunit.struts.MockStrutsTestCa
Luiz Godoy wrote:
I´m having this error using eclipse, with struts and hibernate, any clue ?
Not without the stacktrace.
Manos
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I´m having this error using eclipse, with struts and hibernate, any clue ?
INFO: using CGLIB reflection optimizer
23/08/2005 10:12:25 org.hibernate.cfg.Environment
INFO: using JDK 1.4 java.sql.Timestamp handling
23/08/2005 10:12:25 org.apache.struts.action.RequestProcessor processException
W
The problem si the function name generated by struts.
I'm fix this problem, modifying the validator_rules.xml (I'm attach this)...
Sure exist a more correct to resolve this problem... but... time is money.
The function name generated by struts is "_required (form)" for
required validator for inst
try using logic:equal along with logic:present
On Tue, 23 Aug 2005 Tiller,Volker wrote :
>should it work with
>
>
>...
>
>...true-case
>
>
>...false-case
>
>
>?
>
>Volker
>
> > -Ursprüngliche Nachricht-
> > Von:Kade Jeevan Kumar [SMTP:[EMAIL PROTECTED]
> > Gesendet am:Di
Right, no dice. Perhaps one should email the archive to you.
Emmanouil Batsis wrote:
Long shot but have you tried using HTTPS?
Pilgrim, Peter wrote:
Thanks Nicolas. Tried downloading from your site, but something in
the ZIP is triggering the down security here. Nothing to do with the
URL l
Long shot but have you tried using HTTPS?
Pilgrim, Peter wrote:
Thanks Nicolas. Tried downloading from your site, but something in the
ZIP is triggering the down security here. Nothing to do with the URL
location more probably I caught the bad side of the filter hashing
algorithm.
--
Peter
Thanks Nicolas. Tried downloading from your site, but something in the
ZIP is triggering the down security here. Nothing to do with the URL
location more probably I caught the bad side of the filter hashing
algorithm.
--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse
should it work with
...
...true-case
...false-case
?
Volker
> -Ursprüngliche Nachricht-
> Von: Kade Jeevan Kumar [SMTP:[EMAIL PROTECTED]
> Gesendet am: Dienstag, 23. August 2005 09:29
> An: user@struts.apache.org
> Betreff: Problem with logic:present TAG
>
> Hi All!
>
>
Hello again,
Some days ago I sent a mail here (Title: Pre-population of
tag using multiple tags) and got no reply.
Could somebody provide a working example of a combination of a
FormAction and a jsp page that correctly set an html list (select) tag
to the correct (selected) value?
Thanks in a
I've put it on
http://loof.free.fr/jakarta-struts-1.1-src.zip
Hope it will help you.
Nico.
Pilgrim, Peter a écrit :
Can anyone tell me where I can download the full Struts 1.1 source code
other than http://archive.apache.org/dist/struts/ which is being blocked
by my clients corporate securi
(I still need the source code for Struts 1.1)
My real problem is a Struts 1.1 application ( my client does not want to
upgrade 1.2. )
deployed on a WebLogic 8.1 Server. The application fails to deploy because
of a parsing error. Has anyone come across this type of stack trace before?
<22-A
> Yes, you can use any number of struts-config files; there is a
> servlet init parameter which accepts a comma-separated list.
>
>config
>
> /WEB-INF/struts-config.xml,
> /WEB-INF/admin/struts-config.xml,
> /WEB-INF/approval/struts-config.x
Can anyone tell me where I can download the full Struts 1.1 source code
other than http://archive.apache.org/dist/struts/ which is being blocked
by my clients corporate security ?
--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston,
Floor 15, 5 Canada Squar
you could try
Gareth
Kade Jeevan Kumar wrote:
Hi All!
I am developing an application where i needs to populate a value which is of boolean type.
A sample snippet of code giving below -
Here, 'exists' is a boolean type. my requirement is to chek if exists is true display some mes
Hi All!
I am developing an application where i needs to populate a value which is of
boolean type.
A sample snippet of code giving below -
Here, 'exists' is a boolean type. my requirement is to chek if exists is true
display some message else display some different message.
I feel th
77 matches
Mail list logo