Jayanthimeena

Greenhorn
+ Follow
since Jul 24, 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 Jayanthimeena

Hai all
I am really happy and thankful for ur help,greg philpott.
Expecting more answers from u all.
Thanks
goffy
22 years ago
Hai all
This is for the author Ian Darwin. First thanks for comming here. I want to know how java support the multi languages well. I found one class but to me that alone is not sufficent.
I need to do some web pages in arabic where the text field has to accept the arabic char. and It is has to go from right to left.
Can anyone suggest some good book or IP addresses so that i can learn more.
Thanks all in advance
Regards
goofy
22 years ago
Arabic letters in Text object
I want to create a web pages which has to show the mother language the user clicks. For eg. French, German, Arabic. If a particular language is selected then all web pages should be in that language.
I want to know is it possible to make a text field object is made to enter Arabic character and is it possible to make it accept it from right to left in typing.
Can any one help me. I am not sure how browser will support it.
Thanks and Regards
goffy
22 years ago
*** response.jsp STARTS *******************************
<jsp:useBean id="NameBean1" class="hello1.NameHandler" scope="session"></jsp:useBean>
<table border=1 width=300 align=center>
<tr>
<td align=center><font face="verdana" size=2>
Your Name is
<% String ls =NameBean1.getUserName() ;
out.println(ls);
%>
</font></td>
</tr>
<tr>
<td align=center><font face="verdana" size=2>
Your Car's Brand is <%
out.println(NameBean1.getCarName() );%></font></td>
</tr>
</table>
***************** response.jsp Ends **********
***************** Feedback.jsp Starts **********
<%@ page info="The Main JSP File which is called by the Client Browser" %>
<html>
<head><title>FeedBack is Important!</title></head>
<body>
<% //-- <%@ include file="form.html" %>
%>
<jsp:useBean id="NameBean1" class="hello1.NameHandler" scope="session"></jsp:useBean>
<form method="get">
<%
if(request.getParameter("username") !=null)
{
NameBean1.setUserName(request.getParameter("username")) ;
NameBean1.setCarName(request.getParameter("carname")) ;
response.sendRedirect("response.jsp");
}
%>
<table border=1 width=300 align=center>
<tr>
<td><b><font face="verdana" size=2 align="center">User Name : </font></b></td>
<td><input type=text name="username" size=30></td>
</tr>

<tr>
<td><b><font face="verdana" size=2 align="center">Car Name : </font></b></td>
<td><input type=text name="carname" size=30></td>
</tr>

<tr>
<td><input type=submit value="Send Data"></td>
<td><input type=reset value="Clear Form"></td>
</tr>
</table>
</form>
</body>
</html>
***************** Feedback.jsp Ends **********
***************** NameHandler.java starts **********
package hello1;
import java.beans.*;
public class NameHandler
{
private String userName;
private String carName;
public NameHandler()
{
userName="";
carName="";
}
public void setUserName(String name)
{
userName=name;
}
public String getUserName()
{
return userName;
}
public void setCarName(String car)
{
carName=car;
}
public String getCarName()
{
return carName;
}
}
***************** NameHandler.java ends **********
hai this might help u a lot.I chenaged a lot. I put the jsp in tomcat/webapps/examples folder and java and class in web-inf/classes folder.
noe compile java file and check it. It will work fine.
bye
Jayanthi
22 years ago
Arabic letters in Text object
I want to create a web pages which has to show the mother language the user clicks. For eg. French, German, Arabic. If a particular language is selected then all web pages should be in that language.
I want to know is it possible to make a text field object is made to enter Arabic character and is it possible to make it accept it from right to left in typing.
Can any one help me. I am not sure how browser will support it.
Thanks and Regards
goffy
22 years ago
Hai
this might help u.
<%@ page import="java.sql.*" %>
<%! Connection con;Statement stmt;ResultSet rs,rsMaterial;String state,Fadd;%>
Class.forName("oracle.jdbc.driver.OracleDriver");
con = DriverManager.getConnection("jdbc racle:thin:scott/tiger@ipaddresswhere oracle is installed:1521:cle8i");
stmt = con.createStatement();
Bye
Jayanthi
22 years ago
Hai all
First after installing the tomcat, go to bin and click startup.bat. if it starts up, go to browser and type http://localhost:8080 and press enter. If tomcat home page comes then click the link " jsp examples". and now it will work fine.
Set javahome to point to jdk kit and
Bye
Jayanthi
22 years ago
Hai all
You have to place all your classes in web-Inf/classes folder. which will be present by default.
If further problem present set classpath to your class folder and try running.
Bye
jayanthi
22 years ago
Hai all
First enclose it in try catch block and catch the exception and print in for reference.
Inside this method getOrderNumber(); use System.out.println() and check out where exactly it is happening.
Third
in this line
<% String s = item.getOrderNumber(); %>
check this
<%
try
{
String s = item.getOrderNumber()==null?"":item.getOrderNumber();
if(s.equals(""))
{
Some HTML here
}
else
{
Some other HTML here
}
}
catch (Exception e)
{
System.out.println("error "+e);
}
%>
try above thing by just copying it.
Send result.
Bye
Jayanthi
22 years ago
Hai
All u done is correct only.
Try this this will work.
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloServlet extends HttpServlet
{
public void doGet(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException
{
PrintWriter out = res.getWriter();
out.println("Hello");
}
}
Bye
Jayanthi
22 years ago
Hai all
I used functions, which will encrypt and decrypt the password. If u really needs it I will pass it to u.
Bye
Jayanthi.
22 years ago
hi boss
A great welcome.
i worked with oracle component XSQL, it is so great but i can't store it what ever i want to save. if possible can you help me.
Thanks in advance
Jayanthi
hai
So many are availabe. Even sun is providing it. If you need more help i will give you the coding.
Bye
Jayanthi
22 years ago
I also faced the similar problem,
The smpt server provider has to give rights to user the for a particular port.
Transport transport = session.getTransport("smtp");
transport.connect(smtpserver," ", " ");
If it is provided corectley then all will work fine.
if you need i will give full coding.
to check the particular port is given permission, check sending mail to admin or faq person.
hope this will help u
22 years ago