Misi Nyilas

Greenhorn
+ Follow
since Nov 18, 2008
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Misi Nyilas

Hi,
I have some difficulties to map scopes used for servlets (application/session/request/private) to scopes used in Spring(singleton/prototype/request/session/global session). Can anyone offer me some public source where such a comparison/mapping has been described?
Just a few examples: is singleton the same as application scope used for servlets? If yes, what means global session? What are custom created scopes in Spring and how could be mapped to terms used for servlets? Are the request and session scopes in Spring equivalent to those ones used for servlets ore they are just similar? In latter case what are the differences?
I know the terms used in JSP, but I'm a begginner in Spring.
Thanks in advance!
11 years ago
Hello for all,

I'm a newbie in Struts dev and just now I'm faced with a strange problem related to accented letters.
I read in a list of entries written in UTF-8 and fill a listbox with parsed entries on a jsp page.
Unfortunatelly the accented letters doesn't appear properly as they was written in file (csv format, parsed before filling).
The response is combined from a HtmlHead.jsp, xxx.jsp (let's say, a body) and a HtmlFoot.jsp. The HtmlHead.jsp contains
<?xml version="1.0" encoding="utf-8"?>
and in <head>:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

When I try to reach a copy of csv file outside of /WEB-INF through browser, it has the same problem with accented characters, but if it has been changed into html adding the <html>, <head> and <body> tags with modifications above, the letters are OK.
Any ideas where I missed and what should to do to get proper accented letters in listbox?
I get also a second problem regarding accented letters. Due to internationalisation I keep the texts appeared on page in a property file. The messages contains accented letters as well. In jsp pages I call them as, for example
<s:text name="properties.something123"/>
and it works well, EXCEPT the stuff in <head>:
<head>
....
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="description" content="<s:text name="properties.description"/>"/>
<meta name="keywords" content="<s:text name="properties.keywords"/>"/>
<title><s:text name="properties.header"/></title>
....
</head>

Any idea what went wrong?

Thanks in advance, krnl
12 years ago