• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

regarding HTTPS in jstl <c:import>

Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends,

I have doubts in <c:import>

Can we use https in c:import url path ?

For example :
<c:import url = "https://www.sample.com">;

I tried this one. I can't use this https.

But if i use different server, i can access it.

For Example :

This index.jsp contains

<%@ taglib uri="/c.tld" prefix="c"%>
<c:import url=""></c:import>

Here you can see the ip address is different . so these two are different server.

But i have problem to access when i come with HTTPS.

Is there anyother solution ?
Kathiresan Chinnasamy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For Additional Information i provide the log :

Please Let me know the problem if you know it.

java.net.ProtocolException: Unsupported protocol: https
at weblogic.net.http.HttpClient.openServer(HttpClient.java:374)
at weblogic.net.http.HttpClient.New(HttpClient.java:270)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:170)
at weblogic.net.http.HttpURLConnection.followRedirect(HttpURLConnection.java:647)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:420)
at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:36)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireReader(ImportSupport.java:330)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:241)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)
at jsp_servlet._sg._strumenti.__cerca_prodotti_result._jsp__tag0(__cerca_prodotti_result.java:166)
at jsp_servlet._sg._strumenti.__cerca_prodotti_result._jspService(__cerca_prodotti_result.java:114)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at asautil.filters.SessionFilter.doFilter(SessionFilter.java:62)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Kathiresan. If you have security certificate for that site it will work with <c:import />.
Kathiresan Chinnasamy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your reply ....

Actually the problem comes under pre production.

In pre producion we have SSL certificate for both server(calling server page and called server page).
    Bookmark Topic Watch Topic
  • New Topic