• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Please help me to clear out this

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 53
Eclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
same page means in terms of what..?

without page reloading ?
 
nuwan wickramanayaka
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Ranch Hand
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 247
MyEclipse IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
nuwan wickramanayaka
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Ranch Hand
Posts: 300
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 179
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic