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:
>
>>
>
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
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
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
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
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:
>
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
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
quot;%{'form.cvgcode' + #i}"
> ...
> "%{'form.cvglimit' + #i}"
> ...
>
>
>
> hisameer wrote:
>>
>> hello everyone,
>>
>> I need to change the s:select name para
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
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
newton.dave wrote:
>
> hisameer wrote:
>>
>>
>> image/jpeg,image/gif,image/png,image/bmp,image.jpg
>
> Is that a typo?
>
> Dave
>
>
>
/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
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:
>
>>
>
>
>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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"
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
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
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
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/
>
>
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:
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,
34 matches
Mail list logo