Simple GREP string needed
I have a simple task I need to accomplish and I could use a simple GREP command to do it except I have yet to figure out what that is. Here's what I have:
a paragraph break a number (1, 2, or more digits) and a paragraph break again. I find this easily with the Find command: \r\d+\r
I need to replace the paragraph breaks with a single spaces and place brakets in front of and behind the digits found without changing the digits found. If I use the $0 in the change string it leaves it all the same including the digit or if I use [$0] in the change field it puts teh brakets in but leaves the paragraph breaks. I'm sure there's something simple I'm missing here, but I have not yet figured out what it is. Can someone please help?
The parentheses break the expression into subparts of found text. In this case (paragraph break)(numbers)(paragraph break). You only want to keep the numbers part, so you use the $ notation to tell ID which subpart to keep. $0 is ALL of the found text, $1 is the first group enclosed by parentheses, $2 the second (your numbers), and so on. By choosing $2 you save the numbers, but throw away anything that was found in the first and following subparts.
Similar Messages
-
GREP reference; need end-of-paragraph expression
GREP reference; need end-of-paragraph expression
I'm doing a canned GREP search to delete all trailing zeros. So if I have a number like 8.2500, it changes it to 8.25.
I have the code to find zeros leading up to a space, line break, and paragraph return but I can't find the expression for an end of paragraph. With hidden characters on, it looks like a hash ( # ).
Does anyone know what this is?
If anyone knows a more elegant way to do this, please advise. Here's what I have:
0+$|00+$|000+$|0000+$|.0000+$|0+\s|00+\s|000+\s|0000+\s|.0000+\s|0+\n|00+\n|000+\n|0000+\n |.0000+\n|0+\r|00+\r|000+\r|0000+\r|.0000+\rSee my answer in the Script forum: http://www.adobeforums.com/webx/.3bbf275d.59b4d546/0
(You shouldn't post a question twice.) -
Create at run-time enumeration of a Dictionary simple type - String
How can I change dynamically (at run-time) the enumeration of a Dictionary simple type (String) ?
This reference explains how to set values for a simple type.
http://help.sap.com/saphelp_nw04/helpdata/en/86/16e13d82fcfb34e10000000a114084/frameset.htm
Cindy -
Revision: 11641
Author: [email protected]
Date: 2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
Log Message:
A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
QE notes: Please include tests for multiple graphic content nodes with masks under a .
Doc notes: N/A
Bugs:
SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
Reviewer: Deepa
Tests run: Checkintests, Bug test case
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-24133
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.javaRevision: 11641
Author: [email protected]
Date: 2009-11-10 18:29:57 -0800 (Tue, 10 Nov 2009)
Log Message:
A simple fix - we need to keep track of the display list index for non-clipping masks such as luminosity masks, not just alpha masks.
QE notes: Please include tests for multiple graphic content nodes with masks under a .
Doc notes: N/A
Bugs:
SDK-24133 - Multiple non-Group maskees don't work when using maskType="luminosity"
Reviewer: Deepa
Tests run: Checkintests, Bug test case
Is noteworthy for integration: No
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-24133
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/fxg/FlexFXG2SWFTranscoder.java -
Why String need to be final?
Why String need to be final?
Final or immutable? Final so that you are not tempted to extend String. You are supposed to use String. Immutable for the salient reasons previously posted.
- Saish -
Very simple XSLT string replacing question
Hi,
This is a really simple question for you guys, but it took me long, and i still couldn't solve it.
I just want to remove all spaces from a node inside an XML file.
XML:
<?xml version="1.0" encoding="UTF-8"?>
<root insertedtime="2008-05-01T14:03:00.000+10:00" pkid="23421">
<books>
<book type='fiction'>
<author>John Smith</author>
<title>Book title</title>
<year>2 0 0 8</year>
</book>
</books>
</root>in the 'year' node, the value should not contain any spaces, that's the reason why i need to remove spaces using XSLT. Apart from removing space, i also need to make sure that the 'year' node has a non-empty value. Here's the XSLT:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="//books/book[@type='fiction']">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:attribute name="id">101</xsl:attribute>
<xsl:call-template name="emptyCheck">
<xsl:with-param name="val" select="year"/>
<xsl:with-param name="type" select="@type"/>
<xsl:with-param name="copy" select="'true'"/>
</xsl:call-template>
<xsl:value-of select="translate(year, ' ', '')"/>
</xsl:copy>
</xsl:template>
<!-- emptyCheck checks if a string is an empty string -->
<xsl:template name="emptyCheck">
<xsl:param name="val"/>
<xsl:param name="type"/>
<xsl:param name="copy"/>
<xsl:if test="boolean($copy)">
<xsl:apply-templates select="node()"/>
</xsl:if>
<xsl:if test="string-length($val) = 0 ">
<exception description="Type {$type} value cannot be empty"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>The 'emptyCheck' function works fine, but the space replacing is not working, this is the result after the transform:
<?xml version="1.0" encoding="utf-8"?>
<root insertedtime="2008-05-01T14:03:00.000+10:00" pkid="23421">
<books>
<book type="fiction" id="101">
<author>John Smith</author>
<title>Book title</title>
<year>2 0 0 8</year>2008</book>
</books>
</root>The spaced year value is still there, the no-space year is added outside the 'year' tags'
anyone can help me, your help is extremely appreciated!
Thanks!You should add a template for 'year' :<xsl:template match="year">
<year><xsl:value-of select="translate(.,' ','')"/></year>
</xsl:template>and remove the translate call in the 'book' template.
It would be better to add a 'priority' attribute at each template so it would be explicit which template to use because match="@*|node()" could be interpreted by another transform engine as the unique template to be used ! -
Payload in String need Java mapping to IDOC structure
Hi
I have a payload in a field and that payload needs to be mapped to IDOC sturcture. As per my understanding I will have to write java mapping for the same.
I don't have any background of java, can anyone help me do this stuff or give me some inputs for the same.
Regards
RiaDear Ria,
Does the Source field consists of payload, then there must be original payload for which you have created Source Structure in XI right.
I think your source structure look like this if I'm not wrong:
<Data Type>
< Field>
<Field>
<Field-Payload>
</Field-Payload>
</Field>
</Field>
</DataType>
If this is so, you can split the values in the field by FCC. If your field consists of simple payload you can use String functions to extract the value and map it to IDOC field.
Best Regards
Praveen K -
Simple Example, I Need Help!
I'm working on a very simple application using Eclipse and MySQL here it is:
http://img.photobucket.com/albums/v335/shlumph/table.jpg
It's pretty self-explanitory. You enter a person's first and last name, press submit, and their name flops onto the table. I made this naively, and do not know how to make use of reflection and beans, if that's even what I need.
I tried googling on how to make use of reflection and beans when dealing with database connectivity, but there's just so much different kinds of information, it's like trying to find a needle in a haystack.
If someone could help point me in a direction to go, post some in depth tutorials, or even point out a good book that I can get on amazon, that would be excellent!
Just incase if you care what I have done naively, here is the database structure and code:
I have a database named addressbook with a table called names. Inside of names there are the following columns:
first_name varchar(20)
last_name varchar(20)
public class example extends Composite {
private Label firstNameLbl = null;
private Text firstNameTxt = null;
private Label lastNameLbl = null;
private Text lastNameTxt = null;
private Composite tableComposite = null;
private Button submitButton = null;
private Table nameTable = null;
private Connection con = null;
public example(Composite parent, int style) {
super(parent, style);
initialize();
}//example()
private void initialize() {
GridData gridData1 = new GridData();
gridData1.widthHint = 75;
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
firstNameLbl = new Label(this, SWT.NONE);
firstNameLbl.setText("First Name");
firstNameTxt = new Text(this, SWT.BORDER);
lastNameLbl = new Label(this, SWT.NONE);
lastNameLbl.setText("Last Name");
lastNameTxt = new Text(this, SWT.BORDER);
this.setLayout(gridLayout);
Label filler1 = new Label(this, SWT.NONE);
submitButton = new Button(this, SWT.NONE);
submitButton.setText("Submit");
submitButton.setLayoutData(gridData1);
submitButton
.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
getConnection();
try {
String firstName = firstNameTxt.getText();
String lastName = lastNameTxt.getText();
String sql = "INSERT names VALUES ('" + firstName + "', '" + lastName + "')";
Statement stmt = con.createStatement();
stmt.executeUpdate(sql);
//Update the table
nameTable.removeAll();
addItems();
//Close connections
con.close();
stmt.close();
} catch (SQLException e2) {
e2.printStackTrace();
}//widgetSelected()
createTableComposite();
this.setSize(new Point(241, 220));
}//initialize()
* This method initializes tableComposite
private void createTableComposite() {
GridData gridData2 = new GridData();
gridData2.widthHint = 200;
gridData2.heightHint = 100;
GridData gridData = new GridData();
gridData.horizontalSpan = 2;
tableComposite = new Composite(this, SWT.NONE);
tableComposite.setLayout(new GridLayout());
tableComposite.setLayoutData(gridData);
nameTable = new Table(tableComposite, SWT.BORDER);
nameTable.setHeaderVisible(true);
nameTable.setLayoutData(gridData2);
nameTable.setLinesVisible(true);
TableColumn firstNameCol = new TableColumn(nameTable, SWT.LEFT);
firstNameCol.setText("First Name");
firstNameCol.setWidth(100);
TableColumn lastNameCol = new TableColumn(nameTable, SWT.LEFT);
lastNameCol.setText("Last Name");
lastNameCol.setWidth(100);
getConnection();
addItems();
}//createTableComposite()
* This gets the MySQL Connection
public void getConnection() {
try {
Class.forName("com.mysql.jdbc.Driver").newInstance();
con = DriverManager.getConnection("jdbc:mysql:///addressbook", "root", "password");
} catch(Exception e) {
System.err.println("Exception: " + e.getMessage());
}//getConnection()
* This adds items to the address table
private void addItems() {
try {
String sql = "SELECT first_name, last_name FROM names";
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery(sql);
while(rs.next()) {
String first_name = rs.getString(1);
String last_name = rs.getString(2);
String[] row = new String[]{first_name, last_name};
TableItem item1 = new TableItem(nameTable, 0);
item1.setText(row);
} catch (SQLException e) {
e.printStackTrace();
}//addItems()
} Message was edited by:
shlumphYes, the id column is auto-increment and not null. I
kind of went on a rampage without reading your latter
post and added some more stuff.So tell me why I bothered?
I added in other columns: street, city, state, phone
and email to my database. As well as
fields/setters/getters to my Person class.What does adding more columns do when you can't even insert what you had? Seems foolish. Do the easy thing first, then expand.
I think I went on a different, but similar route then
what you mentioned with the database utility. Mine's the right way. 8)
I
tried making a MySQL generator
interface/implementation along with a PersonDao
interface/implementation, like you mentioned.
Can you give me some more suggestions, I'm sure this
is done noobly/poorly.I like that find idiom for method names. Why did you copy the interface I gave you and add "search"? The idea would be to add find methods that have different parameters. In your case, I'd have a find that takes two String arguments.
It's not just being picky. Consistency matters. If you published this, a user would be likely to think "Why two find methods and a search? Did two people write this?" Pick one and stick to it.
It's great, except for that search method. After all, it's what I gave you.
>
To give you an example, here is my implementation for
methods delete, and find:
public void delete(Person p) {
mysql.delete("names", "id", p.getID().toString());
public Person find(Long id) {
Person p = new Person();
ResultSet rs = mysql.find("names", "id",
", id.toString());
try {
while (rs.next()) {
String firstName = rs.getString(1);
String lastName = rs.getString(2);
String street = rs.getString(4);
String city = rs.getString(5);
String state = rs.getString(6);
String zipCode = rs.getString(7);
String phone = rs.getString(8);
String email = rs.getString(9);
p.setID(id);
p.setFirstName(firstName);
p.setLastName(lastName);
p.setStreet(street);
p.setCity(city);
p.setState(state);
p.setZipCode(zipCode);
p.setPhone(phone);
p.setEmail(email);;
} catch (SQLException e) {
e.printStackTrace();
mysql.closeConnection();
return p;
}// find()Here is my MySqlGenerator interface:
public interface MySqlGenerator {
public ResultSet selectAll(String table);
public ResultSet find(String table, String pkColumn,
, String pkValue);
public ResultSet search(String table, String column,
, String search);
public List<Object> select(String table, String
g column);
public void update(String table, String column,
, String pkColumn, String pkValue, String newValue);
public void save(String table, String column, String
g values);
public void delete(String table, String pkColumn,
, String pkValue);
public void closeConnection();
}And to give you an example, here is the
implementation for delete and find:
public void delete(String table, String pkColumn,
, String pkValue) {
getConnection();
try {
Statement stmt = con.createStatement();
String sql = "DELETE FROM " +table+ " WHERE "
E " +pkColumn+ "=" + pkValue;
stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
} finally {
closeConnection();
public ResultSet find(String table, String pkColumn,
, String pkValue) {
getConnection();
ResultSet rs = null;
try {
Statement stmt = con.createStatement();
String sql = "SELECT * FROM" +table+ " WHERE "
E " +pkColumn+ "=" + pkValue;
rs = stmt.executeQuery(sql);
} catch (SQLException e) {
e.printStackTrace();
return rs;
}So theoretically, if this was done well (which I'm
sure it's not), I could put PersonDao, PersonDaoImpl,
MySqlGenerator, MySqlGeneratorImpl, all into a
package named persistence?I don't see what that MySqlGenerator is all about.
No, I wouldn't recommend doing it this way. Put it all the in the PersonDaoImpl. Better yet, create a subpackage "jdbc" under persistence and put the PersonDaoImpl in there. JDBC is one way to implement this interface. There are lots of others. But this is what you should do to start.
NEVER return a ResultSet from a method that way. Load the contents into an object or data structure and close it inside the method that created it. You're leaking a database cursor that way, AND you're exposing SQL stuff to clients. Keep all the persistence artifacts inside the persistence package. Don't let them leak out that way.
Nope, sorry, I don't think this is it.
% -
Simple way to create a slideshow? Real simple - no controls needed.
Greetings - new client wants a series of images fading into
one another on
their homepage. I think Flash is the way to go. I have done
this before
manually using pictures on separate layers and adding
tweening and alpha
fades but its a mare to do if there are many images and
difficult to tweak
afterwards. Is there a simple cheap or free tool that does
this kind of
thing? I dont need user controls or thumbnails - just fading
images. I have
Flash pro.
Thanks.
James Loudon
www.fatgraphics.com
websites:
hotography::videoThanks Jim
I'll give that a go. Much appreciated
James Loudon
www.fatgraphics.com
websites:
hotography::video
"Jim Esteban" <[email protected]> wrote in
message
news:[email protected]...
> Here's a simple piece of code that does just what you
want. It's yours.
> Put
> the images in the same directory as the flash file and
make sure they are
> the
> correct size because it doesn't do any resizing or
centering.
>
> var localPath:String="flash/slides/";
> var counter:Number=0;
> var counterMax:Number=300;
> var fadeRange:Number=50;
> var hifadeThreshold:Number=counterMax-fadeRange;
> var lofadeThreshold:Number=fadeRange;
> var fadeDelta:Number;
> while(_framesloaded<_totalframes)
> {
> for(var i:Number=0;i<1000;i++)
> {
> //do nothing
> }
> }
> var slides:Array = new Array([
>
"image1.jpg"],["image2.jpg"],["image3.jpg"],["image4.jpg"],["image5.jpg"],["imag
>
e6.jpg"],["image7.jpg"],["image8.jpg"],["image9.jpg"],["image10.jpg"],["image11.
>
jpg"],["image12.jpg"],["image13.jpg"],["image14.jpg"],["image15.jpg"]);
> var currentSlide:Number;
> function changeSlide(number:Number)
> {
> if(number >= 0 and number < slides.length)
> {
> currentSlide = number;
> placeholder_mc._alpha=100;
> loadMovie(localPath + slides[number],"placeholder_mc");
>
> for(var i:Number=0;i<1000;i++)
> {
> //do nothing
> }
> }
> }
> changeSlide(0);
> this.onEnterFrame=function()
> {
> counter=counter+1;
> if(counter>=hifadeThreshold)
> {
> fadeDelta=counter-hifadeThreshold;
> fadeRange=counterMax-hifadeThreshold;
> placeholder_mc._alpha=100-((fadeDelta/fadeRange) * 100);
> }
> if(counter<=lofadeThreshold)
> {
> fadeDelta=lofadeThreshold-counter;
> fadeRange=lofadeThreshold-1;
> placeholder_mc._alpha=100-((fadeDelta/fadeRange)*100);
> }
> if(counter>=counterMax)
> {
> counter=0;
> changeSlide(Math.abs((currentSlide+1)%slides.length));
> }
> }
> prev_btn.onRelease = function()
> {
> changeSlide(Math.abs((currentSlide-1)%slides.length));
> }
> next_btn.onRelease = function()
> {
> changeSlide(Math.abs((currentSlide+1)%slides.length));
> }
> progress_mc.onEnterFrame = function()
> {
> var
progressAmount:Number=Math.round((counter/counterMax)*100);
> this.gotoAndPlay(progressAmount);
> if(progressAmount == 100)
> {
> this._visible = false;
> }
> else
> {
> this._visible = true;
> }
> }
> -
InDesign CS4 - simple GREP query
I'm trying hard to get to grips with GREP. I'm struggling with what seems should be a simple find and replace query, and would like some help please.
I want to search a book for instances of both;
Fig.(followed by a standard word space), and
Figs.(followed by a standard word space).
I'd like to change the standard word space in each instance with a non-breaking space. Is it possible to create a string to do this in one search?
MTIA
SteveHi guys, thanks for the suggestions, but still not quite working.
Fred: your solution finds and changes "Fig. " and replaces the word space with a non-breaking space. However it doesn't find "Figs. "
Jongware: your solution finds both, but 'adds' a non-breaking space after the word space, rather than replacing the word space.
Steve -
I must not be in the right mode today, because this is giving
me a hard time...
I have a SQL Server database with 250,000 records. Each
record represents a medical visit.
Each record has 25 fields that contain patient diagnosis. A
visit may show one diagnosis, or it may show as many as 25. Any
specific diagnosis (250.00 for example) may appear in a field
called Code1, or a field called Code2.... Code25.
There are a total of about 500 patients that make up the
250,000 visits.
What I need is a report that shows each DISTINCT diagnosis,
and a listing (and count) of people that have been assigned that
diagnosis.
My thought is to first query the table to arrive at the
unique list of diagnosis codes. Then, in a nested loop, query the
database to see who has been assigned that code, and how many
times.
This strikes me as an incredibly database intensive query,
however.
What is teh correct way to do this?The correct way to do this is to normalize your database.
Rather than having 25 separate colums that essentially
contain the same data (different codes), break that out into a
separate table.
Patient
patientid
Visit
patientid (foreign key referencing Patient)
visitid
Diagnosis
visitid (foreign key referencing visitid in Visit)
diagnosiscode
order (if the 1-25 ordering of diagnosis codes is important)
Once you correct your datamodel, what you're trying to do
becomes simple.
-- get all diagnosis codes
select distinct(diagnosiscode) from diagnosis
-- get a breakdown of diagnosis codes, patients, and counts
for that diagnosis
select diagnosiscode, patient.name, count(diagnosiscode) from
patient left join visit on (patient.patientid =
visit.patientid)
left join diagnosis on (visit.visitid = diagnosis.visitid)
group by diagnosiscode, patient.name -
Simple button help needed!
I want to make a simple round button that glows when you
mouse over it and depresses when you click it.
Apparently to do this I need to use Filters to make the glow
and bevels. But Filtersonly work on movie clips, buttons and text.
So I make a circle and convert it into a button symbol
(Btn1). Then I make another button symbol (Btn2) and use the first
button symbol (Btn 1) on the Up Over and Down frames of Btn 2.
Assorted Filters are applied to Btn 1 on the Up Over and Down
frames to get the effects I want.
I test the button (Btn2) using Enable Simple Buttons. It
works perfectly - glows on mouse over and depresses on click. Then
I try Test Movie -- and the button doesn't work!!!
Not does it work when exported as a SWF file!!!
I watched a tutorial video that came with my Flash Pro 8
Hands-On-Training (HOT) book and he used pretty much the same
technique -- except he only tested his button with Enable Simple
Buttons. I'll bet my house his didn't work with Test Movie either!
The stupid thing, is I was just able to achieve exactly what
I wanted very quickly using LiveMotion 2!
What is wrong here? Why is it so impossible to create a glow
button in Flash? Why has it been easy in Live Motion for years?
All help appreciated!
Thanks
craigI thought the nesting button situation might be the problem
BUT there is no other way to apply Filters to Up, Down, etc. Also,
a freaking tutorial book described that as a valid method, but
obviously it ain't.
I tried using movieclips as well but basically had the same
problem.
I mentioned LiveMotion 2 because that ancient program can do
easily what Flash Pro 8 seems incapable of.
What is the logic behind not allowing Filters to be applied
to simple graphics? It's absurd!
There's got to be a way... -
I am building a simple flash movie clip in Flash cs4. All I want to do is run the play head through a one 5 frame scene and stop, and then you press a button that will send the play head to the next 10 frame motion tween scene.
When I run the movie all I get is a movie clip that pauses for a millisecond then loops back around.
I have three different books on flash action script, read all three still not doing so hot. I am using the navigational button concept maybe that is what I am doing wrong. Can someone show me the right method or lead me in the right direction.
farosgfx ( [email protected] )You can just place an invisible button on the top layer of
the flash time line and code it to getURL. When you said "hyperlink
to another page", are you referring to an html page or another swf
file? To make an invisible button in Flash, you can hit Ctrl+F8 to
bring up the dialog box to create a new symbol, name your button,
make sure you select the type of button, hit ok, now you are inside
the button and need to create a "hit" area. Click on the "hit"
state and press F7 to create a blank key frame. Using the drawing
tools, select the square, no stroke, and any fill color you want,
draw a square shape, click on the shape and in your Info Panel,
change the size of this shape to match the size of your stage,
lastly, make sure the registration point is (0,0) by using the
Align Panel. Go back to your main time line, add a layer on your
time line and make sure it's at the top, drag your new button from
the library to the stage and align it to (0,0).
There are two ways to code the button, so to make it easier,
click on the button once to select it, hit F9 to bring up the
actions panel and type this
on(release){
getURL("
http://www.someWebsite.com",
"_blank");// you can also use "_self" //
If some of this isn't new to you, disregard parts of it. If
you have any buttons in your Flash application, this will cause
problems because the invisible button will counter-act anything
below it. Let me know if this works for you. Of course, this all
assumes you have access to the flash file. -
Issue with GREP. Need help to solve it pls...
Hi,
I have set a GREP as follow:
Paragraph style: numbered + capital letters
GREP: \(.+?\) so that everything between () is written italic.
When the list of ingredients is too long, I need to go to the next line (shift + enter). Then it is like if the GREP gets broken...
I have tried to put a \n but it doesn't work...
Going crazy here
Can anyone help?
Thank you so m uch!Solution found...
FYI here is the correct grep: \(.+\) -
Simple: returning String parameter
THis sis doubtless basic. I hae a JSP that needs to return data in a parameter that has blanks in it. However, when I print the result of reuqest.getParamter in my sevelt, I ony get the first piece of the String befroe a blank. How can I pass a paramter back to my servlet that contains one or more blanks from a JSP inside a <FORM>? Thanks.
KenIf it is a value of some sort of input, then it should be in quotes:
<input type="hidden" name="whatever" value="Some Text With Spaces"/>
If it is something you are doing manually (like <form action="whatever.do?thing=Some Value with spaces" >) then 1) don't do that, use a hidden input instead. 2) Pass the string through java.net.URLEncoder.encode():
<% String paramValue = java.net.URLEncoder("Some Value with spaces", "UTF-8"); %>
<form action="whatever.do?thingy=<%=paramValue%>" ...>
Maybe you are looking for
-
Running FF9 beta on Windows XP. Starting a few beta updates ago (two weeks or so, I think), my bookmark and session-restore functions started acting weird. When I click on "Bookmark" in the menu bar, the page just gets thrown onto the bottom of the b
-
Hi, when I am trying to post down payment in FBB1 T.code, there is no provision to enter special GL indicator and i am getting below error message. Special G/L indicator not defined or incorrect Message no. F5838 I understand that it is not possible
-
Form Events in Acrobat 9 Standard
I'm trying to programatically have my form fields highlighted when opened by a user in Reader. I've seen some other posts recommending setting the app.runtimehighlight event to true but I can't find the form events. Any help would be appreciated.
-
ADF Security against database?
I am working with JDeveloper 10.1.3.4 on a project which uses adf/bc and adf faces/jsf 1.1; the application is deploying to iAS 10.1.3.4 and is hooked as a mid-tier instance via SSO to an infra iAS instance on another machine. How do you change ADF S
-
I have used Firefox for years on Windows machines having found it the best for my purposes . so installed it on my new MBA. After trying Safari found it good but lacks a lot of the add ons .... however just found out that Safari has battery managem