yudi raj

Greenhorn
+ Follow
since Nov 11, 2011
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 yudi raj

I am having an application in an iframe and I am calling this from a different domain. For example, my browser url is a.com and my iframe url is b.com (different domain). I am loading this iframe (b.com) in a.com thus making their domains different.
I tried with the below function in js, this works in IE and Mozilla, however, with Google chrome, my js is not able to reach the browser url.
Would appreciate if anyone can give me some direction on this

I am getting the below error after deploying few projects in was 6.1


After some research, I found out that was 6.1 does not come with sas.jar and wssec.jar files and due to the absence of which I am getting the above error.
I tried putting the sas.jar file from was 5.1's lib directory, but the server does not seem to start in that case.
Does WAS 6.1 come with these jar files? If not, where can I find its compatible jar files through which I would be able to resolve the error?
If there is an alternative to this, please let me know.
Any help is greatly appreciated.
Thanks.
10 years ago
I need to create a portlet in which I will be including one of the swf files from one large swf file. We have a website which runs multiple swf applications in one large swf. Is there anyway I could split one of those swf files and use it into my portlet. I need some guidance on this.
Any help is appreciated. Thanks.
10 years ago
Its a long code. This is how it works:
I click on a state, and the page displays its related cities.
I click on a city and it displays their zip codes.
I click on a zip code and it displays the temperature for all days.
I just made the connection and linked these tables with the help of SQL. I am not retreiving actual temperature.
In the end, I have a Start Over button. Upon clicking it, the page should redirect me to enter the state again (from beginning)

Here is my state.jsp code


And here is my Portlet class




I know its a very long code. If I don't get a reply on this, its fine because nobody wants to waste their time reading a long code. If you do, I would really appreciate your help.


10 years ago
JSP
Thanks for the reply Bear.
I tried reloading the window through javascript like the one below:

I am actually using Websphere Portal on JSR 168 API. After clicking on the button above, I get the error from the server console as:

"WARNING: Cannot set header. Response already committed."

I tried to invalidate the session and redirect the page back to the jsp (now assuming all the session attributes were gone). But upon running and clicking on that button, the browser displays "Page cannot be found". I have set up a button at the end of my jsp saying "Start Over" so that upon clicking on that button, I should get the page as I first loaded from the server. I tried removing attributes but that doesn't seems to be the solution. I am new to programming so please bear with me if this looks stupid to you. Any reply is appreciated. Thank you.
10 years ago
JSP
I am writing a jsp code where it displays cities upon selecting a state, which is through JDBC. I have placed a start over button in the end so that I could start the page again from the beginning. Is there anyway we could do this? Please let me know how i would approach. I tried removing attributes but that doesn't seem to be the solution. Any solution is appreciated. Thanks.
10 years ago
JSP
I have few states listed in a drop down menu in a portlet. After clicking on a state, the portlet processes the action method and displays their cities. I have linked the cities with states through SQL. However, when the city is loaded, I need the state value to remain selected. Here is my code


code from processAction method
----------------------------------------


I need to know how would I keep the state as selected after the portlet had loaded cities. I know it had got to do something with boolean flags but I really don't know how to approach the problem. Also, after iterating through cities, I need the first value of the city to be selected. Further, after clicking on a city and submitting, both city and state value should remain selected with previously selected values. Thanks in advance.
10 years ago
Thanks Himanshu
10 years ago
JSP
Thank you for your time guys. Your solutions were definitely useful. Thanks again.
10 years ago
I am trying to retrieve a particular column name from Array List. I have the table in SQL as below:

+--------+----------+--------+---------------------------+
| day_id | day_name | temperature_in_fahrenheit |
+--------+----------+--------+---------------------------+
| 1 | Mon | 25 |
| 2 | Tue | 35 |
| 3 | Wed | 45 |
| 4 | Thu | 55 |
| 5 | Fri | 65 |
+--------+----------+--------+---------------------------+




I have made a jdbc connection and added the values to the ArrayList. I have to retrieve only temperature values from above so that I could calculate the temperature values in centigrades and store them in a session. However, I dont know how to approach. Please let me know if you can help me. Thank you.
10 years ago
I have 2 jsp files: login.jsp and process.jsp....In login.jsp, I placed combo boxes and radio buttons. On selecting the values from the combo box and radio button and further submitting, the jsp displays process.jsp where it should retain the selected content. Here are both of my jsp files:

login.jsp
-----------


process.jsp
-------------


The radio button is not selected in the next page. However, I could retrieve the name through request.getParameter method. I think is something wrong in my javascript. Please let me know where I am going wrong. Thank you.
10 years ago
JSP
Hello all. I am writing a portlet application. I have a drop down menu of states. After clicking on an item, the portlet will process the info and display the next portlet beneath it.
However, I need the content of that drop down menu selected in my next page.

Is there anyway we could retreive the selected content of a drop down menu in a jsp after clicking the submit button.
Thanks in advance.
10 years ago