Amarnath Joshi

Ranch Hand
+ Follow
since Oct 20, 2014
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
4
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Amarnath Joshi

Hi,
This Amar once again with the new topic that <sj:tags/> are not working on my page as expected.


In the above code here <s:form/> is not working <sj:submit/> is also not working as expected.
9 years ago
Hi all,
I've a small problem with my strtus+spring security database. I've Configured everything as of my knowledge. There is no error or exception in my application. But the problem is i cant retrieve the access assigned from the XML in other words cant dispatch to success page.
My Spring Database XML is given below


My Spring security xml is



My application context is

Thats It....
9 years ago
In addition to this if im not injecting a bean into my application context and calling that action class in spring security gives me a error. But when I'm directly calling my action class in strtus doesnt create any problem.
9 years ago
Hi All,
I can't instaniate my action class from spring security.

Here is my spring-context.xml



Here is My Spring security.xml




Here is My strtus xml

Please help me out..
9 years ago
Hi All,
This is amar again with new topic on spring security.

I'm submitting a form using spring security Im frank i dont know how does spring security submits its form

So please help me out.

This is My error


Thanks in Advance.
9 years ago
Hi Joe Ess,
Thanks for your reply.

See my action block line '10'.

I've setted the values for session variable in "username".

But i couldnt retrieve those values in my interceptor.

Thanks in Advance.
9 years ago
Hi All,
This is Amar again with new query in Interceptor in Struts 2. The problem is i am getting null values when i use the session attributes from ActionContext.
And my interceptor code is as follows


And my action coding is
9 years ago
Hi,
I am newBie to Strtus.

I've mulitple hidden fields with same id.

But when Im passing it value in Ajax it gets only the first value.

And in addition to this I need to pass the response of one JSP to other jsp in AJAX.

Is there any way to do it..???

Please help..???


My Ajax Code is


I've also tried using .closest and .parent() attributes in jquery but none worked fine for me.


Hi guys,

This is Amar a NewBie might be a (bee) to struts.

Guys, Im using a form in which im receiving it values from ArrayList of Bean Objects and inserting into struts text tags.

My Sample code is


Here in above code my ArrayList is populating only last value and also i can't set my value after the user has updated in my <html:text/> box.


Hence I am, using this code as my alternative

9 years ago
Hi Joe,

Thanks Joe for your reply. For my code to run i've commented out the reset method.

9 years ago
Hi All,
I am newBie to struts. Im a using an Arraylist in my ActionformBean to display dropDown list Box.

My jsp code is

and My FormBean is


And when i use the reset method
Jsp Error throws for getter.


9 years ago
Hi All,

I am NewBie to Struts.

I just need to know the exact way to get action methods from DispatchAction in <html:link/>.

I've tried these two

In addition to this ive configured in Struts Config.

Thanks in Advance.
9 years ago
Hi Guys,

I've a small problem in my project. I am using strtus 1.3.10 I need to upload Mulitple images into my database with a single click.

Im uploading my files by using multiple file browse buttons and ArrayList for FomFile in my bean.
how to use Multiple key word here.
[code=java][ <html:file name="MessageBean" property="fm"/>/code]

Please help out.


9 years ago
Hi all,

I am New Bie to strtus.

I've a two properties file definfing two types of properties but i dont know how to call those both in my Action class.


As simple--> How to call a struts properties file from Action Class.


Please help me out.




Thanks in Advance.
9 years ago
Thank You Valli.. for your reply.

Actually we don't need any script to execute these methods and My mistake was in XML I didn't specify any parameter for my property Attribute in XML. And the issue is fixed.
Thank You.
9 years ago