You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bridges-dev@portals.apache.org by Roberto Pellegrino <ro...@quix.it> on 2006/06/20 10:11:48 UTC
Problem with path in WSRP Consumer
Hi all,
I developed 1 portlet jsr 168, i have deploy this in Pluto and i consume
(via WSRP) this portlet with liferay, in link of image i write:
<IMG SRC="<%=renderResponse.encodeURL(renderRequest.getContextPath() +
"/images/Myimg.jpg")%>">
this link war rewrite correctly in consumer...
Now i have developed a new web app with struts and with the struts bridge i
deploy this application as a portlet, i deploy this in pluto (All ok),
but when i consume the portlet in liferay(4.0) the link dosen't work, it
work if only i write the absolute path like
(http://myproducer:8080/application........)
<img src="http://localhost:8080<%= request.getContextPath()
%>/images/MyImg.gif" border="0" id="<%=botton%>" style="cursor=pointer">
But if i write
<img src="image/MyImg.gif" border="0" id="<%=botton%>"
style="cursor=pointer">
or
<img src="<%= request.getContextPath() %>/image/MyImg.gif" border="0"
id="<%=botton%>" style="cursor=pointer">
The consumer not rewrite correctly the path, and it dosn't retrive the
image.
This is a limitation of struts bridge, or there are a method to resolve this
problem?
Another question...
I have a problem with the parameter in url string...
I set the number of current page... In Producer it work, but in consumer
(liferay 4.0) it doesn't work..
I write:
i set the parameter in url string
java.util.HashMap params= new java.util.HashMap();
params.put("page", String.valueOf(i));
pageContext.setAttribute("paramsName", params);
%> <html:link action="risDV.do" name="paramsName"><%=""+i%></html:link>
and after in another page i try to catch this value:
String pagina = request.getParameter("page");
I think the problem is in the consumer who don't set the url correctly..
Do you help me???
Regards.
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org
Re: R: Problem with path in WSRP Consumer
Posted by Jesús Cases <tx...@gmail.com>.
My aplication works fine as web app, when i deploy my portlet in a portal
producer works fine too, my problem is on consumer and i use taglib of
struts bridge.
at he firs page i use:
*<html:link action="/action1.do" > First page
</html:link>
*
it works, i click at the link and the second page it must be
*<html:link action="/action2.do" > * * Second page*
*</html:link>*
but it is
*<html:link action="/action1.do" > * * Second page
**</html:link>*
take a look that it shows the name of link fine, but the action keep at
"action1" in spite of "action2", of course i put the jsp code but the
problem is at HTML code.
About your problem, can u debug your aplication? I advise u that install
TCPMon (i think that it's free) and you will see what u send and what u
receive, it'll help u a lot, belive me ;).
regards
Txuset
R: Problem with path in WSRP Consumer
Posted by Roberto Pellegrino <ro...@quix.it>.
Your application work fine as web app, when you deploy your portlet in a
portal producer it works????
Your problem is on consumer?
Do you use the taglib of struts bridge? If not this is the problem..
i use this sintax:
<html:link action="/action.do" > Name of link</html:link>
and not have problem..
My problem is when i write:
<html:link action="/action.do?parameter=2" > Name of link</html:link>
At producer all work, but on consumer it dos't work because when i write
String par = request.getParameter("parameter");
it return null...
Regards.
-----Messaggio originale-----
Da: Jesús Cases [mailto:txuset@gmail.com]
Inviato: martedì 27 giugno 2006 11.25
A: bridges-dev@portals.apache.org
Oggetto: Re: Problem with path in WSRP Consumer
Hello Robert, I'm spanish developer and i'm trying to consume from Vignette
7 a portlet deployed at OC4J, vía WSRP.
I had a lot of problems because OC4J doesn't implements
ServletContextProvider Interface and i had to implement it. At the moment i
provide the pages correctly and the struts aplication works fine, but now
the HTML:link Tags of struts don't wrok's, they keep with the first value
and they don't update itself all the HTML in spite of the code changes, the
value of HTML:link don't change.
I'll always be grateful to u if u gave me the source code of your WSRP.
I don't know if someone answer your question, if it doesn't tell me and i
can take a look and if i can help u...
Regards in advance.
---------------------------------------------------------------------
To unsubscribe, e-mail: bridges-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: bridges-dev-help@portals.apache.org
Re: Problem with path in WSRP Consumer
Posted by Jesús Cases <tx...@gmail.com>.
Hello Robert, I'm spanish developer and i'm trying to consume from Vignette
7 a portlet deployed at OC4J, vía WSRP.
I had a lot of problems because OC4J doesn't implements
ServletContextProvider Interface and i had to implement it. At the moment i
provide the pages correctly and the struts aplication works fine, but now
the HTML:link Tags of struts don't wrok's, they keep with the first value
and they don't update itself all the HTML in spite of the code changes, the
value of HTML:link don't change.
I'll always be grateful to u if u gave me the source code of your WSRP.
I don't know if someone answer your question, if it doesn't tell me and i
can take a look and if i can help u...
Regards in advance.