For anybody following this thread, I finally answered my own question by
searching through the code. There is an undocumented struts.xml element
that will allow you to redefine the default Action class that gets called
when no class is specified on an action definition. It's not in the DTD,
but
Hi,
According to the Struts2 (2.0.8) documentation a combo box is an HTML INPUT
of type text and HTML SELECT grouped together to give you a combo box
functionality.
Does anyone know if it is possible to suppress the HTML INPUT?
And if so, how?
Or if not, any advice how to implement in Struts2 a
Ken,
there is no problem at all since s2 interceptor instances, as well as
action instances, are created per ActionInvokation, which means they are
always operated in a single thread.
Regards,
Rene
Hoying, Ken schrieb:
From what I understand from reading the documentation, interceptors are
With s2, you can do tabular forms quite elegantly. Although the page
needs some updates (will try to get on this the next days), the basic
principle is shown here:
http://cwiki.apache.org/confluence/display/WW/Tabular+inputs
You might want to make sure you understand type conversion principles
Bill Johnson schrieb:
I'm having the same problem and it appears to be
because the default theme is requiring DOJO to
automatically select all the select options before
submitting the form. I'm not sure if there is a JIRA
bug opened for this or not, but there probably should
be. The default
Bill Johnson schrieb:
I'm having the same problem and it appears to be
because the default theme is requiring DOJO to
automatically select all the select options before
submitting the form. I'm not sure if there is a JIRA
bug opened for this or not, but there probably should
be. The default
With s2, you can do tabular forms quite elegantly. Although the page
needs some updates (will try to get on this the next days), the basic
principle is shown here:
http://cwiki.apache.org/confluence/display/WW/Tabular+inputs
You might want to make sure you understand type conversion principles
Ken,
there is no problem at all since s2 interceptor instances, as well as
action instances, are created per ActionInvokation, which means they are
always operated in a single thread.
Regards,
Rene
Hoying, Ken schrieb:
From what I understand from reading the documentation, interceptors are
Chris Pratt wrote:
Also, make sure you define the tiles result-type in your struts.xml.
if your package extends tiles-default, you don't need that.
--
Robi
package ...
result-types
result-type name=tiles class=
org.apache.struts2.views.tiles.TilesResult /
/result-types
/package
I have a situation where i set a form variable in action execute method the
scope of action is request
and when i try to submit my form i see the variable to be null and it works in
session scope
i understand that when first time request comes in the server sends in the
response and page
[Apache Struts Group] Since its release in June 2001, Apache Struts
(struts.apache.org) has become the most popular web framework for
Java. Six years later, by any objective measure, Struts is still
Java's most popular web framework.
In February and March 2007, the group released both Struts
--- Hubert Hers [EMAIL PROTECTED] wrote:
According to the Struts2 (2.0.8) documentation a
combo box is an HTML INPUT of type text and HTML
SELECT grouped together to give you a combo box
functionality. Does anyone know if it is possible to
suppress the HTML INPUT? And if so, how?
Or if
--- pavan reddy [EMAIL PROTECTED] wrote:
I have a situation where i set a form variable in
action execute method the scope of action is request
and when i try to submit my form i see the variable
to be null and it works in session scope
Do you have a field for that variable on the HTML
form?
I dont have a field for that variable in html form infact that is bean for
which i set form variable values
but the variable is declared in the ActionForm.
Pavan
- Original Message
From: Dave Newton [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Sunday, 8
By a 'normal' combobox I mean a combobox like in javax.swing.JComboBox or as
the HTML select.
Hubert
-Ursprüngliche Nachricht-
Von: Dave Newton [mailto:[EMAIL PROTECTED]
Gesendet: Sonntag, 8. Juli 2007 17:27
An: Struts Users Mailing List
Betreff: Re: How suppress the HTML INPUT from
Hubert,
Not sure if this is what you are looking for but you can try this.
In the combobox, you can do something simple like the disabled option.
select class=name name=name style= tabindex= disabled=disabled
option value= --Select--/option
c:forEach items=${}
Property names, whose second character is in uppercase, cannot be rendered on
JSP using the property name. For example
If you have a property named as sTxt, then you cannot use
bean:write name=testForm property=sTxt /
in the jsp.
Can anybody explain to me why is it so?
--
View
Multiple Popup Windows
Requirement:
• There is a list of hyperlinks on a page and on click of each hyperlink a
popup opens. So if user clicks on 10 hyperlinks then 10 popup opens.
• Each popup displays a distinct data based on the received parameters.
• The data displayed in
--- pavan reddy [EMAIL PROTECTED] wrote:
I dont have a field for that variable in html form
infact that is bean for which i set form variable
values but the variable is declared in the
ActionForm.
If you set a request-scoped bean value in an Action
then that value will only live for the
--- Hubert Hers [EMAIL PROTECTED] wrote:
By a 'normal' combobox I mean a combobox like in
javax.swing.JComboBox or as the HTML select.
I'm still not getting you, I think. What functionality
do you want that s:select.../ doesn't provide?
d.
-Ursprüngliche Nachricht-
Von: Dave Newton
--- shamsnezami [EMAIL PROTECTED] wrote:
Property names, whose second character is in
uppercase, cannot be rendered on JSP using the
property name. For example If you have a property
named as sTxt, then you cannot use
bean:write name=testForm property=sTxt /
in the jsp.
Can anybody
--- shamsnezami [EMAIL PROTECTED] wrote:
Please provide a solution to this problem?
Don't use a session-scoped form if you're dealing with
a single session-scoped form with the same name and
hitting it with multiple requests from the same
session and not somehow serializing / synchronizing
those
Very true, I should have said or, not also.
(*Chris*)
On 7/8/07, Roberto Nunnari [EMAIL PROTECTED] wrote:
Chris Pratt wrote:
Also, make sure you define the tiles result-type in your struts.xml.
if your package extends tiles-default, you don't need that.
--
Robi
package ...
congrats guys!
On 7/8/07, Ted Husted [EMAIL PROTECTED] wrote:
[Apache Struts Group] Since its release in June 2001, Apache Struts
(struts.apache.org) has become the most popular web framework for
Java. Six years later, by any objective measure, Struts is still
Java's most popular web framework.
Great job.
On 7/9/07, James Carr [EMAIL PROTECTED] wrote:
congrats guys!
On 7/8/07, Ted Husted [EMAIL PROTECTED] wrote:
[Apache Struts Group] Since its release in June 2001, Apache Struts
(struts.apache.org) has become the most popular web framework for
Java. Six years later, by any
The s:select/ is the tag your looking for.
Check the Doc here. http://struts.apache.org/2.x/docs/select.html
On 7/8/07, Hubert Hers [EMAIL PROTECTED] wrote:
Hi,
According to the Struts2 (2.0.8) documentation a combo box is an HTML INPUT
of type text and HTML SELECT grouped together to give
I added an Interceptor locally to one of my Actions. This Interceptor
implements SessionAware and has a setSession(Map session) method to
get the session. The problem is when my interceptor runs session is
null. I am assuming this is because the interceptor that populates
the session aware
Others should definitely correct me if I'm wrong, but interceptors don't
inject other interceptors, just actions. If you need access to the Session,
just use the one in the ActionInvocation.
(*Chris*)
On 7/8/07, Richard Sayre [EMAIL PROTECTED] wrote:
I added an Interceptor locally to one of
I have been playing with struts for few month and I am comfortable with
it now. One thing I keep on hear, and couldn't manage to understand what
it 's. Many sites and articles compare struts and describe it as an
action based. I know it uses actions but how does this make it better
that event
I plan to use Struts validation frame to validate my input fields. I want to
konw if there is a way to use wildcard characters such as *? in my
validtion.xml.
For instance:
validator type=stringlength
param name=fieldNameMy*Book/param
param name=maxLength1/param
param
Hi,
I got the following in S2, jsp.
it shows nothing, infact when I saw the view source it
shows nothing with regards to tooltip.
Is there anything wrong in my usage, Cant I completely
ingore the the tooltipConfig.
Basically I want to give user a flavour of help where
it says Enter display
Hi,
Yes, it works fine if I use prepare() and create my own object. However,
my understanding
from the docs was that struts would create my object for me, based on
hitting a null pointer.
But that does not seem to be the case.
Also, if I use the value=true method, then my box is checked
32 matches
Mail list logo