Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
How be back to the some page after some action
Ort618
Hello all,
I need help to understand how i can be back to the some page after i took some action in my server side code by connector.
My connector has form like this
<form action="..." method="post">
...
<input type=submit value=Submit>
</form>
It looks ok. Now suppose i have some action typed in my action properties for form. Let it will be my own action servlet, so i will call my server
side code to do some work (i still stuck here for a while, i think the only way to do this is to add my servlet class to worksite/web-inf/web.xml).
But for now let it be. So my code do some work then i have to be BACK on the some page.
So the question is how can i do this?
For now i do something like this to be back to my connector's page:
<form name='projectForm' method="POST" action="/worksitemp/dispatch?operation=zoom&datasource=workspace&objectId=!V3!FSANY!C!F$100!W$301!">
It works fine but it's hardcoded in my code because i just typed there what i have found in source page for this current page.
It's clear if i place my connector on different page it's not going to work.
So how can i define this back URL (or some parts of them) dynamicly, by API or somehow.
Thank you.
Find more posts tagged with
Comments
Ort618
OK, i got it i can use <w:hiddenField name="thisUrlValue" value="${thisUrlValue}"/> as parametr in my form, then
i can use response.sendRedirect to be back.
This is cool, but this is just to be back to the some page with my portlet content that ALWAYS inside content.jsp.
But what if i have 2 steps action, like some simple wizard and i want to have different UI on the second step (the first
step UI inside content.jsp). It means page builder have to render some other page, different then content.jsp.
How can i do it?
Of course, there are some tricks to do it, like have the only content jsp with different includes that depends
of results, for example. But i am looking for some easy way to do it. Any idea are welcomes!
Edited by Ort618 on 03/15/05 02:13 PM (server time).