bacoAlunos
ENGSOFT2019
BlueGrey
calm
Elegant
Català-Valencià - Catalan
中文 - Chinese (Simplified)
中文 - Chinese (Traditional)
Česky - Czech
Dansk - Danish
Nederlands - Dutch
English - English
Suomi - Finnish
Français - French
Deutsch - German
עברית - Hebrew
हिंदी - Hindi
Magyar - Hungarian
Bahasa Indonesia - Indonesian
Italiano - Italian
日本語 - Japanese
한국어 - Korean
मराठी - Marathi
Norsk - Norwegian
Polski - Polish
Português - Portuguese
Português - Portuguese (Brazil)
Русский - Russian
Slovenčina - Slovak
Slovenščina - Slovenian
Español - Spanish
Svenska - Swedish
Türkçe - Turkish
Oëzbekcha - Uzbek
Subversion Repositories
bacoAlunos
(root)
/
branches
/
v3
/
impl
/
src
/
java
/
pt
/
estgp
/
estgweb
/
web
/
tags
/
ChartPageUrlStatTag.java
- Rev 1814
Rev
Rev 1310
|
Blame
|
Compare with Previous
|
Last modification
|
View Log
|
RSS feed
package
pt.estgp.estgweb.web.tags
;
import
org.apache.log4j.Logger
;
import
org.apache.commons.httpclient.util.URIUtil
;
import
org.apache.commons.httpclient.URIException
;
import
javax.servlet.jsp.tagext.BodyTagSupport
;
import
javax.servlet.jsp.tagext.TagSupport
;
import
javax.servlet.jsp.JspException
;
import
javax.servlet.jsp.JspWriter
;
import
javax.servlet.http.HttpServletRequest
;
import
pt.estgp.estgweb.utils.Globals
;
import
java.util.Enumeration
;
import
jomm.utils.MessageResources
;
public
class
ChartPageUrlStatTag
extends
TagSupport
{
private
static
final
1.
5
.0/docs/api/java/util/logging/Logger.html">
Logger
logger =
1.
5
.0/docs/api/java/util/logging/Logger.html">
Logger
.
getLogger
(
ChartPageUrlStatTag.
class
)
;
private
1.
5
.0/docs/api/java/lang/String.html">
String
attributes
;
private
1.
5
.0/docs/api/java/lang/String.html">
String
chartType
;
private
1.
5
.0/docs/api/java/lang/String.html">
String
altKey
;
public
1.
5
.0/docs/api/java/lang/String.html">
String
getAltKey
(
)
{
return
altKey
;
}
public
void
setAltKey
(
1.
5
.0/docs/api/java/lang/String.html">
String
altKey
)
{
this
.
altKey
= altKey
;
}
public
1.
5
.0/docs/api/java/lang/String.html">
String
getAttributes
(
)
{
return
attributes
;
}
public
1.
5
.0/docs/api/java/lang/String.html">
String
getChartType
(
)
{
return
chartType
;
}
public
void
setChartType
(
1.
5
.0/docs/api/java/lang/String.html">
String
chartType
)
{
this
.
chartType
= chartType
;
}
public
void
setAttributes
(
1.
5
.0/docs/api/java/lang/String.html">
String
attributes
)
{
this
.
attributes
= attributes
;
}
public
int
doStartTag
(
)
throws
JspException
{
HttpServletRequest hrequest =
(
HttpServletRequest
)
pageContext.
getRequest
(
)
;
1.
5
.0/docs/api/java/lang/String.html">
String
queryStr = hrequest.
getQueryString
(
)
;
if
(
attributes ==
null
)
attributes =
""
;
1.
5
.0/docs/api/java/lang/String.html">
String
alt =
""
;
if
(
altKey
!
=
null
)
alt = MessageResources.
getMessage
(
hrequest,altKey
)
;
1.
5
.0/docs/api/java/lang/String.html">
String
img =
"<img "
+ attributes +
" alt=
\"
"
+ alt +
"
\"
src=
\"
"
+ hrequest.
getContextPath
(
)
+
"/urlstat/urlStat.do?chartType="
+ chartType +
"&"
+ queryStr +
"
\"
>"
;
JspWriter writer = pageContext.
getOut
(
)
;
try
{
writer.
write
(
img
)
;
}
catch
(
1.
5
.0/docs/api/java/lang/Exception.html">
Exception
e
)
{
logger.
error
(
e,e
)
;
throw
new
JspException
(
e
)
;
}
return
(
SKIP_BODY
)
;
}
}