You don't include classes that are already in your package to your JSP. You simply reference them the long way.
So I'm assuming you need:
System.out.println(package1.AddTo.user.name);
(Although this doesn't make much sense, seeing the username should be in the session, right?)
What Matt Ball says about it being a bad idea to put much code in JSP is true, but more in situations where an error could reveal some information that shouldn't be revealed, then JSP could reveal that on a compile error that the user can see. Like if you put the code to make the database connection in a JSP directly, rather than calling a class
Like this :
Class.forName(...);
Connection con = DriverManager.getConnection("jdbc:drivertype://server;errors=full;translate binary=true", "user", "pwd");
That's very bad. This would reveal the username and password if there was a compile error, or even a connection error like if the database was inaccessible; and the user would know how to hack your database, because by default it will show the user the offending lines of code!
So instead:
Connection con = package1.databases.createConnectionToDatabase();
You can also prevent errors from showing the user the actual lines of code by putting all the Java code in your JSPs inside Try and Catch blocks.