Netui:anchor generates port as 7001 instead of another port
Hi...
I have my WebLogic Server running on port 7110. There are several places where
I use the netui:anchor tag to generate links and form submit. However, the url
that gets generated in the html output (I did a view source in IE to see this),
all have 7001 as the port instead of 7110.
Any clues?
Thanks
Kunal
There should be an xml file in your web-apps WEB-INF dir called something like
url-template-config.xml which has server settings like port number etc. I believe
this is used to generate URLs for page flows etc.
"Troy Hamsher" <[email protected]> wrote:
>
So... how did you figure this out?
"Kunal Mittal" <[email protected]> wrote:
Never mind. I figured this out.
Kunal
"Kunal Mittal" <[email protected]> wrote:
Hi...
I have my WebLogic Server running on port 7110. There are several places
where
I use the netui:anchor tag to generate links and form submit. However,
the url
that gets generated in the html output (I did a view source in IE to
see this),
all have 7001 as the port instead of 7110.
Thanks
Kunal
Similar Messages
-
Output of netui:anchor - 1563
Hello,
I have a requirement, where I need to pass the output generated by netui:anchor
to a javascript. Basically I need to capture an portlet action url along with
the portal desktop and sendit to mailto functionality. I tried using the id attribute
of the netui:anchor tag and unfortunately it is not working. The id is set to
null by the tag.
Is there a way to capture a porlet's action url?
Thanks for your help.
Senthil Kumar.SNevermind. I solved it.
Thanks
Kunal
"Kunal Mittal" <[email protected]> wrote:
>
I have my WebLogic Server running on port 7110. There are several places
where
I use the netui:anchor tag to generate links and form submit. However,
the url
that gets generated in the html output (I did a view source in IE to
see this),
all have 7001 as the port instead of 7110.
Thanks
Kunal -
Netui:anchor renders absolute url
Hi there,
I've got a Workshop application that runs in a clustered environment. Say, the application address is http://server1:7001/MyApp/Controller.jpf.
The cluster has an IIS frontend. When I go to the URL https://frontend:1111/MyApp/Controller.jpf, the frontend host forwards my request to http://server1:7001/MyApp/Controller.jpf.
This is all OK, but when my application uses authentication, the netui:anchors inside it render to absolute URL's like https://frontend:7001/MyApp/action.do.... , and I can't get past the opening page, because the frontend listens at port 7001.
Whenever I remove authentication, the anchors are rendered to relative URLs.
The anchors point to actions in the page flow. The WEB-INF/web.xml contains the following section:
<security-constraint>
<display-name>MyAppName</display-name>
<web-resource-collection>
<web-resource-name>myappname</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>MyRole</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<security-role>
<role-name>MyRole</role-name>
</security-role>
When calling the server host directly, everything goes well with authentication, and also everything works well when calling the frontend with authentication disabled.
Can anybody help me?
Thanks,
WarperHere's the answer.
id="{pageContext.itemScript}"
"JClaude" <[email protected]> wrote:
>
Hello I'm using a javascript that uses a calcultated id in the url link
if I write the following:
<netui:anchor action="navigate" id="<%=itemScript%>">
</netui:anchor>
I get the message : "this attribute does not support request time values."
And if I write the following, I obviously get a string "{itemScript}"
and not
the value:
<netui:anchor action="navigate" id="{itemScript}" >
</netui:anchor>
Is there a workaround other than "don't use javascript" or use <a>?
Thanks,
JC -
Error in form submit through netui:anchor tag onClick event
Hello,
I am working on a portal application. Below is my jsp code of a simple search screen. The search parameter is customername.
<netui:form action="searchCustomer" style="form" tagId="myForm">
<netui:textBox dataSource="{actionForm.customerName}"></netui:textBox>
<netui:anchor onClick="sayHello(); return false;" styleClass="button" action="searchCustomer" formSubmit="true"> Search</netui:anchor>
</netui:form>
I have an onClick event as I want to implement some customer logic on click of the anchor tag.
function sayHello(){
// customer implementation here
document.forms[getNetuiTagName("myForm",this)].method="POST";
document.forms[getNetuiTagName("myForm",this)].action="/searchCustomer.do";
document.forms[getNetuiTagName("myForm",this)].submit();
In the searchCustomer method of the controller, the form has zero parameters. The customerName has null value.
Can anyone tell me what am I doing wrong here.
Any help is appreciated.
Thanks
ManjuI also want to add a confirm() dialog before submitting. However, setting the onClick handler overrides the one generated when formSubmit="true". I worked around this by calling the generated function directly:
<... onClick="if (confirm('[msg]')) { anchor_submit_form(getNetuiTagName('[formName]'), this.href) } return false;">
Where [msg] is the message to display and [formName] is the name of the form containing the anchor.
Hope this helps someone. -
Netui anchor tag in netui:form
I have some code like following:
<netui:form action="action1" >
<netui:anchor action="action2">Check</netui:anchor>
</netui:form>
Action1 and action2 willl be finally redirected to the same JSP(for example one.jsp).
The weird thing is that: according to log output, it seems that one.jsp has been hit twice when user click "check" link.
Is it possible that when user click "check" link, weblogic not only trigger action2 but also trigger action1? forsubmit attribute is not set to true explicitly for netui:anchor tag.
Thanks in advancehi
verify from a browser trace tool (e.g. livehttpheaders, fiddler or firebug) how many requests your browser is making. (or you can inspect the code that portal generates in the HTML). Once we have determined whether its the browser making the two requests or something on the server, we can see if there are workarounds.
regards
deepak -
Netui: anchor tag with target attribute.
I am using the netui:anchor tag inside an iframe to post to an action. But the
resulting page is displayed within the iframe. Will the target attribute of the
netui:anchor tag help solve the problem. What is a valid value of the target
attribute.
thanks,
Shankardoes the action have a formSubmit = true? If not then your modal dialog should be shown via the onclick and you have to javascript the link click (based on your modal dialog options)
If you do have a formSubmit=true, then you'd have the onclick show the modal dialog and you would have to write additional javascript to submit the form (Along with setting its action)
regards
deepak -
How to generate PDF report directly instead of RPT report by using JRC ?
Hi,
Good Day !
How to generate PDF report directly instead of RPT report by using Crystal Reports XI Release 2 Java Reporting Component (JRC) in desktop (Swing thick-client) ?
My GUI program will generate a RPT report, then i can export to PDF file, this is ok, no problem.
BUT
i want it direct to generate a PDF report, not a RPT report.
The code like below (2 java files)
ClassA.java
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(XXX, 0);
ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
paramFieldController.setCurrentValue("", "XXX", DomainClass.getXXX());
new ReportViewerFrame(reportClientDoc);
// End of ClassA.java
// Begin ReportViewerFrame.java
public class ReportViewerFrame extends JFrame
//Initial window frame properties.
private final int XPOS = 80;
private final int YPOS = 60;
private final int WIDTH = 760;
private final int HEIGHT = 550;
private ReportViewerBean reportViewer = new ReportViewerBean();
private ReportClientDocument reportClientDoc = new ReportClientDocument();
public ReportViewerFrame(ReportClientDocument reportClientDoc) throws Exception
//Initialize frame properties.
this.setResizable(true);
this.setLocation(XPOS, YPOS);
this.setSize(WIDTH, HEIGHT);
this.setTitle("Crystal Report Java Viewer");
//Add GUI components to the frame including the ReportViewerBean.
addComponents();
//Add GUI listeners to the frame.
addListeners();
//Set the report that the ReportViewerBean will display.
this.reportClientDoc = reportClientDoc;
reportViewer.setReportSource(reportClientDoc.getReportSource());
reportViewer.init();
reportViewer.start();
//Display the frame.
this.setVisible(true);
How to set the export option to PDF base on existing code ?
Where can i download this package/jar ?
regardsPlease find a console app that you can extend it to a JFrame app by importing the relevant swing package:
//Crystal Java Reporting Component (JRC) imports.
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.lib.*;
import com.crystaldecisions.sdk.occa.report.exportoptions.*;
//Java imports.
import java.io.*;
public class ExportReport {
static final String REPORT_NAME = "ExportReport.rpt";
static final String EXPORT_FILE = "C:\\myExportedReport.pdf";
public static void main(String[] args) {
try {
//Open report.
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the export() method of the PrintOutputController.
//Export report and obtain an input stream that can be written to disk.
//See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations
//possible with the JRC.
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
//Release report.
reportClientDoc.close();
//Use the Java I/O libraries to write the exported content to the file system.
byte byteArray[] = new byte[byteArrayInputStream.available()];
//Create a new file that will contain the exported result.
File file = new File(EXPORT_FILE);
FileOutputStream fileOutputStream = new FileOutputStream(file);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
byteArrayOutputStream.write(byteArray, 0, x);
byteArrayOutputStream.writeTo(fileOutputStream);
//Close streams.
byteArrayInputStream.close();
byteArrayOutputStream.close();
fileOutputStream.close();
System.out.println("Successfully exported report to " + EXPORT_FILE);
catch(ReportSDKException ex) {
ex.printStackTrace();
catch(Exception ex) {
ex.printStackTrace();
As to the relevant jar(s) deployment refer to this link (Java Reporting Component Configuration):
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_dg_doc/doc/jrcsdk_java_dg/WorkingWithJRC2.html#1004391
Cheers -
Can we use href and action attribute in netui:anchor tag both at a time...*href* is for opening a modal dialog and action is page flow action
does the action have a formSubmit = true? If not then your modal dialog should be shown via the onclick and you have to javascript the link click (based on your modal dialog options)
If you do have a formSubmit=true, then you'd have the onclick show the modal dialog and you would have to write additional javascript to submit the form (Along with setting its action)
regards
deepak -
Problem in onClick attribute of the netui:anchor tag
Hi,
I have a String object to be passed to the javascript function with onClick attribute.
eg: <%String st = new String("helo");%>
<netui:anchor action="display" onClick="display()">
I want to pass the object st to the java script so that I can do some validations. how can I do that. If I say,
onClick="display('<%=st%>')" it is not working. can you please suggest me a solution.
Regards,
Satish.I haven't tried this with the netui:anchor tag, but it works with the netui:button tag.
<%
String onCl = "display('" + st + "')";
%>
<netui:anchor action="display" onClick="<%=onCl%>">
Apparently, you can place a scriptlet inside the onClick attribute, but you cannot intermingle the scriptlet with plain text.
Also, the onclick attribute appears not to support XScript ({request.whatever}). I find that weird. -
Title attribute for netui:anchor
Does anybody know how to set an title on a <netui:anchor> tag? I can't see anyway
of doing this from the documentation.
As of Oct 04 this will be illegal in Europe when the Disability Discrimaination
Act legislation comes into effect.
Many Thanks
TonyThere's not a way to do that currently. This is a bug that will be fixed in
the next version.
Rich
"Tony Cromarty" <[email protected]> wrote in message
news:400c0e2a$[email protected]..
>
Does anybody know how to set an title on a <netui:anchor> tag? I can't seeanyway
of doing this from the documentation.
As of Oct 04 this will be illegal in Europe when the DisabilityDiscrimaination
Act legislation comes into effect.
Many Thanks
Tony -
Hi,
I want to open a link(Fr eg www.yahoo.com) in a new browser window.I am using netui:anchor tag but a not able to display the link in the new page.A popup window opens but the url doesnt load.
<netui:anchor href="${container.item.urlName}" popup="true">${container.item.urlName}
<netui:configurePopup width="500" height="500"/>
</netui:anchor>
Please let me know how this can be done.
Thanks in advance.
SriMaybe a <netui:parameter/> in the <netui:anchor/> would do the trick. In
your action, you could check for a request parameter to determine where
it come from.
gerry rodman wrote:
Lets say that I have two netui:anchor's that transfer control to the same action
method in a page flow. How can I pass a paramter to the pageflow (upong clicking
the anchor) to detect which anchor was clicked?
thx
gr -
Hi,
I tried to append the context path in front of the link using anchor:
<netui:anchor href="<%=request.getContextPath()%>/..." >
But it seems that anchor takes it as is.
java.net.URISyntaxException: Illegal character in path at index 32: /appmanager/myPortal/<%=request.getContextPath()%>/......
at java.net.URI$Parser.fail(URI.java:2752)
at java.net.URI$Parser.checkChars(URI.java:2925)
at java.net.URI$Parser.parseHierarchical(URI.java:3009)
at java.net.URI$Parser.parse(URI.java:2967)
at java.net.URI.<init>(URI.java:574)
at com.bea.wlw.netui.pageflow.util.TemplateHelper.setUrl(TemplateHelper.
java:371)
How can I code the link? ThanksHi
I tried
<netui:anchor href="${pageContext.request.contextPath}/index.jsp" value="Click"/>
and it seems to work
Vimala- -
Has anyone extended netui anchor tag and created custom tag?
I am considering writing a custom pagination tag extending the anchor tag.
Appreciate any suggestions ..sample code
ThanksJust need to provide a caveat with extending the 8.1 NetUI JSP tags...
Unfortunately, the Workshop 8.1 JSP tags did not provide a supported extensibility API. If the 8.1 JSP tags are extended, BEA / Workshop do not make any guarantees about the forward compatibility of these APIs in future releases. A NetUI JSP tag API will be available in the 9.2 GA release of Apache Beehive, which will be included in Workshop 9.2.
Hope that helps...
Eddie -
How do I make JWS use port 7001 instead of port 8080?
Running Weblogic 6.1sp2, jdk1.3.
I can get JWS/JNLP to work as long as I have weblogic listening to port 8080, but how do I get JWS to use port 7001?
Searched for the answer and came up blank - I assume I'm missing something really simple...
tia,
AndrewChange the codebase="..." setting in your JNLP file to refer to your new port.
-
Where the netui:anchor is translated by a portal?
I’m just wondering… How it’s possible, that I can use existing page flows as a portlets, without any changes to the existing JSPs. In those JSP I’ve got links created by <netui:nachor action=â€actonNameâ€>, but those are beehive tags, not connected with the portal implementation.
Of course, when I deploy this flow as a portlet, created URL are different, to accommodate portal context. So, where the magic takes place? In other words, where the default output of the netui:anachor is overridden?
I just like to know, how things are working…
Brgds,
Pawel KozlowskiThis is done via a URL rewriting framework within WLP. We use this
mechanism for all URLs generated portlets as long as portlets use some
known tags/APIs to create URLs.
For instance, when you use an anchor tag, depending on how it is used,
the following will happen:
a. Use the page flow directly: The anchor tag generates a URL based a
page flow specific URL rewriter.
b. Use a page flow as a local portlet: The anchor tag delegates URL
generation to a URL rewriter deployed by the portal framework.
c. Use a page flow as a portlet deployed on a WSRP producer: The anchor
tag delegates URL generation to a URL rewriter deployed by the WSRP
producer.
In each case, the output will be different, and is specific to how the
page flow is being used. The same approach applies to struts apps
deployed as portlets.
This is the reason WLP always requires you to use some known tags (like
pageflows, struts, or WLP's render tags, or the JSR168 API) to create
links. If you create links directly without using these tags, the
generated URLs may or may not work.
Subbu
Pawel Kozlowski wrote:
I???m just wondering??? How it???s possible, that I can use existing page flows as a portlets, without any changes to the existing JSPs. In those JSP I???ve got links created by <netui:nachor action=???actonName???>, but those are beehive tags, not connected with the portal implementation.
Of course, when I deploy this flow as a portlet, created URL are different, to accommodate portal context. So, where the magic takes place? In other words, where the default output of the netui:anachor is overridden?
I just like to know, how things are working???
Brgds,
Pawel Kozlowski
Maybe you are looking for
-
when i swipe the notifcation centre downward to see calendar or reminder or weather, Iphone 4 freezes and there is apple logo and then i am back to lock scrren
-
ABAP Program to Read Transports and Get Descriptions
Hello, Does anyone out there have an abap program or know of one that will read transports with the technical names and give you the description of the objects, in order to make it easier to verify things in a transport?
-
I have a 30GB Ipod Classic with sync question
I have not synced in quite a while. When I tried to sync this morning, I received the following message: "The ipod is synced with another iTunes library. Do you want to erase this ipod and sync wit this iTunes Library"? I see all of my music on the l
-
HT4859 How to restore from iCloud a specific set of data?
Hi, i need to recover only a subset of the iCoud back up; infact I removed Whatsapp and then reinstalled; I have lost all my message history. It is still in the iCoud back up, since the storage detail shows me 26MB usage from whatsapp. I don't wanto
-
Security Update 2006-001 - The return?
Hello! According to my software update which popped up after waking the computer I should install the latest security update (PowerPC), even though I installed it just a couple of days ago. Or, that's what I think... Should I just go ahead and instal