suneel surya

Greenhorn
+ Follow
since Apr 04, 2006
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 suneel surya

Got the solution, The InternalFrame close method was calling setClosed(true); which was taking the focus away from the menu after closing that frame. I replaced it with setVisible(false) and it started working .
5 years ago
Hi All,

We migrated our swing application from JAVA 1.4 to JAVA 5, the problem we are facing is that the ALT + Key is not working in Java 5 after an internal frame is closed. It works as long as any of the internal frames are not closed.
It again works when it is minimized and maximized.

What I understand is, it is not getting the focus back to the Menu bar or it is not repainting the Menu properly which causes the ALT+key not to work.

Is there any specific reason for an already working code behaving like this, is this anyway related to the deprecated method setNextFocusableComponent which I don't think so.


Thanks in advance.
5 years ago
Hi, I have column 'status' in a table called 'show_main', in our application when delete function is performed the status is updated to '0'
and when tried to view or delete the same record it has to check if the status is 1 only it should show the record. In my case a record which is deleted in that session is getting displayed even after deleting. when I am getting the status from showMain.java class insted of getting the value from database it is getting it from buffer i guess, so i tried to set the value of status to 0 after deleting and tried to close the session but nothing worked. Can any one help.
Error while Running Jboss.
JAVA_HOME-- C:\Program Files\Java\jdk1.5.0_13\bin; C:\Program Files\Java\jdk1.5.0_13\lib\tools.jar;.;

JBOSS_HOME--C:\jboss-4.0.4.GA\bin

when it is ran through cmd the following error scrolls continously

The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.
The filename, directory name, or volume label syntax is incorrect.

please help me out
11 years ago
In Struts EL how to know which button is clicked when you have more than one button.I want it in action calss.
11 years ago
In struts el how to get checkbox status with java script, i want to know weather the check box is checked or not
11 years ago
In my current working form - by clicking a button a pdf Report is populated in new Window. The requirement is, when a pdf report is generated, the calling page should be redirected to another page.

The problem I am facing is, passing the control back to the calling page.

I tried by writing a pageForward method in doReport method which is called by the new window that shows the report. The page is not getting forwarded but it is showing in the tomcat that it entered the second page. I tried writing the forward method in doPrint method with which the control is going to other page but the popup is not getting called. The doPrint method is called when print button is clicked.

Now how should I make the calling page get forwarded to another page and also show the report in new window.


Please let me know if you have any ideas how this can be implemented.I thought of using reflection which i coudn't.

Thanks and regards,
Suneel
How to get the controle from popup to the called form






[BPSouther: Added meaningful subject line]

[ December 07, 2007: Message edited by: Ben Souther ]
[ December 09, 2007: Message edited by: Bear Bibeault ]
Hi,
For the last few days i was sick and couldn't reply, thanks for your suggestion.
12 years ago
Hi,
My Name is Just Suneel so i cant add any sur names.Coming to my problem Here is my code

Error is:
javax.servlet.jsp.JspException: No getter method for property id of bean org.apache.struts.taglib.html.BEAN

Config.xml is:

<struts-config>
<form-beans>
<form-bean name="bean" type="org.apache.struts.validator.DynaValidatorActionForm">
<from-property name="id" type="java.lang.String"/>
<from-property name="pass" type="java.lang.String"/>
<from-property name="function" type="java.lang.String"/>
</form-bean>
</form-beans>

<global-exceptions>

</global-exceptions>

<global-forwards>
<forward name="success" path="/success.jsp" redirect="false"/>
<forward name="failure" path="/failure.jsp" redirect="false"/>
</global-forwards>

<action-mappings>
<action path="/controller1" name="bean" type="myapp.OurAction"
parameter="function" validate="true" input="/error.jsp" scope="request"/>
<action path="/controller2" name="bean" type="myapp.OurAction"
parameter="function" validate="true" input="/error.jsp" scope="request"/>
<action path="/add" type="org.apache.struts.actions.ForwardAction" parameter="/AddUser.jsp"/>
<action path="/delete" type="org.apache.struts.actions.ForwardAction" parameter="/DeleteUser.jsp"/>
<action path="/modify" type="org.apache.struts.actions.ForwardAction" parameter="/ModifyUser.jsp"/>
<action path="/home" type="org.apache.struts.actions.ForwardAction" parameter="/index.jsp"/>
</action-mappings>

My page AddUser.jsp:

<%@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html:html>
<html:form action="/controller1" >
<center><br><br>
<table>
<caption>
<font size=6><u>Adding User</font></h2></u></caption>
<tr>
<td><bean:message key="form.id"/></td>
<td><html:text property="id"/></td>
</tr>
<tr>
<td><bean:message key="form.pass"/></td>
<td><html:text property="pass"/></td>
</tr>
</table>
<br>
<html:submit value="AddUser"/>
<html:hidden property="function" value="addUser"/>
</center>

</html:form>
</html:html>

now can you trace the bug
12 years ago
Hi Merrill Higginson ,
Thanks for correcting me, though i was JavaRanch member long back I dint use it. Well Iam Sorry I forgot to paste the error I am facing, heres the error

javax.servlet.ServletException: No getter method for property id of bean org.apache.struts.taglib.html.BEAN

and keep up the good work of correcting people mistakes. Nice to meet a person like you
12 years ago
If you have access to the websphere deploy folder you can directly copy there and restart the server, thats it.
If not create a war or Ear file and upload through console
12 years ago
I wrote a DispatchAction program using DynaActionForm

Iam Getting this error always can any one help me out

My config.xml is this

<form-bean name="sunil" type="org.apache.struts.validator.DynaValidatorActionForm">
<from-property name="id" type="java.lang.String"/>
<from-property name="pass" type="java.lang.String"/>
<from-property name="function" type="java.lang.String"/>
</form-bean>

THANK YOU IN ADVANCE
12 years ago