Has anyone been able to leverage the struts2-spring-plugin and running
it within a child context?
I am looking into the possibility of something like the following:
+- Root Application Context (global services, repositories, etc)
+- Web Application Context1 (used by struts2 actions)
I am having trouble iterating/manipulating a collection via struts2 tags.
The layout of my entity object is this:
public class Role
{
private String name;
private String description;
private Long id;
private ListRoleFunctionAccess roleFunctionAccess;
// getter/setters and annotations
}
So in my JSP i have defined a s:set tag which populates a variable
with an empty string in some cases. And when using the s:property
referencing the variable name on the stack, I get the following
output:
com.opensymphony.xwork2.defaulttextprovi...@28ca1c
What is the proper way to assign a text
If you have action parameters defined in your struts.xml for a
particular action, is there anyway that when the interceptor for the
action's intercept method is called that for that given action, the
param values can be iterated over from struts.xml ?
I have done a fair amount of reading today on the topic again and
developed a few simple classes to support my service, model, and dao
architecture for using Hibernate 3.3.2 and Spring 2 with Struts2. The
problem I am currently facing is I get a detached error when deleting
an object and I get a
You done any type of experimentation with dynamic SQL in your procedures?
We have a form that accepts tons of input values from the web user which
eventually get translated into 1 SQL query to pull back the data-set the
user is looking for. The problem is that nesting select statements slows
Is anyone familiar with this that can help?
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, June 18, 2004 3:47 PM
Subject: Re: bean defines
And it may be important that I point out if I use:
bean:write name
Bill -
The point of my discussion was the following premise:
public class MyCheckboxForm extends ActionForm
public class MyForm1 extends MyCheckboxForm
public class MyForm2 extends MyCheckboxForm
I want to be able to pass MyForm1 or MyForm2 to the same JSP and have it
work because
If I define a bean using bean:define from a named bean in the request/session scope,
why when I use the JSTL C taglib, does it not see the properties of this bean?
For example:
bean:define id=myFormtiles:getAsString name=formid//bean:define
UserName: bean:write id=myForm
If the servlet engine does not see any input at the appropriate scope for
sort or name, it will grab the values automatically for you from the
form-bean initial attribute; otherwise the values on the incoming request
(if in the right scope) will be used and the initial values disregarded.
-
can use c:set to create a scoped attribute which is accessible from
c:out, or you could use the c-rt taglib.
HTH,
Paul
-Original Message-
From: Chris Cranford [mailto:[EMAIL PROTECTED]
Sent: 18 June 2004 17:24
To: Struts Users Mailing List
Subject: bean defines
If I
This is my class:
public class PagedCheckboxForm extends ActionForm
{
private long pageNumber;
public long getPageNumber() { return this.pageNumber; }
public void setPageNumber(long value) { this.pageNumber = value; }
}
In the JSP
bean:define id=formBeantiles:getAsString
attribute.
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Friday, June 18, 2004 3:39 PM
Subject: Re: bean defines
This is my class:
public class PagedCheckboxForm extends ActionForm
{
private long pageNumber
And it may be important that I point out if I use:
bean:write name=%=formBean% property=pageNumber/
The value does get outputted. So it has to do with what Paul pointed out,
but I dont know how to solve it.
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To: Struts Users
Any thoughts anybody?
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 12:17 PM
Subject: Forms/JSP
I have created a form hierarchy as follows:
public class CheckboxPagedForm extends ActionForm
and have access to it. Is this a fair
answer, or am I misunderstanding you?
Michael
At 11:32 AM 6/17/2004, Chris Cranford wrote:
Any thoughts anybody?
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004
are the only values being referenced in the
CORE functionality of this common JSP.
Make sense?
- Original Message -
From: Chris Cranford [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 9:39 PM
Subject: Re: Forms/JSP
I just realized
I haven't seen any comments on this .. any ideas?
To broaden the prior discussion on resultset caching, I'd like to also
ping
the group on the concept of being able to have this resultset of data
and
paging through it but extendeding it to where a checkbox exists for each
viewable record. I
. Populate form. If attribute indicates selected, preselect checkbox
3. Render form (allowing user to edit)
4. Persist edits.
Dennis
Chris Cranford [EMAIL PROTECTED]
06/16/2004 03:35 PM Please respond to
Struts Users Mailing List [EMAIL PROTECTED
://jakarta.apache.org/struts/userGuide/struts-html.html#multibox
Ted Husted has a nice intro here:
http://www.jguru.com/faq/view.jsp?EID=925277
Dennis
Chris Cranford [EMAIL PROTECTED]
06/16/2004 04:06 PM Please respond to
Struts Users Mailing List [EMAIL
Hmm, checkin' something here :-)
I defined a form just like the following form is defined below. I then
defined an action mapping as follows:
action
path=/searchtest
type=com.setech.test.ChrisTestAction
scope=request
name=mySearchForm
forward name=success
Correction to the two BeanUtils calls, it should be:
String sort = BeanUtils.getProperty(form,sort);
String order = BeanUtils.getPropety(form, order);
But in either case it would yield the same result :-)
Chris
- Original Message -
From: Chris Cranford [EMAIL PROTECTED
Have you tried removing property from the messages tag to see if the
message you're wanting to print out exists in the collection at all ?
Hope this helps!
Chris
- Original Message -
From: Betty Koon [EMAIL PROTECTED]
To: 'Struts Users Mailing List' [EMAIL PROTECTED]
Sent: Wednesday,
. Nothing get printed out at all.
-Betty
-Original Message-
From: Chris Cranford [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:27 PM
To: Struts Users Mailing List
Subject: Re: Html:messages tag
Have you tried removing property from the messages tag to see
: Html:messages tag
I did, it doesn't help. Nothing get printed out at all.
-Betty
-Original Message-
From: Chris Cranford [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 16, 2004 5:27 PM
To: Struts Users Mailing List
Subject: Re: Html:messages tag
Have you tried removing property
);
String order = BeanUtils.getProperty( form, order
);
-Caroline
--- Chris Cranford [EMAIL PROTECTED]
wrote:
Correction to the two BeanUtils calls, it should be:
String sort =
BeanUtils.getProperty(form,sort);
String order = BeanUtils.getPropety(form,
order
I'm running into some problems trying to get my struts forms to behave as I
would like them to via actions for passing data around for a common task
we'll be using for different data-sets. Let me explain.
I have a form that contains 3 collections where-in each collection is
dependant upon the
On 6/11/2004 5:08 AM, [EMAIL PROTECTED] wrote to CHRIS CRANFORD:
Is hi the language type, ie: en_US.[resource] is what gets shown on my
install when a message cannot be found in the appropriate
application.properties file for that language.
- I am reading a value object property and holding
Could someone offer some input on the best way to handle the necessary form
logic described below?
I have a popup window and that looks similar to the following:
Search: [ ] [Find]
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z All
Is there a way to render a portion of a collection (multibox) as hidden input
tags instead of rendered checkbox input tags?
thanks
chris
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
30 matches
Mail list logo