On 6/9/07, Deepak Kumar <[EMAIL PROTECTED]> wrote:
HI,
Here is good collection of Struts 2 Tutorials
http://www.roseindia.net/struts/struts2/index.shtml
Thanks
Thank *you*!
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
What is the best way to implement the struts 1 nocache functionality
() in struts 2?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Here is the flow of my tiny app:
listAction -> list.jsp -> selectAction -> update.jsp -> updateAction
(implements ModelDriven - getModel() returns the object selected in
list.jsp stored in session )
Once it gets to update.jsp, the form should show the values of the bean
selected on list.jsp. Bu
That's great news Frank. We need to implement some reporting in a S2 app
we're building.
I actually prefer it to Jasper Reports.
If only had sprung for the cost of the Jasper Reports book :)
Z.
> Hi all... this is just a quick note to announce the first beta release
> of a new Struts2 plugin,
It is a known bug, and has been fixed for 2.1 but I can't find the jira
ticket (maybe there isn't one).
regards
musachy
On 6/9/07, Douglas Burns <[EMAIL PROTECTED]> wrote:
Hello,
According to the div tag documentation at
http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-divTag , the
c
Good question. I am guessing it is a bug.
On 6/8/07, Rafael Dittberner <[EMAIL PROTECTED]> wrote:
Yes.
Looking at the data I´ve found out that in the case of Cargo the highest
codObjeto is 100, while in the case of Orgao codObjeto goes beyond 1500.
I think I´m going to use your solution as w
I'm using the default stack. What I'm trying to do is something very
simple, that was incredibly straightforward in Struts 1. What I'm
finding is the getModel() method is not getting called when I expect it
to. It doesn't get called until after the action has been "hit" once.
But that doesn't he
Hello,
According to the div tag documentation at
http://struts.apache.org/2.x/docs/ajax-tags.html#AjaxTags-divTag , the
content of the div tag isn't supposed to load automatically if autoStart is
set to false. The issue I'm having is that it's loading regardless of the
autoStart value. autoStart=
--- [EMAIL PROTECTED] wrote:
> I agree, it should be on the stack, but the values
> don't show up. Does anyone have an example of this
> that works?
I have a ScopedModelDriven example, but it's really,
really boring.
IIRC there's a ModelDriven example in showcase, but
it's even more boring than
I put my validation code in the validate() method and use addFieldError().
To avoid validation to be performed on initial form display, I made a
mapping like this:
bookedTiles
reservationTiles
errorTiles
and call the action "reservation_input". Struts knows then that it
should not perfor
GREAT!!! It works! You guys are awesome. Special thanks to Dave and Wendy
for not giving up on me :).
Thanks again,
Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | [EMAIL PROTECTED]
-Origi
I agree, it should be on the stack, but the values don't show up. Does
anyone have an example of this that works?
Then why have the modelDriven interface at all? What use is it?
Matt Luce
Wells Fargo Funds Management, LLC
414.577.7927
414.359.3537 Fax
--- Nicolás Pace <[EMAIL PROTECTED]> wrote:
> The correct way of populating the values IS
> declaring the getters and setters for each object
you
> want to populate.
If you implement ModelDriven then the model object
returned should be on the object stack allowing
non-qualified access on the form
On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:
I moved my build.bat file to the root level, and am only using one file to
build the code, the test, and run the test. This is the content of
build.bat:
@echo off
set
CLASSPATH=WEB-INF\lib\xwork-2.0.1.jar;WEB-INF\lib\junit-4.3.1.jar;WEB-I
Your classpath does not include Commons Logging, hence the
NoClassDefFoundError exception. Note that as written, your batch file
is overwriting any classpath you may otherwise have had before that...
if your intent was to add to the classpath, you need to add %classpath%;
either at the beginni
On 6/9/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I'm working with Struts 2.0.6 and I'm trying to use the ModelDriven
Interface. However, I seem to be having some troubles. My actionClass
implements ModelDriven, but the values on the page don't fill with the
values of the object returned
I'm working with Struts 2.0.6 and I'm trying to use the ModelDriven
Interface. However, I seem to be having some troubles. My actionClass
implements ModelDriven, but the values on the page don't fill with the
values of the object returned by getModel(). If I explicitly declare
the getXxx() metho
--- Session Mwamufiya <[EMAIL PROTECTED]> wrote:
> The output I get is:
> java.lang.NoClassDefFoundError:
> org/apache/commons/logging/LogFactory
That's because you don't have all the dependent
classes on your classpath, like I said in an earlier
email.
d.
_
I'm sorry to be dense about this, but it's not working for me. Here is what
I've done:
I moved my build.bat file to the root level, and am only using one file to
build the code, the test, and run the test. This is the content of
build.bat:
@echo off
set
CLASSPATH=WEB-INF\lib\xwork-2.0.1.jar;WEB
Sure, it's really simple:
// this is action is
configured in spring
/update.jsp
/update.jsp
/update.jsp
When it goes to the "input" result, the values I typed in are no longer
present.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent
On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:
I'm running the test from "WEB-INF/scr/Test" where both
"HelloWorldTest.java" and "HelloWorldTest.class" are located.
If you changed the package for the action, you need to do the same for
the test. Do they both have "package helloworld;
--- Session Mwamufiya <[EMAIL PROTECTED]> wrote:
> - WEB-INF/scr/Test: my test java files, including
> HelloWorldTest.java; as
> well as the compiled class files for test java files
> - WEB-INF/classes: contains struts.xml
> - WEB-INF/classes/helloworld: the compiled class
> files for the regular j
Hi Dave,
I followed the clean setup from the struts 2 tutorial page to set up my
directory. It looks like this from my app root folder in Tomcat's webapps
folder:
- jsp pages are in the root directory
- META-INF
- WEB-INF: contains web.xml
- WEB-INF/lib: the 5 jars required to run struts 2 + JUni
Okay, what is your directory structure? Are both .java
/ .class files in the same directory? What directory
are you running the tests from?
(That doesn't seem like enough .jar files for a
working CLASSPATH, either, but I don't know what
dependencies XWork has.)
--- Session Mwamufiya <[EMAIL PROT
Here's my classpath:
set
CLASSPATH=..\..\lib\xwork-2.0.1.jar;..\..\lib\junit-4.3.1.jar;..\..\classes
I add the last path item in order to access the "HelloWorld.class" class
file.
Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Com
What is your CLASSPATH?
--- Session Mwamufiya <[EMAIL PROTECTED]> wrote:
> Thanks for the info; however, though the test
> compiles with no issues and
> creates a "HelloWorldTest.class" file in the same
> directory as the
> "HelloWorldTest.java" file, I keep getting an error
> when I try to run t
--- Matt Luce <[EMAIL PROTECTED]> wrote:
> Has anyone attempted to use programmatic validation
> in Struts 2?
Sure, although I still used the validation interfaces.
What does your mapping look like?
d.
_
Thanks for the info; however, though the test compiles with no issues and
creates a "HelloWorldTest.class" file in the same directory as the
"HelloWorldTest.java" file, I keep getting an error when I try to run the
test, which states that if can't find the class HelloWorldTest (though it is
there i
Has anyone attempted to use programmatic validation in Struts 2? When I
add an actionError and return INPUT, it properly goes back to the page
with the form, but it does not keep the values that I typed. Shouldn't
that work? This is how it worked in Struts 1.
package com.company.action;
i
On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:
I currently build my java files with a .bat files that simply
calls on javac and places the class files where I want them.
That's the info I was looking for. :)
Are you already able to compile the test? (That will tell me you've
alread
Yes, Dave is right, it's the test that I'm interested in.
Thanks,
Session A. Mwamufiya
Carnegie Mellon University
MBA | Tepper School of Business
MSE (software eng.) | School of Computer Science
T: (412) 508-5455 | [EMAIL PROTECTED]
-Original Message-
From: Dave Newton [mailto:[EMAIL PR
That's already over my head Wendy, I've never used Maven, and it seems
complicated. I currently build my java files with a .bat files that simply
calls on javac and places the class files where I want them. I would prefer
to keep things as simple as this, because trying to understand Maven would
--- Deepak Kumar <[EMAIL PROTECTED]> wrote:
> Please chekck
>
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml
Hmm, I didn't see anything there regarding the tests,
which I think is what the OP was asking about?
d.
_
On 6/9/07, Session A Mwamufiya <[EMAIL PROTECTED]> wrote:
That's exactly the one Wendy! I wasn't using an IDE to code the java pages for
the HelloWorld tutorial, but my IDE of choice, if one is needed for the test,
is Eclipse 3.2.
An IDE is not required. The tutorial assumes you have some
Please chekck
http://www.roseindia.net/struts/struts2/struts-2-hello-world.shtml
Thanks
-Original Message-
From: Session A Mwamufiya [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 09, 2007 11:37 PM
To: Struts Users Mailing List
Subject: Re: running the test in the HelloWorld tutorial
Th
HI,
Here is good collection of Struts 2 Tutorials
http://www.roseindia.net/struts/struts2/index.shtml
Thanks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
That's exactly the one Wendy! I wasn't using an IDE to code the java pages for
the HelloWorld tutorial, but my IDE of choice, if one is needed for the test,
is Eclipse 3.2.
Thanks a bunch
Session
> On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:
>
>> I've been able to set up struts 2
On 6/9/07, Session Mwamufiya <[EMAIL PROTECTED]> wrote:
I've been able to set up struts 2 after a long review of everything needed,
and am now looking to run the test that was given in the HelloWorld tutorial
to test the HelloWorld action. I understand what the code does, but what do
I need to
Hello,
I've been able to set up struts 2 after a long review of everything needed,
and am now looking to run the test that was given in the HelloWorld tutorial
to test the HelloWorld action. I understand what the code does, but what do
I need to do to run the test and get its results from with
Or, you can use the s:text tag (assuming you are using struts 2) and:
where format.decimal is defined in a resource bundle somewhere (see
http://cwiki.apache.org/confluence/display/WW/Localization for
details) as:
format.decimal={0,number,###.##}
The text tag reference
(http://cwiki.apache
santhu123 wrote:
how can i call a struts action classes without pressing the submit button in
a page
Can you give more details? example ??
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
--- santhu123 <[EMAIL PROTECTED]> wrote:
> how can i call a struts action classes without
> pressing the submit button in a page
I'm not sure what you want to do.
Any URL can be mapped to a Struts action.
Are you talking about calling a class method from a
JSP page?
d.
_
how can i call a struts action classes without pressing the submit button in
a page
--
View this message in context:
http://www.nabble.com/calling-a-struts-action-classes-without-pressing-the-submit-button-in-a-page-tf3894117.html#a11039629
Sent from the Struts - User mailing list archive at Nab
One of the useful enhancements in Struts 2.0 is the introduction of AJAX Theme
[Jesintha Priyadarshini L ] The Ajax theme extends the xhtml theme
with AJAX features. The theme uses the popular DOJO AJAX/JavaScript
toolkit. The new AJAX features include:
* AJAX Client Side Validation
* Remo
Hello,
I m new to struts. I m facing a proble with struts checkboxes.
How have multiple checkboxes in my jsp page. The value of these checkboxes
are saved in the database i.e. a 'Y' for a check box that is checked and a
'N' for a checkbox that is not selected. now I have to show these check
boxes
2007/6/9, Shuai Zheng <[EMAIL PROTECTED]>:
Dear All,
I want to keep all the numeric in my system with 2 decimal places only. What
is the best way to do it?
Use fmt:formatNumber contained in JSTL:
http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/fmt/formatNumber.html
HTH
Antonio
---
47 matches
Mail list logo