cancel
Showing results for 
Search instead for 
Did you mean: 

JSP editor Preview tab: Action cancelled

Former Member
0 Kudos

I am creating multiple JSPs in NW Dev Studio (SP 13). In a seemingly random manner, when I start up NWDS and had the JSP editor previously open for a given JSP, NWDS (or Internet Explorer?) throws up the JSP source into Notepad and in the JSP editor Preview tab displays a message "Action canceled - Internet Explorer was unable to link to the Web page you requested. The page might be temporarily unavailable." Seemingly random, because it doesn't do this for every JSP and it doesn't do it every day or time I restart NWDS. I haven't figured out what causes this or how to recover from it so that I can use the Preview tab for those JSPs where this occurred. Is anyone familiar with this problem and how to prevent it or recover from it? (If it matters, my IE config option 'Show friendly HTTP error messages' is unchecked, so there's no more info about the problem to be had).

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

Put this code in the editor and see it will show you the preview

=========================================

<%@ taglib uri="tagLib" prefix="hbj" %>

<html>

<body>

Hello

</body>

</html>

============================================

This will not show you a preview

===========================================

<%@ taglib uri="tagLib" prefix="hbj" %>

<jsp:useBean id="myBean" scope="application" class="com.cts.bean.User" />

<hbj:content

id="myContext">

<hbj:page title="Kirupanand">

<hbj:form id="myFormId" >

<hbj:inputField type="String" id="Getuser"

size="30" value="" maxlength="8"

disabled="false">

</hbj:inputField>

<hbj:inputField type="String"

id="Displayuser" size="30"

value="<%=myBean.getUser()%>"

maxlength="8" disabled="false">

</hbj:inputField>

<hbj:button id="Store" text="Save" width="125px"

tooltip="Save User Name" onClick="clientSave"

disabled="false" design="STANDARD" />

</hbj:form>

</hbj:page>

</hbj:content>

<html>

<body>

Hello

</body>

</html>

===================================================

what does this mean? If you use HTMLB tags then you cannot see a preview. Not because of " <%@ taglib uri="tagLib" prefix="hbj" %> " this statement is used to tell to the program which executes the jsp that use this TagLib to understand what the component starting with hbj should do.

Former Member
0 Kudos

hi,

I meant to say that when you use taglibraries regarding HTMLB components and for that matter if you use HTMLB components , you cannot preview. You could actually visualize only by running the component.

Regards,

Ganesh.N

Former Member
0 Kudos

Ganesh and Kirupanand,

Thanks for the heads-up about HTMLB, but I'm not using HTMLB or any custom tags in my JSPs, only standard <jsp:useBean ...>'s. And even then, I could go for days editing the JSP, stopping and starting NWDS, before the problem finally occurs (that's the seemingly random nature of the problem I'm referring to).

Former Member
0 Kudos

hi,

This isn't problem first of all.

When you use the following taglib and use htmlb components , you cannot preview them.

<%@ taglib uri="tagLib" prefix = "hbj" %>

Instead if you use HTML components, you can preview the components. But the problem if you use HTML stuff will be that Validation of data or Eventing will be difficult. If you like to preview the HTMLB elements you include the statement

<b>this.setJspName("JSPname.jsp");</b> in the doProcessBeforeOutput() method .

Whenever you import the Par file and run , you can see the elements.

Hope this helps...

Regards,

Ganesh.N

Former Member
0 Kudos

Hi,

If you use HTMLB then the JSP editor cannot show a preview, the JSP editor will show a preview if you only use html in the jsp page. the jsp editor in NW cannot give a preview of HTMLB pages, that's why it opens the notepad and throws an error.

reward useful answers.