This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts1 and ajax - how to resume with struts after the 'ajax' is complete?

 
Peter Primrose
Ranch Hand
Posts: 755
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Process: user clicks the submit-button , an image is embedded into the screen next to the button and a process is running in the background (so far so good).

when the process is completed, the flow goes to this code on the jsp page:



When the process is completed, the 'flow' goes to POINT A.
I would like to know how can I invoke a regular action on struts (such as the one below)



When I added this code to POINT A:


I see the page ("home.page.list") embedded as a DIV ID in the page (meaning, the page is 'insert' as a div id to the current page the user sees).

How do I overcome this problem or how can I resume regular struts method invocation (action-->mapping-->page)

thanks!
 
Brent Sterling
Ranch Hand
Posts: 948
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Seems like your options are to either submit the current form/action or jump to a new action by setting the location.href value.

- Brent
 
biny panackal
Ranch Hand
Posts: 72
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear All,

Am a new guy to struts and now am facing a poblem while trying to setup validation in a page.
i had validation.xml in my WEB-INF directory and in that i just added these code

<form name="LoginDetails">
<field
property="employeeLogin"
depends="required">
<arg key="LoginDetails.employeeLogin"/>
</field>

</form>

Where LOginDetails is my Form class and property name is employeeLogin

I had a property file but i am not mentioned its name anywhere else. Cold you please help me to set this up.

when am running my application am getting an error

javax.servlet.UnavailableException: Cannot load a validator resource from '/WEB-INF/validator-rules.xml,/WEB-INF/validation.xml'


Thanks in advance
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Biny,

You've posted your question to a thread that has absolutely nothing to do with your question. This is strongly discouraged. I'm closing this thread, but I would encourange you to post this question in a new thread with a descriptive subject heading. That way if someone answers it, someone else having the same problem can find it using the search function.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic