Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Deepa Balasubramanayam

Ranch Hand
+ Follow
since Mar 29, 2001
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 Deepa Balasubramanayam

Hi,
Please give me suggestion.
My form has two fields (User Id and Password).
UserId should be unique. I should allow users to complete the form only if they enter a unique UserID, if not as he enters userid and tabs to Password field, I should check for the exsistance of USerId in the database and alert him to enter a different ID.
Thanks,
Deepa
Thank you. Please suggest which is best
Storing images as blob type or
storing the path of the image ?.
Thanks,
Deepa
17 years ago
JSP
Hi,
I am developing a website which does Auto sales. Users who are interested to sell their cars, has to enter their car details and necessary images of the car. Following is my question:
How to allow users to attach their car images to the submission form and how to store them? .
Thanks,
Deepa
17 years ago
JSP
Thanks to Jim and Thanks to BufferedReader. My problem is solved.
Thanks
Deepa
18 years ago
Thanks Dirk for your reply. I came to know about Line_Separator. But following is my situation

1)User enter the description in multiple lines(after typing each sentence user strikes enter key for new line).
2)We are using mysql database to store the information.
3)But while displaying the description, instead of seperate statements all the lines are displayed as a paragraph.

For example, above I have entered 3 different statements in the text area. My reply is displayed the same way I entered. But in my case the 3 statements are displayed as a paragraph. New line character is not regonized.
I have to recognize new line character at the end of each statement and replace with <BR> .
Thanks
Deepa
18 years ago
Hi,
I am entering description in a text area in multiple lines. If I strike "enter" key to go to next line.In the program I want to recognize the new line character and replace with <BR>.
How can I find the new line character?.
Thanks
Deepa
18 years ago
Hi,
I enter statements in a text area.
I used Text Area attribute
wrap=physical to break the lines and send to database. While displaying the description read from the database, all lines are shown as a single paragraph instead of displaying multiple lines.I want to display multiplelines simpler to what I enter in textarea.
Please give me suggestions.
Thanks
Deepa
Hi,
I use IE5. I entered four points in text area field . When I tried displaying it in another page there was no line break, instead all the 4 staments were grouped as a paragraph. I used wrap attribute, but it is not working.
<textarea name=test cols=40 rows=7 wrap=physical> </textarea>
Please give me suggestions.
Thanks
Deepa
I am not good at strings but still try this
String someVariable=" ";
for (int i = 0; i!=addOn.length(); i++)
{
someVariable = addOn.charAt(i);
if (someVariable.equals(""))
out.print("DDDDDDDDDDD");//newURL = newURL + "&";
else
newURL = newURL + someVariable;
out.print(someVariable + "<br>");
}
18 years ago
Hi All,
I have PostJob.jsp which calls InsertJob.jsp. In PostJob.jsp user enters his RegistationId and other job information.
In database I created a table that has RegistrationId and JobNo as a primary key.
As soon as InsertJob.jsp is called it gets the parameter of RegistrationId and looks for the max(JobNo) in the table. After getting max(JobNo) it increments JobNo by 1 and inserts the job details.
For ex:
if regId = 21 and max(JobNo) is 3 . JobNo is incremented by 1 and stored as JobNo = 4.
The problem here is, when
http://localhost:8080/InsertJob.jsp
is refreshed the same job details is once again inserted in the table by incrementing JobNo by 1.
How can I handle this? . Please give me suggestions.
Thanks
Deepa.
Hi All,
I call the following method from a jsp for sending mail.
************************************************
import javax.mail.*;
import javax.mail.internet.*;
import java.util.*;
public void postMail( String recipients[ ], String subject, String message , String from) throws MessagingException
{
boolean debug = false;
//Set the host smtp address
Properties props = new Properties();
props.put("mail.smtp.host", "smtp.somehost.com");
// create some properties and get the default Session
Session session = Session.getDefaultInstance(props, null);
session.setDebug(debug);
// create a message
Message msg = new MimeMessage(session);
// set the from and to address
InternetAddress addressFrom = new InternetAddress(from);
msg.setFrom(addressFrom);
InternetAddress[] addressTo = new InternetAddress[recipients.length];
for (int i = 0; i < recipients.length; i++)
{
addressTo[i] = new InternetAddress(recipients[i]);
}
msg.setRecipients(Message.RecipientType.TO, addressTo);
// Optional : You can also set your custom headers in the Email if you Want
msg.addHeader("MyHeaderName", "myHeaderValue");
// Setting the Subject and Content Type
msg.setSubject(subject);
msg.setContent(message, "text/plain");
Transport.send(msg);
}
**************************************************
The parameter "String message" is a text. How can I pass a multiline messages and sometimes even images?.
Please give me suggestions.
Thanks
Deepa
18 years ago
Hi Sita,
I am not much familiar with session concepts. Could you send me some sample coding or any site address that has tutorial for sessions.
Thanks
Deepa
18 years ago
JSP
Hi prabhat,
I tried out your coding , But if I click the Hyperlink nothings is happaning.
I could not copy the html here, because it gives error.
Can I email you the coding?
Thanks
Deepa
18 years ago
JSP
Thanks for your reply prabhat kumat. But I have a different problem. Here is the coding
<a href="http://localhost:8080/RegSearch.jsp?primaryRegId=<%= primaryRegId %>" target=_top>
View All Registered User </a>
On clicking "View All Registered User " Hyperlink the following URL is displayed in the Address field.
"http://localhost:8080/RegSearch.jsp?primaryRegId=20001";
If I change the primaryRegId to 30909 instead of 20001 in the URL address and refresh the page it brings back the information of the other user 30909, which is not secured.
Could you please let me know how to avoid this?
Thanks
Deepa
18 years ago
JSP
Hi,
I am calling a jsp program passing some parameters and in the URL I am seeing those parameters. If I change the parameter value at URL address and refresh the page , it pulls back the information of the newly enter parameter. I feel it is not a secured one.
Please suggest me ideas to hide parameters in the URL or any secured way of coding.
Thanks
Deepa.
18 years ago
JSP