I have an idea about the development of struts. If there is another way
please let me know!
i want to reuse an action in different context like this:
i mention that im using this mapping in web.xml : *.do
Ive tried 2 approaches
approach 1
defining 2 actions in struts like this:
a
I would take everything out of your JSF page and then start adding things in
one by one until you find what is causing the missing the property editor
error.
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: Daniel [EMAIL PROTECTED]
Reply-To: Struts Users
- I'm not sure that order is guaranteed when you have two params with
the same name at time they are submitted.
I thought multiple parameters with the same name is how Struts did
actions with array-typed properties. That's what's done on the File
Uploads How-To.[1] Is that example potentially
--- Allen, Daniel [EMAIL PROTECTED] wrote:
I thought multiple parameters with the same name is how Struts did
actions with array-typed properties. That's what's done on the File
Uploads How-To.[1] Is that example potentially broken, then?
No; the order of parameters doesn't matter there,
Mihai Scripca wrote:
approach 1
defining 2 actions in struts like this:
a /view/CerereActEdit.do - X.class
b /edit/CerereActEdit.do - X.class (same class)
c /CerereActEdit.do - X.class (same class)
but it seems that struts, whatever action i ran it always uses c mapping!
This is because of
Dale Newfield wrote:
Mihai Scripca wrote:
approach 1
defining 2 actions in struts like this:
a /view/CerereActEdit.do - X.class
b /edit/CerereActEdit.do - X.class (same class)
c /CerereActEdit.do - X.class (same class)
but it seems that struts, whatever action i ran it always uses c
Have you tried this syntax?
s:checkbox name=skillCode key=%{propertyGoesHere}/
Regards,
Randy Burgess
Sr. Web Applications Developer
Nuvox Communications
From: Emil.I [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List user@struts.apache.org
Date: Mon, 24 Mar 2008 10:23:07 -0700 (PDT)
I'm pretty much lost at this point.
What version of struts are you using?
--- Mihai Scripca [EMAIL PROTECTED] wrote:
the server gets the request: /app/view/formAction.do, executes it then
goes to struts-config.xml to find the forward and finds:
form path='/formAction.do
forward
If i put:
s:checkbox name=skillCode key=%{skillCode}/
skillCode being the property of object in a set whihc i iterate over,
doesn't work.
Randy Burgess-3 wrote:
Have you tried this syntax?
s:checkbox name=skillCode key=%{propertyGoesHere}/
Regards,
Randy Burgess
Sr. Web
--- Emil.I [EMAIL PROTECTED] wrote:
s:checkbox name=skillCode key=%{skillCode}/
skillCode being the property of object in a set whihc i iterate over,
doesn't work.
Try #skill.skillCode, if you're using skill as the ID of the iterated
object.
s:iterator value=job.skills id=skill
Dave Newton wrote:
I'm pretty much lost at this point.
What version of struts are you using?
Im using struts 1.2.7
This is not the behaviour of struts but my desired behaviour!
The server should get the request: /app/context/formAction.do, execute the action formAction ,then
should
Mihai Scripca wrote:
Dale Newfield wrote:
D'oh--sorry--I was assuming struts2. My answers are therefore not
applicable.
-Dale
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am using struts 1.x and looking at html:select and
html:optionsCollection for an example on how to use that.
It works great if I have one combo-box with my form.
I have an array of labels:
label_x
label_y
label_z
etc.
each one is a combo-box and they ALL have the same options to pick from,
Hi
I dont know whether I good understant, but the interface Set have not KEY.
Supply the Set to List or Map.
Then you can use:
s:iterator value=%{myList}
s:checkbox label=value name=key value=true /
Ohh man
guess what i used %{property} for label element and everything is fine.
newton.dave wrote:
--- Emil.I [EMAIL PROTECTED] wrote:
s:checkbox name=skillCode key=%{skillCode}/
skillCode being the property of object in a set whihc i iterate over,
doesn't work.
Try
you can also use s:checkboxlist
http://struts.apache.org/2.0.6/docs/checkboxlist.html
so in your case take myList and use it to set the list attribute as in this
example
s:checkboxlist name=foo list=myList/
M-
- Original Message -
From: Kibo [EMAIL PROTECTED]
To: user@struts.apache.org
Is this form of map creation no longer supported?
http://struts.apache.org/2.x/docs/select.html
I'm getting the dreaded Syntax error in EL on the list attribute using
2.0.11
--
View this message in context:
--- stanlick [EMAIL PROTECTED] wrote:
Is this form of map creation no longer supported?
http://struts.apache.org/2.x/docs/select.html
I'm getting the dreaded Syntax error in EL on the list attribute using
2.0.11
From where are you getting that error? If it's from the container then you're
Exceptions kill! I added the following and it works now. However, I'm still
getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP editor
when it encounters the # character.
jsp-config
jsp-property-group
url-pattern*.jsp/url-pattern
el-ignoredtrue/el-ignored
--- stanlick [EMAIL PROTECTED] wrote:
Exceptions kill! I added the following and it works now. However, I'm
still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
editor
when it encounters the # character.
MyEclipse doesn't know OGNL.
Dave
Arh
Now i's ignoring my valid ${foo.bar.baz} JSTL expressions too!
stanlick wrote:
Exceptions kill! I added the following and it works now. However, I'm
still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
editor when
#{} is reserved by JUEL. use the alternative map building notation.
musachy
On Mon, Mar 24, 2008 at 4:53 PM, stanlick [EMAIL PROTECTED] wrote:
Is this form of map creation no longer supported?
http://struts.apache.org/2.x/docs/select.html
I'm getting the dreaded Syntax error in EL on
I personally introduced my MyEclipse to OGNL:-p
newton.dave wrote:
--- stanlick [EMAIL PROTECTED] wrote:
Exceptions kill! I added the following and it works now. However, I'm
still getting the warning in the MyEclipse Enterprise Workbench 6.0 JSP
editor
when it encounters the #
[EMAIL PROTECTED]@{ foo : foo value, bar : bar value }
http://www.ognl.org/2.6.9/Documentation/html/LanguageGuide/collectionConstruction.html#mapConstruction
musachy
On Mon, Mar 24, 2008 at 5:11 PM, stanlick [EMAIL PROTECTED] wrote:
Arh
Now
I thought I had read that s:select
list=\#{'01':'Jan','02':'Feb',[...]}: worked around the problem.
(*Chris*)
On Mon, Mar 24, 2008 at 2:14 PM, Musachy Barroso [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED]@{ foo : foo value, bar : bar value }
Hi all,
I'm having a problem with datetimepicker.
The form works great; the user is able to enter the date and I can persist
the data. Problem is when I wish to post the information on the screen - the
bean is populated but the value is not shown on the form :-(
code:
s:datetimepicker
--- xianwinwin [EMAIL PROTECTED] wrote:
s:datetimepicker name=Register.dob
value=
type=date
staticDisplay=true
Sorry.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
duahhh me!!!...
thanks Dave, I got it, the value= caused it
:-)
working fine!
newton.dave wrote:
--- xianwinwin [EMAIL PROTECTED] wrote:
s:datetimepicker name=Register.dob
value=
type=date
Hi,
I'm using the ajax theme and I wonder if anyone can assist in the validation
issue.
When the user clicks 'Update' and everything goes well, a message- Update
successfully is shown next to the update button.
when the user enter an invalid data - the validation interceptor kicks in
and a
Hi, we have an S2 application with a lot of actions that are supposed to be
called from html forms. Since a few weeks ago something or someone has
started calling these actions directly, hence the required input values are
missing (which generate a lot of error mails to us administrators).
What
Thanks brother --
Will 2.1 offer a pluggable EL? This should help to ease many of the UI
struggles.
Scott
On Mon, Mar 24, 2008 at 4:11 PM, Musachy Barroso [EMAIL PROTECTED] wrote:
#{} is reserved by JUEL. use the alternative map building notation.
musachy
On Mon, Mar 24, 2008 at 4:53 PM,
Hi,
When I deploy struts2-showcase.war to WAS 6.1 and open in browser, it
complained some .js files not found, such as dojo.js, ntify.js. And I click
Validation - Client using css_xhtml there's more .js file not
found(Validation), the same error happend when I deploy my application into
WAS.
all of the .js files are in the main struts jar
did you check \WEB-INF\lib\struts2-core-2.0.11.jar?
Martin
- Original Message -
Wrom: HSCRTNHGSWZIDREXCAXZOWCONEUQZAAFX
To: user@struts.apache.org
Sent: Monday, March 24, 2008 8:58 PM
Subject: Error occurs in WebSphere - validatation.js not
Yes, I'm already check my application and struts2-showcase...
I don't know why WAS can't found validataion.js in struts2-core.jar, because
I see validation.js in Firebug... and If I change container from WAS to
others like jetty or tomcat, it works fine...
BTW... My WAS version is 6.1.0.0, do I
Hi all,
Is there any tag can be used to display message icons? I mean icons like alert,
error, info and etc.
Talos
On Mon, Mar 24, 2008 at 10:03 PM, Chen Chunwei
[EMAIL PROTECTED] wrote:
Hi all,
Is there any tag can be used to display message icons? I mean icons like
alert, error, info and etc.
Talos
img src=images/alert.gif /
(*Chris*)
Er... I mean custom tags for free.
- Original Message -
From: Chris Pratt [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, March 25, 2008 1:26 PM
Subject: Re: About Message Icons
On Mon, Mar 24, 2008 at 10:03 PM, Chen Chunwei
[EMAIL PROTECTED]
On Mon, Mar 24, 2008 at 10:45 PM, Chen Chunwei
[EMAIL PROTECTED] wrote:
Er... I mean custom tags for free.
What should this custom tag do that the free img tag doesn't do?
(*Chris*)
-
To unsubscribe, e-mail: [EMAIL
Maybe some pre-defined style of message display or something else.
I know I can do these all myself. But if there's already something can do this,
why not just use it?
- Original Message -
From: Chris Pratt [EMAIL PROTECTED]
To: Struts Users Mailing List user@struts.apache.org
Sent:
40 matches
Mail list logo