Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

cannot find symbol

encryption

  • Please log in to reply
3 replies to this topic

#1 commissioner

commissioner

    CC Newcomer

  • Just Joined
  • PipPip
  • 17 posts

Posted 09 April 2011 - 12:55 PM

Hi everyone, am trying to do encryption but it return the error as follows. what do i do to fix the error. thanks

C:\Tomcat 6.0\webapps\work\WEB-INF\classes\test>javac User.java
User.java:28: cannot find symbol
symbol  : method setPassword(java.lang.String)
location: class test.User
  user.setPassword(test.PasswordService.getInstance().encrypt(request.getParamet
er("password")));
      ^
1 error


  • 0

#2 commissioner

commissioner

    CC Newcomer

  • Just Joined
  • PipPip
  • 17 posts

Posted 09 April 2011 - 05:35 PM

I think the problem is setting of set or get method for variable password in servlet.
how do I proceed
  • 0

#3 wim DC

wim DC

    Roar

  • Expert Member
  • PipPipPipPipPipPipPipPip
  • 2681 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Python

Posted 10 April 2011 - 12:05 AM

Possible causes:
  • user doesn't have a "setPassword(String)" method. Please verify the method exists, and indeed takes a String as parameter
  • test.PasswordService.getInstance().encrypt(String) does not return a String. Please make sure the encrypt method takes a String, and returns a String.

  • 0

#4 commissioner

commissioner

    CC Newcomer

  • Just Joined
  • PipPip
  • 17 posts

Posted 10 April 2011 - 01:44 PM

please can you illustrate with an example on how to set and return the string for variable password in servlet
thanks
  • 0





Also tagged with one or more of these keywords: encryption

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download