Hi Hubert,
Thanks for your reply first .. but:
On Mon, Jul 12, 2004 at 09:32:45PM -0700, Hubert Rabago wrote:
> This is really how it's designed to work. For a form to be resubmitted, the
> user will have to regenerate the form, maybe by going back two pages, to the
> page that was shown *before*
This is really how it's designed to work. For a form to be resubmitted, the
user will have to regenerate the form, maybe by going back two pages, to the
page that was shown *before* the form. As you might already know, this
protects against accidental double submits.
If you're looking for an alte
Hi,
One can set priority for logging in case it affects application performance
i.e., log only what's required, rest you can switch it off by setting log
category to high (from WARN or ERROR ---> FATAL).
We are into online booking engine and we have database of more than 70,000
customers and thou
Hi Craig,
I guess you misunderstood what I said.
The problem is that once the token is saved, even if I request the action
again(NOT "refresh") manually(by clicking some link on the page, or submit a form),
the token is still there! and thus the action is never executed second time.
Ding Lei wrote:
Hello ...
On Mon, Jul 12, 2004 at 10:50:46AM -0300, Guillermo Meyer wrote:
Use Struts isTokenValid/saveToken schema in your addUsetToDatabase
Action method.
the problem is that once it calls saveToken(), the damn token stays
there forever ... what's wrong with it?
I ca
Hello ...
On Mon, Jul 12, 2004 at 10:50:46AM -0300, Guillermo Meyer wrote:
> Use Struts isTokenValid/saveToken schema in your addUsetToDatabase
> Action method.
the problem is that once it calls saveToken(), the damn token stays
there forever ... what's wrong with it?
>
> Cheers.
> Guiller
Make sure you have load-on-startup declared in web.xml! I had a problem
with Struts not being loaded at all when I didn't have this declared,
and the first request did not cause it to load either.
Erik
Phyl wrote:
Hi,
I've been developing a struts webapp using tomcat and am now trying to
dep
Hi,
One can set priority for logging in case it affects application performance
i.e., log only what's required, rest you can switch it off by setting log
category to high (from WARN or ERROR ---> FATAL).
We are into online booking engine and we have database of more than 70,000
customers and thou
I am trying to figure out what serialization would have to do with the server?
At 04:30 PM 7/12/2004, you wrote:
> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 4:25 PM
> To: Struts Users Mailing List
> Subject: RE: webapp deployment
>
>
Hi Ravi,
> No ..no...its not an issue at all.
>
> Use it the way "Apurva" has mentioned.
>
> It works !!
Yes, that would be one solution. I am providing another solution.
It's just a matter of HOW. Which solution to pick is up to Viral.
As for me, the main reason to use commons-logging is t
Are you using Tomcat in-process with the apache server on an AS/400?
Your problem, and the fact you don't have .war deployment sound familar.
John Thompson
[EMAIL PROTECTED]
|-+>
| | Phyl |
| | <[EMAIL P
Hi Viral,
Yeah looks like pattern difference, the ConversionPattern I am using for
logging to a file is :
log4j.appender.Roll.layout.ConversionPattern=%x %d{.MM.dd HH:mm:ss,SSS}
%5p [%t] (%c:%-4L %M) - %m%n
Here is the complete prop file
> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 4:25 PM
> To: Struts Users Mailing List
> Subject: RE: webapp deployment
>
>
> If it will run a servlet, it will run struts. No?
Something is tickling the back of my mind about Servlet
If it will run a servlet, it will run struts. No?
At 04:15 PM 7/12/2004, you wrote:
> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 4:12 PM
> To: Struts Users Mailing List
> Subject: Re: webapp deployment
>
>
> Can you provide a bit more
> -Original Message-
> From: Michael McGrady [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 4:12 PM
> To: Struts Users Mailing List
> Subject: Re: webapp deployment
>
>
> Can you provide a bit more information and code? What do you
> have for
> global forwards in your struts-c
Can you provide a bit more information and code? What do you have for
global forwards in your struts-config.xml? Where is the "welcome" forward
called? Etc.
At 04:08 PM 7/12/2004, you wrote:
Hi,
I've been developing a struts webapp using tomcat and am now trying to
deploy it to my webserve
Hi,
I've been developing a struts webapp using tomcat and am now trying to
deploy it to my webserver. I copied every class and jsp manually since
there is no .war deployment available on the server.
Invoking a simple jsp directly works fine, however, when invoking a
*struts' jsp* this exceptio
Yes, I think that's a great improvement. Still, I feel like Struts
should be responsible for managing the scopes and the placement of
the form bean into the correct scope.
Also, and this may just be because I got on the "view controller"
horse a long time ago, but I feel like there should be a
Apologies Erik, its not in this version...maybe the next one.
Niall
- Original Message -
From: "Erik Weber" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 12, 2004 10:44 PM
Subject: Re: Prepopulating forms & validation
> Awesome! Inheritance
Sorry, you're right its not in this version - I've been living under that
misconception for weeks now.
Niall
- Original Message -
From: "Hubert Rabago" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Monday, July 12, 2004 10:33 PM
Subject: Re: Prepopulating
Awesome! Inheritance in, or parameterizing of, the Validator plugin,
will be the last step in getting a CRU (no D) use case finished the
*right* way (hopefully). This is with declarative validation,
declarative exception handling, an action layer, a business layer and a
data access layer (archi
I wanted to ask about this. The javadoc of Validator's Form.inherit field (
http://jakarta.apache.org/commons/validator/apidocs/org/apache/commons/validator/Form.html#inherit
) has it marked as "Since Validator 1.2.0", so I was thinking the inheritance
feature wasn't included yet. Do you know if
On Mon, 12 Jul 2004 17:09:41 -0400, Erik Weber <[EMAIL PROTECTED]>
wrote:
Because of one or two fields being different between add and update
forms, I fear I'll have to do a nearly-redundant (and very long)
element for my update condition in validation.xml. Does anyone have a
better solut
The version of commons validator (1.1.3 I think) that comes with the
recently released Sruts 1.2.1 beta allows you to inherit from another form
definition using the extends attribute
Niall
- Original Message -
From: "Erik Weber" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL
On Mon, 12 Jul 2004 17:09:41 -0400, Erik Weber <[EMAIL PROTECTED]>
wrote:
I am now using the same form successfully for adds and updates. I am
using the Validator plugin for validation, which I find to be pretty
awesome. The problem I face though is, the fields I need to validate are
sligh
On Mon, 12 Jul 2004 22:09:15 +0100, Niall Pemberton
<[EMAIL PROTECTED]> wrote:
// Find the FormBeanConfig
FormBeanConfig config =
mapping.getModuleConfig().findFormBeanConfig("myForm");
I've only rarely ever had to create Forms in my Actions (like you're doing
in the above). I'd be curi
On Mon, 12 Jul 2004 13:02:21 -0400, Erik Weber <[EMAIL PROTECTED]>
wrote:
I recall that when I set the "value" property on any of my inputs, I ran
into a problem with user input changes being "remembered" in the case of
a page reload due to form validation failure.
This depends Erik. If you
Ivan Vasquez wrote:
Hi,
How can I read from web.xml, say, the application's display name? I've
tried several things, but no luck. This isn't really Struts-specific,
but I'm sure this is an easy one for many of you.
Thanks,
Ivan.
in an struts action you should be able to use:
getServlet().getServ
Thanks a lot! I no doubt will find that very useful.
I have another question for the group at large:
I am now using the same form successfully for adds and updates. I am
using the Validator plugin for validation, which I find to be pretty
awesome. The problem I face though is, the fields I need t
Ivan Vasquez wrote:
Hi,
How can I read from web.xml, say, the application's display name? I've
tried several things, but no luck. This isn't really Struts-specific,
but I'm sure this is an easy one for many of you.
Thanks,
Ivan.
The web.xml file is available as a resource that can be accessed vi
Joe,
Do you not think that the new standard mechanism in Struts 1.2.1 for
creating ActionForms (regular or Dyna) makes this more straight forward?
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
On Mon, 12 Jul 2004 12:22:11 -0400, Erik Weber <[EMAIL PROTECTED]>
wrote:
Using BeanUtils.copyProperties(), it's a piece of cake to update your
Form bean from the ValueObject properties.
Do you have an example of this, or is there one on your site? I indeed
have some properties that are th
Thanks Duncan!
Assigning a tiles definition to the parameter attribute of the action
worked.
Excellent - thanks again!
-Original Message-
From: Duncan Mills [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 11:51 AM
To: Struts Users Mailing List
Subject: Re: Tiles and Oracle ADF in
> -Original Message-
> From: simon_delaroute [mailto:[EMAIL PROTECTED]
> Sent: Sunday, July 11, 2004 7:46 PM
> To: [EMAIL PROTECTED]
> Subject: Checkboxes
>
>
> Hi
> I am using struts and want to display a list of options for the user
> to select with checkboxes using the struts-el tags.
At 6:33 PM +0200 7/12/04, Amleto Di Salle wrote:
Hi all,
you can use the action in order to obtain the VO.
But a question: Are you using the html tags inside your jsp?
If yes, you can put the VO in the request and use the "value" (for
example value="${requestScope.anObject.aProperty}") attribute in
Joe and Wendy, thanks for all your help. Hearing the practical advice
and the theoretical advice gives me a plan for getting things done but
also keeps me thinking toward the best way of doing things!
I think what you are saying here will dawn on me more as I get deeper
into development, and I
No ..no...its not an issue at all.
Use it the way "Apurva" has mentioned.
It works !!
Regds
R-a-v-i
-Original Message-
From: Shinobu Kawai [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 11:53 AM
To: Struts Users Mailing List
Subject: Re: logging
Hi Viral,
> I am using common
Hi
I am using struts and want to display a list of options for the user
to select with checkboxes using the struts-el tags. The information
on each option is stored in an object, name, age height weight and
each of these objects is stored in an ArrayList called people which
is placed in the ses
FYI,
After learning about JUG support as projects on java.net at JavaOne, I
decided to migrate the Silicon Valley Struts User JUG to a new JUG project
on java.net. The other significant change to the group is the shift to a
more general focus on all J2EE web application development technologies. O
From: "Amleto Di Salle" <[EMAIL PROTECTED]>
> But a question: Are you using the html tags inside your jsp?
> If yes, you can put the VO in the request and use the "value" (for
> example value="${requestScope.anObject.aProperty}") attribute in the
> html tags (for example "html:text).
If you do tha
Yes, I am using the html tags. I thought of what you are saying, but if
I understand the responses of others correctly (particularly Wendy),
just calling the setters of your form in your "prepopulate" action
should take care of this; you shouldn't have to explicity provide any
values to your ht
John,
If you are using a DataPage (e.g.
oracle.adf.controller.struts.actions.DataForwardAction) then the
parameter attribute on the Action mapping takes the page that needs to
be displayed once the data binding has been processed. That parameter
attribute can take a tiles definition without a
At 12:16 PM -0400 7/12/04, Erik Weber wrote:
Joe, thanks for your opinion. You and Rick have convinced me to stay
with one form page for add/update. I did this before in a non-struts
app, and despite all the conditionals I ended up with, the ensuing
layout revisions did make it worth it.
So, Jo
Hi all,
you can use the action in order to obtain the VO.
But a question: Are you using the html tags inside your jsp?
If yes, you can put the VO in the request and use the "value" (for
example value="${requestScope.anObject.aProperty}") attribute in the
html tags (for example "html:text).
I would
From: "Erik Weber" <[EMAIL PROTECTED]>
> Joe, thanks for your opinion. You and Rick have convinced me to stay
> with one form page for add/update. I did this before in a non-struts
> app, and despite all the conditionals I ended up with, the ensuing
> layout revisions did make it worth it.
Take a
Thanks Rick. As I said in another response, I think I will go with a
shared add/update form.
Also, I think we meant the same thing, as far as action mappings go, I
just didn't explain very clearly. Indeed, I think now I will just map an
action to every screen and the user will never see "*.jsp"
Joe, thanks for your opinion. You and Rick have convinced me to stay
with one form page for add/update. I did this before in a non-struts
app, and despite all the conditionals I ended up with, the ensuing
layout revisions did make it worth it.
So, Joe, I am not using Dyna Forms, just plain old
Hi,
How can I read from web.xml, say, the application's display name? I've
tried several things, but no luck. This isn't really Struts-specific,
but I'm sure this is an easy one for many of you.
Thanks,
Ivan.
The basic question is:
If using Tiles in an application that uses ADF, how do you change the action
of lets say - a submit button on an input form - to return the a components
defined in a tiles-def definition?
The ADF submit button returns the component where the submit button lives -
thus losin
On Mon, 12 Jul 2004 11:34:08 -0400, Asif Rahman <[EMAIL PROTECTED]> wrote:
> I tried using the filter attribute , but
> that didnt work either. Can someone help me with this?
You had the right idea. Filtering is what escapes the special
characters like "<" and the default is already "true". This
Yes! "The computer is always right" is a useful thought.
At 08:03 AM 7/12/2004, you wrote:
Its always the obvious!
Michael McGrady <[EMAIL PROTECTED]>
12/07/2004 15:59
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Hi Joe,
I agree that users should use iBiblio, just said apache repository because
it's mirrored.
About the use of the private repo
http://cvs.apache.org/builds/java-repository/ seems a good idea to me, but
it hasn't been already created, nobody has upload nothing until now? Many
apache projects
I included in one of the entries in the ApplicationResources. Im not sure if
that is allowed.
This is what I get in my jsp output:
a.. Your payment of $750.00 has been approved! Your Order ID is 6690. Please
print this page for your records.
I tried using the filter attribute , but
that
In my experience, it helps all involved to avoid redundancy and
copying. If you logically treat inserts and updates as more "same"
than "different" then you're better off making one page with
conditionals. This serves as implicit documentation of the fact that
they are more the same, while ha
Those are _very_ low rates for NYC!
-Original Message-
From: Eric Dahnke [mailto:[EMAIL PROTECTED]
Sent: Monday, July 12, 2004 10:54 AM
To: [EMAIL PROTECTED]
Subject: Struts work in NYC
I hope posting contract work is OK in the list guidelines.
We have a Struts/Java Developer opening.
On Mon, 12 Jul 2004 10:31:29 -0400, Erik Weber <[EMAIL PROTECTED]>
wrote:
1) Use two different JSPs to house these forms, even though there will
be a lot of redundancy, because the fields may have some variation, and
because I'm not fond of having conditionals in the form (if (add) { }
els
Its always the obvious!
Michael McGrady <[EMAIL PROTECTED]>
12/07/2004 15:59
Please respond to "Struts Users Mailing List"
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
cc:
Subject:Re: HSQLDV / STRUTS
The correct syntax is "SELECT * FROM
At 05:
thanks a lot Atta, it is working fine.
-Message d'origine-
De : atta-ur rehman [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 9 juillet 2004 20:09
À : Struts Users Mailing List
Objet : Re: Form with n columns and m raws
Hello Damien,
have a new class called row:
public class Row {
priv
The correct syntax is "SELECT * FROM
At 05:23 AM 7/12/2004, you wrote:
Andre
What type of commit are you using under JDBC, automatic or manual? Perhaps
you should reply with the offending code so we can see what is happeneing.
Also, what exception handling are you using around the INSERT code, as
I hope posting contract work is OK in the list guidelines.
We have a Struts/Java Developer opening. 3-4 months w/ strong possiblity of
extension. $40-48/hr
Struts, Java web development work. Some XML, some workflow, the usual
suspects.
Please see the following, and use it to apply for the posi
I did not see your initial post, but to help clear this, let me say that,
if you don't want to have to keep a connection to the database, then don't
run "all-in-memory".
At 05:37 AM 7/12/2004, you wrote:
Is this the same post that was sent last week? or week before? I believe I
asked you a que
Oracle announces the availability of the Struts-based ADF Toy Store Demo
sample application.
http://otn.oracle.com/products/jdev/collateral/papers/10g/adftoystore.html
It is accompanied by a detailed technical whitepaper that explains
all of the interesting details of the Struts and Oracle ADF
f
Hello. I want to solicit some advice and opinions. Working on my first
Struts app.
I have some use cases that call for typcial "add" and "update"
functionality that basically can share the same forms. Obviously when
the form is first displayed under "add" conditions, it needs to be
blank. Unde
At 11:34 AM +0200 7/12/04, Carlos Sanchez wrote:
Hi,
Will you deploy it and the struts-el on the apache maven repository?
http://www.apache.org/dist/java-repository/struts/jars/
I would argue that it doesn't belong in that
location until it is voted a full GA release.
Then again, reviewing what s
Hi,
When I want to open a new browser window to access an offsite URL, I have
been loading a jsp with a frameset containing that URL, i.e. "return new
ActionForward ("/offsiteFrameset.jsp")". For example, to open a URL from a
page of offsite links. Is there a better or more direct way of doing it?
Hi Apurva,
We are having a class level variable as you mentioned as below
org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(ResResourceManager.class.getName()
);
I think the difference will be in the
log4j.appender.R.layout.ConversionPattern=%d, [%t], %-5p, %c, - %m%n
in l
Use Struts isTokenValid/saveToken schema in your addUsetToDatabase
Action method.
Cheers.
Guillermo.
-Original Message-
From: Ding Lei [mailto:[EMAIL PROTECTED]
Sent: Lunes, 12 de Julio de 2004 10:38 a.m.
To: Struts Users Mailing List
Subject: Browser's refresh problem
Hi all,
There
ok then , I try to figure out myself
thanks a lot, ^^
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Ding Lei:
Use a redirect instead of a forward and that will solve your problem..
Geeta
> -Original Message-
> From: Ding Lei [mailto:[EMAIL PROTECTED]
> Sent: Monday, July 12, 2004 9:38 AM
> To: Struts Users Mailing List
> Subject: Browser's refresh problem
>
>
> Hi all,
>
> Ther
Hi all,
There's a UserAddAction, which adds the user record to the database, and
when it's done it redirects the user index page. the problem is that everytime
the user clicks refresh at the user index page, the same record is added
again.
I know that unique check is required, but I also ho
Is this the same post that was sent last week? or week before? I believe I
asked you a question that you never responded to.
What mode are you running in?
http://hsqldb.sourceforge.net/web/hsqlModes.html
A few weeks ago, as I was finishing up several database implementations of
commons-resour
Ok I gave this a try and it worked. However something VERY weird happened.
Since I am using tiles, all of my forwards go to a tiles definition. When I tried your
suggestion:
String replacementLink = mapping.findForward("audit.app.login").getPath();
super.saveMessage(request, "auditapp.login.du
Andre
What type of commit are you using under JDBC, automatic or manual? Perhaps
you should reply with the offending code so we can see what is happeneing.
Also, what exception handling are you using around the INSERT code, as
you may be handling an exception/error but not doing anything with
I'm using HSQLDB I have a Java Action Class that performs an INSERT
(queryStr = "INSERT INTO USERS (PASSWORD, EMAIL) VALUES ('?', '?')";)
query my code indicates that the INSERT is successful however when I
query the Database SELECT * it doesn't show the current
INSERT that was made. Any sug
After validating a form, how can you get the form to focus on elements with
valdation errors?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hello,
Again, can't say explicitly without having knowledge of
Everything
There's the façade pattern if u want to have a look at it, It may
Help..
Regards
marco
-Original Message-
From: Koon Yue Lam [mailto:[EMAIL PROTECTED]
Sent: 12 July 2004 10:47
To: Struts Us
thanks for your kind reply
For example, for a classic online shop,
1 BD for customer (for check-in, check-out, list product etc...)
1 BD for admin (for update product price, stock etc...)
1 BD for normal user (for web forum, enquiry, feeback etc...)
does it looks good?
so if my BD doesn't map t
>I want to know if I implement business delagate as POJO singleton, can
>u give me some advice on how to multi-thread this business delagate to
>various request ???
>and how about caching ?? How to cache the handler of a business service
??
I don't consider myself so expert on multithreading :-(
P
Hi, me again, ^^
I want to know if I implement business delagate as POJO singleton, can
u give me some advice on how to multi-thread this business delagate to
various request ???
and how about caching ?? How to cache the handler of a business service ??
Hi,
Will you deploy it and the struts-el on the apache maven repository?
http://www.apache.org/dist/java-repository/struts/jars/
I have built it from cvs sources with maven and the size is not the same.
Regards
Carlos Sanchez
A Coruña, Spain
Oness Project
http://oness.sourceforge.net
>
Hello,
>Do the system has only one business delagate to control the mapping of
>request to business service
it depends on how many business delegate you need in
your application...
it's up to you on how many business delegate you need.
For small applications (like mine at home), usually 1 or 2 i
sorry, one more question..
I have read the business delagate pattern a while but still have little confuse
Do the system has only one business delagate to control the mapping of
request to business service
OR
the system has the same number of business delagate and business
service?? so one service
Hello,
>Thanks for the reply and I want to know more... ^^
>I know what means by Business delegate Factory, but what is "a plugIn
>for your factory" ??
by plugIn I meant Struts PlugIn (check struts docs,
http://jakarta.apache.orgs/struts)
a Struts PlugIn allows you to configure components that ha
Thanks for the reply and I want to know more... ^^
I know what means by Business delegate Factory, but what is "a plugIn
for your factory" ??
Do I need to implement Business delegate Factory by myself? Will
Struts help me in some way??
Regards
Hello,
My 2 cents..
Afaik ServiceLocator is used mainly for looking up
JNDI objects, because it saves you from instantiating a new Context
Every time..
It seems that what you are talking about is a Business delegate
Factory?
If that is the case, you could use a plugIn for your fact
Hi Apurva,
We are having a class level variable as you mentioned as below
org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(ResResourceManager.class.getName()
);
I think the difference will be in the
log4j.appender.R.layout.ConversionPattern=%d, [%t], %-5p, %c, - %m%n
in l
Hi Apurva,
We are having a class level variable as you mentioned as below
org.apache.log4j.Category cat =
org.apache.log4j.Category.getInstance(ResResourceManager.class.getName()
);
I think the difference will be in the
log4j.appender.R.layout.ConversionPattern=%d, [%t], %-5p, %c, - %m%n
in l
Hi, I am very new in Struts. Can anyone give me some suggestion on the
design of a Service Locator ??
I use ActionServlet as a front controller, and dispatch request to
various Action, then I want all the Actions access my business tier
only by the Service Locator, which return an interface of the
They just need to be distributed with the application - in the case of
JDeveloper adding them to the project will do this - but if you are
manually deploying your app just make sure those two files end up in the
/WEB-INF/classes directory - You can even retro-fit them in after you've
deployed i
Hi,
I am trying to implement antonio lagnada's html buttons 'pattern'
(http://j2ee.lagnada.com/struts/html-buttons.htm) with DynaValidatorForms
however I am have problems in the Action form when I try to interrogate
the getters to find which button has been pressed.
I am fairly new to struts so
90 matches
Mail list logo