Hi,
I would like to mark (for example with a red star) mandatory (required)
input fields somehow that the user sees them? I understand that I can
configure which fields are required in validation.xml but that might change
to customer to customer (a customer wants for example to configure mobile
nu
Hi,
In the form bean keep an array list of FormFile and use it similarly as
dynamic list control.
KP
-Original Message-
From: Viral_Thakkar [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 3:01 PM
To: Struts Users Mailing List
Cc: Ketan_Bhat
Subject: Multiple File Upload using St
Hello John,
have you tried
***
JM> Hi,
JM> I hope someone can help me get my head around a scoping question here.
JM> I have a multi-page wizard, used for purchasing. There are five pages in
JM> all and I'm trying to factor out a
Hi,
We are trying to implement uploading file via struts framework using
form bean. According to our requirement we have two scenarios' in which
we require uploading of our file.
1) Uploading single file (single html:file control and a single
upload button in jsp page)
2) Uploading mul
I think, performance wise File I/O is not the right idea.
What do you say ?
-Original Message-
From: Christina Siena [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 08, 2004 8:16 AM
To: Struts Users Mailing List
Subject: Re: some best practices questions
I have an idea how to persist th
Hubert Rabago wrote:
There's an old IBM article illustrating this.
http://www-106.ibm.com/developerworks/java/library/j-integrate/
Keep in mind this article was written before the final release of JSF.
If you're looking for the nightly build of the struts-faces integration
library, there's an open
I have an idea how to persist the data that I currently place in session scope but I
need to run it by someone.
Recall when I said that placing data in session scope is frowned upon by some members
of my team? Well no one said anything about not using Java serialization. Why couldn't
I serializ
Your idea about creating a new scope sounds like an idea that might help. Can you tell
me more about it?
- Original Message -
From: Michael McGrady
To: Struts Users Mailing List
Sent: Tuesday, July 06, 2004 11:59 PM
Subject: Re: some best practices questions
Ever thought a
I myself get caching with hibernate which I am using for persistance
but I wanted the more fine grained control like this so that I could page
back and forth using displaytag.org.
here is my jsp code for paging, hope this shows why I am doing it. I guess
my code is more for implimenting a clie
Hi,
I have encountered a problem in applying multi-properties.
Multi-properties is used in my company's system. Bundle is set. I can use the message
in xxx.jsp but not validation form thought I have set bundle.
http://jakarta.apache.org/commons/dtds/validator_1_1.dtd is used in validation.xml
How about:
ATTA
- Original Message -
From: "toto2004b2000" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 07, 2004 1:34 AM
Subject: Form action relative path
> Hello,
>
> My application is "toto" and with this struts tag
>
> the generated HTML code is
>
>
> I n
Hello,
My application is "toto" and with this struts tag
the generated HTML code is
I need to use relative path (without application context), like
Is it possible ? Any help would be appreciate.
Kind of regards
-
To unsub
On Wed, 07 Jul 2004 20:12:02 +0200, Bryan Hunt <[EMAIL PROTECTED]>
wrote:
And it works fine, but really what I am trying to get here is the value
of using Constants in
both my Actions and my ( JSTL based ) jsp's.
You need to have all your Constants in a Map that is in application scope.
Kris
At 4:19 PM -0400 7/7/04, [EMAIL PROTECTED] wrote:
Also, I'm sure Rod's new book includes solutions that leverage
Spring:
http://www.bookpool.com/.x/h9a6d8t7p6/ss/1?qs=EJB+without+J2EE&Go.x=0&Go.y=0&Go=Go
BTW, BookPool has this book at 50% off, saving 7.19 over Amazons
price. That's just crazy.
Hello,
I am trying to set the action attribute for the nested:form tag
dynamically. I want to achieve this by using a property called 'url'
from the form (or maybe someone can suggest a better way). I was
unsuccessful using the nested:write tag. Any help would be appreciated.
Thanks,
Vinuta
Zhang,
It depends on what you want.
Using session facade gives your architecture forward compatibility towards
EJB technologies and maybe new technologies that might come in ...
the overhead of using this pattern isn´t that important and you will have a
clearer separation of areas...
Regards,
Luc
--- "Zhang, Larry (L.)" <[EMAIL PROTECTED]> wrote:
> Thanks all. I especially like " Firstly, just in case that EJBs will be
> introduced in subsequent phases."
>
> However, before the discussion goes far from what I initially wanted, let
> me ask you this: is your Facade the same as my Session Fa
Well. In my case I used the Facade pattern without the Session.
I did have a discussion with a friend as to determine if it is closer to a
Delegate or a Facade.
Facade... eventhough it does not adhere to the J2EE Pattern 100%.
"Matthias Wessendorf" <[EMAIL PROTECTED]>
07/07/2004 04:45 PM
Ple
yes it should be a SessionEJB
however, if you are new to EJB
look here, for generating EJBs
http://xdoclet.sf.net
and a Xdoclet-Petstore-Sample
http://xpetstore.sf.net
and Struts and EJBs
http://developers.sun.com/events/techdays/codecamps/
THE LINK:
Struts and Core J2EE Patterns Together De
Thanks all. I especially like " Firstly, just in case that EJBs will be introduced in
subsequent phases."
However, before the discussion goes far from what I initially wanted, let me ask you
this: is your Facade the same as my Session Facade?
I am reading
http://java.sun.com/blueprints/corej2e
Position: Senior J2EE Developer
Needs:
STRUTS
Done Deployment
Worked with Patterns
Used Business Objects
Pay is 45hr-55hr.. Depending on Experience..
6 month contract.. Company has not let go of any of
it's contractors since it started...
Email me if you would like more information..
Lee W
Agree with Bill here. Also... the Constants file is
(or can be) quite 'C' as well. There is a temptation
to put all of your constants in one place and before
you know you end up putting all of your constants
encountered within your app there. So totally
unrelated stuff gets piled up into one place
I got it (Expert one-on-one J2EE Design and Development) used on Amazon for
$8.50 including shipping. It arrived looking brand new.
He's got a new one coming out in November, "Professional Java Development
with the Spring Framework".
http://www.amazon.com/exec/obidos/tg/detail/-/0764574833/qid=108
Thanks Jim,
Yes, we found it to be an oddity in IE6 but mostly an error on our part.
The html:submit onchange method was actually submitting the form (as any
other control does). Doing this is wrong to begin with, and it turns out
that Mozilla and IE handle it differently.
Now the page contains a
Also, I'm sure Rod's new book includes
solutions that leverage Spring: http://www.bookpool.com/.x/h9a6d8t7p6/ss/1?qs=EJB+without+J2EE&Go.x=0&Go.y=0&Go=Go
BTW, BookPool has this book at 50% off,
saving 7.19 over Amazons price. That's just crazy.
Dennis
"Ricardo Cortes"
<[EMAIL PROTECTED]>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 07, 2004 12:53 PM
> To: [EMAIL PROTECTED]
> Subject: Spring or Tapestry Framework
>
>
> I'd like to thank both Robert and Jim for yesterdays help
> with my "Request
> bean is lost".
> After
:)
Perhaps I could have used Exceptions but well at least I use a Constant
file a little better!
The more I think about the better it seems to get damn I have some
code rewriting to do...
Thanks Bill.
Bill Siggelkow <[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTECTED]>
07/07/2004
Glenn, I was with you until the part about the "return code" ... I think
it would be better to translate the DAOException to some
BusinessServiceException or something similar instead of a "return code".
Generally, I try and avoid the "method returns a -1 to indicate that the
operation failed" k
Ooops. One more link:
http://www.hibernate.org/110.html
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 07, 2004 3:53 PM
To: [EMAIL PROTECTED]
Subject: Spring or Tapestry Framework
I'd like to thank both Robert and Jim for yesterdays help with
I'm not sure about Tapestry's integration with Hibernate but Spring provides a good
amount of integration with Hibernate out of the box. Plus, it's quite easy to get
going with the examples they provide.
Check out these URLs to get your feet wet:
http://www-106.ibm.com/developerworks/library/j
I'd like to thank both Robert and Jim for yesterdays help with my "Request
bean is lost".
After a small 30 Km bike ride I decided to go with the hidden field to
track the First time the page is accessed.
But I digress... Espresso time!
I decided to start another discussion...
I am in the process
+1
I would also add that the Facade should be an interface where the
implementation can change without affecting the client code.
I would also recommend looking at the Spring framework. It provides
declarative transaction management without using EJB.
I also provides a declarative way to "plug-i
my 2 cents...
I am using the Facade in my current project.
Firstly, just in case that EJBs will be introduced in subsequent phases.
Secondly, the DAO throws exceptions of DAOException & a FatalException.
Say that a Stored Procedure returns an application error (invalid
parameter in a SP); this
Bill and Dennis,
Thanks a lot for the info. VERY helpful!
James
---
http://www.devbistro.com
--- Bill Siggelkow <[EMAIL PROTECTED]> wrote:
> Ooh ... I was just reminded that the values between
> the commas should be
> quoted in case there are internal commas ...
>
>
>
out.write("\"Ev
It will make sense. You'd let the j2ee container take
care of managing dao manager instances and you'll get
transaction support (if you need it). Plus, if you
decide to move your persistence layer to another
server it will be nicely packaged within the .ear that
contains your ejb session facade.
B
I would assert you don't need the Session Facade as one of the advantages of the
Session Facade is it's ability to abstract the low level operations of the Session
EJBs from upper layers of your architecture. You could probably have your actions
talking to a Business Delegate layer or your DAO
Ooh ... I was just reminded that the values between the commas should be
quoted in case there are internal commas ...
out.write("\"Every\",\"good\",\"boy\",\"does\",\"fine\"\r\n");
out.write("\"face\",\"in\",\"the\",\"space\",\"dude\"\r\n");
Bill Siggelkow wrote:
Try something like
Maybe.
"Zhang, Larry \(L.\)"
<[EMAIL PROTECTED]>
07/07/2004 02:58 PM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
"Struts Users Mailing
List" <[EMAIL PROTECTED]>
cc
Subject
Session facade
It seems session facade design pattern is becoming ubiqu
Try something like this little servlet:
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class CsvServlet extends
> -Original Message-
> From: Ivan Vasquez [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 07, 2004 11:31 AM
> To: [EMAIL PROTECTED]
> Subject: Strange double-submissions
>
>
> Hi,
>
> We have a form whose last two controls are an html:select and a submit
> button. The form posts to a
It seems session facade design pattern is becoming ubiquitous. My question is that
if we are not going to use EJB(but we do have DAO-data access object), does it still
make sense to use session facade?
Thanks.
-
To unsubs
Hi,
We have a form whose last two controls are an html:select and a submit
button. The form posts to an Action to insert records into a database.
Changing the select control causes a page refresh (posting to the same
Action) in order to display other options.
We notice that, if the user submits
Just as an addition I can do this
And it works fine, but really what I am trying to get here is the value
of using Constants in
both my Actions and my ( JSTL based ) jsp's.
Perhaps this is just something that never occured to the writers of the
JSTL spec ?
--b
Bryan Hunt wrote:
Ok, t
Ok, tearing my hair out right now and extremely confused.
If you look at the Java Technology Forums you will see a rather nice
little pattern that
someone called evnafets has created, it allows you to use a single
Constants class
both in your Actions and in your JSP pages ...
It uses reflection
> From: Naresh Sharma [mailto:[EMAIL PROTECTED]
> I am not very clear how OptionsCollection tag works, I wish
> to know when we supply a Collection element to
> OptionsCollection tag, how it determines which element of
> this collection should come as selected element while
> rendering a drop
David - this isn't really a struts question - but from what I know of the
favicon.ico icons:
They MUST be 16x16 pixels
The only work in IE after the page has been bookmarked
They only work in Mozilla versions greater than 1.3
(Don't know about other browsers)
For tomcat, you may need to add someth
iBATIS and Hibernate will both allow you to externalize your SQL
queries. If all you are looking for right now is a way to place your
SQL statements in separate data files that allows you to insert values
dynamically at run time, iBATIS is a much simpler solution which
easily handles that for you.
My suggestion is to get the source for
displayTag (http://displaytag.sourceforge.net) and look at TableTag.doExport()
and CsvView.
Dennis
klute <[EMAIL PROTECTED]>
07/07/2004 10:28 AM
Please respond to
"Struts Users Mailing List" <[EMAIL PROTECTED]>
To
Struts Users Mailing List
<[E
Hi All,
I have an application which is using Struts and is deployed on weblogic
server say myApp. The application is working fine for a client directly
hitting the weblogic server. But we have an application environment wherein
the iPlanet web server(redirectServer) is providing virtual di
org.apache.struts.taglib.html.BEAN is used internally by the Struts
tags to hold a reference to the form bean. sets it's value &
enclosed tags like access the form bean by looking for an
attribute with that name.
So, you could get that by having a null form bean, or by using an
tag outside an
Michael McGrady wrote:
The problem is that, no matter what that is causing the problem. The
error report tells you that is the problem. The problem is that you
are not seeing what the error tells you is not being seen. So, track
it back. If the "taglib" line is there, then the URI might be set
look into ibatis, hibernate, torque on and on
-Original Message-
From: Shailender Jain [mailto:[EMAIL PROTECTED]
Sent: 07 July 2004 04:48
To: [EMAIL PROTECTED]
Subject: EXTERNALIZE SQL QUERIES
Hi,
I am using struts framework for the development of my application.
I want to externali
I, for one and one only, think that this sort of thing is directly
addressing the most common recurrent question on this list. So, if
anything, this de-spams the list. Thanks for the suggestion.
At 04:57 AM 7/7/2004, you wrote:
Sorry if this is considered spamming the list
Speaking of sto
On Wed, 07 Jul 2004 13:57:23 +0200, Bryan Hunt <[EMAIL PROTECTED]>
wrote:
For instance if I want to page through it ( using displaytags.org (10
out of 10)) or simply if I don't want to fetch
from the database time and time again.
By default the data expires on an hourly basis. And if a differe
Hi,
thank you for the reply. That with the webserver is a good idea, i am gonna try it
out. I also wondor that, why the struts-config and tiles-config is working. just
for a try i removed the network cable and this time it throws exception only from
validator module ie. struts and tiles are
Hi All,
I am looking for some best practices advice on
handling this task:
I have a web application (written in Struts) that
talks to some database. A browser user will be able
user to export tabular data from the db in a comma
delimited file and get a save as dialog box prompting
to name the re
I'm using WebSphere here at work. I tried putting favicon.ico in the root
directory of my .war file and it didn't work. Is understand how I can make
it work on a web server like apache but what about Tomcat? The best for me
will be to have a different favicon.ico per web application (i.e.: .war
Nothing wrong with LookupDispatch action, just needs a base action that
extends it, and have all the common behavior for all executes in there.
Also need to create support for nested form buttons. I've hacked in an
index retriever to get indexed form buttons working, but i'd like to
support key
Hi all,
I am not very clear how OptionsCollection tag works, I wish
to know when we supply a Collection element to OptionsCollection tag, how it determines
which element of this collection should come as selected element while
rendering a drop down box.
Please suggest.
Regards
Sorry if this is considered spamming the list
Speaking of storing stuff in session scope. I've developed what I think
is a handy class which I think it useful for
when I want to store something like a search in a session variable.
For instance if I want to page through it ( using displaytags
Or use hibernate :D .
On Wed, 07 Jul 2004 09:56:06 +0300, Andrew Stepanenko
<[EMAIL PROTECTED]> wrote:
> ÐÑÐ, 2004-07-07 Ñ 06:48, Shailender Jain ÑÐÐ:
> > Hi,
> >
> > I am using struts framework for the development of my application.
> > I want to externalize the sql queries written in my a
And if your image is in other place than in the root or it isn't called
"favicon.ico", you can place this tag in the index.jsp page:
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Martes, 06 de Julio de 2004 05:46 p.m.
To: [EMAIL PROTECTED]
Subject: RE: OT -
Hello there,
I am doing a similar thing following an article that appeared on
javaWorld (that's about XML and JDBC)
http://www.javaworld.com/javaworld/jw-11-2000/jw-1110-xmlreflection.html
I am not actually using 'variables' like you plan to use ($id, $name). I
am instead following anot
63 matches
Mail list logo