Struts portlet redirects for outside portal

We have a standard Struts app, with many standalone pages. The idea is to wrap each page (.do) in a different portlet. Each page redirects to a validation page, and back to itself using struts.
Whe I do any redirect in the page, the browser navegates back to the page, but opening the page outside the portal.
How can I redirect correctly to the portlet?

I am using the standard redirection from struts. See above the configuration from struts-config.xml:
?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 1.2//EN" "http://struts.apache.org/dtds/struts-config_1_2.dtd">
<struts-config>
     <data-sources />
     <form-beans>
          <form-bean name="velocidadeActionForm" type="xxxx.form.VelocidadeActionForm" />
     </form-beans>
     <global-exceptions />
     <global-forwards />
     <action-mappings>
          <action
               attribute="velocidadeActionForm"
               input="/WEB-INF/jsp/VelocidadeForm.jsp"
               name="velocidadeActionForm"
               parameter="metodo"
               path="/velocidadeAction"
               type="xxxx.action.VelocidadeAction">
               <set-property property="cancellable" value="false" />
               <forward
                    name="same"
                    path="/WEB-INF/jsp/VelocidadeForm.jsp"
                    contextRelative="true" />
     </action>
     </action-mappings>
     <message-resources parameter="xxxx.ApplicationResources" />
</struts-config>
I am creating the WebService in ALUI referencing the action form:
/xxxx/velocidadeAction.do

Similar Messages

  • Example JSF Portlet Project for WebLogic Portal 10.3.2

    Hi,
    does anyone have an example JSF Portlet Project for WebLogic 10.3.2 using the default JSF implementation 1.2.
    I tried to implement the example of the document "Developing JSF Portlets with WebLogic" but I always get a ClassCastException.
    java.lang.ClassCastException: com.bea.portlet.container.RenderRequestImpl
    Thx in advance
    Edmund

    My approach was to programmatically redirect to the page again with _nfpb=false. I do this in the handlePostbackData() method in the portlet's backing file.
    redirectUrl = redirectUrl.replaceAll("_nfpb=true", "_nfpb=false");          
    PortletBackingContext.getPortletBackingContext(request).sendRedirect(redirectUrl);
    Matthias Rohe
    [email protected]
    Edited by: user7964913 on 29.09.2010 04:06

  • How to create pdk java struts portlet in jdeveloper 11g

    Hi All,
    Im newbie ,I am unable to follow the steps in creating struts portlet on using Oracle portal developers guide in Jdeveloper 11g .can any one tell me the step by step procedure of creating struts portlet or any other related links.
    FYI:I stuck up in the guide which didn't explain how to create struts-config.xml( and its structure) and also how to create view and page flow .
    In the book they gave as :"To create a new view, first create a new set of ActionMappings (page flow) that will redirect the various actions and requests to Portal-specific JSPs. "
    Please help me on this, Thanks in Advance,
    Regards,
    siva
    Edited by: siva on Sep 25, 2011 10:51 PM

    You are mixing versions.
    JDev 11g needs the 11g SOA version (download from here )or use JDev10g together with Oracle SOA Suite 10.1.3.1.0
    Timo

  • Accessing desktop outside portal

    My portal structure is descriped in separate XML document (legacy). In my current implementation I'm creating streaming portal structure in portal backing file. I'd like to create streaming portal structure outside of portal to be able to call creation e.g. in app server startup. Any ideas how to do that?

    I'm highly interested in this too!
    So far, all pointers on portalcatalog.oracle.com to the NFuse portlet has just referred to the Citrix website where NO information can be found!
    Anyone know where to find the Citrix NFuse portlet(s) for Oracle Portal?!?
    Regards,
    Haakon

  • How to build struts portlet for DispatchAction?

    hi,
    I'm building struts portlet which wrap up a struts module, and it works fine for ordinary struts Action class, but for struts DispatchAction class, it doesn't work, the corresponding method never called.
    could any one here help me out?
    thanks

    I am trying to implement your solution.
    I have a portlet for navigation on the left side and the inline rendering on the right. My left side url's keep rendering outside of portal. Also can't figure out how to make the inline rendering portlet grab the url from the navigation portlet. (In your post you mentioned that your portlet would display whatever URL was passed to it.)
    Can you provide more detail on the steps you took to make this happen?
    Thanks

  • URGENT! Need help to portalize a Strut JSP App for Portal!

    Hi,
    I have create a little application using Strut ADF. This application only have one page. Can someone tell me how to portalize this in order to deployed it in Portal. I have create my DataSource in OEM and the only thing left is to portalize this jsp.
    I have read the "How to create a Struts Portlet" but I don't understand it.
    Please help me deployed this app to Portal. Is there any tutorial about this?
    Thank you!

    try this article
    http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/pdkstruts/portletize-your-app.html
    You will also need to download the relevant tag library for the pdk-struts extensions.
    You can also download the java portlet wizard as an add-in for jdeveloper. This makes the creation of the files (for example provider.xml) required by portal easier.

  • No support (wizard) for JSF & struts portlets

    I can create portlets (JSR 286 & Oracle PDK-Java) in JDevelopers. However I feel the wizard is not mature. I can only create one kind of portlet (JSR 286) using JDeveloper if we consider only standards based portlet - this portlet is called Java portlet in WebLogic. Can't create JSP, URL etc protlets, even no support (wizard) for JSF & struts portlets...
    Is there anyway to enable these features?
    Thanks.

    Check below link if useful
    http://docs.oracle.com/cd/E17904_01/portal.1111/e10238/pdg_java_adv.htm#CHDFAHEC
    http://docs.oracle.com/cd/E12524_01/webcenter.1013/e12434/jpsdg_java_adv.htm#CHDFAHEC
    Edited by: ngsankar on Jun 6, 2012 10:56 AM

  • Is there any list for out of the box portlets that come with portal installation.

    Is there any list for out of the box portlets that come with portal installation?
    Ramesh

    Yes - it's in the online help, on the Learning About Your Portal : About Portlets page. Here is the content:
    Portlets Created Upon Install
    The following portlets (and their necessary portlet Web services and Remote Servers) are created when you install the portal:
    Folder Expertise:This portlet displays the list of folders for which the user is an expert. It is added to the User Profile page by default.
    General Information:This portlet displays the default Profile Page. It is added to the User Profile page default.
    Managed Communities:This portlet displays the list of communities managed by the user. It is added to the User Profile page by default.
    Portal Login:This portlet allows users to log in to the portal. You probably want to add this to the guest user's home page so that users can log in from the default page displayed when they navigate to your portal.
    Portal Search:This portlet allows users to search your portal and access their saved searches. Users might want to add this to their home page for easy access to their saved searches.
    The following portlet templates (and any necessary portlet web Services and Remote Servers) are created when you install the portal:
    Community Links:This template is used by the portal to create portlets that display the links saved in a Community Knowledge Directory folder. To learn more about Community Links Portlets, see Community Links Portlets.
    Content Snapshot:This template is used by the portal to create portlets that display the results of a Snapshot Query.
    You can also install the following functionality as part of the Optional Enterprise Web Components:
    [url[/url]Stored Content:This portlet template allows you to create portlets that display stored content that is periodically refreshed. You might use this type of portlet to display content that is resource-intensive or takes a long time to generate. To learn more about Stored Content portlets, see Stored Content Portlets.
    [url[/url]XML Source:This portlet template allows you to create portlets that can collect XML content from an external source and display it in the portal as HTML. To learn more about XML Source portlets, see XML Source Portlets.

  • CSS for WSRP Struts Portlets

    I have a Struts 1.3 Portlet running in WLP 10.3.2. The css inside JSP displays right in a web-app. But when I expose over WSRP, the css is not getting applied.
    Here is the simple jsp I have:
    test.jsp
    <style type="text/css">
    .test{
    border: 2px solid red;
    background-color : blue;
    </style>
    <span class="test">CSS Testing</span>
    Qn. 2)
    Do I need to have html,head and body tags for Portlets that I want to expose over WSRP?
    Qn3) Do I need to go for render dependencies here..

    Just in case you haven't seen this, I will add in this doc link as well on how to configure render dependencies in the portlet.
    http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14244/configure.htm#i1073504
    I haven't done this with a struts portlet, but in my example, the .portlet file on the producer would have a
    "lafDependciesUri=/test.dependencies" with the css code you posted in it.
    So the "test.portlet" file on the producer would have something like this:
    <netuix:portlet definitonLabel="myportlet" title="simple test" lafDependenciesUri="/yourpath/test.dependencies">
    </netuix:portlet>
    then on the consumer side, the proxy portlet ".portlet" file would have something like:
    <netuix:proxyPortlet>
    invokeRenderDependencies="true"
    </netuix:proxyPortlet>
    this should allow the proxy portlet to obtain render dependencies from the producer during prerender lifecycle.

  • ADF application as portlet for Liferay Portal

    Hi,
    Is this possible to use ADF (11g or 10g) application as portlet for Liferay Portal ?
    Kuba

    Hi,
    ADF BC SHOULD work, not sure about RC but I would tend to say yes. Dunno about the bridge's price. You could also take a look at the latest portlet bridge specification and the MyFaces community as from what I understand on the list there, Oracle is giving its code base to MyFaces so that MyFaces Portlet-Bridge become the RI of the spec. Someone from Oracle would certainly be better suited to answer that part however.
    Regards,
    ~ Simon

  • Struts Portlet does not show images when it is accessed outside the domain

    Hi all,
    I am using Oracle 10.1.2. I have created a Struts portlet. When I view the struts portlet from my office domain (University domain) it works well and shows the images properly. However, if I try to access the same page containing the struts portlet from some other domain (my home), I cannot see the images and CSS associated with the page. This might be a firewall issue. Is there any way out?
    Best regards,
    Omer

    I fixed the problem.  (YAY!)
    It was the way I embedded the files -- the Dreamweaver default does not work properly so I used the embed from this generator: http://www.bobbyvandersluis.com/swfobject/generator/index.html#alternativeContentHelp which now lets my navbar and swfobjects load properly.  I also made sure that my slideshow (loader.swf) was set with wmode = opaque while the navbar is set to wmode = transparent.  The div for the nav bar has z-index set to 5 while the div for the slideshow has z-index set to 1.  Both have absolute positioning.  I hope this helps anyone in the future that has trouble with overlaying flash (.swf) files.
    Thanks for your reply and trying to help me solve this issue!

  • Problem with struts portlet in Portal

    Hi,
    I would like to make a struts app as a portlet in bea portal.
    But when I try to make it using standard wizard to create Struts portlet
    after point struts-config.xml I get "Cannot parse the struts configuration file".
    What is wrong ? (I tried with many different struts-config.xml files, it doesn't
    work)
    I can't find any error details. in workshop files ?
    I have bea Workshop 8.1.
    Any help ?
    Thanks,
    Tom

    Ok I found solution on
    weblogic.developer.interest.portal.struts
    but where are error details ? which file ?
    "tmm" <[email protected]> wrote:
    >
    Hi,
    I would like to make a struts app as a portlet in bea portal.
    But when I try to make it using standard wizard to create Struts portlet
    after point struts-config.xml I get "Cannot parse the struts configuration
    file".
    What is wrong ? (I tried with many different struts-config.xml files,
    it doesn't
    work)
    I can't find any error details. in workshop files ?
    I have bea Workshop 8.1.
    Any help ?
    Thanks,
    Tom

  • Automatic user connexion in Websphere Portal 5.1, Struts portlets

    Hi all
    I created a fake user (to replace anonymous user) because, via the WCM API, I can't give rights to the anonymous user.
    My problem is
    How can I automaticly log users as a special user (which one I know login and password) ? Is there anything to do with "Credential" ?
    I found some sample code for Credential but it's using PortletContext and all I can have is ServletContext.
    I don't know what to do... If you can help, thanks
    Thanks

    I did as you suggested and removed the content from the web.xml file. The portlet installed and I was able to put it on a page, but it says the portlet is unavailable inside the portlet window on the portal page and here is the error from the log file
    Module, testjsr168New.war, of application, no id available_PA_1_0_2EA.ear/deployments/no id available_PA_1_0_2EA, failed to start
    [2/3/06 12:52:13:285 EST] 3c881c0e ApplicationMg W WSVR0101W: An error occurred starting, no id available_PA_1_0_2EA
    [2/3/06 12:52:13:293 EST] 3c881c0e ApplicationMg A WSVR0217I: Stopping application: no id available_PA_1_0_2EA
    [2/3/06 12:52:13:468 EST] 3c881c0e ApplicationMg A WSVR0220I: Application stopped: no id available_PA_1_0_2EA
    [2/3/06 12:52:13:479 EST] 3c881c0e TraceNLS u No message text associated with key Unable.to.start:.no.id.available_PA_1_0_2EA.using:.WebSphere:platform=common,cell=cdrrs1,version=5.0,name=ApplicationManager,mbeanIdentifier=ApplicationManager,type=ApplicationManager,node=cdrrs1,process=WebSphere_Portal.exception.is:.javax.management.MBeanException in bundle com.ibm.ws.management.resources.AppDeploymentMessages
    [2/3/06 12:52:13:479 EST] 3c881c0e AppManagement W Unable to start: no id available_PA_1_0_2EA using: WebSphere:platform=common,cell=cdrrs1,version=5.0,name=ApplicationManager,mbeanIdentifier=ApplicationManager,type=ApplicationManager,node=cdrrs1,process=WebSphere_Portal exception is: javax.management.MBeanException

  • Struts Portlet and interMedia

    Hi everyone,
    I'm building a struts app portlet.
    My portlet connects to a database schema, and in there I have a table with a column of ORDImage type.
    I've been using the PDK Struts taglib for the tags that are not supported by Portal.
    But I got to a point where I need to display the images I have in my database. Running the appllication outside Portal, I use the <adf:render> tag, which renders the images perfectly.
    Using the same tag running inside Portal, doesn't render the image.
    The <adf:render> tag renders a &lt;IMG src="..."&gt; tag. The reason why it works fine outside portal is understandable because the URL it puts in the src attribute is relative to the context-root of my app (I suppose).
    Inside portal, it renders the exact same &lt;IMG src="..."&gt; tag, but Portal doesn't understand the URL inside src.
    I have no idea if there is any PDK Struts tag that will do the trick, but I doubt it.
    I'm clueless on how to point Portal in the right direction.
    Any help, anyone ?
    Rui

    Hi,
    This may help. Use the pdk-struts-html:link tag instead.
    Something like
    <jsp:useBean id="prevDetail" class="java.util.HashMap"/>
    <c:set target="${prevDetail}" property="event_PreviousSet" value="PreviousSet"/>
    <c:set target="${prevDetail}" property="sortref" value="${param.sortref}"/>
    <c:set target="${prevDetail}" property="sortacc" value="${param.sortacc}"/>
    <c:set target="${prevDetail}" property="filteron" value="${param.filteron}"/>
    <pdk-struts-html:link action="portal/something.do" name="prevDetail">
    Good luck, Hernando

  • Struts Portlet problem

    Hello,
    I am developing a Struts Portlet, using JDev 10.1.2, and I'm deploying my app to Oracle Enterprise Manager.
    I have a DB Schema from which I created the Business Components for my Portlet.
    In the portlet, I need to display a tree-like Page Menu (pages have sub-pages and so on) in a single JSP that I have already working perfectly (outside Oracle Portal).
    This JSP consists of a series of "a href" links, each link representing a Menu Page, so that when I click on that link, the other portlets (content portlets) would show the selected page's contents.
    The idea here would be to, when I click a link, raise a struts event so that I can set my ViewObject's current row, and then get Portal to refresh the whole page passing the Page_Id as a parameter, so that both the menu portlet and the content portlet would be synchronized.
    The problem is that inside Portal, I can't seem to get the struts app to work:
    It renders the page just fine, but when I click on a link it obviously sets the browser's URL to one that is not relative to the portal - I suppose because i'm setting the URL mannualy on the "a href".
    (Note that I don't have a Form component in my JSP, just a number of links)
    What I need is to find a way to raise a Struts event so that the current row will be set. I'm trying to do it like this:
    < a href="/portal/menuPage.do?&id=<c:out value="${node2.IdPagina}"/>&event=Select">
    The event is raised and the row is set but I'm (obviously) forwarded to
    http://myServer:myPort/portal/menuPage.do?&id=28&event=Select
    Portal doesn't recognize this address and displays a "404 Not Found" message.
    Is there any other way to raise a struts action with links, or at least, without forms and submit buttons? Because raising it like I'm doing forwards me to a wrong URL.
    I read everything I found on Struts Portlets but still haven't found an answer to my problem.
    Any help?
    Rui Leitão

    When constructing links, you have to use the pdk-specific struts tags, for example:
    <pdk-struts-html:link href="/portal/menuPage.do">Also, you need to use the pdk struts tag library:
    <%@ taglib uri="/WEB-INF/pdk-struts-html.tld" prefix="pdk-struts-html" %>Peter

Maybe you are looking for

  • How can I get my old music into a new preexisting account?

    how do I get my music from an old account to a new one (preexisting) because now i have a mac and new email and everything. please help

  • Monitor process on windows or unix environment

    Could we monitor a process using windows or unix environment using OEM?

  • Query syntax check

    Hello all I wrote an query and regarding one part, i have syntax problem, when should we seperate different arithmetic operators in a query? for example select  density_with_desert.popp  /  density_with_desert.arr  -  sum(darea)  from counytyi don't

  • Image Field overwrite existing click event

    Using LiveCycle 8, I am creating a form which has an image which will change when the user clicks the image object. I downloaded the trial of Acrobat Professional 8.0. In this version, instead of creating a form in Acrobat, it uses LiveCycle 8. In Li

  • 10.2.0.4 CPU Jan 2011 missing for HP-UX on itanium

    Hallo All, Is there a reason why the HP-UX CPUJAN2011 for database 10.2.0.4 is missing in the patchlist (patch 10249540)? (we noticed that ALL patches for HP are missing.... something going on between HP and Oracle?) Best regards, Jan. Edited by: Jan