I want to get the user-browser string, currently I'm using the the
request object provided by play but I don't see a way to get it (after
checking available functions in netbeans)
I'm having a bit of trouble, since I'm inexperienced with Java I don't
know whats the best way to debug (as in getting the arguments used in
a POST and writing them in html or other way) for example I want to
know what kind of input I'm getting.
I started creating a guestbook app to get familiar with both java and
play!, started using module:crud, thing is I'm on windows platform and
when I type "play crud:ov --templates app_path" it doesn't do
anything. Also, is this a good practice? in mysql I have a table with
the following columns (id,comment,guestname,ip,browser, replyTo)
replyTo is where does this comment falls into, so I have multiple
constructs in my model class and I wondered if it was a good practice
<code>
public Comment() {}
public Comment(String comment, String guestname, String ip, String
browser) {
this.comment = comment;
this.guestname = guestname;
this.browser = browser;
this.ip = ip;
}
public Comment(String comment, String guestname, String ip, String
browser, Integer replyTo) {
this.comment = comment;
this.guestname = guestname;
this.browser = browser;
this.replyTo = replyTo;
this.ip = ip;
}
</code>
Another thing is how to manage errors? lets say the field was empty
and I "throw an exception? or just use flash?"
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To post to this group, send email to
play-fr...@googlegroups.com.
To unsubscribe from this group, send email to
play-framewor...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/play-framework?hl=en.