hi,
i am facing proble for the following
=
assigning value to check box
say logic:iterate is having arraylist
this arraylist is with beans
means for example employee bean
i want to view all emps in jsp
what we will do is we create a bean for each employee
and add tht
Hi,
As I understood what you have to do is,
Iterate through your list and add checkboxes as folllwing...
logic:iterate id=Emp type=...
html:checkbox property=prop1 value=true
onclick=submitForm(editaction.do?id=bean:write name=Emp
property=ID/) /
bean:write name=Emp property=name/
great, thanks for feeding back :-)
Niall
On 12/13/06, Joseph McGranaghan [EMAIL PROTECTED] wrote:
Yep, everything seems to work fine besides other upgrade issues.
Thanks again.
Joseph McGranaghan wrote:
Thanks Naill, you're the man! :-)
I'll reply my results to the list.
-Joe
Niall
Hi Mano,
In the code you have written logic:iterate id=Emp type=...
Emp should be the name of the ArrayList right?
and in logic:iterate type is there? i hope you mean to say collection= ..
and i need to submit the form after selecting what ever checkboxes that i
need to delete and then click
Hey Eric, this is a great detailed response and would make a good wiki
page - theres one for the similar EventActionDispatcher - but your
answer looked more readable
http://wiki.apache.org/struts/EventActionDispatcher
if you feel like adding it I'm sure others would appreciate it down the
Hi, i've a questione regarding sum calculation in a table:
The jsp look like this one:
logic:present name=lista
div class=listac:set var=recCount value=${0} /
table class=scrollable id=lista
thead
tr
Hi ,
I'm using 1.2 any how...what I mean in the Iterate code is that you simply
Define an ID for the bean that you are about to iterate...
For an instance,
logic:iterate id=EMp name=YourFormBean property=EmplyList
type=com.yourCom.common.beans.Employee
/logic:iterate
So you'r going to
Dear Mano,
I need to display the employees from the emp table
emp table is having following columns
1) empid
2) fname
3) lname
4) email
5) mobile ...etc
so when i fire a query i will be getting Result Set. while looping the
result set i am creating EmployeeBean
eg:
while(rs.next()){
Hi Kranti,
I also had a similar requirement. But I did it in bad way.. which is ...
input type=checkbox name=EMPIDS value=%=((( EmployeeBean)
EMp).getEmpID())%/
See if this helps you as a quick fix. But if you get a better solution
do let the group know
Thanks regards,
Anil.
Dear Anil,
thanks for the information.
but the one you are doing is a traditional way of getting the data.
but as we are using struts there should be some good way to get this done.
if i get any solution i will update the forum
On 12/13/06, Anil Kumar T [EMAIL PROTECTED] wrote:
Hi Kranti,
hi
i am using the following code in jsp
ArrayList alEmpList = (ArrayList) request.getAttribute(alemp);
logic:iterate id=empbean property=alEmpList type=com.emp.EmployeeBean
bean:write name=empbean property=strEmpName/
/logic:iterate
but i am not getting the value from the bean that is
Hi friends
i am working on struts in Exadel studio
i am getting the error:
--
log4j:WARN No appenders could be found for logger
(org.apache.commons.beanutils.ConvertUtils).
log4j:WARN Please initialize the log4j system properly.
Are you using jsp, freemarker or velocity?
Where is displaytags getting its table from?
Here are a couple of pages that may help.
http://struts.apache.org/2.x/docs/application-session-request-objects-in-jsp.html
I'm successfully hot-deploying war files to WebLogic 8.1
-Original Message-
From: Harish Kumar [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 1:54 AM
To: Struts Users Mailing List
Subject: Re: Hot deploying struts application
hi,
Thanks for the reply.But sorry to
Where do your class files go?
-Original Message-
From: Mallik [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 7:04 AM
To: user@struts.apache.org
Subject: log4j configurations?
Hi friends
i am working on struts in Exadel studio
i am getting the error:
I have checked thanks, but i dont have two same div ids.
Musachy Barroso-2 wrote:
Check that you are not using the same id for two different divs.
musachy
walidito wrote:
Hi,
I must be unlucky with struts 2, but I based myself on the showcase
(example2) to test the tabbed panel on
I've never used Exadel, but you can try to look for a WEB-INF/classes
or WEB-INF/lib directory in your project, they are usually included in
IDE-based execution.
HTH,
-ed
On 12/13/06, Mallik [EMAIL PROTECTED] wrote:
Hi friends
i am working on struts in Exadel studio
i am getting the error:
hi,
i have an ArrayList of beans
each bean contains empid, empname
i need to populate them into drop down
option value as empid and display value as empname
plz suggest something for this
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
i have an ArrayList of beans
each bean contains empid, empname
i need to populate them into drop down
plz suggest something for this
http://struts.apache.org/1.2.x/userGuide/struts-html.html
d.
Hi,
As my experience with struts 2's ajax features is turning to a nightmare, I
would likw to know if struts 2 is compatible with the latest version of
Jboss Portal, I mean the 2.6 version.
Because the struts 2 site says it is compatible with the 2.2 version, wich
seems to be strange since struts
I'm preparing to make the switch from Struts 1.x to Struts 2 for new
development and had a few questions related to how objects used to render data
in a JSP page should be stored/retrieved for a desired http namespace. One of
the design tenants I try to employ in my current S1 webapp is
Just provide getter methods on your action. Then, you can retrieve
the data in your jsp through either jsp expressions - ${myProp} - or
the Struts 2 tags. Struts 2 makes your action object's properties
automatically available to your jsp or other template file.
Don
On 12/13/06, Jon Wilmoth
I have thought about that, but before I do I'd like to know how/when objects
are pushed/popped off the ValueStack. I'd hate to have all the data needed to
render a single page maintained in the session. This is particularly important
if you have a series of screens that might be tied to a
An action object is created for every request. If you need to
preserve data across requests, the most basic way is to use the
session directly (implement SessionAware). Then, your action gets the
session map through a setter. There are other options in various
stages of development including a
Hello Walid
I would Start here
http://wiki.opensymphony.com/display/WW/Portlet+Tutorial
Martin--
---
This e-mail message (including attachments, if any) is intended for the use of
the individual or entity to which it is
Hi,
I am implementing modules in my application and I want to know the
best way to do that in terms of how I want the application to behave.
This may or may not be possible but bear with me...
My application is a calendaring system for a specific audience. The
default application affords
Hi all,
I'd like to load a file containing the parameters to connect to DB at the
application startup. In the S2 documentation I read about the key
initialization parameters (http://struts.apache.org/2.x/docs/webxml.html)
and so I add the 2 lines init-param to my web.xml like this :
filter
If you just need to load a few properties, you shouldn't have to touch
Struts at all. Just create a file, say,
WEB-INF/classes/db.properties, then load it in your Java code via:
Properties props = new Properties();
props.load(this.getClass().getClassLoader().getResourceAsStream(/db.properties);
I have a filter configure question about struts2,i want to filter character
code in web.xml file,I know how to configure it in struts 1.3,
C:\tomcat\webapps\exercise\WEB-INF\web.xml
...
filter
filter-nameSet Character Encoding/filter-name
Don't need to include the .do in html:link
On 12/13/06, Jon Wynacht [EMAIL PROTECTED] wrote:
Hi,
I am implementing modules in my application and I want to know the
best way to do that in terms of how I want the application to behave.
This may or may not be possible but bear with me...
My
You need two filter-mapping elements, and I'd put your filter first. Change:
filter-mapping
filter-namestruts2/filter-name
url-pattern/*/url-pattern
filter-nameSet Character Encoding/filter-name
url-pattern/*/url-pattern
/filter-mapping
To:
filter-mapping
filter-nameSet Character
Should also mention, Struts 2 will set the character encoding for you
via the struts.i18n.encoding setting. This can be set either as an
init-param to the Struts 2 filter, in
/WEB-INF/classes/struts.properties, or in your struts.xml. See
I am puzzled with struts2.0 action file,my files are follows:
configure file is follows
action name=createRoom class=crudRoomAction method=create
result name=read/chat/read.jsp/result
result name=write/chat/write.jsp/result
/action
action file is follows:
public String execute() throws
You need to create static field variables for those constants in your
Action class:
public static final String READ = read;
public static final String WRITE = write;
Don
On 12/13/06, red phoenix [EMAIL PROTECTED] wrote:
I am puzzled with struts2.0 action file,my files are follows:
configure
You should try using Mulitbox.
http://www.jguru.com/faq/view.jsp?EID=925277
Example is
logic:iterate id=apprEnEntry name=listApprvGrpDetail
indexId=apprIndex
tr bgcolor=#E7
td align=center nowrapnbsp;nbsp;bbean:write name=apprEnEntry
property=appvr_grp_desc/nbsp;nbsp;/b/td
hi,
Can you tell me whts the procedure for doing it, am doing deployement using
exploded archieve. Am using Tiles in my application. Do you also use it?
Dont you do restarting of server at all ?
thanks,
Harish
On 12/13/06, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
I'm successfully
hi,
can anyone tell how *
ActionMessages can be used in struts along with html:message tag
*
This will work u
logic:messagesPresent
table align=center border=0
tr
td
UL
html:errors/
html:messages id=msg message=true
li class=error_messagebean:write name=msg //li
/html:messages
/UL
/td
/tr
/tablebr /
/logic:messagesPresent
Thanks
Nagesh
-Original
thanks for the info
i am trying the following
In Action Class:
ActionMessages addTaskMessages = new ActionMessages();
addTaskMessages.add(addtasksuccess, new ActionMessage(
message.addtask.sucess));
saveMessages(request, addTaskMessages);
IN JSP
logic:messagesPresent
Thank you Don,
In fact, I don't want to have the name of my properties file to be hard
coded... So I thought about the key initialization parameters that allowed
me to set the name of the file and the Java class to load it.
Do you think it is a right way to do it, or maybe should I think about a
Hi Frank,
Referring to your response..
you might also be able
to have a base Action that all your Actions extend from, and the base
action does the transformation before the real work happens. This might
work if you don't need the transformation to happen before that point.
How does this works
Thanks Dave. This is very useful...
Anil.
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 8:57 PM
To: Struts Users Mailing List
Subject: RE: dynamic html:select
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
i have an ArrayList of beans
Hey guys...
Am posting solution to my problem.
The mail culprit is form name mentioned in jsp was different from the
form name mentioned in the struts-config.xml file. I made both same then
it worked!
For some javascript purpose we had to name the form in the jsp. This is
the only
43 matches
Mail list logo