Two Laptop Bag*
The moose likes Struts and the fly likes css,images,fonts gets dissappeared after submitting the form. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "css,images,fonts gets dissappeared after submitting the form." Watch "css,images,fonts gets dissappeared after submitting the form." New topic
Author

css,images,fonts gets dissappeared after submitting the form.

satnam singh negi
Greenhorn

Joined: Aug 13, 2011
Posts: 25

Greetings Everyone !!
I am using struts2 with hibernate ,and its really cool to work with it. my app consist of a simple login page and after
logging in there are few links to render the data with respective actions.

When i log in


  • i click on a employeedetails link, a list of all the employes appears in "Display Table" with all css and other stuff.


  • there is a add button to add a new employee,i click it and it goes to addEmloyee.jsp ,that also works fine with all the css and images and sumits the employee details well ,after adding the employee i again came to employeedetails list with newly added employee.till here it just works great.


  • With respect to each employee there is an edit link in display table ,when i click that, a "editEmployee.jsp" gets appeared with all css and images and other stuff..and then i update it..and my actions takes to me to the same empoyeedetails page with the updated field. but this time css and images doesnt work

  • To update an employee i am using something like this



    when i edit an employee and i send the employee id as parameters from here and then i recieve that parameter in my ActionClass
    like


    so everything working fine but after updating the emloyee my css doesnt work ,i am working with display tag first time and also have some doubts with ActionContext.

    Please suggest me how can i make a good use of it.

    Thanks in advance.


     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: css,images,fonts gets dissappeared after submitting the form.