Naveen bpl

Greenhorn
+ Follow
since Apr 03, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Naveen bpl

Hi Michael,

Even I have the same problem in Production.

java.sql.SQLException: [BEA][SQLServer JDBC Driver]No more data available to read.

Can you please let me know, whether you got this resolved, if so how did you resolve this.

Thanks in advance.
Naveen
18 years ago
Hi Merrill,

Thanks for suggesting me. I tried the way by adding the parent.dataentrypage.document.forms[0].submit();

but I still have the same problem of the new empty IE page opening as I explained before.

Thanks,
Naveen
19 years ago
Hi,

I have a problem to recognize which is clicked. I am not whether this posting should go to html or jsp. I am sorry if I am posting it in the wrong place.

My problem is I have something like this:

for(int j = 0; j < 20; j++)
{
<input type="button" name='<%= "Select" + j %>' value="Select" size="10"
onKlick="callSubmit()" />
}

<script language="JavaScript">
function callSubmit()
{
document.forms[0].submit();
}
</script>

I am using Struts.. so in my action class I have this

HttpSession session = request.getSession();
String select0= (String) request.getParameter("Select0");
String select1= (String) request.getParameter("Select0");
...


if(select0 != null)
System.out.println("Select0 is Selected");
else
System.out.println("Select0 is null");

if(select1 != null)
System.out.println("Select1 is Selected");
else
System.out.println("Select1 is null");

....

But it's always printing null irrespective of which button is clicked.

So please help me out in how find which button is clicked if all the buttons have the same value...


Thanks,
Naveen
19 years ago
JSP
hi Merrill,

Thanks a lot for your help, I did the way you have suggested me. Its working except that its opening the popups. I have a navigation panel jsp on the left side of the page. So when I submit the page, its opening a new empty page besides and the original page still has both the navigation panel and also the pag1 jsp. And the address of that empy page shows the navigation panel jsp addres.

I am doing a submit as shown below using the javascript.

<html:link action="/Page1.do?actionType=refresh" onKlick="doRefresh()" target="dataEntryPage"> Page1</html:link>

<script language="JavaScript">

function doRefresh()
{
document.forms[0].action = '/tdaomni/Page1.do' ;
document.forms[0].submit() ;
}

</script>

Please suggest me what's the reason for the navigation panel to be opened in a differnt page, though the newly opened page is empty and the actual page still has the navigation panel.

Thanks,
Naveen
19 years ago
Hi David,

Actually I went through your post before I added a new post. I tried the way it was suggested in your post, but it didn't work for me. So I made new post.

Thanks,
Naveen
19 years ago
Hi,

I am using frames in my application. The left frame has the navigation hyperlinks and the right frame as the form fields like text boxes.

Now I am trying to implement refresh functionality, so that after entering data on page1.jsp and if I click the Page1 hyperlink, the page1.jsp should be submitted and the data on it should be read and stored into the sessison.

I am having problem with form submit. I am doing like this:

<html:link action="/Page1.do?actionType=refresh" onKlick="javascript: document.myForm.submit()" target="dataEntryPage"> Personal</html:link> 

and I have a ActionForward method refresh() in the Page1Action.java class which reads the data from the form

Line of code from Page1Action.java

Page1Bean pa = new Page1Bean();
pa.Name = (String) form.get("Name");
System.out.println("Name: " + pa.Name);

When I do that, its just printing Name:
And no data what ever I entered on the form text field.

Structs Config Action Mapping for this is:

<action path="/Page1Link" name="Page1Form" type="org.tiaa.tda.action.PersonalInfoAction"
parameter="actionType" scope="request" >

<forward name="refresh" path="/jsp/Personal.jsp" redirect="true" />

</action>

I hope the form is not submitting.
Can anyone suggest me how should I submit a form in this case.

Thanks in Advance,
Naveen
19 years ago
Hi,

I am writting an application using jsp and struts.
I have 5 image buttons on my jsp page. And I want to set one button to defualt. That is when the user hits an Enter key on this page that particular default button should get selected and do the action specified to it.

Please suggest.

Thanks in advance.

Naveen
Thanks Senthil and Niki,

I did it according to Senthil's suggestion, its working perfectly.

Thanks,
Naveen
Thanks Eric.

Actually I started using javascript for that. But I have a lot of fields on all those jsps, its becoming tedious to write for all the fields in all the pages. And also the view and update button takes the control to different pages where this enabling and disabling should be done.
For that I have a logic by using the Javascript. But I am looking for something else, which will minimize this tedious work.


Someone suggested me to write to css files one with all properties enabled and the other with all the fields disabled. But I don't have any idea about whether if there is anything in real to be done like.

Please suggest me on this.

Thanks,
Naveen
hi,

I am new to css.

I am writing an application where we are using style sheets.

I have arround 10 jsp pages which have some text boxes, check boxes and drop down lists on them.

I have 2 buttons:

1. View: when clicked all the form fields specified above should be disabled so that the users can only view the prepopulated data on them.

2. Edit: when clicked all the form fields should be enabled, so that they can edit the prepopulated data or they can enter new data.

Please suggest me on this.

Thanks,
Naveen