To display spanish characters on a JSP when the JSP is inside one portal
Hi All,
Previously, I had posted my query here that how to display spanish characters on a JSP screen.
I got a solution that to add
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
to the JSP and to save the JSP in 'UTF-8'encoding format.
This works well in case an individual JSP. But when I am adding the JSP to a web project consisting of many other JSP pages, its not working.
Do I have to change anything else.
Please help me if you have any suggestions. I am eagerly waiting for any response.
Thanks in advance.
I used to have a similar problem. I have jsp pages in braz. portugese and for these I have <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">When I tried setting the contentType to UTF-8, the way you wrote foreign characters didn't get submitted properly from input fields so I took it away, then everything worked correctly. Don't know why though.
Similar Messages
-
error -43 when try playback on win7 64bits over the network QT that recide MacPro osx 10.5 however i can play with VLC player, This happend when the QT is inside a Folder with name longer 8 chars other files has no problem with long names just the QT nfs sharing
Never mind, I already found the solution myself.
What I did wrong was:
- not copying the master image to the nbi folder
- selecting the netinstall-restore.dmg image as source to copy to my HD.
The thing is, when you create a netinstall image for 10.5, the image itself is already included in the netinstall image so you don't have to do anything else.
With the 10.4 image however, you also have to copy the master image to the NetBootSP0 directory.
In the *.nbi folder contains an netinstall-restore.dmg file. But that is only to boot you to netrestore, it's not the image itself.
Other alternative is to copy the images to another folder that you share with AFP and adjust the configuration of netrestore like described in this manual:
http://www.shellharbourd.det.nsw.edu.au/pdf/misc/osxrestoringnet.pdf
This manual was also how I figured out that I forgot to copy the image to the NetBootSP0 folder. -
IPlanet setting to properly display Spanish characters in PDF Document?
I have a bilingual PDF document (Spanish and English). The document displays correctly on multiple other systems (Unix/Weblogic, NT4, IIS), but when I move it up to my server that is running iPlanet, the Spanish characters do not display properly. Since it displays fine in other environments, I am guessing it is a setting that needs to be changed in iPlanet and not something that needs to be changed with my PDF document. Any suggestions?
Thanks so much in advance.
TraceyHi,
I am not sure if you are referring to the users creating your forms or the users using your forms.
In terms of typing charactes if the keyboard is set so that you can type spanish characters and the font you are in has those characters then they will be entered into the form, both when creating and filling of the form.
There is nothing specific that needs to be done to the form to allow this, it just accepts the characters that the OS passes to it from the keyboard.
(Point of note: if you are specifying a font to be used this would need to contain the characters that you want to use).
If I have misunderstood the problem then I apologise and if you provide more detail I can investigate further.
Regards
Malcolm -
How to display a row in Cross Tab when the count summary is zero
My customer wants a row for all possible data, even when the count is zero. How can I get a row to display when there is no data? Using an example: Display status for incidents - possible five statuses, but selection only results in four statuses because no incident were cancelled. Customer wants all five statuses to display in cross tab with cancelled showing '0' (zero))
Open
WIP
Cancelled
Pending
ClosedThis worked for the last guy who had a similar issue.
Take a look at what it's doing. You should be able to use the same principal to meet your needs...
I'm assuming that you'll only need to show 4 weeks at a time on your report.
The easiest way to do it is by creating 8 separate formula fields:
W1A
W1RT
W2A
W2RT
... and so on
I don't know how your data is coming across but the formula should go something loke this:
W1A... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
W1RT... IF datepart(ww,currentdate) - datepart(ww,) =0 THEN
W2A... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
W2RT... IF datepart(ww,currentdate) - datepart(ww,) =1 THEN
... and so on
If I got you weekly criteria wrong, sorry. It's just a best guess.
Anyway you should be able get the idea. It gives you the effect of a crosstab without the headaches of a crosstab.
Hope this works for you,
Jason
Edited by: Jason Long on Jun 28, 2008 3:19 AM -
Redirect to main jsp when the session expires
Hi,
I have a jsp say mainframe.jsp in which I have two frames each having a jsp page say child1.jsp and child2.jsp.
When the session expires and I when i try do any changes in child2.jsp or child1.jsp, the page redirects to login page and when I login successfully, I am getting redirected to child2.jsp or child1.jsp respectively. But I want it to be redirected to mainframe.jsp.
Any help is greatly appriciated.
Thanks in advance.
VinodI think I am not clear.
When I try to login after session expiry, I am redirected to child jsp.
But what I want is that I should be redirected to mainfram.jsp page.
url in the address shows : ../mainframe.jsp?ID=******
When my seesion is expired and I try do some manipulation in child1.jsp (which is inside a frame of my mainframe.jsp). it is redirected to login page and from there to child1.jsp instead of mainframe.jsp
Now the address url shows : ../child1.jsp?ID=********* because of which I am not able to see child2.jsp along with child1.jsp
What I want : ../mainframe.jsp?ID=********
this is the code I am using !!
String destPage = request.getRequestURI();
response.sendRedirect("../redirect.jsp?dest=" + URLEncoder.encode(destPage)); -
How to query from view with parameter, only when the JSP-page loading
I use JSF/ADF BC, create two viewes:view1 and view2, in the JSP page the user press a button to query from the view1, but I hope the view2 can be queried only when the page loading, it have no relation with user-operator, and pass the column value of view2 into some variables, the view2 return one record.
Hi -
You may want to have a look at this other thread:
Re: Execute ViewObject with Parameters at JSF Page Load? JSF/ADF/BC 10.1.3
John -
Could not invoke the service() method when the JSP page is loaded
I am new to servlets/jsp so excuse if I am doing something silly here:
I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
Any help is much appreciated:
Here is my JSP:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
<% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
<HTML>
<BODY>
<Form name=listTable action="InsSer" method="post">
<TABLE border="1">
<TBODY>
<TR>
<TD width="258" align="center"><B>Policy Id</B></TD>
<TD width="187" align="center"><B>Customer Name</B></TD>
<TD width="160" align="center"><B>Agent Name</B></TD>
<TD width="134" align="center"><B>Status</B></TD>
</TR>
<TR>
<%
for (int index=0; index < VTable.size();index++) {
PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
%>
<TR bgcolor="#99CCFF">
<TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
<TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
<TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
<TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
</TR>
<% } %>
</TBODY>
</TABLE>
<P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
</BODY>
</HTML>
Here is my servlet:
package insurance;
import java.io.IOException;
import java.util.Vector;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class InsSer extends HttpServlet implements Servlet {
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#HttpServlet()
public InsSer() {
super();
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
doPost(req,resp);
// TODO Auto-generated method stub
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//PolicyObj[] policyTable = new PolicyObj[3];
HttpSession session = req.getSession(false);
//if (session == null) {
//resp.sendRedirect("http://localhost:9080/Insurance/error.html");
//Vector buylist = (Vector) session.getAttribute("PolicyList");
Vector policyList = null;
policyList.addElement(new PolicyObj());
((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
session.setAttribute("policyTable",policyList);
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
rd.forward(req,resp);
Message was edited by:
sfz1
Message was edited by:
sfz1I am new to servlets/jsp so excuse if I am doing something silly here:
I have a JSP page the suppose to be loading a session attrbute from a simple servlet. When I go to load the jsp page, I get Could not invoke the service() method.
Any help is much appreciated:
Here is my JSP:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ page session="true" import="insurance.PolicyObj,java.util.*"%>
<% Vector VTable = (Vector) session.getAttribute("policyTable"); %>
<HTML>
<BODY>
<Form name=listTable action="InsSer" method="post">
<TABLE border="1">
<TBODY>
<TR>
<TD width="258" align="center"><B>Policy Id</B></TD>
<TD width="187" align="center"><B>Customer Name</B></TD>
<TD width="160" align="center"><B>Agent Name</B></TD>
<TD width="134" align="center"><B>Status</B></TD>
</TR>
<TR>
<%
for (int index=0; index < VTable.size();index++) {
PolicyObj TableL = (PolicyObj) VTable.elementAt(index);
%>
<TR bgcolor="#99CCFF">
<TD width="258" align="center"> <%= TableL.getPolicyId()%> </TD>
<TD width="187" align="center"> <%= TableL.getCustomerName()%> </TD>
<TD width="187" align="center"> <%= TableL.getAgentName() %> </TD>
<TD width="187" align="center"> <%= TableL.getPolicyStatus() %></TD>
</TR>
<% } %>
</TBODY>
</TABLE>
<P><INPUT type="submit" name="Submit" value="Refresh Active Policies"></P>
</BODY>
</HTML>
Here is my servlet:
package insurance;
import java.io.IOException;
import java.util.Vector;
import javax.servlet.RequestDispatcher;
import javax.servlet.Servlet;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class InsSer extends HttpServlet implements Servlet {
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#HttpServlet()
public InsSer() {
super();
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest arg0, HttpServletResponse resp)
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
doPost(req,resp);
// TODO Auto-generated method stub
/* (non-Java-doc)
* @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest arg0, HttpServletResponse resp)
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
//PolicyObj[] policyTable = new PolicyObj[3];
HttpSession session = req.getSession(false);
//if (session == null) {
//resp.sendRedirect("http://localhost:9080/Insurance/error.html");
//Vector buylist = (Vector) session.getAttribute("PolicyList");
Vector policyList = null;
policyList.addElement(new PolicyObj());
((PolicyObj) policyList.get(0)).setPolicyId("0009800002");
((PolicyObj) policyList.get(0)).setCustomerName("Salim Zeitouni");
((PolicyObj) policyList.get(0)).setAgentName("Jack Smith");
((PolicyObj) policyList.get(0)).setPolicyStatus("Pending");
session.setAttribute("policyTable",policyList);
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("InsSev1.jsp");
rd.forward(req,resp);
Message was edited by:
sfz1
Message was edited by:
sfz1 -
When the jsp file is compiled?
how the jsp file is converted to .java file
JSP files are compiled by JSP engine into a servlet.
This step creates the .jsp file as a Java servlet source file.
Once this is processed, the source file above is compiled into a class file.
The engine then makes use of the compiled servlet from the above process and executes requests. -
Issue with Selection Listener when the table has only one row
Hi All ,
I have developed a table in which I am using Selection Listener to perform some task when any row is selected.
It is working fine when I have more than 1 row in the table, but when I have only one row in the table , the selection listener do not call the corresponding method in bean.
I understand that selection event will be raised only when the row is changed, but in the use case when only one row is there, what should be done to make the selection listener work ?
In the selection listener I have written code to make the selected row as current row , and perform the required task.
Please suggest a way out for this situation.
Thanks in advance.Hi,
try removing this attr from table
selectedRowKeys="#{bindings.xxx_VO1.collectionModel.selectedRow}" -
I have used different VGA to mini port adaptors, different VGA cables and connected them to different external monitors and prjectors but the same thing happens. I am starting to think there may be a problem with the macbook itself however, when i have used a HDMI lead and adaptor to external monitors the external display is fine.
Hi there LDIMERY,
You may find the troubleshooting steps in the article below helpful.
Apple computers: Troubleshooting issues with video on internal or external displays
http://support.apple.com/kb/ht1573
-Griff W. -
How to fill a javascript array by a jsp array when the jsp is run
Hi all,
The problem i am facing is -- i want to use an javascript array in a function. The records are being fetched by jsp.
How to fill the vaules in a javascript array, which are retrieved by a jsp array
Please suggest
Thanking YouYou can use the code below:
<input type="button" value="Click Me" onclick="javascript:disp('<%= getString(str) %>')">
<%!
public String getString(String str[]){
String arrElements="";
for(int i=0;i<str.length;i++) {
arrElements+=str[i]+",";
return arrElements.substring(0,arrElements.length()-1);
%>
function disp(str) {
arr = str.split(",");
alert ("There are "+arr.length+" elements in the array");
Hope this helps. -
Hi Numbers users,
I am trying to get Numbers 2.3 on OS X (10.9.1) to convert cells containing variable length strings composed of 6 letters, A, B, C, a, b, c into a second string containing the same 6 lettersusing the rule A to c, B to b, and C to a and vice versa, so for example cell A1 might contain string "AcBbCaaB" and I want Numbers to convert this into "cAbBaCCb" in cell B1. I have tried to use the SUBSTITUTE function (nested) without success so far as I end up with the letters either all uppercase or all lowercase. I understand why this is happening and maybe it isn't possible using SUBSTITUTE. Does anyone know if there is another function I can use to do this?
Thanks, Hugh.you can use this method:
Add a new table, called "Translator", show as the bottom table:
Enter the data in columns B anc C as shown
cell A1 contains:
"=CODE(B1)"
select cell A1 and fill down
For the table on top enter your code in column A. The converted code will be in column B. Make sure there are enough columns (I went out to column AD):
B2=R2&S2&T2&U2&V2&W2&X2&Y2&Z2&AA2&AB2&AC2&AD2
C2=LEN(A2)
D2=MID($A2, COLUMN()−2, 1)
select D2, copy,
select cells D2 thru P2, paste
R2=IFERROR(VLOOKUP(CODE(D2), Translator::$A:$C, 3, 0), "")
select R2, copy,
select cells R2 thru AD2, paste
select B2 thru AD2 and fill down as needed
You can hide columns C thru AD -
Crystal Reports 9 - Need to Display Spanish Text
Post Author: Zando
CA Forum: General
I need to display Spanish text (...accented words, upside down
question marks, tildes' over the 'N's, etc...) in Crystal reports 9.
The text is coming from an Oracle database that has been updated to an
8-bit character string to properly display the text in the database.
But when the text appears in the Crystal report, none of the Spanish
text characterists appear. It just comes out as plain text or displays
a small box where a Spanish character should appear.
How do I make the text appear 'Spanish', accents and all?
I'm a Crystal novice, so please explain your solutions as non-technically as possible.
Thanks!Post Author: Zando
CA Forum: General
Tom -Thanks for your response buddy! Fortunately, after 2 days of Googling, I found the
answer to my own question which I'll share here.
Crystal Reports 9 (...and 10 and 11 as far as I know...) requires a
downloadable patch that allows the report to display unicode characters in
other languages.
The paper explaining this problem can be found at:
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do;jsessionid=B460E0FF9F8305201D62DC3CA247AB2D?cmd=displayKC&docType=kc&externalId=c2014141&sliceId=&dialogID=6000219&stateId=1%200%205998262
The downloadable patch to fix this problem can be found at:
http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=http--supportbusinessobjectscom-communityCS-FilesandUpdatesNoNav-cr90mainwinenzipasp&sliceId=&dialogID=6060592&stateId=1%200%206058581
This is the patch for correcting this problem for English unicode
characters. There are also patches available for French, German and
Japanese unicode characters as well.
I hope this helps anyone else who has run into the same problem.
Zando -
[Solved] URXVT cannot display Japanese Characters
Solved:
I had a typo in my locale.conf, setting to an invalid locale - apparently that did it.
Thanks for the help!
Hi everybody!
I just now re-installed Arch because I switched hard-drives (to an SSD) and everything seems to be working again, apart from one thing:
urxvt doesn't display Japanese Characters, just questionmarks instead when using ls and garbage characters otherwise.
I literally copied and pasted my ~/.Xresources from my old install, so I'm not quite sure what went wrong.
This is said file:
Urxvt.urgentOnBell: True
urxvt*cursorBlink: false
!urxvt*internalBorder: 0
!urxvt*externalBorder: 0
URxvt*.depth: 32
URxvt*.background: [85]#000000
! URxvt.scrollstyle: plain
URxvt.scrollBar: false
URxvt.foreground: grey
! red
URxvt.color1: #CC0000
URxvt.color9: #B33838
! blue
URxvt.color4: #3465A4
URxvt.color12: #729FCF
! yellow
Urxvt.color3: #b48363
URxvt.color11: #d49b4e
!URxvt.font: 8x13
urxvt*font: xft:DejaVu Sans Mono:size=8:antialas=true,xft:Kochi Gothic:size=8
This is what fc-list has to say:
% fc-list | grep "Kochi\|DejaVuSansMono"
/usr/share/fonts/TTF/DejaVuSansMono.ttf: DejaVu Sans Mono:style=Book
/usr/share/fonts/TTF/kochi-mincho-subst.ttf: Kochi Mincho,æ±é¢¨ææ:style=Regular,æ¨æº
/usr/share/fonts/TTF/kochi-gothic-subst.ttf: Kochi Gothic,æ±é¢¨ã´ã·ãã¯:style=Regular,æ¨æº
/usr/share/fonts/TTF/DejaVuSansMono-Oblique.ttf: DejaVu Sans Mono:style=Oblique
/usr/share/fonts/TTF/DejaVuSansMono-Bold.ttf: DejaVu Sans Mono:style=Bold
/usr/share/fonts/TTF/DejaVuSansMono-BoldOblique.ttf: DejaVu Sans Mono:style=Bold Oblique
I already tried re-installing the fonts and I also tried out alternative fonts, but nothing seems to work.
All the other settings from the ~/.Xresources file are applied perfectly, so I'm not quite sure where to look for the error.
My browser (dwb) displays japanese characters just fine.
Any help is greatly appreciated
Edit: I just realized that urxvt seems to completely ignore the fonts line - I had that problem once before, when I used the AMD Catalyst driver and not the open source one.
I now have an Nvidia card and started using the propietary driver - maybe that has something to do with it?
Last edited by lorizean (2013-12-02 13:16:14)Works here:
URxvt*depth: 32
URxvt*buffered: true
URxvt*termName: rxvt-256color
URxvt.font: xft:Terminus:pixelsize=12:antialias=false
urxvt.imLocale: pl_PL.ISO8859-2
What's the output of 'localectl'? -
Error when requesting JSP page
We have just finished getting our environment set up. We are running
WebLogic 4.5.1 sp7 on a Sun server, and are frontending it with IIS 4.0
SP6a using the iisproxy.dll WebLogic plugin.
We can get things working for a while, but eventually, we get the
following error in the NT event log when requesting the first JSP on our
site:
"Out of process application '/LM/W3SVC/1/Root' terminated unexpectedly"
The Web server is still up, it's just when the JSP page is called that
we get "Page can not be displayed" errors. Any HTML pages come up just
fine. To fix the problem, we just stop and restart the Web Publishing
service.
Has anyone seen this error or does anyone know what events cause this
problem?
Thanks,
-MikeThere is a big difference between this;
http://www.mydomain.com/blabla
and this;
http://www.mydomain.com/blah.jsp
blabla - this is the name of the Web application. When you reference this Web application name Tomcat will check the welcom file descriptor and redirect for that web application.
blah.jsp - is the name of a JSP page. When you reference this page the way you did above, you are not stating where the JSP page is located. It would be locatied in the "http://www.mydomain.com/blabla/blah.jsp" location.
Maybe you are looking for
-
Hi Am using crystal report in visual studio 05.I have some prblm with it.I have created a dataset(.xsd file)and using it in report file. but while loading the report it load as blank.sometimes it wil ask for login information.I have pasted the code b
-
Camera RAW beta 5.6 Bridge previews gone, can't uninstall
I updated to the 5.6 beta to work with some 7D files, and now get no previews in Bridge. I've purged the cache, no good. I also lost my Smart Collections, a major PIA. I wanted to uninstall, but can't, and can't find any info. Anybody?
-
Hi, we have a working IDM installation doing PasswdSync from AD to DSEE. There is a problem with some users, who are unable to synchronise, because the workflow supplied to us is a bit broken. In this case, we have a user who has an account in DSEE a
-
Send a break to interrupt a query?
With SQL plus it is possible to interrupt a long running query. This is being discussed in this thread: Killing long running SQL query Is something like this possible in APEX? Rene
-
hi I am from other ERP, I am interested entry in Oracle world, please advice me which product is better from me ? 1) I am good in Finance, Trade and Logistic and HR ( ERP Modules) Implementation and customization 2) I am godd in Business intelligence