Yes I want to style the actual checkbox and not just the text.
regards,
Pankaj
On 4/11/07, James Mitchell [EMAIL PROTECTED] wrote:
html:checkbox disabled=disabled ...bBolded text/b
Or, did you mean to style the actual checkbox?
--
James Mitchell
On Apr 11, 2007, at 4:37 AM, Pankaj Gupta
Hi all,
With Struts 2.0.6, I try to have validation message with localization.
For example, I have a login form, with a loginInput input text :
s:form action=login validate=true theme=xhtml
s:textfield label=%{getText('login.login')} name=loginInput/
/s:form
I have a validation on it :
I fully agree with those architecture consideration.
What I see in struts2 is that I can use my business service as MVC controler
with no dependency on the web framework. My business service only has to
switch from a stateless-style (method with parameters) to a statefull or
command-style
2007/4/18, Ray Clough [EMAIL PROTECTED]:
This page perfectly illustrates my point on the difficulty of the JSTL tags
working nicely with S2. The page works perfectly if the object is
explicitly placed into the HttpRequest. If the 'getExporter()' is the way
in which the Exporter is exposed,
I want to dereference/clear the Value Stack object in JSP on a button click
. Is there a s: tag for that or some other way can i do that . If yes
please send me the systex for the same .
with regards
Arunabh
--
View this message in context:
Hi all,
I tried to customize the errors.prefix, suffix, header and footer, but
they are not taken into account.
How to do in Struts 2 ?
I just put this in my package.properties :
errors.footer=tr
errors.header=/tr
errors.prefix=td
errors.suffix=/td
Thanks,
Regards,
Michaël.
2007/4/17, Hehl, Thomas [EMAIL PROTECTED]:
When the user clicks a button, I change the value in C, but sometimes I want
to refresh B as well since it needs to re-run code to pick up the current
state. I can't figure out how to do this for the specific screens of C that
I want. Does anyone have a
2007/4/18, Charlie Rehor [EMAIL PROTECTED]:
So, the question is, can you use Struts2, Velocity, and Tiles together
right now?
Struts 2 uses Tiles 2, but currently there is no support for Velocity
templates with Tiles 2, I am sorry.
Antonio
Hi all,
I would like to do as in Struts 1 with DispathAction : create a parent
Action, which each other action extends, and each request/action passes by
this parent action, and I could so add there the generic validations (user
logged, etc...)
How could I do ?
I tried this :
My parent
Hi All,
I have several common jsp's in a common webapp, which will be shared
by all other web applications. I use c:import tag to include jsp's from
this common webapp. I can include jsp's , if they do not contain any struts
specific things. But when i try to include a jsp with struts action
--- [EMAIL PROTECTED] wrote:
My parent Action :
public class CRMAction extends ActionSupport
@Override
public String execute() throws Exception {
//do all tests (user logged, ...)
//...
return super.execute();
}
}
I was talking about a dynamic mecanism. In Struts 1, I never called
super.dispathMethod() : the CRMAction.dispatchMethod() was first called by
Struts, then my return super.dispatchMethod() was returning the
ActionForward returned by my called Action.
public class CRMAction extends
Hello
I've followed struts tutorial and cannot run the archetype webapp in jetty :
WARN: failed action2
java.lang.NoClassDefFoundError: org/apache/velocity/app/VelocityEngine
...
adding velocity 1.5 and velocty-tools-view 1.2 as dependency solve this, but
this looks strange to me. Isn't
I loaded my sample struts application and run the tomcat IT gave me the
following error.
Can anyone help me ASAP ?
Scanning for classes in
[/D:/projects/ifnd/GPSReceiver/GPSReceiver/WebContent/WEB-INF/classes/com/ifnd/UserMgmtApp/]
matching criteria:
[EMAIL PROTECTED]
Apr 18, 2007
I'm currently playing with codebehind and zero conf in Struts 2. My
objective is to make CRUD application easy:
you don't have to create Action, you don't have to wire them using XML stuff
or Annotation (and you don't have to create DAOs and Managers and tables,
just
domain models)
Codebehind's
Hi,
I am new to struts2 an am putting together a simple framework to inspect
user beans and display a generic edit screen based on the type of object
presented.
Is it possible to populate the various attributes of this tag at run
time depending on the field ?
the list obj.{#field.name} returns
--- [EMAIL PROTECTED] wrote:
I was talking about a dynamic mecanism. In Struts
1, I never called super.dispathMethod() : the
CRMAction.dispatchMethod() was first called by
Struts, then my return super.dispatchMethod() was
returning the ActionForward returned by my called
Action.
That's
Hey all
I am trying to include a session property in a s:url component, but get
the following error:
Unterminated lt;s:url tag
s:url action=user/s:property value=#session.user.username ///
Are there other ways of including session values without nesting S2
components?
--
View this message in
--- meeboo [EMAIL PROTECTED] wrote:
s:url action=user/s:property
value=#session.user.username ///
Are there other ways of including session values
without nesting S2 components?
Does using OGNL EL in the action attribute not work?
(It's never been entirely clear to me where I'm
allowed to
Hi,
On 18/04/07, meeboo [EMAIL PROTECTED] wrote:
Hey all
I am trying to include a session property in a s:url component, but get
the following error:
Unterminated lt;s:url tag
s:url action=user/s:property value=#session.user.username ///
According to the error message, I would say its
--- Alexis Pigeon [EMAIL PROTECTED] wrote:
On 18/04/07, meeboo [EMAIL PROTECTED] wrote:
I am trying to include a session property in a
s:url component, but get the following error:
Unterminated lt;s:url tag
s:url action=user/s:property
value=#session.user.username ///
According to the
Yeah it works, I tried
s:url action= My profile br /
Dave Newton-4 wrote:
--- meeboo [EMAIL PROTECTED] wrote:
s:url action=user/s:property
value=#session.user.username ///
Are there other ways of including session values
without nesting S2 components?
Does using OGNL EL in the
In comparison of the two; namely, JSTL and Struts2
tags, which one is better?
In between JSTL and Struts1 tags, I prefer JSTL. When
using JSTL, I feel that I am programming. I would
like to gather some opinions. Thank you.
--- Dave Newton [EMAIL PROTECTED] wrote:
--- Heidy Gutiérrez Guzmán
Are you using the latest version of the archetype? I think I had this same
problem with an older version.
musachy
On 4/18/07, nicolas de loof [EMAIL PROTECTED] wrote:
Hello
I've followed struts tutorial and cannot run the archetype webapp in jetty
:
WARN: failed action2
Do You know some tools for helping in Internationalization in web project?
Thnx
--
View this message in context:
http://www.nabble.com/Tools-for-I18n-tf3600761.html#a10057872
Sent from the Struts - User mailing list archive at Nabble.com.
struts2-archetype-starter-2.0.5-20070212.050844-2.jar
thats seems to be the latest available...
2007/4/18, Musachy Barroso [EMAIL PROTECTED]:
Are you using the latest version of the archetype? I think I had this same
problem with an older version.
musachy
On 4/18/07, nicolas de loof [EMAIL
My app is progressing happily (With no small thanks to you all) and I
have reached a point where I need to make a decision on something.
The app will present a customized script to be read, verbatim, to a
customer, based upon amounts paid, owed, dates, outstanding balances,
and what not. If
Good Morning Skip-
If your webapp's strings wont change (essentially all message strings are
static) I would implement a internationalised webapp with struts
internationalization
http://www.allapplabs.com/struts/struts_internationalization.htm
If the strings are dynamic I would look using a
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Puchacz,
puchacz wrote:
Do You know some tools for helping in Internationalization in web project?
Recently, I found a great tool for doing localizations (translations)
called Attesoro. You can find it here: http://attesoro.org/
As for
Folks,
I am having problems redeploying my web app on tomcat 5.0.28/30. It is
giving me the error: Missing Applocation web.xml
I have searched for archives on tomcat and I found several discussions that
point to a file locking problem under windows.
Hey, i was having the same problem...
i needed a html:select that was read-only, but it had to forward it's id
to the action servlet populate the form bean with it.
i just declared a html:hidden with the same property after it.
like:
html:select property=id disabled=true
(...)
/html:select
Another option is to make a disabled style in your css and blur onfocus
html:select property=id styleClass=disabled onFocus=this.blur()
:
/html:select
Using a hidden element with the same name is slightly dodgy in that
form.elements[id] will return a different value depending if the
hidden
Hi Laurie
Thank you for continuing to help my naivete. I saw two problems: one I didnt
know how to format and send a forward out of the struts framework, two the
response will only come back on the port and without any context so I cant
direct it to an Action(possibly even the same as the
Hey all
I've been trying to solve this problem for a couple of hours but to no
prevail...
struts.xml
action name=upload/
result/uploadMovie.jsp/result
/action
action name=uploadMovie
class=com.myapp.web.struts.action.UploadMovie
On 4/18/07 4:10 AM, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
How could I do ?
Parent action:
Public abstract class MyParentAction extends ActionSupport {
public String execute () throws Exception {
// do your security stuff.
String result = this.myExecute ();
//
I am having trouble setting the focus on an
autocompleter field.
When I print out all the fields in my overlay, I see
three for the sports team autocompleter:
sportsTeam
sportsTeamKey
(one with no name) (why does it have no name?)
Here is how it is declared:
s:autocompleter
Quick note, it seems as if I am reaching the uploadFile method when not
specifying a file to upload. The movieTitle is then read in the action
class. But if I also choose to upload a file alongside with it the method
will not be reached. I'm stumped! :(
meeboo wrote:
Hey all
I've been
It may not solve your problem, but are you using the
action context cleanup filter?
d.
--- meeboo [EMAIL PROTECTED] wrote:
Quick note, it seems as if I am reaching the
uploadFile method when not
specifying a file to upload. The movieTitle is then
read in the action
class. But if I also
One has the ${name} you entered in the name attribute, and it will have the
value entered on the visible input. The one with the name ${name}Key has the
key for the selected value, and the visible one (the one with no name) is
for typing. Why not use the visible one as the one holding the value?
You probably need to write a custom Interceptor. Struts 2 has a very nice
feature called interceptors which is sort of like AOP which is great for
cross-cutting problems e.g authentication.
http://struts.apache.org/2.x/docs/interceptors.html
Cheers,
Drew Kutcharian
Venarc Inc.
That's cool. I never thought of that...
-Original Message-
From: Lance [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 18, 2007 10:56 AM
To: Struts Users Mailing List
Subject: Re: How to make a SELECT list readonly? If set disabled, loses the
value when submit.
Another option is to
Anyone ? :(
Michaël
Hi all,
With Struts 2.0.6, I try to have validation message with localization.
For example, I have a login form, with a loginInput input text :
s:form action=login validate=true theme=xhtml
s:textfield label=%{getText('login.login')} name=loginInput/
/s:form
I have a
Hi,
I have a strange error when using the maven-jetty-plugin.
At the of the stack :
Caused by: Bean type class com.opensymphony.xwork2.ObjectFactory with
the name xwork has already been loaded by bean -
jar:file:/local/olamy/projets/DatabaseOnTheWeb/dotw-webapp-trans/target/
When I search information about the best practice for programing in Struts.
I find: You should to use JSTL before the struts tags.Why?
Definitely ResourceBundle.I'll let the Action build the text based
on the variables and the text in the bundle, drop it on the ActionStack
(in a prop called script) and then display it that way.
Skip Hollowell wrote:
My app is progressing happily (With no small thanks to you all) and I
--- Heidy Gutiérrez Guzmán [EMAIL PROTECTED]
wrote:
When I search information about the best practice
for programing in Struts. I find: You should to use
JSTL before the struts tags. Why?
For S1, because JSTL is more standard and duplicates
functionality found in the less standard Struts
Hy Guys,
I made a form that must be submited and refreshed to get the new values from
DB.
The problem is, when I use notifyTopics, I got 2 requests, and form refresh
2 times.
when I use the targets attribute of submit button, when I submit again, my
ActionContext.getContext( ).getParameters( )
Just to make sure,
did you tried %{getText('login.login')} ?
because fieldName you give you the fieldName, that is loginInput.
Best,
Felipe
MLENEVEUT wrote:
Anyone ? :(
Michaël
Hi all,
With Struts 2.0.6, I try to have validation message with localization.
For example, I
Oddly enough I checked out the code to continue my work from home and it
suddenly started working. I'm gonna take a look at this inconsistency
tomorrow, might be something else than S2 which is causing it. And yes, I'm
using the cleanup filter. Thanks anyway!
Dave Newton-4 wrote:
It may not
The topics are submitted twice, once before and one after the request.
Check:
http://struts.apache.org/2.x/docs/ajax-tags.html
for details. One of the parameters passed to the topic is either before or
load. Just as a heads up, 2 separate topics were added to the ajax tags
for 2.1 to make this
Hi everyone,
In regular jsp, just use session + vector to build shopping cart,
how about for the struts 1.3.* ? use same concept or use Actionform bean?
pls advise.
tks in advance
john
-
Ahhh...imagining that irresistible new
--- Musachy Barroso [EMAIL PROTECTED] wrote:
The topics are submitted twice, once before and one
after the request.
Check:
http://struts.apache.org/2.x/docs/ajax-tags.html
for details. One of the parameters passed to the
topic is either before or
load. Just as a heads up, 2 separate
yeah,
I imagined the 2 submits.
So, I'll have to use javascript to workaround that until don't get the 2.1
ready.
Best Regards,
Felipe
Dave Newton-4 wrote:
--- Musachy Barroso [EMAIL PROTECTED] wrote:
The topics are submitted twice, once before and one
after the request.
Check:
yeah, the notifyTopics is a catch all attribute, for 2.1 we will have
beforeNotifyTopics, afterNotifyTopics and errorNotifyTopics
musachy
On 4/18/07, Felipe Rodrigues [EMAIL PROTECTED] wrote:
yeah,
I imagined the 2 submits.
So, I'll have to use javascript to workaround that until don't get
On 4/18/07 11:11 AM, Mark Menard [EMAIL PROTECTED] wrote:
Now, with that example shown, I wouldn't use it. Look at an interceptor to
do this. I'm working on exactly this right now, a login interceptor. Stay
tuned for a write up when I get done.
As promised here's a fairly complete write up of
I've written up two new Struts 2 tutorials:
Post and Redirect in Struts 2
http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect
Creating a Login Interceptor in Struts 2
http://www.vitarara.org/cms/struts_2_cookbook/creating_a_login_interceptor
Take care,
Mark
--
Mark Menard
I think it is better to use session.
You can do that by using ActionForm, but it is not recommended.
Best,
Felipe
john lee-15 wrote:
Hi everyone,
In regular jsp, just use session + vector to build shopping cart,
how about for the struts 1.3.* ? use same concept or use
I am using Struts Validator Frame work to do both Client and Serverside
Validation. I am using Struts 1.2
My Validator is not triggring at all. I am trying to figure out the mistake
from the last two days, but no luck.
I am extending the ValidatorForm Class.
Can anyone help me with this one.
I need to load an .xml file when Websphere server starts up. I am using
Struts ActionServlet as the only servlet in the app and I do have a
CustomProcessor extending TilesRequestProcessor. I am trying to load the
.xml file when the server starts up. I configured to load ActionServlet
when server
I'm not really clear on what you're trying to achieve, but it sounds
like you just need to read the HTTP response from the request you make
through HttpClient. Since you're making that request from your action
and, therefore, will have the response available there too, you don't
need to
Vlad2006 wrote:
Hi,
On the Struts 2 start page one statement reads:
Flexible Cancel Buttons - Go directly to a different action on cancel.
Could anybody point me to a page where this statement is explained?
My guess is that this refers to the ability of the s:submit tag to
specify a target
It's not a case of 'which is better'; they aren't directly equivalent.
Some of the functionality in the Struts 1 tag libs overlaps some of the
functionality in the JSTL tag libs. Both sets of tags have capabilities
that are not available in the other.
In general, it's recommended to use the
[EMAIL PROTECTED] wrote:
Hi all,
I tried to customize the errors.prefix, suffix, header and footer, but
they are not taken into account.
How to do in Struts 2 ?
I just put this in my package.properties :
errors.footer=tr
errors.header=/tr
errors.prefix=td
errors.suffix=/td
Not taken into
Rajesh Gupta wrote:
Hi All,
I have several common jsp's in a common webapp, which will be shared
by all other web applications. I use c:import tag to include jsp's from
this common webapp. I can include jsp's , if they do not contain any struts
specific things. But when i try to include a
For ValidatorForm it uses the attribute value for the key to the
validation - in your case thats LogonForm - but your validation.xml
uses the form name of logonForm. So either change the key in the
validation.xml or the attribute on your action mapping.
You don't actually have to specify
I've never actually used it but I think the DigestingPlugIn might do
this for you
http://tinyurl.com/2kzh8b
Having said that probably the best plan would be to create your own
ServletContextListener to do this which would be independant of
Struts
hi,
I wanted to know if there is any way to populate a form bean with a list
which is variable in number.
For example :
If i need to read the names of all the students in class. On page 1 i read
the number of students (= n) and on the next page based on this number i
display n number of test
A little suggestion. Inside the interceptor, you can also put the User in the
ActionContext or your own custom ThreadLocal so you can use that all over the
stack for permissions/roles/etc as an alternative to say Acegi.
Cheers,
Drew Kutcharian
Venarc Inc. www.venarc.com
- Original
68 matches
Mail list logo