Hi,
Struts Version - 2.1.7
We have an issue with the Map>. Here is the
scenario, we are displaying the data from the List on the UI as the
text fields. When a user changes and submits the form, the form data
has to be saved.
We are able to display the data from the List onto the UI. When the
Hi ,
Iam beginner in Struts2,
iam having query on Execute and wait Interceptor ,
my code flow is like this
Login->Wait Interceptor->Menu/Fail.jsp
I added Interceptor in Struts.xml
Wait.jsp
menudemo.jsp
Fai
Maybe this will clear things up. This is a working example from our site:
No Users
Found
Reset
Password
(*Chris*)
On Wed, Jan 6, 2010 at 5:00 PM, Chris Pratt wrote:
> In your action, add a getList() method that returns the list generated by
>
In your action, add a getList() method that returns the list generated by
the action, then just pass name="${list}" to the display:table tag. Or, you
could create the list and put it in the request or session scope and it
would work exactly the same.
The trick with the interceptor is just to get
wah can share how the interceptor work with display tag
sorry if this is silly question, but honestly i still need the glue
usually i create a private xxx List, and will be passed to the list
how integrate the list $xxx with the display tag?
thx
On Thu, Jan 7, 2010 at 7:25 AM, Chris Pratt wr
It's just a standard JSP Tag Library. Because Struts 2 has the Request
Wrapper, you can use standard JSTL EL to get the list from your action and
pass it to the DisplayTag Table, from then on it's just using the
capabilities of DisplayTag to put the data where you want it. The one
caveat is that
can share how the struts2 work with display tag
sorry never use this also, how the display tag work with List when we
submit the grid
F
On Thu, Jan 7, 2010 at 7:00 AM, Chris Pratt wrote:
> We use DisplayTag (http://www.displaytag.org), it works pretty well.
> (*Chris*)
>
> On Wed, Jan 6, 2
We use DisplayTag (http://www.displaytag.org), it works pretty well.
(*Chris*)
On Wed, Jan 6, 2010 at 3:28 PM, Sergio
wrote:
> Hi, people, how can i show a table into a jsp from the struts action? Are
> there a simple method for doing that? I've tried with java collections into
> the action and
Hi, people, how can i show a table into a jsp from the struts action?
Are there a simple method for doing that? I've tried with java
collections into the action and "property" tag into the jsp with no success.
thanks in advance
--
Sergio
--
If you will submit multiple EmpBean, your action will need some sort
of Collection (a List or Map I commonly use) with its getter
& setter.
You must name correctly your input parameters so that the
ParameterInterceptor assign them right, that is, you name it as the
collection variable, indexed by
Dear All,
I'm having following requirement and can you please let me know how to do
this using struts2.
Say EmployeeAction having EmpBean (getter & setter)
EmpBean:
private long emp_id;
private String first_name;
private String last_name;
private String class_name;
Paweł Wielgus escribió:
Hi,
sorry for too fast response,
i see that it is implementing it,
another thing to notice is that
in action You have access to session field which is a map constructed
by struts, not real session object - as far as i remember.
In jsp you can do < s:property value="session
The collection used in an optionscollection object
doesn't keep track of which option was selected; that
is done via and whatever action-form
property that is bound to. The
object will take care of re-rendering the selected object
if your action-form is maintained in session scope, and
you
Actually the second starts by being greyed out, after selecting one
parameter in the first list it will be filled with the collection of values
(retrieved after knowing what the user has selected in the first ).
I just keep the first collection into session and call the struts action
through the
Does the second element's options change when the first
element is changed?
Is the second element's options based on what was selected
in the first element?
How do you get the JSP to re-render when the first element
is changed?
> -Original Message-
> From: Hanen Ben Rhouma [mailto:
When re-rendered it displays two drop down lists filled with two collections
results but blank default value shown on both of them while I need to keep
the first selected value shown to the user.
On Wed, Jan 6, 2010 at 5:21 PM, Kawczynski, David <
david_kawczyn...@merck.com> wrote:
> That's odd.
You might have more luck posting this on the DisplayTag user list.
(*Chris*)
On Wed, Jan 6, 2010 at 8:29 AM, Saeed Iqbal wrote:
> The titleKey is not working when display:column tag is closed outside of
> its
> declaration body. When it has some lines in it to display in table. It
> doesnt wor
The titleKey is not working when display:column tag is closed outside of its
declaration body. When it has some lines in it to display in table. It
doesnt work.
--
Saeed Iqbal
Independant Consultant
J2EE - Application Architect / Developer
Just an FYI: the link to the struts 2.1.8.1 source zip file points to the
struts 2.1.8 source,
http://apache.inetbridge.net/struts/source/struts-2.1.8-src.zip (it should
be http://apache.inetbridge.net/struts/source/struts-2.1.8.1-src.zip).
Brice
That's odd.
If you were to the actionform's property
when the page is re-rendered, what does it contain?
> -Original Message-
> From: Hanen Ben Rhouma [mailto:hanen...@gmail.com]
> Sent: Wednesday, January 06, 2010 10:54 AM
> To: Struts Users Mailing List
> Subject: Re: Why options
Yes it is.
On Wed, Jan 6, 2010 at 4:19 PM, Kawczynski, David <
david_kawczyn...@merck.com> wrote:
> To further clarify:
> Is the optionscollection inside an element?
> Is the scope of the corresponding action-form "session"?
>
> > -Original Message-
> > From: Kawczynski, David
> > Sent:
Hi,
sorry for too fast response,
i see that it is implementing it,
another thing to notice is that
in action You have access to session field which is a map constructed
by struts, not real session object - as far as i remember.
In jsp you can do < s:property value="session.get('variable')" > to
sho
To further clarify:
Is the optionscollection inside an element?
Is the scope of the corresponding action-form "session"?
> -Original Message-
> From: Kawczynski, David
> Sent: Wednesday, January 06, 2010 9:46 AM
> To: Struts Users Mailing List
> Subject: RE: Why optionscollection doesn't
See the FAQ
http://struts.apache.org/2.x/docs/how-do-we-repopulate-controls-when-validation-fails.html
On Mon, Jan 4, 2010 at 2:40 AM, Rakesh K nair wrote:
>
> Hi
>
> In my struts2 jsp page there is a "selection list".I am populating the
> "list" from action class before rendering the page.I hav
Paweł Wielgus escribió:
Hi Sergio,
add SessionAware interface to your action.
Best greetings,
Pawel Wielgus.
2010/1/5, Sergio :
Sergio escribió:
Hi people,
i'm a newbie to struts2. I'm having too many problems modifing session
parameters. I use <%= session.getAttribute( "variable" )
Hi Sergio,
add SessionAware interface to your action.
Best greetings,
Pawel Wielgus.
2010/1/5, Sergio :
> Sergio escribió:
>> Hi people,
>>
>> i'm a newbie to struts2. I'm having too many problems modifing session
>> parameters. I use <%= session.getAttribute( "variable" ) %> to gain
>> access to
Is the scope of the corresponding action-form "session"?
> -Original Message-
> From: Hanen Ben Rhouma [mailto:hanen...@gmail.com]
> Sent: Wednesday, January 06, 2010 5:26 AM
> To: Struts Users Mailing List
> Subject: Why optionscollection doesn't persist the clicked value
>
> Hello,
>
Hello,
I don't understand why optionscollection doesn't persist the clicked value.
I'm using many of them: second one is filled after selecting one parameter
from the first one and so on but the thing is that after each selection it
reloads the jsp page without persisting the first clicked value
28 matches
Mail list logo