Am new to Struts 2 so please help me with this.
Am having a page called 1.jsp in that am having a text field called Name and button SUBMIT.
On click of submit button am taking name value to action class from there i connected to database and get a value called ID.
Now I have to take that ID to the same jsp(1.jsp) and I have to display over there.
So what exactly has to be written in struts.xml?
And after redirecting to same page will the text field will have the name which i had entered or it will show blank. I need that text filed to show the value