Uma Viswanathan

Ranch Hand
+ Follow
since Jun 14, 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 Uma Viswanathan

Thank you very much Bear Bibeault. I am new to jsp. So, learning...

I read in the book about param, but did not know about paramValues.

Thank you very much again.
14 years ago
JSP
I am getting input from the user using html form. When the user clicks submit button, the input is sent to a jsp page.

In the html form, i have a checkbox (the user can select more than one value). I wrote the following code in the jsp page (say the parameter name is color).

<c:if test="${!empty param.color}">
<c:set var="strColor" value="${param.color}"/>
<c:forEach var="strC" items="${strColor}">
<c ut value="${strC}"/>
</c:forEach>
</c:if>

(or)

<c:if test="${!empty param.color}">
<c:forEach var="strC" items="${param.color}">
<c ut value="${strC}"/>
</c:forEach>
</c:if>

Both the codes display only the first value selected in the checkbox.

If i write scriptlet request.getParamaterValues("color"), it works. But i want to write it using JSTL.

Please help.
14 years ago
JSP
Problem:
I have one jsp page (say, page1.jsp). When i click the 'continue button' in this jsp page, it will submit the form to another jsp page (say page2.jsp), which then passes the data to one servlet (say servlet1) which does some processing and passes to another servlet (say servlet2). This servlet dispatches the request to another jsp (say page3.jsp) which is displayed in the screen.

In short, when the continue button in page1.jsp is clicked, page3.jsp is displayed in the screen (but it goes via page2.jsp, servlet1 and servlet2).

I want to disable back button and refresh button in page3.jsp.

Popup Window Solution:
I did some research by searching this web site and some others. I tried all the possible solutions. I feel popup window (with url of page3.jsp) may work.

I tried window.open() in page1.jsp, but the page3.jsp is displayed without any data. Can someone please give me the idea to popup the window (with url of page3.jsp) with all the data from page1.jsp. Basically it needs to go thru page2.jsp, servlet1 and servlet2.

If popup window is not the right solution, please provide me the right idea to prevent user from reloading/refreshing the page or clicking back button (bcoz if i allow user to refresh/reload or to click back button, the request is processed again). Thanks a lot.
Can anyone please clarify my doubt? Thanks a lot.
Dear Bear Bibeault,
I am sorry if u feel that i have posted in the wrong forum (i.e JSP). I posted this in jsp forum since the problem is with jsp, javascript and servlets. Thanks a lot.
I have one jsp page (say, page1.jsp). When i click the 'continue button' in this jsp page, it will submit the form to another jsp page (say page2.jsp), which then passes the data to one servlet (say servlet1) which does some processing and passes to another servlet (say servlet2). This servlet dispatches the request to another jsp (say page3.jsp) which is displayed in the screen.

In short, when the continue button in page1.jsp is clicked, page3.jsp is displayed in the screen (but it goes via page2.jsp, servlet1 and servlet2).

I want to disable back button and refresh button in page3.jsp. I did some research by searching this web site and some others. I tried all the possible solutions. I feel popup window (with url of page3.jsp) may work.

I tried window.open() in page1.jsp, but the page3.jsp is displayed without any data. Can someone please give me the idea to popup the window (with url of page3.jsp) with all the data from page1.jsp. Basically it needs to go thru page2.jsp, servlet1 and servlet2.

Thanks a lot.
Thanks a lot Bear Bibeault. It helped me to find out the problem. I did not give the fully qualified class name for the Filter class in web.xml. So, was throwing 'Class No found Exception'. Now fixed it.

Thanks again
15 years ago
Hi all,
I have written a filter. Also configured in web.xml (i.e wrote filter element and filter-mapping element). When i start the tomcat, i am getting the following error:

INFO: Processing Context configuration file URL file:C:\jakarta-tomcat-5.0.25\conf\Catalina\localhost\fsme.xml
org.apache.catalina.core.StandardContext start
SEVERE: Error filterStart
org.apache.catalina.core.StandardContext start
SEVERE: Context startup failed due to previous errors

Note: fsme is the name of the project

Can anyone please give an idea to resolve this error

Thanks a lot.
15 years ago
Hi all:
Could someone tell me how to run a java application as a service on windows-nt?
Thanks in advance
Uma
17 years ago
Thanks a lot for the reply...
I could not see any error message. The problem was 'it was not executing the application'. Anyways, i had corrected it now.
17 years ago
Hi all:
What is the best way to deliver an application to the customer (in the form of jar file or ...)?
If jar file is the best form, then how shd i create a jar file for my application on hp-ux 10.20
My application is using two other jar files (vendor-provided) say x.jar and y.jar
In win-nt, i created a jar file (say app.jar) using the command from the directory (say proj) which contains all the files needed for this project
c:\proj>jar -cvf app.jar *
Then to execute a class file (say main.class which contains the application's entry point)
C:\proj>java -classpath app.jar;x.jar;y.jar main
The above commands worked in win-nt and it had started the application but these commands are not working in hp-ux 10.20....could anyone help me please?
I tried the following 2 commands in hp-ux, they are also NOT working
java -classpath /opt/java/lib/classes.zip:app.jar:x.jar:y.jar main
jre -classpath /opt/java/lib/classes.zip:app.jar:x.jar:y.jar main

Thanks a lot in advance...
Uma
17 years ago
Hi Frank Carver:
I had finished that work long back...since i was in a position to use (must use) g++ complier, i had written the code in C++ (socket programming) on hp-ux 10.20 [instead of jni]
I was looking for Runtime.exec() for the following reason:
A script should start the client and (servers, if loopback address)...i had written a java program to read an ini file and to start the servers (an exe and a .class files) using Runtime.exec()...the script will execute this java program in addition to some other works.
Thanks a lot for your helps.
Uma
17 years ago
Hi Frank Carver:
Thanks for your reply.
Runtime.getRuntime().exec("./a.out"); is not working
but it is working if i include . (i.e, current directory) in the PATH.
Also i am able to run the exe thru a script.
Thanks a lot for your ideas.
Uma
17 years ago
Sorry..i did not see ur previous reply when i had posted my earlier one...i typed the message and then it was time to go for the meeting...after i came back...i just clicked "Add reply"...
17 years ago
Hi Frank Carver:
Please do confirm the following:
1) I had written "The code Runtime.getRuntime().exec("a.out") is not working...where a.out is an exe file in the directory /home/someone/test. It is NOT WORKING WITHOUT GIVING FULL PATH"
The reason is: Runtime.getRuntime().exec tries to search the a.out in the home directory...i tested by copying the a.out to the home directory and execute the above code. It works fine.

2) I had written
"I wrote a script (say, test)
#!/bin/sh
a.out
Then i called this script from the java program
Runtime.getRuntime().exec("test"); This is also NOT WORKING"
The reason is: Runtime.getRuntime().exec does not spawn a shell but we need a shell to run the script.
The test script above (which contains the command #!/bin/sh) does not spawn a shell...so, it is not working.
3) I had written
"I wrote a script (say, test)
a.out
Then i called this script from the java program
Runtime.getRuntime().exec(new String[] {"/bin/sh", "test"}); This code is WORKING"
The reason is: This works bcoz the first parameter to exec (i.e., /bin/sh) spawns a shell.
Frank Carver: please confirm whether my understanding is correct or not....Also add your views/points...
4) I had written "Runtime.exec("/home/someone/test/a.out") is working...where a.out is an exe file in the directory /home/someone/test. It is WORKING BY GIVING FULL PATH"
Here we are hard coding the directory name, which will not be good in a project. So, could you please tell me the way to specify the directory name.
Thanks a lot.
Uma
17 years ago