Hi,
When we are trying to do this(@s.textfield
name=poll.pollOptions[#{rowIndex}].option /) are assign a new name to every
textbox.So why will the array return.It return them as different params and
tries to autowire.So Use a ommon name for them and see what happens when you
submit the
2007/7/4, Sean Conlon [EMAIL PROTECTED]:
I have not read all the related posts, so this may have already been said,
but the Controller concept is not specific to Struts-Tiles. It is
simply
the C within the MVC pattern, which many technologies (i.e. Struts,
Spring) use.
We were talking
Sharad, thank you for the answer.
Keeping in mind what you said, I tried to make it work like this:
s:iterator value=manyNames status=cnt
s:checkbox name=manyNames
s:property value=[${cnt}]/
/s:checkbox
/s:iterator
This populates the checkboxes, but when I submit the
Hi, I don't know if I can post here a question about version 2.1 but ... I do
:)
I have downloaded and compiled (from svn) the version 2.1 of Struts2. My
question is: is it possible
to set the default value of a datepicker field so that when i make a mistake
filling the field it don't change
s:checkboxlist
label=List
list=${YourPredefinedList}
name=CommonName(is only one name)/
or
s:iterator value=manyNames status=cnt
s:checkbox name=CommonName(is only one name) fieldValue=[${cnt}]
/s:checkbox
/s:iterator
Any of this
Thank you very much Sharad, that WORKS! :]
Just for the archive, this is also a possibility:
s:iterator value=manyNames status=cnt
s:checkbox name=manyNames
fieldValue=${manyNames[cnt.index]}
/s:checkbox
/s:iterator
I am trying to populate a s:select using a Hashtable.
jsp:useBean id=sessionObject scope=session class=aps.UserSession /
jsp:useBean id=customer scope=page class=aps.Customer
type=aps.Customer /
% customer.getCustomersForUser(sessionObject.getUserName()); %
s:form
s:select
I'am using struct 2.0.6.
I need to populate a select tag list with different colors for each item
according to some conditions.
example:
First Item (in BLACK)
Second Item (in GREEN)
Third Item(in GREEN)
Fourth Item (in RED)
Is it possible? I haven't seen something like that
Hello Struts users,
I am new for the struts 2 and i have some problem with param setting. I
develop a simple action to view user detail: UserViewAction this action have
only a execute method, loading a user by userId param. So the action work
fine, but the jsp page do not display anything.
2007/7/4, Filippo De Luca [EMAIL PROTECTED]:
Hello Struts users,
I am new for the struts 2 and i have some problem with param setting. I
develop a simple action to view user detail: UserViewAction this action have
only a execute method, loading a user by userId param. So the action work
fine,
Um... is there corresponding HTML/AJAX code you know of that can
accomplish that?
I don't think I've ever seen the like.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I am new to struts and I am trying to write an interceptor.
I have the interceptor set up so it runs on every action (except one).
The interceptor checks the users session to make sure it has not
timed out.
If the session is after timing out I want to create a new session and
add some values to
Hy guys,
I`m trying use the tag s:action with struts 2 but it seems that this tag
doesn`t works perfectly.
The problem is that I create a jsp that contains this tag s:action. The
param 'name' of this tag contains the name of a action that I create. The
result of this action redirect to a jsp
Hi,
I am new to Struts 2 and have a problem installing Struts 2 on tomcat
5.5.23.
After copying the war files to the webapps directory of tomcat(but did NOT
copy the jars anywhere), I get a problem deploying
struts2-portlet-2.0.8.war:
init
INFO: ... initialized Struts-Spring integration
Dear Strtuts users
It is possible, in checkboxlist, to arrange checkboxes vertically?
Thanks
--
Filippo De Luca
[EMAIL PROTECTED]
http://www.filosganga.it
--
Circolo Canottieri Roma
Lungotevere Flaminio, 39 - 00196 - Roma - Italia
There is a example for populating a select using alist on this page:
http://struts.apache.org/2.0.8/docs/select.html
I was wondering what:
list=petDao.pets
listKey=id
listValue=name
are referring to?
Is petDao a java bean? Is it an action? How do you set it up on the
page? What is pets?
Hi All,
Does anyone have a link to a simple example for unit testing an interceptor and
creating a mock ActionInvocation? The example in the Struts 2 documentation
(http://struts.apache.org/2.0.8/docs/how-can-we-test-actions.html) is hard to
understand and reuse in my code.
Thanks for any
Hi,
This is the 3rd attempt I make to get an answer on how to force a jsp result
page to be returned as a single window if html frames are used. Please give me
any hint as to how I can get this done.
Thanks,
Session
-
To
I tried using s:include with nested s:param tags, but could not read the
parameters using the s:property tag at all. The only way that I could read
the parameter was by using:
%= param1: + request.getParameter(param1) %
as suggested in:
When directly calling an action we can send a petition like
.../ActionName.action?var1=val1var2=val2
using the GET method.
I understand that that calls an action with a couple of parameters.
Can I do something similar when calling an action from the s:action
tag ? that is, Can I call an
You might look into the Tiles project (http://tiles.apache.org), that's
exactly what it's designed to do.
(*Chris*)
On 7/4/07, Ezra Jennings [EMAIL PROTECTED] wrote:
I tried using s:include with nested s:param tags, but could not read the
parameters using the s:property tag at all. The only
Hi,
for the readers of my previous messages I'm still facing the problem.
After having upgraded the application server and even re-designed
some code to not use JMS to exclude some possible causes now I think
I've found something interesting. And it's struts related.
I've keeped some
--- Richard Sayre [EMAIL PROTECTED] wrote:
http://struts.apache.org/2.0.8/docs/select.html
I was wondering what:
list=petDao.pets
listKey=id
listValue=name
are referring to?
1) Is petDao a java bean? 2) Is it an action?
3) How do you set it up on the page? 4) What is
pets?
On 7/4/07, Dave Newton [EMAIL PROTECTED] wrote:
--- Richard Sayre [EMAIL PROTECTED] wrote:
http://struts.apache.org/2.0.8/docs/select.html
I was wondering what:
list=petDao.pets
listKey=id
listValue=name
are referring to?
1) Is petDao a java bean? 2) Is it an action?
3) How do you
All the traces points me to this function on the xwork library
Since it contains an infinte loop it's promising ;)
Need to sleep now, I hope tomorrow to find someone else solution in
my inbox :)
Thank you
public static Object translateVariables(char open, String
expression,
because you have the list, you can do the following
s:checkboxlist
label=TEST LIST
list=manyNames
name=CommonName/
You dont need to iterate
--- Andreja [EMAIL PROTECTED] wrote:
Thank you very much Sharad, that WORKS! :]
Just for the archive, this is
26 matches
Mail list logo