Just a thought, are you actually using transactions?
If so why not modify the interceptor to only commit if a SUCCESS is returned
or perform a rollback if ERROR is returned from the action invocation.
Al.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 02
Hi,
I've got the survey-like application. Survey is divided into several
pages and each of those is represented by a dynamic action form. All
forms are stored in the session.
Once survey is completed it's stored in the database and anyone can go
back at any time, retrieve his/her results, change
In my jsp pages I often need to limit the number of decimals and I learnt how
to create a properties file with the same name of the action and use the
s:text tag:
s:text name=un.decimales:param value=%{value *
#sensore.scale}//s:text
I ended up with many properties files which have most 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=#
This may be a dumb question, but if it's a session attribute, why pass
it as a request parameter? Can't you just pull it from the session in
the target action?
-Wes
On 10/2/07, Diego Ezquerro [EMAIL PROTECTED] wrote:
Hi to everybody.
I have a problem with a JSP page, I think this is a stupid
On top of that, that won't work on IE. set showLoadingText=false on
the submit tag.
musachy
On 10/1/07, Moacir Cardoso [EMAIL PROTECTED] wrote:
Hi,
I'm unable to make my ajax form work
body
div id='two' style=border: 1px solid yellow;binitial content/b/div
s:form
id=theForm2
I'm back coding in Strut1.x after being away from it for a while
(since 1.1). What type of Action do most people prefer to use now and
days? I'm typically using MappingDispatchAction which I really like.
Other than the submit button of course, other buttons I end up adding
a little javascript that
I would like to do something like this:
(e.g. http://foo/view.action?page=help.vm)
action name=view
class=com.opensymphony.xwork2.ActionSupport
interceptor-ref name=defaultStack /
result
type=velocity/templates/screens/#request['page']/result
/action
I know I
There's nothing preventing you from adding back commons-beanutils or OSCore (
http://www.opensymphony.com/oscore/ ) to get back to that level of
functionality.
I'm not 100% sure why this mechanism is necessary. If you name your getter
on your TestBean appropriately, S2 should take care of it.
Hi all,
i am new to the struts,i am developing a struts based small application for
loggin and then to forward the control to the sucess.html if loggin succeed
else to failure.
my index form is being displayed ok.but when i submittedthe form it is
showing the blank page.
the criteria for the
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 var=item items=${dataItems} varStatus=row
I can give each
Yes. But I am using Spring managed transactions that in my understanding
are outside of the struts Interceptor stack.
My DAO's are annotated with the
org.springframework.transaction.annotation.Transactional annotation and
thus have their transactions managed as detailed here:
Also, you might want to look at URLRewrite
http://tuckey.org/urlrewrite/ That is what I've been using in S1 and S2 to
have
my urls go from this : /myAction.do?p1=v1p2=v2 to
/myAction/p1,v1/p2,v2/
I'm also using the zero config and code behind plugins in struts2 that also
work to hide
hi all,
I am on Struts 2.0.9 here ... using datetimepicker with the following
displayFormat setting
makes the control work incorrectly i.e. permanently display 2007
only and wrongly:
displayFormat=MMdd
using separators works fine though e.g.
displayFormat=.MM.dd
TIA,
regards,
On 10/2/07, setecastronomy [EMAIL PROTECTED] wrote:
I wonder if there is a smarter and centralized way to store the formatting
informations used in different jsp pages associated to different actions.
I believe you can either do it at the package level using something like:
That's what it does indeed.
musachy
On 10/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Yes. But I am using Spring managed transactions that in my understanding
are outside of the struts Interceptor stack.
My DAO's are annotated with the
Hello,
May I know where to find tutorials for struts 2 + Tiles 2 ?
I'd like to know
. how to setup Tiles 2 with struts2
. Layout examples of using Tiles2 with struts2
Thanks a lot!
-
To unsubscribe, e-mail: [EMAIL
--- Emi Lu [EMAIL PROTECTED] wrote:
May I know where to find tutorials for struts 2 +
Tiles 2 ?
http://struts.apache.org/2.x/docs/tiles-plugin.html
http://tiles.apache.org/tutorial/index.html
The S2 plugin link *may* be somewhat dated; if there
are changes needed please follow up and / or
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.
Note that we cannot get an instance of the parent bean and downcast it
to an instance of a child bean like -
child bean = ((child
You can throw an exception , which you can specify in your
@Transactional( rollbackFor = )
to have it rollback.
jon_french wrote:
Yes. But I am using Spring managed transactions that in my understanding
are outside of the struts Interceptor stack.
My DAO's are annotated with the
--- Kothari, Kailash wrote:
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.
I'd probably consider hooking in to the request
processor (or chain if you're using 1.3, I suppose)
and implement the
Consider the following segment from my struts.xml:
action name=Item class=action.ItemAction
result name=input/jsp/items/itemEntry.jsp/result
result name=success/jsp/items/itemView.jsp/result
result name=error/jsp/error.jsp/result
/action
What could be the cause for an action call not
I found a site that explains a similar problem:
http://www.nabble.com/-s2--no-result-defined-error-after-failed-validation---can-someone-help--t4030311.html
My problem is also trying to find an 'input' method. I have not even defined an
input method but it is still looking for it. I tried
hi all,
i have developeda small application in struts.but itis not
running.andtomcat log file is giving the error that it is unable to
find ActionServlet
calss.
i have configured ActionServlet class in web.xml as
servlet
servlet-nameaction/servlet-name
I'd turn up the logging level. My initial suspicion
would be a configuration error, but it's kind of hard
to say at the moment.
--- aum strut [EMAIL PROTECTED] wrote:
hi all,
i have developeda small application in struts.but
itis not
running.andtomcat log file is giving the error that
it
I've been playing with Struts2+Spring2 beans+Hibernate and that all
works very well.
So, now I am trying something simpler ... so consider this a new
web-project altogether with just Struts2 ... no Spring2 and no Hibernate.
Basically, I want to call a pre-Action action that loads a bean into a
I hav configured all the files in the right way and I m using My Eclipse.
Its showing in the tomcat log files that its not getting the ActionServlet.
On 10/3/07, Dave Newton [EMAIL PROTECTED] wrote:
I'd turn up the logging level. My initial suspicion
would be a configuration error, but it's
--- Tom Holmes Jr. [EMAIL PROTECTED] wrote:
Basically, I want to call a pre-Action action that
loads a bean into a session and then calls a JSP
page
... simple right?
Right.
Is that all I need? Is there anything else? Can
you send me some links for examples?
What exactly are you asking /
--- aum strut [EMAIL PROTECTED] wrote:
I hav configured all the files in the right way
Cool... but if everything was configured properly it
would probably work.
Its showing in the tomcat log files that its not
getting the ActionServlet.
This is usually due to a configuration error, missing
While developing a Struts 2 app, I've encountered a bug within the framework.
I've debugged this and I believe I've identified the exact cause of the
issue. I'd like to try a fix and then submit it as a recommended patch.
However, before I even try to add my code change, I am having trouble
can u send me a small demo project in struts.so that i cn take help frm
it
On 10/3/07, Dave Newton [EMAIL PROTECTED] wrote:
--- aum strut [EMAIL PROTECTED] wrote:
I hav configured all the files in the right way
Cool... but if everything was configured properly it
would probably
--- aum strut [EMAIL PROTECTED] wrote:
can u send me a small demo project in struts.so
that i cn take help frm it
No, but there are many, many Struts tutorials and
projects searchable on the web, including those that
come with Struts itself.
Perhaps posting some configuration beyond
I work with the trunk and I get test failures periodically. I usually
ignore them so that I can do whatever I need to do. To get maven to
create the JAR file, you have to tell it to skip tests -
mvn -Dmaven.test.skip=true
On 10/2/07, MassimoH [EMAIL PROTECTED] wrote:
While developing a
Hi,
On http://struts.apache.org/2.x/docs/release-notes-209.html, I can
read : Please help us test these brave new features. Feedback
appreciated.
So, here is some feedback about Zero configuration :
- the feature is pretty cool, though not much documented. For instance,
it was not obvious to me
Hello,
I looked at this page:
http://struts.apache.org/2.x/docs/tiles-plugin.html
Done:
=
[1] Added
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-tiles-plugin/artifactId
version${version.tiles}/version
scopecompile/scope
/dependency
to web.xml
[2]
Hi,
I am using struts 1.3.8 with eclipse 3.1 (wtp) and tomcat 5.5. Can anyone
please tell me how to enable debugging in it like we debug the core java
application in eclipse. I googled it but the I wasn't able to find a single
correct solution to try (I cant use myeclipse because I have to use
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
-Jason
Hello Emi.
see below my comments.
Emi Lu wrote:
Hello,
I looked at this page:
http://struts.apache.org/2.x/docs/tiles-plugin.html
Done:
=
[1] Added
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-tiles-plugin/artifactId
version${version.tiles}/version
Hello Emi.
see below my comments.
Emi Lu wrote:
Hello,
I looked at this page:
http://struts.apache.org/2.x/docs/tiles-plugin.html
Done:
=
[1] Added
dependency
groupIdorg.apache.struts/groupId
artifactIdstruts2-tiles-plugin/artifactId
version${version.tiles}/version
Is something like this legal in a Struts 2 custom component:
s:component template=/my/custom/component.vm
s:param name=key1 value=value1/
s:param name=key2 value=value2/
Some text to be wrapped in my component.
s.text name=someProperty /
/s:component
In other
Remote debugging is the keyword. WTP already supports that.
On 10/2/07, Viplav Kallepu [EMAIL PROTECTED] wrote:
Hi,
I am using struts 1.3.8 with eclipse 3.1 (wtp) and tomcat 5.5. Can anyone
please tell me how to enable debugging in it like we debug the core java
application in eclipse. I
I think the Zero Configuration idea is a nice idea but the
implementation is far from sufficient and will probably get better
over time (hopefully). The problem mainly is with the limit of
annotations. There are things that can be represented in struts.xml
that have no chance of being
Thanks for the reply.. when I put breakpoints in my action class and start
the server in debugging mode and run my application in browser.. its
stopping at the breakpoint and not going forward(It is showing it in the
debug console)..I feel it is not able to find the source files as in
.deployables
Yes I do.
Dave Newton wrote:
Do you have an s:head theme=ajax/ tag?
--- Moacir Cardoso [EMAIL PROTECTED] wrote:
Hi,
I'm unable to make my ajax form work
body
div id='two' style=border: 1px solid
yellow;binitial content/b/div
s:form
id=theForm2
cssStyle=border: 1px solid
If you set the debug flag do you get any error
messages?
--- Moacir Cardoso [EMAIL PROTECTED] wrote:
Yes I do.
Dave Newton wrote:
Do you have an s:head theme=ajax/ tag?
--- Moacir Cardoso [EMAIL PROTECTED] wrote:
Hi,
I'm unable to make my ajax form work
body
div
Hello friends,
I just downloaded ExadelStudio 4.0.4 for Eclipse 3.2.2 .But when i tried to
do Struts project, i am geting a message as Evalution Version Expired. Why
it is showing like that.
ThanQ in Adv,
Ajay
--
View this message in context:
This is not related to struts.
msg2ajay wrote:
Hello friends,
I just downloaded ExadelStudio 4.0.4 for Eclipse 3.2.2 .But when i tried to
do Struts project, i am geting a message as Evalution Version Expired. Why
it is showing like that.
ThanQ in Adv,
Ajay
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 4.0.4 for Eclipse 3.2.2 .But when i tried
to
do Struts project, i am geting a
It seems like the doublemultiple attribute set to true without the multiple
attribute set to true in doubleselect doesn't work.
If I set both multiple and doublemultiple attributes to true, then I'm able to
select multiple choices on the second select and as well as the first select
but
Hi, the location of struts.xml in Struts 2, should be in WEB-INF/classes or
just WEB-INF??
I've a struts.xml in WEB-INF/classes,
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
On 10/2/07, Fredy Provoste [EMAIL PROTECTED] wrote:
Hi, the location of struts.xml in Struts 2, should be in WEB-INF/classes or
just WEB-INF??
Technically it has to be on the CLASSPATH. The most common place to
put it is WEB-INF/classes.
(*Chris*)
51 matches
Mail list logo