Hi,
Here is how you can do it:
1) Have an independent JSP which will just include the grid using the
s:iterator tag.
2) The forward/result of the servlet/action given in the AJAX request should
be this JSP.
3) In the AJAX callback function, the above JSP will give the HTML to be
rendered.
4) Use
Hello struts users
We are facing a strange problem. We submit a form with textfields which
contain some float numbers.
When the entity is loaded the numbers appears in the textfield like this :
x.x
But when we submit the form, it is the input result which is returned. If we
change the numbers
Dear List memeber,
I have a urgent requirement in which I will have to populate a list or set
and this set / list will be getModel() for an struts action.
How to write jsp code so that the set is populated directly here.
Like say I have a list of address and from form
address 1
address 2
Dear List members,
More over I don;t know how many address will the user enter, it can 0 or
10, need to generate jsp code dynamically
Address [+]
How are we going to achieve this type of functionality.
What are best practices in setting multiple values of same object from FORM
or how to
Thanks for replying Jyothi,
I have some questions,
if we call that separate JSP file where the s:iterator resides, then how
can i show it in the main page, if AJAX request call loads the grid page,
then how can i move back to main page, because the grid should appear on the
main page.
On Thu,
hi,
I got a Maven 2 multi projects (EJB 3 / Struts 2.1.8 with convention pugin)
Deploying the war module to JBOSS 5.1.0 outside the EAR just work fine : the
plugin config browser show my action mapping, and the application is working
fine.
But when I try to package the war within the EAR (with
As far as I remember, for Struts to populate a list you just give the
same name for a setter in the action that takes a List as a parameter
as the element(s) in the Jsp. So you can have 1 textboxes *with same
name*, and if this name happens to map to a list, the list will get
populated
You will need to have a dedicated action to generate the data for the grid.
This action will have to be inlcluded in the main page. And since this
action forwards to the same grid JSP, whether you include it in the main
page or through AJAX, it will give the same effect.
On Thu, Jul 1, 2010 at
Hello,
I want to select date in format dd.MM. h:mm:ss. How to do this with
datetimepicker? I can select only date (type=date) or time (type=time), but not
both to same date text input field... or is there same way to do this?
Thanks a lot.
Tom
Hi,
I am developing a application which looks like and online exam. But the
format of questions are not same. Questions may be desriptive, Objective and
of Multiple choice.
I have a page shownextquestion.jsp. This read the next question from
database to be shown to user.
It checks if the
One Solution what I am thinking... I don't know is it possible or not
- Creating a simple html form
- On submitting, I will make a xml of user response i.e. Options selected,
and not selected for examle
Answer
Description ... /Description
Options
Option name=Opt1
Got it working... :)
Thank you very much Jyothi,
On Thu, Jul 1, 2010 at 2:57 PM, Jyothi Rajesh jyoraj...@gmail.com wrote:
You will need to have a dedicated action to generate the data for the grid.
This action will have to be inlcluded in the main page. And since this
action forwards to the
In my jsp I have:
s:iterator value=list[0].keys
ths:property value=#this//th
/s:iterator
Where list, is a ListMap...
The above produces the following html:
th[id,
app.mz.address.companynamelis...@e8e3b0,
Please provide a trimmed down version of the form, the action bean and
the struts.xml file (if there is one) showing the issue.
On Thu, 2010-07-01 at 15:04 +0800, Stephane Cosmeur wrote:
Hello struts users
We are facing a strange problem. We submit a form with textfields which
contain some
This produced the desired effect:
(added var=header to iterator tag)
s:iterator value=list[0].keys var=header
ths:property value=header//th
/s:iterator
On Thu, 2010-07-01 at 12:47 -0600, Ken wrote:
In my jsp I have:
On 7/1/10 3:51 PM, Ken wrote:
This produced the desired effect:
(added var=header to iterator tag)
s:iterator value=list[0].keys var=header
ths:property value=header//th
/s:iterator
If you have var=header in the iterator, the
On 7/1/10 4:08 PM, Ken wrote:
Adding 'var=header' to the s:iterator tag simply pushed a named
object onto the stack.
Am I missing something?
Yes.
Any use of an s:iterator always pushes the current item onto the top of
the stack during each iteration of the body. You can refer to that as
Does anyone have any ideas? Tearing my hair out with this.
Chris
- Original Message -
From: Chris Miles ch...@chrismiles.org
To: Struts Users Mailing List user@struts.apache.org
Sent: Tuesday, June 29, 2010 9:47 PM
Subject: Re: Nested Iterator Problem
Is there anything else in the
Not sure but it looks like there's an invalid character in there. Could
that be fouling things up?
(*Chris*)
On Thu, Jul 1, 2010 at 1:59 PM, Chris Miles ch...@chrismiles.org wrote:
Does anyone have any ideas? Tearing my hair out with this.
Chris
- Original Message - From: Chris
Hi Chris. Thanks for responding. I can not see any invalid characters?
Chris
Not sure but it looks like there's an invalid character in there. Could
that be fouling things up?
(*Chris*)
On Thu, Jul 1, 2010 at 1:59 PM, Chris Miles ch...@chrismiles.org wrote:
Does anyone have any ideas?
On my screen it looks like there's a British pound sign in the text, which I
believe is outside the ASCII characters set, I'm just wondering if that
could be causing the trouble. It's definitely something I've never tried
myself.
(*Chris*)
On Thu, Jul 1, 2010 at 2:14 PM, ch...@chrismiles.org
His editor should be fine with Unicode... hmm, post your action bean.
On Thu, 2010-07-01 at 14:30 -0700, Chris Pratt wrote:
On my screen it looks like there's a British pound sign in the text, which I
believe is outside the ASCII characters set, I'm just wondering if that
could be causing the
Thanks for helping
here is the strutsProduct.xml ::
?xml version=1.0 encoding=UTF-8 ?
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
struts
package name=PRODUCT extends=custom-default
action
23 matches
Mail list logo