Priyha Jootu

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

Recent posts by Priyha Jootu

Thanks Jon for the info. Good that they made a good decision. :-)

-Priyha
Hi all,
I did the SCJP2 in the last quarter of year 2001. Now I am thinking of writing SCJD. Is my SCJP expired and I can't use it for SCJD? or I can still start preparing for SCJD and write it in about 3 months from now?

Thanks,
Priyha.
Thanks Mark.
Is there any good website to calculate the salary for a given experience, location, etc. I tried monster but didn't seem so good. Please let me know.
Thanks.
21 years ago
Hi,
I received a call from some consulting company to work for a BIG client. They asked me how much salary i expect. I have 3.5 years experience overall in java and oracle. I am doing masters in Computer scinece and will be graduating in coming May. I told them around 35$/hr. But she(the consulting company person) fixed me 30$/hr, its becuase i said i expected around 60-65 K/yr. Later i realized i asked very less. I didn't know how to negotiate properly and accepted it. She said there is interview next week.
If I get that job, can I ask her again to increase the salary? She was saying that once I decide on salary, we can go to next step that is the interview, so i am not sure if she will consider increasing again, please advise on this.. how much should i ask for 3.5 yrs exp. and masters degree and can I negotiate again?? I live in Raleigh, North carolina. This position is for Java programmer. Please let me know what is the average salary for east coast for java programmer for 3.5 yrs experience.
Thanks.
[ January 10, 2004: Message edited by: Priyha Jootu ]
21 years ago
When i was working with some other java code, i had to creat a new variable classpath in the environment variable settings. But i didn't include the . (same directory) in it. Now i added the . in the classpath and the program hello1.java compiles fine.
Thanks a lot
priyha
21 years ago
Hi all,
This is a very basic question, but not sure why this compile error.I have 2 java files named hello1.java and hello2.java in same directory named c:\epal_sts\code\
I am calling the method of hello2 class from hello1.
But when i compile hello1.java, it says this error:
C:\EPAL_STS\code>javac hello1.java
hello1.java:8: cannot resolve symbol
symbol : class hello2
location: class hello1
hello2 h2 = new hello2();
^
hello1.java:8: cannot resolve symbol
symbol : class hello2
location: class hello1
hello2 h2 = new hello2();
^
2 errors
The 2 files are:



Is there anything wrong here? Please let me know why the compile error comes.
Thanks
priyha
21 years ago
Thanks Eric, I did this using the URL search string. This link helped me to do this easily: http://ashutoshsaxena.tripod.com/jstut/tutorials/realjs11.html
Priyha
Hi guys,
Thanks for your input. The problem is i need to include 13 text files in the JSP, each of the text files has about 8-10 lines. I currently open each of this file and put the lines in a new file with <br> tags for formatted look. If I need redirect the output of each file to out.print statements, then i need to do the file open/close and processing statements in JSP itself, i think its not good to do here.
Also , I am doing many javascript initializations and other things like getting user authentications and checking,etc in the JSP, so i didnt want to do this in a servlet.
Can I do file processing in the JSP itself? or is there any better solution to this?
Thanks
Priyha
21 years ago
JSP
But how to solve this? I need some way to wait and then include the file... is there any function that we can use like sleep() or something to just wait for some fixed time and then include the file? Can you any other alternative solutions?
Thanks
Priyha
21 years ago
JSP
Hi all,
This is a part of JSP i am developing: Based on user input the array arguments for the java class below differs.

In the above JSP file, i am calling a java class called SOEfile, which actually creates a file called "temp.html" . The java class does lot of file processing, basically it takes input as a array of text files and read each of the files and write them all together in the temp.html.
After that I need to include that temp.html created by the java class in my JSP page. Only after the temp.html is written down fully , it has to be included. The problem is , the JSP shows up the temp.html with old contents in it. It doesn't show up the temp.html with the latest content, if press the submit button the first time, it shows old contents, if i keep pressing it like 3, 4 times, now since the temp.html is written with the new contents, it shows up correctly.
Is there anyway to wait till the actual file is created and then only include it? I think whats happening is : the JSP calls the java class, since the java class is doing lot of file processing, the JSP includes the old temp.html instead of waiting till the file is written down correctly.
Do i need to use threads here? Please let me know how to do this.
Thanks,
Priyha
21 years ago
JSP
Hi all,
I have 2 pages , say page1.jsp and page2.jsp , i am getting some values from user as input in page1 and after pressing the submit button in page1.jsp, it goes to page2.jsp . In page2.jsp, i am getting these values input by user using a request.getParameter(). page2.jsp has many select lists. Depending on the values the user input in the page1, the select list has to be set to that initial values. For example, there is a select list named "letter type" with values type1 , type2, type3 . If the user selected type2 in the page1, then in page2 the "letter type" select list has to be pre-selected to type2 automatically. Also, I am initialising the "letter type" select list from a javascript file that is included in the page, i mean i dynamically generate the select list.
Can anyone tell me how to pre-select values in the select list. I know if we set the selected property of the option to "selected" it would work, but how to do this based on the user input??
Please let me know how to do this.
Thanks
Priyha
One more clue, I used dir and notepad.exe in my batch file. I invoked the jsp and checked the tomcat logs, there i could see the dir contents and notepad.exe . Also in the task manager, notepad.exe is there, but it is not visible.
But i dont want to execute notepad in my project, i just need to execute some cvs source management commands, so i tried some cvs commands in my batch file, i can see that command being invoked in the tomcat logs, but the command doesnt work. no success...
has anybody done similar to this before?? need some help...
Thanks,
priyha
21 years ago
JSP
I tried it using start notepad.exe, but still the same problem.. exit value is 3.
No clue what the problem is , so its getting hard to correct it. Let me know if there is a better solution.
21 years ago
JSP
Basically I don't want notepad to open at all, it is just for testing.
I need to run some other commands ( cvs source management commands).
When i click a button, i need to invoke some commands in cvs that copies files from one directory to another. This is mainly to automate the copy process. Instead of user giving commands to copy certain files from one directory to another, just clicking on a button should do that.
In the example in my previous message, i just checked the taskmanager, the notepad.exe is running in processes, but it is not visible in my system.
Let me know how to do this. I think running a batch file is a solution to this, is there any other approach to this problem?
Thanks
Priyha
21 years ago
JSP
Hi Bill,
Thanks for your suggestion, I tried with writing the code in a class and then including it in jsp. Still not working.
Here is the java code :

and in the jsp i have this:

If I run the above java class, it works fine , but if i call the method in the java class through a jsp, it does not work, it returns a exit value of 3, which means not success.
I tried the code directly in jsp(which is not desired, but just for testing), it returns a exit value 128.
whats preventing it in jsp when it works fine in a stand alone java class??
is there anything to do with security issues? please help me with this.
Thanks,
Priyha.
21 years ago
JSP