Hello Pavan,

Well i have done a simple struts application a few months ago that the
porpuse was to make a struts-portlet out of it, i now dont have the code
with me right now, but i can send it to you via gmail you to see the code,
and try. The problem that you are having, seems familiar to a problem that i
also had when using Ajax to populate a second combobox depending on the
value of a first combo, the solution that i came up was to put the requested
jsp inside the /jetspeed/ making the address like this:
http://localhost:8080/jetspeed/requestedjsp.jsp, then the AJAX
XMLHTTPRequest that i made started to work when i called based on the action
of the portlet . Hope i could help you :)

This was i putted (small sample i can send the full code by request)


function updateEmpresas()
        {
           var url="<bean:message key='empresasCorporate.url'/>";
          url=url +document.consultaPontosForm.grupo.value;
          
          vListaEmpresas = document.consultaPontosForm.empresa.options;
          vListaEmpresas.length = 1;
          if (!isWorking)
          {
            http_Empresas.open("GET", url, true);
            isWorking = true;
            http_Empresas.onreadystatechange = handleHttpResponseEmpresas;
            http_Empresas.send(null);
          }
        }



<html:select property="grupo" styleClass="relatoriosFormSelect"
style="width:330px; height: 16px;" onchange=" if (this.selectedIndex >= 0)
updateEmpresas();">



Value of empresasCorporate.url in the .properties file

empresasCorporate.url=EmpresasAction.do?Group=




Best Regards
Ruben

-----Original Message-----
From: Gudiyella, Pavan [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 30 de Novembro de 2006 16:35
To: 'Jetspeed Developers List'
Subject: RE: how to target a portlet with absolute URL


Thanks Ruben for the reply.
Let me provide some more detail on my problem.

I made a struts application as a portlet.
For the urls to work, I used the <html:link>, <html:form> tags of portal tag
library. So far good.  In JSP pages we have a backbase AJAX framework code,
with their xml tags. Here is an example code

<s:execute>
<s:variable b:scope="global" b:name="InfoURL"
b:value="GetInfo.do?method=getInfo&amp;pos=r1" /> </s:execute>

As you can see, there is "GetInfo.do" for which I need to resolve with right
url to get to the action. 
That's why I need absolute url to get to my action, which is a struts
portlet. Wondering if this can be achieved at all.

I appreciate your help on this.

Thanks 

-----Original Message-----
From: Ruben Fragoso [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 8:22 AM
To: Jetspeed Developers List
Subject: Re: how to target a portlet with absolute URL


if i get your problem right, you want to access a specific portlet by url?.
well the way that i did it, was to make a page containing nothing except the
portlet that i want, and then that portlet receives the parameter by
QueryString, by using the request.getParameter("NameOfMyParameter") in the
doView, hope that i got your problem rigth.

best regards
Ruben

On 11/30/06, Gudiyella, Pavan <[EMAIL PROTECTED]> wrote:
>
> Dear members,
>
> Is there any way to target a portlet with absolute url as opposed to 
> renderUrl or actionUrl in jetspeed 2.0? Is there any workaround to 
> achieve this?
>
> Thanks
> Pavan Kumar Gudiyella
> Tribune Media Services
> [EMAIL PROTECTED]
> (312)-222-3192
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to