Hi All,
I am new to struts,i have developed a small application but it is not
running,it is displaying the index page correctly but not forwarding the
request.i developed the application using my eclipse.when i checked the
tomcat log file it is showing the exception that it is not able to find
hello friend,
I am also not having that much experience so why dont u
try this url.
http://www.michael-thomas.com/tech/apache/struts/struts_first_steps.htm
this url contains Apache link and from there u download one sturts binary
file (suppose if u r doing struts1.3.8
thks ajay for helping me out but can u point out watcan be the cause of this
error as pari know i have configured the appliocation correctly...
On 10/3/07, AJAY KUMAR UPPALAPATI [EMAIL PROTECTED] wrote:
hello friend,
I am also not having that much experience so why dont u
try
exadel.com?
--- AJAY KUMAR UPPALAPATI [EMAIL PROTECTED] wrote:
where can i get help regarding this can u guide me.
thanQ
On 10/3/07, Nuwan Chandrasoma [EMAIL PROTECTED]
wrote:
This is not related to struts.
msg2ajay wrote:
Hello friends,
I just downloaded ExadelStudio
Hi all,
I integrated Struts with Ajax using DWR. For that I had to put the
ActionForm in session scope.
Now I am facing a strange problem.
When I change some values in the form, they are saved(marshalled) properly
at the backend(an XML file). But in the JSP, it shows old values only.
I suspect
2007/10/3, Ramita Gambhir [EMAIL PROTECTED]:
I integrated Struts with Ajax using DWR. For that I had to put the
ActionForm in session scope.
Why do you need to put it into session?
Now I am facing a strange problem.
When I change some values in the form, they are saved(marshalled)
Hi Antonio,
Thanks a lot for the reply :-)
I need to put the form into session to make it work with DWR(I had some
requirement). This part I cannot change.
Is there any way I can refresh the values in the Form object? I read
somewhere reset() function is not called in session scoped forms. If
I would like to use an own i18n system with the validation provided by
Struts 2 and XWork 2. The action-validation.xml will contain keys as
messages and those keys should be used in order to retrieve the messages
from my i18n system. There seems to be a TextProvider interface, thus I
could
--- aum strut [EMAIL PROTECTED] wrote:
thks ajay for helping me out but can u point out
watcan be the cause of this error as pari know i
have
configured the appliocation correctly...
Without your struts config file we can't help very
much -- *something* is wrong with either your library
I noticed the other day that the tiles plugin link says drop the plugin and
go. It specifically says there is nothing else to do! Realizing this is
the way plugins are supposed to plug in, the page sounds great. However,
with the tiles plugin, you have to drop a few tiles* jars in addition,
Hi,
I am using JCaptcha for captcha features. It is working fine. I have this
code in CaptchaServlet and this code save the captcha in request
public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws ServletException, IOException {
ImageCaptcha pixCaptcha =
Hi,
You can try using javascript, on button submit call a function which will
set row-index to a hidden field and which will be submitted with form. On
server side you can use this field to identify the row.
Regards,
Nikhil
On 10/2/07, JohnLangan [EMAIL PROTECTED] wrote:
I call the database
Hi all,
I want to format float and double values like this ##,###.## eg 45,000.09
Is there any tag that will do this for me or any global property to do this
thanks,
Regards
Vamsi krishna
2007/10/3, Ramita Gambhir [EMAIL PROTECTED]:
Is there any way I can refresh the values in the Form object?
What do you exactly mean with refresh?
I read
somewhere reset() function is not called in session scoped forms. If I
call
reset(), can it help?
Probably, but you have to override
I want to format float and double values like this ##,###.##
eg 45,000.09 Is there any tag that will do this for me or
any global property to do this
fmt:formatNumber value=${expression} maxFractionDigits=2
minFractionDigits=2/
Defaults to number type, which separates groups of three
hi dave i m pasting my struts-config file for the refrence.and as par the
dependencies i have used myeclipse as developing enviornment so it might be
possible that there is something wrong as i downloaded an example in warfile
form and when i deploy it in tomcat it worked fine but when i put my
At first glance it seems okay; maybe somebody else
will chime in. What library / jar files do you have in
WEB-INF/lib?
d.
--- aum strut [EMAIL PROTECTED] wrote:
hi dave i m pasting my struts-config file for the
refrence.and as par the
dependencies i have used myeclipse as developing
1 antlr
2 commons-beanutils
3 commons-digester
4 commons-fileupload
5 commons-logging
6 commons-validator
7 jakarta-oro
8 struts
These are the jar flies in the lib folder
On 10/3/07, Dave Newton [EMAIL PROTECTED] wrote:
At first glance it seems okay; maybe somebody else
will chime in. What
On 10/2/07, Kothari, Kailash [EMAIL PROTECTED] wrote:
Thaks Rick.
This will give me an instance of the parent bean OR the child bean.
What I need is a child bean pre populated with data from the parent
bean.
Ok, so just get ParentBean and then populate your subclassed bean...
public
On 10/2/07, JohnLangan [EMAIL PROTECTED] wrote:
I call the database and create an ArrayList of beans to hold the data. Using
JSTL I iterate over the list
to display the data in an html table inside a form in a JSP page.
c:set var=dataItems value=${lmdao.listingManagerData} /
c:forEach
There are a ton of things that can cause the obscure error you are
witnessing. You have to make sure the doctype definitions are correct
as well for web.xml and struts-config. I'd start with a working
example web.xml and struts-config (maybe the example app struts comes
with - and then start
hi,
I have the struts.xml definition as shown below that uses execAndWait
interceptor and Tiles. The problem is that either:
a) Using tiles the delaySleepInterval is ignored and the wait page never
refreshes i.e. when SimulationRunAction completes it is never redirected
to success result.
Hi,
Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There you
will find the minimum configuration.
Regards,
Ezequiel.
-Message d'origine-
De : Rick Reumann [mailto:[EMAIL PROTECTED]
Envoyé : mercredi 3 octobre 2007 16:42
À : Struts Users Mailing List
Objet : Re:
On 9/20/07, Frank W. Zammetti [EMAIL PROTECTED] wrote:
I think that *can* be true if you aren't careful. The thing that I've
found people tend to mess up when doing RIA development is that they think
they need to do things differently than they would if it was a plain
webapp. We put in place
Uppps,
That's for Struts 2.
-Message d'origine-
De : Ezequiel Puig
Envoyé : mercredi 3 octobre 2007 16:53
À : Struts Users Mailing List
Objet : RE : Struts Application is not working
Hi,
Take a look at: http://struts.apache.org/2.x/docs/simple-setup.html. There you
will find the
Hi to everybody.
I have a problem with a JSP page, I think this is a stupid question but I was
hours searching the Internet and found nothing.
What i wanna do is to pre-process a session attribute and then show a popup
window with the result.
My code is as follows:
a href=#
IIRC somebody asked why you couldn't just access the
session parameter in the action rather than sending it
as a request parameter. What was the answer to that
question?
d.
--- Diego Ezquerro [EMAIL PROTECTED] wrote:
Hi to everybody.
I have a problem with a JSP page, I think this is a
2007/10/3, Giovanni Azua [EMAIL PROTECTED]:
a) Using tiles the delaySleepInterval is ignored and the wait page never
refreshes i.e. when SimulationRunAction completes it is never redirected
to success result.
Can you post the Tiles definition and the JSP page in which you put the meta
2007/10/3, Diego Ezquerro [EMAIL PROTECTED]:
All that i want is to pass that session attribute (it isn't a String) to
fillTrazability action class.
Since it is a session-scoped attribute, why don't you read it directly in
your destination page, without passing any parameter?
Antonio
hola antonio,
Please find all the information below.
Muchas gracias por adelantado!
regards,
Giovanni
The tiles definition is:
*
definition name=webui.requestWait template=/tiles/layout.jsp
put-attribute name=title
On 10/3/07, Ted Husted [EMAIL PROTECTED] wrote:
Just to chime in late ... an Ajax library that does well the sort of
things Frank is describing is the Yahoo User Interface (YUI) Library.
Reading the source for the YUI library is an absolute pleasure!
Thanks Ted, I'll have to check that out.
wow, i'm feeling so stupid. i realized that just in this moment.
thank you.
Diego Ezquerro Bailac
Asturias, Spain
- Mensaje original
De: Dave Newton [EMAIL PROTECTED]
Para: Struts Users Mailing List user@struts.apache.org
Enviado: miércoles, 3 de octubre, 2007 17:09:12
Asunto: Re:
On 10/3/07, Rick Reumann [EMAIL PROTECTED] wrote:
Going to check out YUI now.
So far I haven't been too impressed with their data table models (they
seem pretty basic, not bad but I don't scrollable tables, movable
columns, etc, but maybe I'm missing it):
I plan on using extjs for the last chapter of the book I'm currently
writing as it impressed me quite a bit as well... I won't be using the
AJAX functionality, but as far as widgets go, looks very promising.
To Ted's point though, I haven't checked out the source code... YUI
absolutely has some
2007/10/3, Giovanni Azua [EMAIL PROTECTED]:
html
head
titletiles:getAsString name=title//title
meta http-equiv=Content-Type
content=text/html; charset=iso-8859-1 /
script type=text/javascript src=js/drop_down.js/script
style type=text/css
I actually did a lot of work with the DataTable. Again, what I liked
best is that I could follow the source, and extend it. For example, we
created a composite Find/List/Edit/View widget that let us set a list
of fields, field-types, labels, and validators in the JavaScript, and
get a complete
It looks like the execute method is misspelled as excute.
If you are using a modern IDE, it should show the execute method as
overriding the one provided by the base Struts Action class.
For Struts 1 development, MyEclipse 6 has some excellent tools that
can help you get started.
This is less
hi Antonio,
It works like a dream! :)))
Non ho visto quella, ma adesso funziona a posto :)
Grazie mille ancora ed buena serata,
saluti,
Giovanni
Antonio Petrelli wrote:
2007/10/3, Giovanni Azua [EMAIL PROTECTED]:
You have no meta refresh, just add:
meta http-equiv=refresh
thks Ted.
But what i came to know is some thing different initially i thought that it
is the action servlet which is not working but when i saw the log file of
tomcat it is showing me the exception CallsNotFound and the class is
AcionServlet.
I cross checked the configuration flies but thay are
Just a reminder that there will be several presentations of direct
interest to Struts developers at ApacheCon US 2007 Atlanta GA,
November 12-16.
* http://apachecon.com/multi/index.html
Struts Courses (you must pre-register to attend!)
* Migrating to Ajax (Ted Husted), 12 Nov @10a
Hi Ted I actually have two questions
First I decided to TRY to contribute to Struts2 so I already have SVN
project in my eclipse (MyEclipse) so thats all set so all I want is just
some actual work to do or TRY to do.
Second about this ApacheCon...will the power point or pdf slides be
available
I use Zero Conf and codebehind a lot, and I think they're both incredibly
useful. especially in this newer world of convention over configuration,
etc... When I have a package hierarchy all set up, i don't feel the need to
muck with struts.xml, because I can get directly down to coding.
I m getting the follwing exception in Tomcat
Root Cause -
java.lang.ClassNotFoundException: org.apache.struts.action.ActionServlet
at org.apache.catalina.loader.WebappClassLoader.loadClass(
WebappClassLoader.java:1340)
at org.apache.catalina.loader.WebappClassLoader.loadClass(
Thank you very much !
It works!
Following Your comments, I did:
=
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-tiles-plugin/artifactId
version${version.tiles}/version
scopecompile/scope
/dependency
to web.xml
the above looks like maven stuff..
You also need to add the jars that tiles requires:
copy the Tiles dependencies JARs:
* Jakarta Commons BeanUtils 1.7.0 or above;
* Jakarta Commons Digester 1.8 or above;
* Jakarta Commons Logging (at least API) 1.1 or above
http://tiles.apache.org/getting_started.html
I
Thanks Nikhil and rickcr for the suggestions.
I have resolved the problem by creating a form within the iterator so that
each row is a separate form. Each row (form) uses the same ActionForm and
Action and returns the row specific info. This works for what we want as
only one row on the page
Thank you all for your responses. I apologize that mine is so delayed. I am
going to try using 2.1 with the cache attribute and see what the difference
is. It sounds like it should be a major improvement. I believe the problem
was that it was requesting so many files and it appeared the
2007/10/3, Emi Lu [EMAIL PROTECTED]:
At least for now I have loaded Tiles 2 successfully without BeanUtils
and Digester jars :)
It's impossible, digester is needed to read XML files.
Antonio
-
To unsubscribe, e-mail: [EMAIL
At least for now I have loaded Tiles 2 successfully without BeanUtils
and Digester jars :)
It's impossible, digester is needed to read XML files.
I forgot the tiles jars that I downloaded few days ago :(
Sorry!
The full jar lists I had:
On 10/3/07, Pavel Sapozhnikov [EMAIL PROTECTED] wrote:
Hi Ted I actually have two questions
First I decided to TRY to contribute to Struts2 so I already have SVN
project in my eclipse (MyEclipse) so thats all set so all I want is just
some actual work to do or TRY to do.
The place to start
I found some error messages buried in my log file. It seems 2.1 is not
working for me because Dojo was moved to a plugin which I do not have. Is
there anyway to get a compiled version of this plugin? Or do I have to
download 2.1 from source control and compile it myself?
Thanks,
Ben
I don't think it is on the snapshots.
musachy
On 10/3/07, chengas123 [EMAIL PROTECTED] wrote:
I found some error messages buried in my log file. It seems 2.1 is not
working for me because Dojo was moved to a plugin which I do not have. Is
there anyway to get a compiled version of this
I have a page that has some dynamic contents that is not part of the
form that is being submitted. When validation fails after the form is
submitted, I lost the dynamic contents. I use tiles and the result
input is defined as type tiles that points back to the same page.
Is there a way get
Thanks a lot Rick. That gives me a new area to explore.
The BeanUtils method - BeanUtils.copyProperties(Object target, Object
src) - does give me a shallow copy of an object, Im trying to figure out
how to get a deep copy..
Thanks !
Kailash.
-Original Message-
From: Rick Reumann
Hi,
How I can set the namespace value in ServletActionRedirectResult in @Result
annotation?
I try:
@Result( name = success, value = view, params = { namespace,
/myNamespace }, type = ServletActionRedirectResult.class )
But the namespace is ignored.
[]'s
Rodrigo C. A.
--
View this message
Hi Emi.
here's the example:
package name=default extends=tiles-default
...
/package
see? it's enough that your packages extend tiles-default.
Best regards.
--
Robi
Emi Lu wrote:
Thank you very much !
It works!
Following Your comments, I did:
=
dependency
Ok. I tried downloading from SVN, but got a build error. Maven could not
find xwork-2.1-SNAPSHOT-sources.jar. I had to download it manually from
maven.opensymphony.com. However, despite following the instruction maven
was giving me I could not figure out how to build the project with the
IIRC there is still an issue with trunk regarding the
opensymphony id; it's something like
xwork.opensymphony.com and needs to be just
opensymphony... um...
Index: core/pom.xml
===
--- core/pom.xml(revision 580129)
+++
On 10/3/07, Kothari, Kailash [EMAIL PROTECTED] wrote:
Thanks a lot Rick. That gives me a new area to explore.
The BeanUtils method - BeanUtils.copyProperties(Object target, Object
src) - does give me a shallow copy of an object, Im trying to figure out
how to get a deep copy..
I might be the
here's the example:
package name=default extends=tiles-default
...
/package
see? it's enough that your packages extend tiles-default.
It works as well! That's nice! Thank you Robi.
I did:
===
[1] deleted
result-types
result-type name=tiles
There has been a little discussion recently about the JFreeChart plugin on
JIRA. The issue is that the plugin defines a package in its
struts-plugin.xml which does not extend struts-default. Therefore
JFreeChart actions cannot (without seemingly unnecessary extra work), for
example, have
Ok, that's quite interesting..
I think I just need to find a efficient way of doing the deep copy
because my parent class has thousands of attributes in all including
nested attributes..
Thanks !
-Original Message-
From: Rick Reumann [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October
If this is a known issue, why doesn't someone commit the change? I
understand this is the development branch, but it's a pretty critical issue
to not be able to build the project. Among other things, it has to be a
deterrent in attracting new developers.
If I make that change I get:
On 10/3/07, Kothari, Kailash [EMAIL PROTECTED] wrote:
Ok, that's quite interesting..
I think I just need to find a efficient way of doing the deep copy
because my parent class has thousands of attributes in all including
nested attributes..
Hmm thousands of attributes? I doubt you are
I don't know enough about Maven to be able to help you
much, but it may be as simple as clearing your repo
cache (or whatever it's called). I am building from
trunk with the below change w/o any difficulty, at
least as of about a week ago.
--- chengas123 [EMAIL PROTECTED] wrote:
If this is a
in order to go third party classes you must have source attached those third
party jars or you could use jad plugin (http://jadclipse.sourceforge.net/).
On 10/2/07, Viplav Kallepu [EMAIL PROTECTED] wrote:
Thanks for the reply.. when I put breakpoints in my action class and start
the server
I've found that Eclipse can be confusing when you want to attach the
source of a library. Namely, you can't right click a library and
select properties when in the J2EE view. You can go to the Java view
and go there to attach the source there. If you are still having
mysterious issues, you might
You're right about letting users edit these attributes - they don't.
The reality is that the form bean is used to hold a lot more than form
data, it also holds info that's typically stored in the session.
I have to do some thinking about simplifying this like you said..
-Original
In my jsp file i have threes:selectcombo boxes. 1 2 needs to be loaded
from the db and the 3rd needs to loaded based on the (2)second combo box
selection. I have implemented in such a way that in my action i have 3
collection objects. Intially b4 moving to jsp iam loading two collection
object
Yeah, you're going to have to load them every time. You could store
the collections in session or application scope if that's feasible but
other than that you don't really have a choice. Alternately, I think
the cleanest way of doing this might be to make an Ajax call to load
the third selection
70 matches
Mail list logo