Chanpreet Julka

Ranch Hand
+ Follow
since Nov 09, 2001
Merit badge: grant badges
For More
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 Chanpreet Julka

I have a webpage that is using the struts framework with jsp's. I have charts and I wanted to find out how to export the chart data to an an excel spreadsheet? Any idea or any information on how to do this. Thanks.
20 years ago
Great that makes a lot of sense. But, what is going on here.
<html:form action="/logon" focus="username"
onsubmit="return validateLogonForm(this);">
<table border="0" width="100%">
20 years ago
Well,
I have a struts development using the tomcat server. I have a JSP, logon.jsp and I could not exactly understand in general what these lines are doing...
<html:form action="/logon" focus="username"
onsubmit="return validateLogonForm(this);">
<table border="0" width="100%">
<tr>
<th align="right">
<bean:message key="prompt.username"/>:
</th>
<td align="left">
<html:text property="username" size="16" maxlength="18"/>
</td>
</tr>
especially something like this <bean:message key="prompt.username"/>:
Thanks.
20 years ago
Well,
I have a struts development using the tomcat server. I have a JSP, logon.jsp and I could not exactly understand in general what these lines are doing...
<html:form action="/logon" focus="username"
onsubmit="return validateLogonForm(this);">
<table border="0" width="100%">
<tr>
<th align="right">
<bean:message key="prompt.username"/>:
</th>
<td align="left">
<html:text property="username" size="16" maxlength="18"/>
</td>
</tr>
especially something like this <bean:message key="prompt.username"/>:
Thanks.
20 years ago
JSP
I am running a few html pages that are linked together on the tomcat server. My index.html file defaults to another file that has some drop down menus to enter info. When this info is entered and submited, the next page that comes up is set to a directory inside the directory I want. I do I change this path to the correct directory. For example the directory it is going to is /development/pm. I just want /pm. Thanks.
I have a JSP which calls a function that passes 2 arguments. The function is defined in bean.
The function is defined like this
public void getNextAntenna(String antType , String antName) {
....
}
I call the function like this antBean.getNextAntenna(antType, antName);
(ant Bean is my Bean ID).
When i run the JSP, it tells me that I have the wrong number of arguments. Am I allowed to call a function like this in a JSP? Thanks
21 years ago
JSP
I got it to work. Thank you for your help
ok i see what the problem is.. the html on this page is messing up.. but where I have the blank space after ant + is actually where i write the nbsp, and i get errors. thanks
sorry i wrote the wrong post i actually did it like this
out.println( "<option>" + ant +   + getNextAntenna() );
and it doesnt work
sorry i wrote the wrong post i actually did it like this
out.println( "<option>" + ant +   + getNextAntenna() );
and it doesnt work
No problem. ive done it like this but it gives me errors.
out.println( "<option>" + ant +   + getNextAntenna() );
Any help? Thanks
i tried that but html condenses all the whitespaces. It doesn't end up giving me any extra spaces. Any other ideas? I think it has something to do with  , but not quite sure how to use it here. Thank you.
I dont know whether this should go in the JSP section or HTMl section but I decided to ask my question here, because it has more to do with HTML i think. But anyways I have this Jsp that prints out 2 string on a line in a table. I want to add white space between the 2 strings to make it look neater. Can someone how I can do this. Thank you. Here is how some of my code looks (I want to add the spaces between ant and the call to getNextAntenna() )
<html>
<head><title>AntennaLister2</title></head>
<body>
<h1>AntennaLister2</h1>
<form><table><tr><td><select name="siteId" size=5>
<%
testAntenna();
String ant;
int count = 0;
while(true) {
ant = getNextAntenna();
if(ant != null)
{
out.println( "<option>" + ant + getNextAntenna() );
}
else
{
break;
}
}%>
</select><td></tr></table></form>

</body>
</html>
I have the book "PURE JSP" but it doesnt seem to be helping to much. Here is my code
<%!
public static void PrintAntennaList()
{
System.out.println("in method");
}

%>
<html>
<head><title>AntennaLister2</title></head>
<body>
<h1>AntennaLister2</h1>
<br/>
<%=PrintAntennaList()%><br/>

</body>
</html>
When I run the JSP I am getting an error which says
Unable to compile class for JSP/export/home/local/tomcat/work/localhost_8080%2Fngsapps/_0002fhtdocs_0002fJSP_0002fcjulka_0002fAntennaTest_00032_0002ejspAntennaTest2_jsp_0.java:73: Incompatible type for method. Can't convert void to char[].
out.print(PrintAntennaList());
Anyone have any idea what that means or what is going on? Thanks for the help.
21 years ago
JSP
OK here is where I have reached.
I have
<HTML>
<BODY>
<%!
(then I have a method defined called PrintAntennaList() in here which does some stuff and prints out something with
System.out.println)
%>
<br/><%PrintAntennaList();%><br/>

</body>
</html>
When I call the method nothing prints out. Does anyone know what the problem might be. Thank you very much.
21 years ago
JSP