hi Laurie,
I am trying to test my struts appplication,
first I tried MockStrutsTestCase but its not working because
my database connections are coming via tomcat(I have placed my
jconnect.jar file in tomcat_home/common/lib and configured my
application's context.xml file)
Therefore I am looking
MC,
Actually, the jsp page is referring a page within my application. For
testing purpose, I tried with an absolute URL and I sent U that changed jsp.
Anyways, I noted that anything between the tags is not affecting
b'coz even after removing the complete body and just leaving (<%@
taglib) wit
Malcolm Mallia wrote:
I wish to implement a database and model classes on one server and have
the action, actionform and jsp in another project on another server.
Can I map the struts-config to read across servers? What is the best
way to implment this without changing my project to an enterp
yeah, I agree the navigation to *get* to that documentation isn't the
most intuitive. I think it's a bit better with the Maven build Wendy
pointed to, though.
L.
Murray Collingwood wrote:
Hi Laurie
I haven't seent his page before so I tried to trace back the link from the main struts
pages.
config
/struts-config.xml <== is this correct?
Seems to me that your servlet container cannot find struts-config.xml
file. Is your struts-config.xml in WEB-INF directory or in document
root?
Michael.
On 9/22/05, T West <[EMAIL PROTECTED]> wrote:
> I've tried all of the suggestions given s
Hi Guys,
Its early Friday to me. Hehe.
I need help in using Jboss-Cache. The short tutorial doesn't give
anything i can understand. I am very new to this cache thing. I dont
think
that the bundled sample is working.
I hope somebody here can explain something on this. My goal is to run
this as a
On 9/22/05, James Mitchell <[EMAIL PROTECTED]> wrote:
> I for one figured you would appreciate Ted's offer seeing as you
> would be on equal ground with everyone else. If you are willing to
> do the work, and it is something people want, then you need to get it
> out there and let people try it.
What do you mean? Is it your goal to say "hey, see that in the
Struts code, I did that!". If that's true, then you are here for the
wrong reason my friend.
I for one figured you would appreciate Ted's offer seeing as you
would be on equal ground with everyone else. If you are willing to
I wish to implement a database and model classes on one server and have the
action, actionform and jsp in another project on another server. Can I map
the struts-config to read across servers? What is the best way to implment
this without changing my project to an enterprise project?
Thanks
I've tried all of the suggestions given so far, and I'm still
receiving the same error. Any more suggestions would be greatly
appreciated.
Thanks.
On 9/18/05, T West <[EMAIL PROTECTED]> wrote:
> The exception occurs when I'm in the Tomcat Manager and try to open up
> the DatabaseRetrieval project.
Thanks for the clarification Laurie. It does make perfect sense.
On 22 Sep 2005 at 19:40, Laurie Harper wrote:
> As long as you have your mappings setup correctly (and use the right
> attribute name if you push the form bean into the request/session
> yourself), the tag locates the appropria
Hi Laurie
I haven't seent his page before so I tried to trace back the link from the main
struts
pages. It's hidden in a "more..." link at the bottom of a page called "How to
build
applications" which is under the "Howto Guides". No wonder I didn't find it.
I think there
is another link f
On 9/22/05, Ted Husted <[EMAIL PROTECTED]> wrote:
> On Sep 11, 2005, at 2:18 PM, Ted Husted wrote (on Struts Dev):
> > My thinking is that each application should be separate, with it's own
> > Maven build, and no shared code between web applications. Though, the
> > MailReader applications could s
Did you look at the documentation Dave referenced? It covers pretty much
everything you mentioned, perhaps with the exception of examples. For
example, here's the reference documentation for the HTML taglib:
http://struts.apache.org/userGuide/struts-html.html
I'm sure suggestions for improve
As long as you have your mappings setup correctly (and use the right
attribute name if you push the form bean into the request/session
yourself), the tag locates the appropriate form bean
automatically and the name attribute is redundant.
L.
Murray Collingwood wrote:
Laurie is right, you ne
From: "Murray Collingwood" <[EMAIL PROTECTED]>
I've read through most of this documentation and it doesn't help much.
I completely agree. I've never been able to just read the taglib docs and
figure out what combination of attributes will do what I want.
I'm really looking for a reference m
Hi Dave
I've read through most of this documentation and it doesn't help much.
I'm really looking for a reference manual that:
1. lists all of the available tags in a tag library,
2. describes all of the parameters,
3. how the parameters differ from each other and how they interact (you can'
Sorry ojay, my codes are in the notebook, and right now I don't have
access to the internet with it(I don't have the ppoe program to run
this ADSL connection in my note). I can send you the code from my work
tomorrow.
Best Regards
Rafael Mauricio Nami
2005/9/22, Dave Newton <[EMAIL PROTECTED]>:
>
Nope, setting href won't submit a form. In fact, I'm almost completely
certain it results in a GET, not a POST
Frank
Dave Newton wrote:
Catherine wrote:
function show(url) {
window.location.href = url
}
Does setting the href of the window's location actually submit a form?
What happ
where should I store the view related session state? HttpSession or on a
Session form-bean?
Thanks in advanced,
João Martins
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Laurie is right, you need the extra action mapping in your config file.
I have also been adding the attribute name to the form elements as in:
Is this necessary? It works but I'm wondering if it is redundant?
Kind regards
mc
On 22 Sep 2005 at 15:44, Laurie Harper wrote:
> You have your
Catherine wrote:
function show(url) {
window.location.href = url
}
Does setting the href of the window's location actually submit a form?
What happens if you actually call submit on the form?
Dave
-
To unsubscribe, e
Hi,
I defined a variable in my ActionForm as "submitAction". And I have serveral
buttons in my form as below.
This works and I get submitAction="Save".
function show(url) {
window.location.href = url
}
This also works since
Frank W. Zammetti wrote:
Ok, got it working. Ugh, took me 20 minutes to find a stupid typo in the
blank Struts app I use to start a new project. ARGH!
Hey, does that mean you can bill clients for an extra 20 minutes for
every project?
That looks almost *exactly* like what I implemented a
On Thu, September 22, 2005 3:50 pm, Frank W. Zammetti said:
> P.S. - I just threw together a quick little sample app to see if the
> filter can be used this way in the first place... it didn't work right off
> the bat, although I think it's just a mapping issue, not so much a flaw
> with the underl
You have your action path set to /EditMappingElement but your form
action is SaveMappingElement. There's no link between the form and the
form-bean. You need to make sure you have an action mapping for
SaveMappingElement, and that it has name="MappingElement" set.
L.
Michael Oliver wrote:
I
On Thu, September 22, 2005 3:31 pm, Dave Newton said:
> If you're going to put an ActionForm into session mightn't it make more
> sense to put this in a request processor, as long as it's
> Struts-dependent anyway? I dunno.
It's certainly a reasonable argument to make. :)
My feeling these days th
Actually, I want to do exactly that; it's on my to-do list. I haven't
looked at it at all, but when I do I'll be sure to post.
L.
Michael Jouravlev wrote:
I like IceSoft's "Direct-to-DOM" buzzword ;-) The question is probably
better suited for Commons mailing list, but because it is
Struts-rel
rahul wrote:
Can anyone post some sample CactusStrutsTestCase code
That's a bit vague; what are you trying to test? One place you could
look is the Cactus test suite for the taglibs subproject in the Struts
source (grab a current source distribution or checkout from subversion,
and look in t
Frank W. Zammetti wrote:
Since an ActionForm is no different from any other class as far as the
filter would be concerned, it can instantiate it and place it in the
appropriate scope, which would really only mean session, since I'm pretty
sure Struts would overwrite it if it was request-scoped..
Another potentially interesting possibility, although one I have to admit
I have not tried yet, is using the DependencyFilter in Java Web Parts.
Since an ActionForm is no different from any other class as far as the
filter would be concerned, it can instantiate it and place it in the
appropriate s
Yep, your right!
I checked the source code of the latest prod version (1.2.7) and it does
have the one line of code added to the destroy() method.
Thanks a lot.
Jeff
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 22, 2005 11:52 AM
To: Struts Us
From: "ojay78" <[EMAIL PROTECTED]>
Could you give a example Code for that?
You can see an example of form pre-population in the code for the MailReader
example app:
http://svn.apache.org/viewcvs.cgi/struts/apps/trunk/shared/src/java/org/apache/struts/apps/mailreader/actions/EditSubscription
Guys,
My application is being used by third party product,
in which they call our different actions
(.do?param=value etc.) at different places. Whenever
they call our application they open up a child
window(our application). After doing necessary task
user clicks on "Done" button on child window,
Hi Rafael,
"I usually prepopullate an ActionForm from the Action. Like, if I have
to save a Person object, I prepopullate the ActionForm in the edit()
method, setting the ActionForm again in the web context(request or
session). And then, return the according ActionForward."
Could you give a examp
ojay78 wrote the following on 9/22/2005 1:22 PM:
On my showFVKNAdminAction I receive a value from the previous ActionForm
and put it in the request so that the next handleFVKNAction have this value.
I also put a attribute in the request so that the handleFVKNAction knows
that it has to act li
I usually prepopullate an ActionForm from the Action. Like, if I have
to save a Person object, I prepopullate the ActionForm in the edit()
method, setting the ActionForm again in the web context(request or
session). And then, return the according ActionForward.
Best Regards
Rafael Mauricio Nami
Hey Ted,
What would be an appropriate tool for creating the UML diagrams for
MailReader? I use Rose for my work, but I think documentation for open
source projects needs to be readable by everyone.
I found this recent article, but it doesn't help much.
Open source UML editors lag proprietary lea
Hi @ all,
I stuck on a problem. I don’t now how to
prepoulate a Actionform. What I’m doing is this:
On my showFVKNAdminAction I receive a value from the previous
ActionForm and put it in the request so that the next handleFVKNAction have
this value.
I also put a attribute in the r
Bradford, Jeff L wrote:
We are using WebSphere 5.1.1 and Struts 1.1 and Struts 1.2.4. IBM made
this suggestion. Anyone else heard of having to resort to this?
Yep; this has been brought up before:
http://issues.apache.org/bugzilla/show_bug.cgi?id=14042
http://www.junlu.com/msg/154784.html
The struts design guidelines states that Actions perform the processing
required to deal with a request (such as saving a row into a database);
this can be done by logic code embedded within the Action class itself,
BUT should generally be performed by calling an appropriate method of a
business lo
Murray Collingwood wrote:
I've never found any good documentation on the use of various taglib
parameters, maybe somebody else on this list could point us in the right
direction.
For the most part the docs in the Struts userguide
(http://struts.apache.org/userGuide/index.html, then follow
Might be an easier way, but I had to implement this via a Filter that
saves this info into a session scoped bean.
-Dennis
"Barnett, Brian W." <[EMAIL PROTECTED]>
09/22/2005 11:59 AM
Please respond to
"Struts Users Mailing List"
To
'Struts Users Mailing List'
cc
Subject
[OT] HttpSessionL
We are using WebSphere 5.1.1 and Struts 1.1 and Struts 1.2.4. IBM made
this suggestion. Anyone else heard of having to resort to this?
A series of tests were performed that showed that when we repeatedly
stopped and started an application, we could eventually deplete the Perm
Gen. The applicati
Is there a way to get to the request object in an
HttpSessionListener.sessionCreated() method? Specifically, I want to call
request.getRemoteUser() so I know who just created the session.
TIA,
Brian Barnett
This email m
Hi All,
Can anyone post some sample CactusStrutsTestCase code
--RahulJoshi
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
> Hi Vijaya,
>
> It turn out that I did not put the jbossall-client.jar in the lib/
> directory of myApplication. After I put the jbossall-client.jar in the
> lib/ directory, thing works fine. I really don't know why none of the log
> statements were never printed when my action class execute meth
Hi Vijaya,
It turn out that I did not put the jbossall-client.jar in the lib/ directory of
myApplication. After I put the jbossall-client.jar in the lib/ directory, thing
works fine. I really don't know why none of the log statements were never
printed when my action class execute method was ca
Yes that works! Thanks.
It does open the questions:
1) Why is it necessary? I have dozens of Struts applications and this is
the first time this has been needed.
2) Why can't you specify the bean to use in the html:form tag? I tried
adding the undocumented features name="MappingElement"
type
From: "Gaurav Shrivastava" <[EMAIL PROTECTED]>
new to struts and migrating an application from struts 1.1 to struts 1.2.7
can anyone give me hints/suggestions on what all things (struts feature
wise) should i consider while migrating to higher version.
There are Wiki pages to help you move fro
For me, a "Component" can occur at any level. On a page for example a
Component may be a custom control, applet or an object that is exposed via a
custom tag. Tapestry, JSF, ASPX all have these kinds of components. But if
you are talking at the application level, then Components take on a
comple
Hi Archana
Try changing your html:link page to href. ie From:
http://yahoo.com";>Yahoo
to
http://yahoo.com";>Yahoo
>From what I gather the 'page' parameters refers to a page within your
>application. You
should use the 'href' parameter to refer to a URI.
I've never found any g
On Sep 11, 2005, at 2:18 PM, Ted Husted wrote (on Struts Dev):
> My thinking is that each application should be separate, with it's own
> Maven build, and no shared code between web applications. Though, the
> MailReader applications could share a business backend, again with its
> own Maven build
new to struts and migrating an application from struts 1.1 to struts 1.2.7
can anyone give me hints/suggestions on what all things (struts feature
wise)
should i consider while migrating to higher version.
__
On 9/22/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> And that ASP.NET component approach relies on massive IDE and backend
> support. I wonder how to encapsulate one component into another with
> JSF or ASP.NET. Visual tools help to drag the component on the screen
Hmmm, I wouldn't say "rely
Thank you, Kishore. That sounds like what is happening, but I lacked the
in-depth knowledge of how Struts works to figure it out. This helps me
understand a lot.
I will try the LazyDynaBean[] method.
Jason Jones
Ann Arbor VAMC (CIO)
2215 Fuller Rd.
Ann Arbor, MI 48105
734-769-7100 x5387
-Or
On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
>
> It is possible to create Struts/JSP components which can do
> everything from the bulleted list above, maybe not nicely
> packaged, but they can be called components nonetheless:
> http://today.java.net/pub/a/today/2005/08/04/jsp
Alright thanks, you know what? I am giving up Struts
I dont understand why this stuff has to be so complicated and nobody in
the whole world knows anything about it, I am Swing developer and I
think I will keep that.
Thanks anyway
Laurie Harper escreveu:
Erm, yes? You were complaining th
I am not sure that modifying the DOM is such a good idea. I mean, sure
it works on some browsers, but not on all, so it's not
"production-ready" (same problem as with ajaxtags).
On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> I like IceSoft's "Direct-to-DOM" buzzword ;-) The question is
On 9/21/05, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 9/21/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> > I would like to hear what a component is. Definitions can differ.
> > ...
...
> below, I'll quote a couple of references that might be the beginnings of
> research for your own inv
60 matches
Mail list logo