Hello,
I am building a struts2-hibernate-mysql application. A user after
navigating through some pages reaches a pages where all the records on
the database are listed and can perform crud operations.
The jsp which iterates and displays the records is:
%@ taglib prefix=s uri=/struts-tags%
, or do I have something wrong in the jsp code?
The actual action ode works ok, I believe the issue is within that jsp only.
Again, I appreciate any further advice on this.
Regards to everyone.
On Fri, Jun 5, 2009 at 9:32 PM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote
code?
The actual action ode works ok, I believe the issue is within that jsp only.
Again, I appreciate any further advice on this.
Regards to everyone.
On Fri, Jun 5, 2009 at 9:32 PM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
s:hidden name=person.id value
...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
s:hidden name=person.id value=#attr.id label=Primary Key /
I told you #attr.id on javaranch; I meant #parameters. This information is
readily available via the S2 docs. [1, 2]
IIRC the value attribute expects a literal; I'd wrap
Hello everyone,
I am having some issues deploying a struts2 application at godaddy and was
wondering if anyone has dealt with something similar in the past. The
application runs fine on my local machine with tomcat 6.0. My next step was
to upload and deploy at godaddy dedicated server which is
for a while that httpd should serve static content and
tomcat serve jsps only. But any more I find tomcat's performance to be
good enough to serve the static content as well.
On 6/21/09, Dave Newton newton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
I am having some issues deploying
, Dimitrios Christodoulakis
dimi@gmail.com wrote:
Thanks for the input. I'll test it locally under 5.5. and will dig deeper
in the logs and see what I can find. I will let you know.
Appreciate the insight.
On Sun, Jun 21, 2009 at 11:00 AM, Wes Wannemacher w...@wantii.com wrote:
I'm with dave
performance, but I like to stick to simple over
premature optimization. I am on my BlackBerry, so when I boot up my
laptop I can send an example config.
-W
On 6/21/09, Dimitrios Christodoulakis dimi@gmail.com wrote:
It seems that indeed the filters are not starting properly: The
catalina.out
Hello,
while doing development I am conforming to the versions provided by
our hosting service. I am trying to select the most suitable version
of the framework, java and tomcat so, just wanted to ask if there are
known compatibility issues with the following combination:
Fixed:
jdk1.5.0_17
glad to use the latest struts2,spring and hibernate with the slightly
older jdk and tomcat.
Thanks for your answer.
On Wed, Jul 1, 2009 at 10:00 PM, Wes Wannemacherw...@wantii.com wrote:
On Wednesday 01 July 2009 21:56:17 Dimitrios Christodoulakis wrote:
Hello,
while doing development I am
2009 21:56:17 Dimitrios Christodoulakis wrote:
Hello,
while doing development I am conforming to the versions provided by
our hosting service. I am trying to select the most suitable version
of the framework, java and tomcat so, just wanted to ask if there are
known compatibility issues
Hello list,
I am exposing a collection called entries in my action class
(SetJournalEntry entries;), with all the appropriate getters and
setters. In the result jsp of this action I am using the display tag
to output the content of the collection:
s:set name=entries value=entries scope=request/
without the s:set tag?
Dimitrios Christodoulakis wrote:
Hello list,
I am exposing a collection called entries in my action class
(SetJournalEntry entries;), with all the appropriate getters and
setters. In the result jsp of this action I am using the display tag
to output the content
Hello list,
I have successfully used the display tag to iterate over a collection
which is exposed in an action class. On each row in addition to the
columns displaying the fields of each object in the collection, I
embed two more struts-tag urls: Update and Remove.
The objective is to have an
Hello,
This is a quick question that I am having, more on the theory side.
So, what happens to properties exposed on the valuestack by some
action which was called in the past, meaning the application workflow
has progressed and other actions were called after that. Is that
property somehow still
Thanks, I will look into action chaining and see if it can help me in
this situation.
On Sun, Jul 12, 2009 at 8:22 AM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
This is a quick question that I am having, more on the theory side.
So, what happens to properties
...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
Thanks, I will look into action chaining and see if it can help me in
this situation.
Oh, please don't; it just leads to maintenance nightmares.
Dave
-
To unsubscribe, e-mail
Appreciate the warning. Thanks, I'll try to avoid that then. Alright,
I'll take the chance to re-state my problem in a new thread.
On Sun, Jul 12, 2009 at 11:15 AM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
Thanks for the warning. Actually, I thought it might
Good afternoon,
I am re-stating a problem I am facing, for which I provided a kind of
complicated description before: Deleting objects from a collection.
The owning, parent object is a hibernate persistent entity, which
contains a collection of components (value-type objects). Such
components
wrote:
Dimitrios Christodoulakis wrote:
I tried adding one more column like this, hoping the entry property
will be available to the DeleteEntry action via the mini-form.
display:column
s:form action=DeleteEntry
s:property value=entry/
s:hidden name=id value=%{goalToAchieve.id
switching to entities?
Thanks again.
On Sun, Jul 12, 2009 at 5:03 PM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
I tried adding one more column like this, hoping the entry property
will be available to the DeleteEntry action via the mini-form.
display:column
String entry;
�...@temporal(TemporalType.TIMESTAMP)
�...@column(nullable = false, updatable = false)
private Date insertDate = new Date();
plus the appropriate getters and setters..
On Sun, Jul 12, 2009 at 5:03 PM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios
Thanks for the reply. Well, entry is an instance of a separate class:
@Embeddable
public class JournalEntry {
@org.hibernate.annotations.Parent
private GoalToAchieve goalToAchieve;
@Column(length = 255, nullable = false)
private String entry;
Yes, that is a great suggestion actually. What I did was to add a new
field based
System.currentTimeMillis(), but the problem is adding it as a url parameter.
For example, I am trying to add it as a url parameter below:
a href=s:url action='UpdateEntryForm'
s:param name=name
, Greg Lindholmgreg.lindh...@gmail.com wrote:
You are not providing enough information for anyone to help you. Since you
have changed your object and the jsp you had better include them with any
request.
On Mon, Jul 13, 2009 at 9:51 AM, Dimitrios Christodoulakis
dimi@gmail.com wrote:
Yes
Thanks for the comments Martin, I will try it out!
On Mon, Jul 13, 2009 at 9:46 AM, Martin Gaintymgai...@hotmail.com wrote:
@Table(name = TableNameGoesHere)
//the java file would use ForeignKey annotation as described
@org.hibernate.annotations.ForeignKey(name = FK_GOALTOACHIEVE_ID)
public
Remove/a
On Mon, Jul 13, 2009 at 10:48 AM, Dimitrios Christodoulakis
dimi@gmail.com wrote:
Thanks for letting me know. Alright, so:
This is the parent class:
@Entity
public class GoalToAchieve {
@Id @GeneratedValue
private Long id;
@org.hibernate.annotations.CollectionOfElements
, Jul 13, 2009 at 12:28 PM, Dimitrios Christodoulakis
dimi@gmail.com wrote:
I made the changes, but the view source indicates that the param
mark is not passed.
The url linked is formed like this:
/secure/DeleteEntryForm.action?name=firstName+lastNameid=1
The name and id params
=%{goalToAchieve.id} /
s:param name=mark value=%{mark} /
/s:url
Remove/a
On Mon, Jul 13, 2009 at 10:48 AM, Dimitrios Christodoulakis
dimi@gmail.com wrote:
Thanks for letting me know. Alright, so:
This is the parent class:
@Entity
public class GoalToAchieve {
@Id
as
to
build the URL.
On Mon, Jul 13, 2009 at 12:28 PM, Dimitrios Christodoulakis
dimi@gmail.com wrote:
I made the changes, but the view source indicates that the param
mark is not passed.
The url linked is formed like this:
/secure/DeleteEntryForm.action?name=firstName+lastNameid=1
.
And I don't know anything about display:table so you will need to look
up
how to access the properties of the entities you are iterating over so as
to
build the URL.
On Mon, Jul 13, 2009 at 12:28 PM, Dimitrios Christodoulakis
dimi@gmail.com wrote:
I made the changes
syntax to work with
display:table
iterator.
And I don't know anything about display:table so you will need to
look up
how to access the properties of the entities you are iterating over so
as to
build the URL.
On Mon, Jul 13, 2009 at 12:28 PM, Dimitrios Christodoulakis
dimi
Hello,
I was hoping to hear the community's views about unit testing a
Struts2 application which is integrated with Spring and Hibernate. My
plan is to unit test the actions with the framework's interceptors
running, rather than each action class in a stand-alone isolated
fashion.
What approach
.
This gives me a lot of flexibility for testing, sometimes I test against an
actual database (with hibernate) and sometimes I mock the services that the
actions use.
On Thu, Jul 16, 2009 at 10:43 AM, Dimitrios Christodoulakis
dimi@gmail.com wrote:
Hello,
I was hoping to hear
Of course you're right Greg, it's not a contest... no right or wrong
here. I am glad to hear all the views coming from everyone and
commiters too.
Well, my original motivation was to learn how to do this kind of
tip-to-tail, all inclusive testing, with the interceptor stack
involved.
For example
Primarily for the sake of learning the inner mechanics of the struts2
framework, and unit testing, I took some time to study and experiment
with the code published at:
http://depressedprogrammer.wordpress.com/2007/06/18/unit-testing-struts-2-actions-spring-junit/
When testing (junit 4) an action
you would suggest I start with?
Also, many thanks to Wes, for pointing out a good starting point for
understanding Struts2 at a deeper level by examining the code!
Regards to all.
On Mon, Jul 20, 2009 at 9:26 AM, Haroon
Rafiqueharoon.rafi...@utoronto.ca wrote:
On Yesterday at 9:16pm, DC=Dimitrios
the same errors in the same test cases.
On Mon, Jul 20, 2009 at 5:02 PM, Haroon
Rafiqueharoon.rafi...@utoronto.ca wrote:
On Today at 4:32pm, DC=Dimitrios Christodoulakis dimi@gmail.com wrote:
DC Thanks Haroon for the handy advice. That seems to do the trick as far
DC as the session object
in the same test cases.
On Mon, Jul 20, 2009 at 5:02 PM, Haroon
Rafiqueharoon.rafi...@utoronto.ca wrote:
On Today at 4:32pm, DC=Dimitrios Christodoulakis dimi@gmail.com
wrote:
DC Thanks Haroon for the handy advice. That seems to do the trick as far
DC as the session object
wrote:
On Today at 4:32pm, DC=Dimitrios Christodoulakis dimi@gmail.com wrote:
DC Thanks Haroon for the handy advice. That seems to do the trick as far
DC as the session object is concerned. The test passes now.
DC
Glad it worked out.
DC
DC Would it be easy for someone to extend your code
on this thread!
On Tue, Jul 21, 2009 at 3:31 PM, Haroon
Rafiqueharoon.rafi...@utoronto.ca wrote:
On Today at 2:02pm, DC=Dimitrios Christodoulakis dimi@gmail.com wrote:
DC [..snip..]
DC
DC The CONFIG_LOCATIONS is used to initialize the servletContext which in
DC turn is used to initialize
Hello,
According to the XWork feature description,
http://www.opensymphony.com/xwork/wikidocs/XWork%20Features.html, the
ActionInvocation represents the execution state of an action holding
the action instance and the interceptors.
I have been looking at
Yes, I figured doing a trace and see how things happen would answer a
lot of questions. So, I'll try that.
From looking at the DefaultActionProxy constructor, it does make sense
to start with the actionproxy. The proxy gets an action invocation as
a constructor parameter. So the invocation
Dave Newton wrote:
Won't help track action invocation initialization, methinks.
Is there a particular way you would recommend to go about doing it
actually? I am using eclipse for my ide, but I am not sure if
breakpoints can trace through the compiled classes in the jars.
Much appreciate the
Thanks Dave and Martin. I learn something new every time!
I was able to attach the source to struts2-core-2.1.6.jar and
xwork-2.1.2.jar by first downloading the source code and pointing to
the it from within eclipse.
project-right click-properties-Java build path-Libraries-select
jar-Source
Just another thought I had this morning.
Usually the framework is rather transparent to the struts user who
only creates actions with their corresponding results and run the
application on a server. I mean if the user doesn't have to customize
anything, create an interceptor, or even bother with
Actually I was speaking of my own custom interceptor (Authentiaction
interceptor) which I add on top of the default package.
Originally, I wanted to unit test my interceptor class and
particularly its intercept method which takes an ActionInvocation as a
parameter. My concern was how to create
...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
By the way I noticed that when I downloaded the s2 source code, it
didn't come with the opensymphony packages... Does the xwork source
has to be downloaded separately?
Yes.
Dave
to DefaultActionProxyFactory?
Many thanks again for your help.
On Thu, Jul 23, 2009 at 5:37 PM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
By the way I noticed that when I downloaded the s2 source code, it
didn't come with the opensymphony packages... Does the xwork source
has
? i.e. Create mock objects all
the way deep to DefaultActionProxyFactory?
Many thanks again for your help.
On Thu, Jul 23, 2009 at 5:37 PM, Dave Newtonnewton.d...@yahoo.com wrote:
Dimitrios Christodoulakis wrote:
By the way I noticed that when I downloaded the s2 source code, it
didn't come
into the functional testing area.
I appreciate all the helpful information. I've already learned a lot,
by the example code, and the discussions on this thread!
On Tue, Jul 21, 2009 at 3:31 PM, Haroon
Rafiqueharoon.rafi...@utoronto.ca wrote:
On Today at 2:02pm, DC=Dimitrios Christodoulakis dimi@gmail.com
51 matches
Mail list logo