public void onSaveAttributes(Button btn,ArgumentList arg){
boolean bol = super.onCommitChanges();
setRedirectUrl("http://www
}
Main Topics
Browse All TopicsMy WDK components get called from J2EE applications. While calling the components they also pass the return URL in parameter "returnURL". So my component is called as "http://myserver:8080/myap
c.jsp".
Can someone please let me know how can I send the control back to a separate application from my component once the processing is complete.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
public void onSaveAttributes(Button btn,ArgumentList arg){
boolean bol = super.onCommitChanges();
setRedirectUrl("http://www
}
Business Accounts
Answer for Membership
by: ank9Posted on 2009-06-23 at 18:52:05ID: 24697689
To be more specific, this is what I did
ponent/con fig/librar y/attribut es/attribu tes_dm_doc ument_comp onent.xml" > es/cobAttr ibutes.jsp </start> tributes/c obAttribut esGoBack.j sp</go_back _url> .documentI mport.CobA ttributes</ class>
url");
.yahoo.com "); %>
1. Extended the attributes component
[code]
<config version="1.0">
<scope type="dm_document">
<component id="attributes" extends="attributes:webcom
<pages>
<start>/custom/jsps/attribut
<go_back_url>/custom/jsps/at
</pages>
<class>com.db.cob.components
</component>
</scope>
</config>
[/code]
The jsp inside <go_back_url> is the one which is responsible for redirecting to the URL.
2. In behavior class, I did the following
[code]
public void onSaveAttributes(Button btn,ArgumentList arg){
boolean bol = super.onCommitChanges();
setComponentPage("go_back_
}
[/code]
This method is getting called
3. In cobAttributesGoBack.jsp, I did the following
[code]
<% response.sendRedirect("www
[/code]
Still the page does not redirect (although cobAttributesGoBack.jsp is called). Can someone please let me know how this redirection to another application needs to be done.
Thank you