| Author |
Please help me to clear out this
|
nuwan wickramanayaka
Greenhorn
Joined: Sep 06, 2012
Posts: 5
|
|
I have little bit of experience in struts 2.
My requirement is to develop a struts web app for user details management.
Here, when a user enter username and press enter button on keyboard we should display all the details relevant to the given username.
Also it should be able to updated when the user click on submit button.
I have completed the data retrying and updating function with hibernate & spring.
My problem is how to display user details on same page and update details using struts.
Data search and update is goes on same page.
please help
|
 |
dhaval thakor
Ranch Hand
Joined: Aug 27, 2012
Posts: 53
|
|
same page means in terms of what..?
without page reloading ?
|
 |
nuwan wickramanayaka
Greenhorn
Joined: Sep 06, 2012
Posts: 5
|
|
dhaval thakor wrote:same page means in terms of what..?
without page reloading ?
It should not navigate to another jsp page.
when a user enter username and press keyboard enter button all the details sholud be filled with relevant details.
then user change values and click on update button to save the data.
for the update operation submit button is there
all the search and update actions on same jsp page.
|
 |
Vishal Shaw
Ranch Hand
Joined: Aug 09, 2012
Posts: 179
|
|
My problem is how to display user details on same page and update details using struts.
Struts has nothing to do with it. You need to send data through ajax and write the output in response , then show it in a <div>. You can use struts or Sping MVC for the backend/middleware
|
Programming is about thinking, NOT coding
|
 |
Raza Mohd
Ranch Hand
Joined: Jan 20, 2010
Posts: 247
|
|
|
You need to make your data editable with the help of edit options.This will be decided how you would like your design to be implemented.
|
Good luck!!
A small leak can sink a Gigantic ship.>
|
 |
nuwan wickramanayaka
Greenhorn
Joined: Sep 06, 2012
Posts: 5
|
|
Vishal Shaw wrote:
My problem is how to display user details on same page and update details using struts.
Struts has nothing to do with it. You need to send data through ajax and write the output in response , then show it in a <div>. You can use struts or Sping MVC for the backend/middleware
Thank you dear
this is what I want to do
http://www.dzone.com/tutorials/java/struts-2/struts-2-example/struts-2-crud-example-1.html
here i want to have java script to submit the action when user press 'Enter' key on username text box
|
 |
jatan bhavsar
Ranch Hand
Joined: Jul 23, 2008
Posts: 296
|
|
hi Nuwan,
use jqgrid which has inline edit. also you can achieve it with the enter event of java script.. but why you want to store only username when user hits the enter button let the all the data save once the submit button is pressed.
Regards
Jatan
|
 |
Vishal Shaw
Ranch Hand
Joined: Aug 09, 2012
Posts: 179
|
|
nuwan wickramanayaka wrote:
Vishal Shaw wrote:
My problem is how to display user details on same page and update details using struts.
Struts has nothing to do with it. You need to send data through ajax and write the output in response , then show it in a <div>. You can use struts or Sping MVC for the backend/middleware
Thank you dear
this is what I want to do
http://www.dzone.com/tutorials/java/struts-2/struts-2-example/struts-2-crud-example-1.html
here i want to have java script to submit the action when user press 'Enter' key on username text box
You can use jquery post() to post the data. then catch the response and show it in a <div>.
Try it and let us know
|
 |
 |
|
|
subject: Please help me to clear out this
|
|
|