In struts1.x, there is tag like bean:define. Anything like in struts2?
The problem is in OGNL, which is using ValueStack, it's totally
separated from common request objects.
I don't understand why you want to access variable in % % ? It's is
good for constants and not for logic. As I show you,
I am trying to submit two forms at once.
Khe? As I know, it isn't possible. If you send them to the same
action, just use one form for all the fields. If you send them to
separated actions (different action attribute), you have to made two
request at the same time, but there isn't something like
Try with other browser than IE, it looks like a common problem in IE
with layering.
Regards
--
Lukasz
http://www.lenart.org.pl/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi,
Thanks for replying.
It occurs in firefox too.
the customer for this will predominantly use IE so will have to get it
working for IE in the end anyway :( :( :(
On Wed, Jul 16, 2008 at 4:04 PM, Lukasz Lenart [EMAIL PROTECTED]
wrote:
Try with other browser than IE, it looks like a common
Apache Struts 2.0.11.2 is now available from
http://struts.apache.org/download.cgi#struts20112.
This release is a fast track security fix release, including a security
fixed version 2.0.5 of XWork, which corrects a serious vulnerability in
ParametersInterceptor allowing malicious users to
Have you looked at using the zindex property in your stylesheet?
(http://www.w3schools.com/Css/pr_pos_z-index.asp)
nauke. wrote:
Hi,
Thanks for replying.
It occurs in firefox too.
the customer for this will predominantly use IE so will have to get it
working for IE in the end anyway :( :( :(
What if I dont want to put Id at all and leave it blank?
Cheers
On 16/07/2008, at 3:49 PM, Wes Wannemacher wrote:
Sure, specify your own id attribute...
-Wes
On Wed, 2008-07-16 at 15:45 +1000, Phan Le wrote:
Thanks for the response Wes, I do use maven to build.
Is there anyway that I can
2008/7/14 nauke. [EMAIL PROTECTED]:
Hi!
I'm using struts version 2.0.11.
I am using struts menu, which works provided it is not on top of a table ...
Please see screenshot of issue here:
http://mytmpdir.googlepages.com/menu.jpg
No idea how I can fix this!
Does anyone?
Probably you have
Can you put the code some where, if you are using IE 6, it has a known
problem with z-index attribute.
Regards,
Jishnu Viswanath
Software Engineer
*(+9180)41190300 - 222(Ext) ll * ( + 91 ) 9731209330ll
Tavant Technologies Inc.,
www.tavant.com
PEOPLE :: PASSION :: EXCELLENCE
-Original
In your struts-editevent.xml: http://pastebin.stonekeep.com/4956
action tags must be inside a package, and they are inside struts.
See the http://struts.apache.org/dtds/struts-2.0.dtd file
2008/7/16 Dave Belfer-Shevett [EMAIL PROTECTED]:
This seems like it should work, but I'm getting all sorts
In the html form I have this tag:
sx:autocompleter list={'apple','banana','grape','pear'} id=stnnzn
name=name keyName=nameKey /
It works fine but doesn't pass values to action name and nameKey
properties. I test it in ie6 and everything is alright.
Does anybody knows the problem?
In addition to the other replies, I'll add my own.
--- On Tue, 7/15/08, Dave Belfer-Shevett [EMAIL PROTECTED] wrote:
[...] the documentation page for this, naturally, provides
no examples of what the include file should look like.
Naturally?
Sniping aside: the include documentation [1]
I am not sure... Struts in turn uses dojo for its Ajax (it was .4) there
are lot of issues with dojo and ff3. I am not sure because of this it's
failing.
Can you tell me what exactly it's the error, if you have firebug
installed, tell is there any request in red?
Regards,
Jishnu Viswanath
--- On Wed, 7/16/08, Phan Le [EMAIL PROTECTED] wrote:
What if I dont want to put Id at all and leave it blank?
Modify the theme/template, I suppose [1, 2]? Is there any particular reason you
don't want it to have an id?
Dave
[1] http://struts.apache.org/2.x/docs/themes-and-templates.html
[2]
Hi Nicole,
This is an action class that does validation of two parameters:
public class SignonAction extends ActionSupport {
private String username;
private String password;
@Override
public String execute() throws Exception {
Map session = null;
boolean
thanks!!!. that solved my problem
On Sat, Jul 12, 2008 at 12:23 PM, Gabriel Belingueres [EMAIL PROTECTED]
wrote:
Looking at the docs:
http://struts.apache.org/2.1.2/docs/ognl.html
there is no #page notation when using struts taglibs, since they all
use OGNL syntax.
If you need to access a
Thanks Dave.
We want to have more control of when to throw in IDs and when NOT to
throw in IDs. Basically, what we want is in the struts tags, if we
specify id attribute, struts should render it, otherwise, dont put
auto-generated ones in. Excessive IDs are a lot harder to maintain,
and
--- On Wed, 7/16/08, Phan Le [EMAIL PROTECTED] wrote:
Anyone know which Java class or place in the source code
that the IDs are generated?
It might be easier to modify the template(s) as I suggested earlier; extracting
the existing templates and modifying/extending a theme is a simpler
Tuesday, July 15, 2008 4:52 PM, Dave Newton wrote:
It's the default implementation of a method designed for form
input; validation is skipped by default.
When you have an action implementing Prepareable it's a
convenience, before annotation-based configuration you'd
configure two action
This is clearly not a Struts2 question, but a Struts menu question (name
is misleading since it can be used outside the context of struts. I'm
using it like that).
A few thought:
- Have you checked the generated HTML code?
- Have you checked the generated CSS?
- If using velocity, have you
Oops, meant to send this to the list.
--- On Wed, 7/16/08, Brad A Cupit wrote:
So, before annotation-based configuration, you'd setup
action chaining to have it go from the input() method
to the execute() method?
No, you'd go to form display via input(), and submit to
execute().
Yes, dojo in firefox3 works with bugs. Only loading dojo libs
requires manually change some firefox defalt parameters and this a big
problem for deploying web project with dojo running on ff3.
I have firebug installed but it doesn't show any error.
autocompleter simply doesn't pass it's values in
On Wed, 16 Jul 2008, Dave Newton wrote:
--- On Tue, 7/15/08, Dave Belfer-Shevett [EMAIL PROTECTED] wrote:
[...] the documentation page for this, naturally, provides
no examples of what the include file should look like.
Naturally?
Sniping aside: the include documentation [1] states the
Opera does not work with dojo, by the way try in safari can u see what
is the generated code, I am using dojo 1, so had re written almost all
the ftl's. Dojo uses a hidden field where we store the data. Check if it
has given the proper name in generated code.
Regards,
Jishnu Viswanath
Software
No, you'd go to form display via input(), and submit to
execute().
Oh that makes perfect sense! Got it now.
the input() method always skipped validation
That makes sense too. The input method is listed in struts-default.xml
as an excludeMethod for the validation interceptor.
Even then, I
I've already check the generated code in firebug. Yes, hidden fields
are in place. Here is html code:
select dojoType=struts:ComboBox id=synnzn name=name keyName=nameKey
initialValue=grape visibleDownArrow=true onblur=validate(this);
option value=appleapple/option
option
--- On Wed, 7/16/08, Dave Belfer-Shevett [EMAIL PROTECTED] wrote:
And was completely unmentioned in the document I was looking at:
Sorry we didn't put it where you looked. In general I usually recommend looking
at core documentation in addition to FAQs, it provides context for the more
I Think I find the bug.
See here:
input dojoattachpoint=comboBoxValue value= name=name tabindex=-1
style=display: none;/
input dojoattachpoint=comboBoxSelectionValue value= name=nameKey
tabindex=-1 style=display: none;/
We don't have id param here, only name. And FF I think use
Piotr Dzeviarylin wrote:
I Think I find the bug.
See here:
For the sake of completeness, does your form work in Firefox 2.x?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Every time I see this code in S2, it makes me laugh so I will share it
here (DefaultActionInvocation.java):
...
if (proxy == null) {
gripe = Whoa! No ActionProxy instance found in current
ActionInvocation. This is bad ... very bad;
} else if (proxy.getConfig() == null) {
gripe = Sheesh.
My task is:
1. Action PrepareLawDraft has private field LawDraft lawDraft ; it has
public getter and setter.
This action fills LawDraft object fields.
2.On ActionSupport.SUCCESS I go to processlaw.jsp
On this jsp I want to output some fields of LawDraft and allow user to
modify
3.Then user
s:form action=# method=post
action is not the action attribute for particular form, but it's the
name of the action in struts.xml, so you should put # in there.
Could you post the whole stack trace?
Regards
--
Lukasz
http://www.lenart.org.pl/
hi,
I followed the instructions here:
http://code.google.com/p/struts2jscalendarplugin/wiki/FAQ
but the jscalendar does not render ... is there anything extra to do
when using with S2.1.x? is it confirmed to work/not work with that version?
TIA,
Giovanni
I've done *.do or /do/* in S1.
Is it possible in S2 to map a URI fragment (not extension) to invoke the
action? Can someone show me an example how?
Paul
It's possible - we're doing it:
(Struts.xml)
constant name=struts.enable.SlashesInActionNames value=true /
...
action name=web** class=...
...
/action
We also noticed Struts accepts web.action or just web, so our URLs look
like this
http://ourdomain.com/web/path/to/an/xml/file -- web action
hello,
i have a jsp code like this:
s:textfield name=myName key=myKey maxlength=12
s:param name=value value=%{#parameters.myParameter}/
s:param name=labelcolspan value=%{1} /
s:param name=inputcolspan value=%{1} /
/s:textfield
myParameter is passed by url.
If i execute this in tomcat(i've
I took a quick look at the templates, and found that there is id
generation logic in UIBean.java -
http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/UIBean.java?view=markup
So, forcing an element to not have an ID might be a bit tough. I still
I noticed that but I don't think id is a mandatory field... id is
give for users to do manipulation on the widget, other wise it would be
mandatory field.
Any way did you check what is the value sending to server? I mean the
HTTP header?
Regards,
Jishnu Viswanath
Software Engineer
--- On Wed, 7/16/08, Wes Wannemacher [EMAIL PROTECTED] wrote:
I still agree with Dave though, that creating a custom template is
your best choice, it will require some decent freemarker skills though.
It's more work than I thought originally; somehow in my head I was thinking
Oh, just check to
That was funny, any way I checked the code.
catch (Exception e) {
String gripe = ;
if (proxy == null) {
gripe = Whoa! No ActionProxy instance found in current
ActionInvocation. This is bad ... very bad;
} else if (proxy.getConfig() ==
Hello All,
I have a JSP that includes a struts action as such:
]--- begin edit.jsp ---[
%@ include file=../fragments/taglibs.jsp%
link rel=stylesheet href=../css/datacall.css type=text/css
s:action name=form executeResult=true flush=false
ignoreContextParams=false/
]--- end
Sorry, it does work, I did a mistake.
Regards,
Giovanni
-Original Message-
From: Giovanni Azua [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 16, 2008 6:12 PM
To: Struts Users Mailing List
Subject: [S2] Jscalendar plugin does not work in S2.1.x
hi,
I followed the instructions
http://issues.apache.org/struts/browse/WW-2353
-Original Message-
From: Pablo Vázquez Blázquez [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2008 1:54 PM
To: Struts Users Mailing List
Subject: DateTimePicker
Hello,
I have several problems with DateTimePicker widget used for
Hi Pierre,
Thanks for your code.
Yes I did get it working with annotation, phew!
Nicole
-Original Message-
From: Pierrot52 [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 16 July 2008 9:48 PM
To: user@struts.apache.org
Subject: Re: struts2 validation
Hi Nicole,
This is an action class
Hi,
Oops sorry wasn't aware of a struts menu mailing list.
I will post there, thank you!
On Wed, Jul 16, 2008 at 5:57 PM, Antonio Petrelli
[EMAIL PROTECTED] wrote:
2008/7/14 nauke. [EMAIL PROTECTED]:
Hi!
I'm using struts version 2.0.11.
I am using struts menu, which works provided it
I want my users to be able to leave the wait page and return. Can this
be done, what is the best way?
I've got two actions. ActionA displays a form and the form submits to
ActionB. ActionB is using the ExecAndWait interceptor. Right now users
have to resubmit the form to get back to their status
Am Freitag, 20. Juni 2008 13:43:00 schrieb Ted Husted:
But why does web application still seem so difficult or so
time-consuming? Are there time bandits that still suck days or weeks
out of your development schedule? Are there time gremlins that
nickel-and-dime you every hour of every day? Is
Hi All,
I need to translate:
if ( a == 'option1' || a == 'option2' )
to struts code
I don't know how to put || or in logic:equal ?�?�?�?
Thanks in advance
--
View this message in context:
48 matches
Mail list logo