html:link with lots of overlapping sinle an double quotes
Hi,
Take a look at the following code please, and let me know how can I figure out the problem?
<html:link href='<%="javascript:gotoUrl(' "+
myobject.getAstring()
+" ')"%>' >
My rules are to go into steps, from the outside in:
1) Lets make a link.. Outermost quotes will be double.
<html:link href="" >2) What do we want to put into the link? A javascript call. So lets add that. Don't forget the ; at the end
<html:link href="javascript:gotoUrl();" >3) The javascript function takes a string parameter. Since it is an inner quotes, we will use single:
<html:link href="javascript:gotoUrl('');" >4) The parameter passed to the javascript function comes from a scriptlet:
<html:link href="javascript:gotoUrl('<%= myobject.getAstring() %>');" >This way, it should be more clear about which quote open and close each other, and you learn to limit what needs to come out of the scriptlet code, making it easier to read.
Similar Messages
-
Is there a way to include html link with applet?
I am thinking of writing an applet that would be useful to others, which I would provide for free. In return I would want a link from the pages that use the applet. It is important that the link is search engine friendly, a pure href html link that will provide google page rank to me.
Is there a way to include such a link with an applet so that it can't be removed?No. You can't force other sites to change their content.
-
How to use the html:link with a arraylist
Hi everyone:
I want to display the data using struts html:link.
I query the database and place all the data to javabean,later place all the javabean to ArrayList.In Action,I use the "request.setAttribute("lovetable",articlelist) to set request to jsp page.
I want to pass a parameter "id" use the hyperlink so I can get the parameter when I click the hyperlink.
But how to use html:link to display it?
I use <html:link action="viewtopic.do" paramId="id" paramName="lovetable" paramProperty="id"/>,it can't work and Tomcat report error :
org.apache.jasper.JasperException: No getter method for property id of bean lovetable
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
The lovetable is a ArrayList and it don't have a getter or setter method.
How to use it pass parameter? :( ThksThank you.
I use the bean:define successful.And display all the data to jsp.My jsp code is:
<logic:iterate id="love" name="lovetable">
<bean:define id="idbean" name="love"/>
<tr bgcolor="<%=color%>">
<td><bean:write name="love" property="id"/></td>
<td><html:link forward="viewtopic" paramId="id" paramName="idbean" paramProperty="id"><bean:write name="love" property="title"/></html:link></td>
<td><bean:write name="love" property="name"/></td>
<td><bean:write name="love" property="time"/></td>
</tr>
</logic:iterate>
In Action : request.setAttribute("lovetable",articlelist)
ResutlSet rs=.............
List articlelist=new ArrayList();
while(rs.next()){
articlebean bean=new articlebean();
bean.setName(rs.getString("name"));
bean.setTitle(rs.getString("title"));
articlelist.add(bean);
The above code will work property.
The Tag "html:link" need bean to work other than arraylist so I iterate all the bean out.
The Tag "logic:iterate" need collection to work so I make Action return a List.
right?
Any idea? :) -
Linking secure html link with JSF?
Hey all,
I do have a previous post regarding j_security_check and using container based security, but since this problem could be answered without it, checking to see how (j_security_check: http://swforum.sun.com/jive/thread.jspa?threadID=54464&tstart=0).
I want to be able to e-mail links with pre-populated attributes (identifiers, dates, what have you) but still have the link secure and require auth. But, I do want to automatically go to that linked page after auth. How does one do this with JSF?
thanks,
-DHi,
Please go through the below thread:
http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50520
Hope this helps.
Thanks,
RK. -
Matching HTML links with regex
Hi all,
Im making a basic web crawler and am looking for a regular expression that is perhaps for efficient than the one im using at the minute.
The regex i've got right now seems to work ok, however it doesnt seem to find all (or most) of the links on the page.
Pattern ptn = Pattern.compile("<a?\\s+href\\s*=\\s*\"?(.*?)[\"|>]",Pattern.CASE_INSENSITIVE);
Matcher match = ptn.matcher(strHTML);
while(match.find()){
//process inks here
}Thanks as always for your help.wraith2008 wrote:
Hi all,
Im making a basic web crawler and am looking for a regular expression that is perhaps for efficient than the one im using at the minute.
...Two reasons for using an HTML parser:
- it's faster than regex;
- it will find more links (also incorrectly formed ones) than your regex will find. -
Binds with string containing double quotes
Hello there,
I have the following SELECT statement which is run from a Delphi application :
SELECT Customer, Last_Name
FROM Customer
WHERE UPPER(Last_Name) LIKE :last;
:last has the string value of Smith"a".
Is there a problem with binds and strings wich contain double quotes?.
If so, how can I fix this problem?
Thanks,
MiaHi
There is no problem in this example. Content of bind variable is not part of syntc checking, so you can have any characters.
Regards
null -
Can place a swf with wmode transparent on top html without effect html link?
i using DIV to put my swf (Param=wmode value=transparent) on
top of the html, after that i can see that the swf background is
transparent. but one thing happen , the html link has been overlap
by the swf. i cannot click even highlight the link of the html.
any expert understand my meaning , can give me some advice or
solution. tqadreny,
> i using DIV to put my swf (Param=wmode
value=transparent)
> on top of the html, after that i can see that the swf
background
> is transparent.
That's right.
> but one thing happen , the html link has been overlap by
the swf.
> i cannot click even highlight the link of the html.
This is one of the hazards of using wmode, I'm afraid. Some
people feel
strongly that it should never be used, but I personally feel
it has some
uses, even with its inherent disadvantages. There are more
things to
consider, in fact. Check out a few thoughts on the subject by
Justin
Everett-Church:
http://justin.everett-church.com/index.php/2006/02/23/wmode-woes/
David Stiller
Co-author, Foundation Flash CS3 for Designers
http://tinyurl.com/2k29mj
"Luck is the residue of good design." -
Currently, I can copy ONE tab's url and nothing else (not its name). Or I can bookmark all tabs that are open. However, I'd like to have the ability to select multiple tabs and then copy ALL of the the URLs AND their titles/or copy ALL of the URLs+titles+HTML links? This can be done with the Multiple Tab Handler add on; when I download the add on, I get a message saying that using the add on will disable Firefox's tab features. I prefer to use Firefox features rather than download and use an add on. Is there a way to do this without an add on?
Hi LRagsdale517,
You should definitely be able to upload multiple files by Shift-clicking or Ctrl-clicking the files you want to upload. Just to make sure you don't have an old version of the service cached, please clear the browser cache and then log in to https://cloud.acrobat.com/files. After clicking the File Upload icon in the upper-right corner, you should be able so select multiple files for upload.
Please let us know how it goes.
Best,
Sara -
How can i send data POST with a html link in a textfield
Hello,
This is my problem : I generate (from a php script) html
links in a textfield. I would like for each link to send data with
the POST method to an other script.
My problem is that the getURL("lien", "", "POST") function
can be use only by a movieclip or button event ... and not from a
html link ...
How can i do it ?
Have you a small idea???
Thanks ....yes, thanks but now my problem is in my function associated
to this link :
function SendPost()
var toto="toto";
getURL("
http://127.0.0.1/board/scheduledfirst.php",
"_blank", "GET");
The function is executed but after in php i can get anything
with echo ($_GET["toto"]); echo ($_POST["toto"]);
Why ? -
Exporting to PDF with hot html links
I'm trying to create a pdf document that has functioning html links. Does Pages let you do this?
To create a PDF with live links you'll need to buy a full version of Adobe Acrobat. Adobe Reader is just as titled - a reader. It will only allow reading and basic markup of pdfs.
The PDFs created through the Print menu are also very simple PDFs. Their creation is not a function of the program the original document comes from, be it Pages, Numbers, Word, Excel, Appleworks etc. It is based on the operating system using technology which is probably licensed from Adobe.
To get all the functionality available in a PDF, you've go to pay the piper - Adobe - for the software.
Good luck,
Terry -
Having problems passing more than one parameter with html:link tag
Hi guys,
for my web application I�m using Struts. I�ve got a database with user details. I would like to get users list and link to the details of each user. I wrote the code and everything is working fine only the users list is repeating as many times as users in the list.
For ex: I have in the database User1, User2 and User3. I would like to have a result like:
User1
User2
User3
Instead of it I have the result like:
User1
User2
User3
User1
User2
User3
User1
User2
User3
What I�m doing wrong? Could somebody help me please?
Thank you in advance
There is a snippet of the code, which I�m using in jsp:
<code>
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>
</code>Suggestion: next time you post code use the "CODE" button to put code tags around it. It formats much nicer that way :-)
You have a nested loop structure here.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name=" usersName " scope="page" page="/name.do">
<logic:iterate id="folder" name="user">
<bean:write name="folder" /><br>
</logic:iterate>
</html:link><br>
</logic:iterate>Both loops iterate over your "user".
Your first loop loops over each user.
Then your second loop also loops over each user - hence you get number of users * number of users = 3 groups of 3.
If you have 4 users, you would have 4 groups of 4.
I only see you setting one parameter: "usersName" What other parameters do you need to pass?
At a guess, the inner loop is unnecessary, and you want to write the users name as the text for the link, and also use it as a link parameter.
<logic:iterate id="root" name="user">
<%
java.util.HashMap users = new java.util.HashMap();
params.put("user",root);
pageContext.setAttribute("usersName", users);
%>
<html:link name="usersName" scope="page" page="/name.do">
<bean:write name="user" /><br>
</html:link><br>
</logic:iterate> -
QM with HUM- HU linked inspection lots
Dear All,
Here is the issue I am facing.
I am using QM with WM and HUM. My handling unit has multiple batches. Thus, system creates as many inspection lots as there are batches.
My questions are:
1) Is it possible to create one inspection lot for one handling unit? I think not.
2) Is it possible to record results for all HU linked inspection lots in one screen?
3) Is it possible to make a usage decision for complete HU with all linked inspection lots in one screen?Hi,
Not possible to do result recording based on HU, but you can check with QE72 for result recording and UD for all inspection lots at a stretch.
Regards,
Naveen. -
Revision: 18926
Revision: 18926
Author: [email protected]
Date: 2010-12-01 14:07:19 -0800 (Wed, 01 Dec 2010)
Log Message:
bug fix BLZ-570 Double linked list with lot of objects result in BlazeDS Error deserializing error : StackOverflowError
We put hard limit to the max object nest level to prevent StackOverFlowError. the default max object nest level is 1024 and it can be configured in the endpoint/serialziation section in service-config.xml.
This needs documentation.
Checkintests pass
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-570
Modified Paths:
blazeds/trunk/modules/common/src/flex/messaging/errors.properties
blazeds/trunk/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.java
blazeds/trunk/modules/core/src/flex/messaging/io/SerializationContext.java
blazeds/trunk/modules/core/src/flex/messaging/io/amf/Amf0Input.java
blazeds/trunk/modules/core/src/flex/messaging/io/amf/Amf3Input.java
blazeds/trunk/modules/core/src/flex/messaging/io/amf/AmfIO.java -
Revision: 20451
Revision: 20451
Author: [email protected]
Date: 2011-02-24 08:33:31 -0800 (Thu, 24 Feb 2011)
Log Message:
backporting bug fix BLZ-570/BLZ-620 Double linked list with lot of objects result in BlazeDS Error deserializing error : StackOverflowError We put hard limit to the max object nest level to prevent StackOverFlowError. the default max object nest level is 1024 and it can be configured in the endpoint/serialziation section in service-config.xml. This needs documentation. Checkintests pass
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-570
http://bugs.adobe.com/jira/browse/BLZ-620
Modified Paths:
blazeds/branches/4.0.0_fixes/modules/common/src/flex/messaging/errors.properties
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/AbstractEndpoint.j ava
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/SerializationContext.java
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf0Input.java
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/Amf3Input.java
blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/io/amf/AmfIO.javaDear Pallavi,
Very useful post!
I am looking for similar accelerators for
Software Inventory Accelerator
Hardware Inventory Accelerator
Interfaces Inventory
Customization Assessment Accelerator
Sizing Tool
Which helps us to come up with the relevant Bill of Matetials for every area mentioned above, and the ones which I dont know...
Request help on such accelerators... Any clues?
Any reply, help is highly appreciated.
Regards
Manish Madhav -
Revision: 20443
Revision: 20443
Author: [email protected]
Date: 2011-02-23 21:19:22 -0800 (Wed, 23 Feb 2011)
Log Message:
back porting bug fix BLZ-570/BLZ-620 Double linked list with lot of objects result in BlazeDS Error deserializing error : StackOverflowError We put hard limit to the max object nest level to prevent StackOverFlowError. the default max object nest level is 1024 and it can be configured in the endpoint/serialziation section in service-config.xml. This needs documentation. Checkintests pass
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-570
http://bugs.adobe.com/jira/browse/BLZ-620
Modified Paths:
blazeds/branches/3.x/modules/common/src/java/flex/messaging/errors.properties
blazeds/branches/3.x/modules/core/src/java/flex/messaging/endpoints/AbstractEndpoint.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/SerializationContext.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/amf/Amf0Input.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/amf/Amf3Input.java
blazeds/branches/3.x/modules/core/src/java/flex/messaging/io/amf/AmfIO.java
Maybe you are looking for
-
Opening and Cumulated Balances of PCA
Dear BI Gurus, I am using two standard (PCA) Data Sources <b>1. 0EC_PCA_3 and 2. 0EC_PCA_4</b> to Load data into my Custom Cube.I need Cumulated balance and Opening Balance of Actual Line Items for my reporting purpose. There is an object
-
Hi, I had typed a paper for a class that is worth half of the class grade a while ago, and today when I went to open it, the file wouldnt open and my macbook pro displayed a message saying that the file was corrupted. However, the problem now is tryi
-
Network macbook pro 10.9.4 to macbook 10.6.8 - how?
I have just bought a new MacBook Pro (mid-2014) Mavericks OS X 10.9.4. Until now I have been using a MacBook (early 2008) Snow Leopard OS X 10.6.8. I want to keep my MacBook 10.6.8 and link it to my new computer. I don't want to migrate anything. I w
-
Reg: LOV FormPersonalization
Hi all, I trying to change Query in LOV using form personalization. Steps i followed was: 1. I identified the Form name and open that in form builder 10g and i found the current query for LOV in Record Group 2. Now i am doing Fom Personalization in o
-
S there any Utility industry company is using PP-production planning & exec
ear All, Is there any Utility industry company is using PP-production planning & execution module and CO-PC product costing module ?? Meaning.. any Power generation/Transmission/distribution or water production/Transmission/distribution company is us