File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes I want Check stdId&Pwd Using Iteration I can't declar iterator variable outside Loop please help me, Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "I want Check stdId&Pwd Using Iteration I can Watch "I want Check stdId&Pwd Using Iteration I can New topic
Author

I want Check stdId&Pwd Using Iteration I can't declar iterator variable outside Loop please help me,

RajeshKumar Nayak
Greenhorn

Joined: Jul 02, 2012
Posts: 6
Baseet Ahmed
Ranch Hand

Joined: Dec 18, 2006
Posts: 224

if(stdId.equalsIgnoreCase(std.getStdid())&& stdPwd.equalsIgnoreCase("nayak"));//give error



Please remove the semicolon(;) at the end of if statement.

Also, next time onwards always give error stack trace for better understanding of problem.


---------
Regards
Ahmed
RajeshKumar Nayak
Greenhorn

Joined: Jul 02, 2012
Posts: 6
give error for std. declaration it error because outside of the loop how i can use this object for test case please
not ; this is mistake for write can someone solve my problem


Thanks Regards
Rajesh kumar Nayak
tyte kyat
Ranch Hand

Joined: May 17, 2011
Posts: 40
Have you try this,



without --> com.rajesh.

--------------------------
or

without changing anything and if you put the following line

System.out.println("size = "+plist.size());

before calling Iterator it=plist.iterator();

what have you got?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I want Check stdId&Pwd Using Iteration I can't declar iterator variable outside Loop please help me,