Sarah Gaikwad

Ranch Hand
+ Follow
since Feb 26, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sarah Gaikwad

The code is



Thanks
15 years ago
The radio button has 2 options ON, OFF.The jsp containing this looks as below


I have the desired language properties files to handle internationalization for other elements in this page. And I want to be able to handle the labels(On, Off) of the radio too. At the moment i dont know wat to do. Any Help is appreciated.
15 years ago
Hi

I am unable to see the correct formation of the url(with the desired querystring).Any help is deeply appreciated. Here's the code:


<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Main Page</title>
</head>
<body>
<s:url var="addURL" action="inputnickname"/>
<s:url action="modifynickname" var="editURL">
<s:param name="senderMsisdn" value="9865236558"/>
</s:url>

<s:property value="%{editURL}" />
<s:a href="%{addURL}">Add Nickname</s:a>


<s:a href="%{editURL}">Modify Nickname</s:a>
</body>
</html>



Note: The editURL shows the path as set in struts.xml without the parameters i.e. the property tag results to
/struts/paramtest/



Regards,
Struts newbie
15 years ago
Hi

I am unable to see the correct formation of the url(with the desired querystring). I have coded its to the T. Help is deeply appreciated. Here's the code:
A simple code


<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Main Page</title>
</head>
<body>
<s:url var="addURL" action="inputnickname"/>
<s:url action="modifynickname" var="editURL">
<s:param name="senderMsisdn" value="9865236558"/>
</s:url>

<s:property value="%{editURL}" />
<s:a href="%{addURL}">Add Nickname</s:a>


<s:a href="%{editURL}">Modify Nickname</s:a>
</body>
</html>



Note: The editURL shows the path as set in struts.xml without the parameters i.e. the property tag results to
/struts/paramtest/



Regards,
Struts newbie
15 years ago

That just shows what encoding is specified in the XML file. The more important question is: are you actually using that encoding for generating the file? If you're not explicitly specifying an encoding, then the platform default encoding is used - which on Unix is probably not ISO-8859-1.




Thats for this point. The code did not explicitly set an encoding hence it picked up the encoding set at the os level. In case of unix it was set to C(thus explaining why it was not working on the unix system).The windows system had the encoding set to Latin-1 (which was what I needed).

I modified the code to explicitly set the encoding and voila! it worked .

Thanks so much.
16 years ago
Thanks for the response

Here a sample xml that gets created with its encoding

<?xml version="1.0" encoding="ISO-8859-1" ?>
<report-list date="2008-12-22T00:00:00">
<report id="notifications_by_event">
<report-data>
<rowset>
<row>
<field name="date">2008-12-22T00:00:00</field>
<field name="alert_master_id">TESTSIVA19Inter Téléfónícá</field>
<field name="content_id">SP1000.admin.TESTSIVA19Inter1</field>
<field name="event_content">null</field>
<field name="total">1</field>
</row>
</report-data>
</report>
</report-list>
16 years ago

I have a Reports.war file. This war file reads a csv file on the filesystem and generates an xml file(saved onto the filesystem) from it.

Scenario in windows
The generated xml file displays the accented/tildes on the spanish characters correctly.
eg: <field name="alert_master_id">TESTSIVA19Inter Téléfónícá</field>


Scenario in Unix

The generated xml file displays the accented/tildes on the spanish characters incorrectly.
eg:<field name="alert_master_id">TESTSIVA19Inter T?l?f?n?c?</field>

Note: Its the same war with the same csv file. It produces 2 different results.


Any help is deeply appreciated.

Thanks
Sarah
16 years ago
Am a newbie to this

I have a chart that has a primary y axis and a secondary y axis
I have 4 series of items.
I create a bar chart . However i require the 1st series to be plotted against the primary y axis and the remaining 3 against the secondary y axis. which I am not able to do.

Any help will be deeply appreciated
Hi
am a newbie to jfrecharts

I am struggling with setting tickmarks to my domain axis(x axis)
Here is the code i used, however I don't see a tick mark on the axis

CategoryAxis domainCategoryAxis = plot.getDomainAxis();
domainCategoryAxis.setLowerMargin(0.02);
domainCategoryAxis.setTickLabelPaint(Color.black);
domainCategoryAxis.setTickMarksVisible(true);

Would really appreciate any help

Thanks
The link helped. Thanks a ton.

I have a javascript method that passes the message to a popup jsp page. All the while I was getting an error when i tried to send % through the javascript method.

Thanks so much
18 years ago
JSP
Hi,
I have a jsp page which receives a request. This request contains a string.
for example:
<%
String a = request.getParameter("query");
%>
Now the value of a will be as follows:
Wildcard character % is not allowed.

However, the jsp page fails to parse because of the % sign which is displayed within the scriptlet.

Is there a work around.
Please help
18 years ago
JSP
Hi,
I have multiple threads that use a set of httpurlconnections. I read the contents line by line. From each line , I pick a particular value based on a criteria and put this into a file. FOr example I open 5 httpurlconnections as threads and pick values from each urlconnection based on a criteria. These values are then written into a file on my system. The urlconnections I need to open are more than 1000. When my progaram executes at a point I get Server returned http response code:999.
I tried hard for what the error means. Is there someone who can guide me please,
Thanks a ton
Hi ,
I have an array of objects and want to convert it to sql.Array.

I tried looking on the net but to no avail. This site has always come to my rescue.

I have an array of Objects. How do I convert it to sql.Array.


Thanks a lot.
Sarah
Hi,
My node_table has references to extinct appservers. Is it safe to clean(delete values) all the values in the node_table and related tables.

Please help

Thanks
Sarah
19 years ago
hi,
I have installed websphere 4.0 successfully. The HTTP server ,Http adminserver and the adminserver of websphere have their status as started in the services window.
However when i click to start the admin server console of websphere. The initial window with the progress bar on pops up. After that the admin console window does not come up.
I am new at this and cant see to sort this out. Please help
19 years ago