This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I'm using Struts. What I'm trying to do is to send information into a bean from a formulare inside a jsp and launch a server side treatment. To do that, I have created a formulare in a JSP linked with the struts-config.xml a bean and an java action. Every thing perform as my wishes except that I must define a forward and I don't want to. I don't want any refresh or forward in my view, I just want to launch a server side treatment over sent data.
What should I do? How should I set my action in struts-config.xml and in the java action file?
Please forgive my english, Thanks for all in advance!
Welcome to JavaRanch. We don't have many rules here, but we do have a naming policy which we try to strictly enforce. Please re-read this document and edit your display name in order to comply. Thanks in advance, and we look forward to seeing you around the Ranch.
I had to look up what formulare meant. It's French for "application form", no?
Usually, your forward is defined in your Action class. The Action class is part of the Controller, not the View, so this is fine.
In the simplest of cases, the Action will always return "success" as a forward return mapping.findForward("success"); and it will refer to a forward defined in struts-config. The forward is typically a way for the Controller(which Action is a part of) to decide which View(which is often a jsp or tile) to go to next.
A good workman is known by his tools.
subject: Starting server side action without any follwing forward