Re: How to modify Struts2 start up process.

2010-07-13 Thread hisameer
riginal question was how to have 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 > wrote: > >> >

Re: How to modify Struts2 start up process.

2010-07-13 Thread hisameer
reating another instance in your 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 > wrote: > >> >> Thanks for the suggestio

Re: How to modify Struts2 start up process.

2010-07-13 Thread hisameer
rvice layer } satyanarayana katta wrote: > > Using the application level spring container would be sufficient with init > method set. > > Sent from my iPhone > > On Jun 25, 2010, at 11:36 AM, hisameer > wrote: > >> >> Hi, >> >> I am using Str

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 fr

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: then in the action mapping: and put annotation in the getter method in your action class: @JSON public Ma

Re: S:radio onchange call an action

2010-04-15 Thread hisameer
nName; > testForm.submit(); > } > > > > ____ > From: hisameer > 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: >

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 to

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 bro

Re: Struts 2 runtime variable names

2009-10-05 Thread hisameer
quot;%{'form.cvgcode' + #i}" > ... > "%{'form.cvglimit' + #i}" > ... > > > > hisameer wrote: >> >> hello everyone, >> >> I need to change the s:select name para

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; %> <%= i %> <% i++; %> All I want is if the list is in

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

2009-09-28 Thread hisameer
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/jpg, not image.jpg > > And I assume the email process stripped out the &#x

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: >> >> >> image/jpeg,image/gif,image/png,image/bmp,image.jpg > > Is that a typo? > > Dave > > >

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

2009-09-25 Thread hisameer
/fileUploadExample.jsp 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

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: > >> > > >>

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 h

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

2009-09-03 Thread hisameer
help in advance. Tommy Pham wrote: > > - Original Message >> From: hisameer >> To: user@struts.apache.org >> Sent: Thursday, September 3, 2009 7:43:03 AM >> Subject: Re: Strut2 Picture Upload question: Please Help! >> >> >> Thanks for

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: his

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 Pl

RE: Strut2 Picture Upload question: Please Help!

2009-09-03 Thread hisameer
saved. I hope the requirement 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 type="file" name=&quo

RE: Strut2 Picture Upload question: Please Help!

2009-09-02 Thread hisameer
for those pictures as well. I am totally confused. Please help! Lee Clemens-4 wrote: > > Maybe have the Upload buttons refresh the page? And load the images from > the > action? > > Otherwise it would have to be done client side (ajax?) > > -Original Messa

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 t

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: /ajax/tabbedpanel/example1.jsp Here is the image of the result page. I really dont understand what I am missing: http://www.nabble.com/file/p24882024/tabbedexamp

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 f

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 > > pleas

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 becom

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

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: <%@ tag

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"

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"%> " rel="stylesheet" type="te

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 f

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 valida

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/ > >

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:

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 user(firstName,