Thanks, Vlad, Aron. It is working fine now.
Regards,
Raj
Vladimir Figurov wrote:
I don't use a CommandLink
I use a outputLink :
<h:outputLink
value="#{facesContext.externalContext.requestContextPath}/documents/#{dataRow['name4url']}/?doc_id=#{dataRow['docId']}"
target="_blank" >
<h:outputText value="It's link"/>
</h:outputLink>
How can you see, I use "*/documents/*" key in href....
This url-part a listing a my Doc_view servlet.
Raj Saini wrote:
Vladimir,
Thanks for you help till now. I feel I am still missing something. I
am not able to forward the control from my JSF page to servlet. My
servlet is configured fine and it is working standalone.
I searched the web for help on how to forward request to a servlet
from JSF page and based on it I call an action method in my JSF page
and action method returns a String.
<code>
public String download() {
System.out.println("Inside download method");
return "/knowledge-base/download";
}
</code>
However, request is never forwarded to servlet. Can you throw some
light? Can you tell me how do you forward request from JSF page to
servlet? What do you specify in the action attribute of your
CommandLink component?
Thanks,
Raj
On 4/10/06, Vladimir Figurov <[EMAIL PROTECTED]> wrote:
8-O
It's simple - need add to web.xml next elements:
<web-app>
...
<servlet>
<servlet-name>documents</servlet-name>
<servlet-class>asoft.web.Doc_view</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
...
<servlet-mapping>
<servlet-name>documents</servlet-name>
<url-pattern>/documents/*</url-pattern>
</servlet-mapping>
...
</web-app>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]