need some help regarding Display List and Update In Struts2

2008-07-21 Thread hisameer
Hi everyone I was just going through the nabble.com and I found very nice help about struts2. Now I need some more help about it. I hope somebody is kind enough to help me. My problem is that I have to display all the users from the database and all the information related to the

Re: need some help regarding Display List and Update In Struts2

2008-07-22 Thread hisameer
Thanks for your help Lukasz! The code you gave me was really really helpful and I was able to popup the usr list. But I got some error when I added the update and delete link into the same page. Here is the snapshot of my userList.jsp: table class=userTable tr ths:text

Re: need some help regarding Display List and Update In Struts2

2008-07-23 Thread hisameer
Thanks Man ! You are great:clap: As soon I changed ID it worked. I really appreciate it. Lukasz Lenart wrote: using Strust 2.0 you have to use var instead. should be id instead ;-) Regards -- Lukasz http://www.lenart.org.pl/

What is the best way to handle cancel, Update, Back Buttons in Struts2

2008-07-23 Thread hisameer
Hello Everyone I know this might be very easy for you guys but it is being difficult for me.:working: I am developing an updateUser.jsp page and it has three buttons those are: Update, Cancel, Back Now if I press update it should invoke the updateUser action mapping also I need to do the

Delete Confirmation in Struts2

2008-08-02 Thread hisameer
Hi I am having a problem in getting the confirmation of a delete operation. My requirement is that: I have a list of user and I have a DELETE link for each and evey user in the list. I already defined a delete action mapping for the user but before deleting the user I want to get confirmation

Re: AJAX issues in struts 2.1.6

2009-08-05 Thread hisameer
Hello everyone! I am having the same problem with Struts2.1.6. The jars being used are: struts2-core-2.1.6.jar struts2-dojo-plugin-2.1.6.jar Here is my jsp page: %@ taglib prefix=s uri=/struts-tags% %@ taglib prefix=sx uri=/struts-dojo-tags% html head sx:head / link href=s:url

Re: Struts 2.1 release date?

2009-08-05 Thread hisameer
Hi I am using Struts2.1.6 and trying to use DOJO inorder to use tabbed panel using this http://struts.apache.org/2.0.9/docs/ajax-and-javascript-recipes.html#AjaxandJavaScriptRecipes-Reloadtabscontentwhenselected link . I no able to see the tabs at all This is my jsp page: %@ taglib prefix=s

Tabs don't appear using Struts 2.1.6 and dojo

2009-08-06 Thread hisameer
Hi all, I need to create 3 tabs, in my jsp page. I thought of using dojo because at later stages I might have to make them dynamic. But I am not even able to see those tabs as of now.I only see the Local Tab 1 Local Tab 2 which is the content of those two tabs. Here is my sample JSP page: %@

sx:tabbedpanel example

2009-08-07 Thread hisameer
I am using struts2.1.6. As of now I have tried so many things but couldn't get tabs working. the tabs even wont show up in my jsp page. I already added the dojo plugin for struts in my web-inf/lib folder. I need a sample application where I can see atleast two tabs and clicking on each tab shows

Re: AJAX issues in struts 2.1.6

2009-08-07 Thread hisameer
Thanks for your reply Peter. I was able to solve the issue by removing some of the unwanted stuff from my jsp. Now the funny thing is I am not even able to see the tabs in my JSP. I thought if we are using sx:tabbedpanel it should show the tabs. Is there any additional thing I have to do?Its

RE: AJAX issues in struts 2.1.6

2009-08-07 Thread hisameer
Thankyou so much Martin. You are the man! I will try the example you mentioned and ahhh... hopefully I will be able to add the same in my application:jumping: mgainty wrote: http://localhost:8082/struts2-showcase-2.1.6/ajax/tabbedpanel/example1.jsp renders all tabs properly please

RE: AJAX issues in struts 2.1.6

2009-08-07 Thread hisameer
Hi Martin, The example runs fine when I run it with the given War file but when I try to copy those files and some related jar I get the the following error: 22:46:45,584 INFO [STDOUT] 2009-08-07 22:46:45,584 INFO (org.apache.struts2.config.BeanSelectionProvider:31) - Loading global messages

RE: AJAX issues in struts 2.1.6

2009-08-08 Thread hisameer
Martin, Thanks for your reply it was really helpful. I defined an action in my struts.xml file as follows: action name=tabbedexample class=org.apache.struts2.showcase.ajax.AjaxTestAction result/ajax/tabbedpanel/example1.jsp/result /action Here is the image of the

Strut2 Picture Upload question: Please Help!

2009-09-02 Thread hisameer
I am using Struts 2.1.6 and in my application I have a requirement where the user can upload four pictures of his vehicle.In my JSP, there will be four upload buttons corresponding to those four pics(As shown in the below image). After the user is done selecting the file it should be uploaded in

RE: Strut2 Picture Upload question: Please Help!

2009-09-02 Thread hisameer
?) -Original Message- From: hisameer [mailto:cool_sameer_fo...@yahoo.com] Sent: Wednesday, September 02, 2009 6:27 PM To: user@struts.apache.org Subject: Strut2 Picture Upload question: Please Help! I am using Struts 2.1.6 and in my application I have a requirement where the user can upload

RE: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
is clear now. Please put your suggestions or any sample code if you have. hisameer wrote: Thanks for your comment. But my question is How can it be done using AJAX? I am using dojo plugin in my struts application. But if I use input type=file name=docs value=Brows width=400px/ then it also

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
Thanks for your reply. Can you please put some sample code in this regard. I am trying to read jquery plug-in documentation but would be great if you can put just a sample code for one picand I will handle the rest of it. Thanks in advance. Johannes Geppert wrote: you can use the jQuery

Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
Thanks for the reply. Now what I thought of doing is I will upload the picture and show it to in the image tag in the jsp. Now how do I do that? The upload should happen dynamically. Thanks for your help in advance. Tommy Pham wrote: - Original Message From: hisameer

Re: [OT] Re: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
and help in advance. Tommy Pham wrote: - Original Message From: hisameer cool_sameer_fo...@yahoo.com To: user@struts.apache.org Sent: Thursday, September 3, 2009 7:43:03 AM Subject: Re: Strut2 Picture Upload question: Please Help! Thanks for the reply. Now what I thought of doing

File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
I am having trouble with uploading the file using struts 2.1.6. I have to upload a picture(.jpg, .bmp,.jpeg,.png,.gif) for one of the business requirement. The application server is JBOSS 5.1.The uploaded file is always null in my action class: I followed exactly the same way mentioned in this

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
Thanks for your reply. I tried to put the method public void setUploadFile(File file) but no success, file is still null in the action. DNewfield wrote: hisameer wrote: The uploaded file is always null in my action class: s:file name=upload label=File/ public void setUpload

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
/insuranceApplication/fileUploadExample.jsp /result /action DNewfield wrote: hisameer wrote: Thanks for your reply. I tried to put the method public void setUploadFile(File file) but no success, file is still null in the action. Are the other two setters

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-25 Thread hisameer
newton.dave wrote: hisameer wrote: interceptor-ref name=fileUpload image/jpeg,image/gif,image/png,image/bmp,image.jpg Is that a typo? Dave - To unsubscribe, e-mail: user

Re: File upload issue with Struts 2.1.6 (uploaded file is always null in action)

2009-09-28 Thread hisameer
. I removed those interceptors and the file was not null. Thanks everybody for the help.I read these interceptor in the struts2 website but I think they should have tested it before adding the example:-p there. No issue! DNewfield wrote: hisameer wrote: Well, I dont see any typo here. image

Struts 2 runtime variable names

2009-10-05 Thread hisameer
hello everyone, I need to change the s:select name parameter's value depending on the index of the list. I have the following code : %! int i=1; % s:if test=#session.coverageLimitList.size0 s:iterator value=#session.coverageLimitList status=index_count tr height=22

Re: Struts 2 runtime variable names

2009-10-05 Thread hisameer
=index_count s:set var=i value=#index_count.count/ ... %{'form.cvgcode' + #i} ... %{'form.cvglimit' + #i} ... /s:iterator hisameer wrote: hello everyone, I need to change the s:select name parameter's value depending on the index of the list. I have the following

How to use IText with Struts2

2009-12-01 Thread hisameer
Hello Everyone, I am having an issue when I try to use struts2 and itext. Well this is not really an issue it is just my lack of knowledge.My problem is that I am able to create a pdf using itext in stand-alone java application. But I dont know how to create the same pdf and display it in the

S:radio onchange call an action

2010-04-13 Thread hisameer
Hi, I am having radio buttons in my jsp page with three selections: (o) Login (o) Returning user (*) Register Register is selected default. But if the user selects Login or Returning User I want to call an action on the onchange event which has to do some business logic and redirect the page

Re: S:radio onchange call an action

2010-04-15 Thread hisameer
(); } From: hisameer cool_sameer_fo...@yahoo.com To: user@struts.apache.org Sent: Tue, April 13, 2010 1:21:38 PM Subject: S:radio onchange call an action Hi, I am having radio buttons in my jsp page with three selections: (o) Login (o) Returning user (*) Register Register is selected

Re: Using json in Struts 2.1.8.1

2010-04-15 Thread hisameer
Do something like this: In your struts.xml define result types as follows: package name=package_name extends=struts-default namespace=/namespace_name result-types result-type name=json class=com.googlecode.jsonplugin.JSONResult /

How to modify Struts2 start up process.

2010-06-25 Thread hisameer
Hi, I am using Struts2.1.6+Spring2.5.6+Hibernate+JPA in my web application. The application server is JBOSS5. I have to implement a logic so that when the server starts I can execute some database scripts using my DAO service layer. And this class is responsible loading some required variables

Re: How to modify Struts2 start up process.

2010-07-13 Thread hisameer
getStartupService() method. You don't need to explicitly instantiate one, just let Spring inject it where you need it. (*Chris*) On Tue, Jul 13, 2010 at 11:42 AM, hisameer cool_sameer_fo...@yahoo.comwrote: Thanks for the suggestion. I have implemented it, but the issue is that the bean

Re: How to modify Struts2 start up process.

2010-07-13 Thread hisameer
it created at initialization time. If you remove scope=prototype, it won't be auto-created for you, and you will have defeated the whole point. (*Chris*) On Tue, Jul 13, 2010 at 12:36 PM, hisameer cool_sameer_fo...@yahoo.comwrote: So basically you are saying is that remove scope=singleton