Hi Buhn,
Sorry for the late reply. I've been busy these days. Anyway, I already figure out the answer of my question. You simply implement ServletAware for you to have an access to request object....
Type: Posts; User: newbix; Keyword(s):
Hi Buhn,
Sorry for the late reply. I've been busy these days. Anyway, I already figure out the answer of my question. You simply implement ServletAware for you to have an access to request object....
I suggest you implement an BeanFactoryAware interface. Read Spring Pro ebook... It'll teach you how to do that.
Kindly check the render method of platformRoleDetails, I guess the method requires a String argument.
try to edit your flow with this.
<bean-action bean="platformRoleDetails"...
Hi buhn,
Thanx for the reply. But I wanna know how to have a reference to request-Object in Spring MVC not in SWF via xml. In struts there is a convenient way to have a request object via xml. I...
Could you post the stack trace or the errors?
Check this out. This might help.
Base on your design, I suggest you use Spring. Spring Web Flow is not suitable for open browsing.
There are ways to make your design possible in spring web flow but I suggest you use Spring MVC...
Sorry... Hmmm, I wonder why externalRedirect didn't work on your machine.
no probs... :D
The session ended when it entered copyEnd state. Kindly check what happened in copyEnd state of that flow.
Thanx buhn... I didn't know that. Do you know how to get HTTPServletRequest object in Spring?
It isn't possible to have 2 formObjectClass in a FormAction. Which class did you declare as a formObjectClass of TransaccionEntradaAlmacenCabeceraFacturaCompraAutoUpdateAction? Is it ArticuloAuto...
Did you check the log of web flow? Maybe before it reached the end state the flow already ended. Sometimes it happens when somewhere in your flow an exception occurred.
Could you post your
dispatcher-servlet.xml
webflow.xml
I'll try to reproduce the problem...
By the way, what's .do? Sorry, I aint familiar with that :D. Aside from SWF, what framework did you use?
Try check your url mapping.
Use this to redirect to another page
<end-state id="end" view="externalRedirect:/index.htm" />
Use this to redirect to another flow.
<end-state id="launchAdminFlow"...
No probs. :D
Exactly. I suggest you read this thread
http://forum.springframework.org/showthread.php?t=44972
I guess this is what you want to do.
I suggest you read this api
It helps a lot in understanding the lifecycle of a Controller
A lot of threads here shows the solution on initializing formAction backing objects. I'll just show you so that you won't dig anymore... :D
<view-state id="sample1" view="sampleform">...
So far UserDetails like remoteUser and principal could only be retrieved via HttpServletRequest.
Hi fruitman,
Sorry for the late reply...
Could you give me the entire stack trace...
What do you mean by requestScope? Could you elaborate further?
Hope this helps...
<action-state id="authenticate">
<action bean="authenticationAction" />
<transition on="ROLE_STAFF" to="launchStaffFlow" />
<transition...
I suggest you use Spring Web Flow....