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 List roleFunctionAccess;
// getter/setters and annotations
}
public class Func
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 ?
--
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
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 n
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
done
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 th
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
And it may be important that I point out if I use:
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 Mailing List"
iner as a tiles 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 Page
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
<%=formBean%>
The Page Number:
[ServletException in
ut.
>
> You can use to create a scoped attribute which is accessible from
> , 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: Stru
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.
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:
UserName:
UserName:
The bean:write works but the c:out fails. Any clues?
Chris
mmon
ActionForm class and that those 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: Thu
estion is. You can always reference a super class from a
subclass, if that is the question. If the question is whether you can
reference another instance of the superclass, the answer is that you can
if you have parked it somewhere and have access to it. Is this a fair
answer, or am I misunderstan
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
I have created a form hierarchy as follows:
public class CheckboxPagedForm extends ActionForm
public class MaintenanceForm extends CheckboxPagedForm
I did this because there are form-specific attributes for the maintenance form, but we
have multiple forms which are going to need to leverage t
order" );
>
> in my servlet that extends Action. 'sort' and 'order'
> have been defined. I cannot add:
>
> String sort = BeanUtils.getproperty( form, "sort" );
> String order = BeanUtils.getProperty( form, "order"
> );
>
>
RE: 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:me
bject: RE: 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: Ht
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: Wedne
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 Cr
Hmm, checkin' something here :-)
I defined a form just like the following form is defined below. I then
defined an action mapping as follows:
Then in my ChrisTestAction executeAction function, I did the following:
String sort = BeanUtils.getSimpleProperty(form,"sort");
String or
Sounds like you're describing a struts Multibox:
http://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]
t data from a persistent store
2. 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 t
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'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
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
-
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 propert
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 PR
I have found an example on the net where a LabelValueBean array and a string
array are encapsulated inside a custom ActionForm object giving the user the
ability to select checkboxed values and store the "values" behind the scene
with labeling each checkbox with the LabelValueBean's label propert
32 matches
Mail list logo