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 difference
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
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
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
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
same
This will work u
Thanks
Nagesh
-Original Message-
From: Kranti [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 14, 2006 11:03 AM
To: Struts Users Mailing List
Subject: ActionMessages
hi,
can anyone tell how *
ActionMessages can be used in st
hi,
can anyone tell how *
ActionMessages can be used in struts along with html:message tag
*
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 hot-de
You should try using Mulitbox.
http://www.jguru.com/faq/view.jsp?EID=925277
Example is
Uday Chandra Karrothi
On 12/12/06, Kranti Parisa <[EMAIL PROTECTED]> wrote:
Hi,
Please suggest me some idea to achive the following
from DB getting
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:
confi
I am puzzled with struts2.0 action file,my files are follows:
configure file is follows
/chat/read.jsp
/chat/write.jsp
action file is follows:
public String execute() throws Exception {
String flag=request.getParameter("flag");
if("1".equals(flag))
return SUCCESS;
else if("2".equ
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
http://struts.apache.org/2.x/docs/configuration-files.ht
You need two elements, and I'd put your filter first. Change:
struts2
/*
Set Character Encoding
/*
To:
Set Character Encoding
/*
struts2
/*
Don
On 12/13/06, red phoenix <[EMAIL PROTECTED]> wrote:
I have a filter configure question about struts2,i want to filter chara
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 app
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
...
Set Character Encoding
filters.SetCharacterEncodingFilter
encoding
gb2312
Set Charac
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")
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 to my web.xml like this :
action2
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
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 add
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
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 sing
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 <[E
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 minimizi
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
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,
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
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:
-
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
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'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
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
http://struts.apache.org/2.x/docs/exposing-framework-objects-to-jstl-with-a-jstl-and-d
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.
hi
i am using the following code in jsp
ArrayList alEmpList = (ArrayList) request.getAttribute("alemp");
but i am not getting the value from the bean that is there in the List
Please do suggest me
On 12/13/06, Kranti Parisa <[EMAIL PROTECTED]> wrote:
Dear Anil,
thanks for the i
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 Kranti,
I also had a similar requirement. But I did it in bad way.. which is ...
See if this helps you as a quick fix. But if you get a better solution
do let the group know
Thanks & regards,
Anil.
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Wednesd
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()){
EmployeeBe
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,
So you'r going to iterate thru your "EmplyList" and refer
Each of ur bean by name "EMp".
Then you can get whatever the attribute you
Hi, i've a questione regarding sum calculation in a table:
The jsp look like this one:
Nr
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 road.
Hi Mano,
In the code you have written
"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 on the detele button.but i
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
>
>
Hi,
As I understood what you have to do is,
Iterate through your list and add checkboxes as folllwing...
")" />
Regards,
Mano
-Original Message-
From: Kranti Parisa [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 13, 2006 2:07 PM
To: Struts Users Mailing List
Subject: logic
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 bean
43 matches
Mail list logo