Ali Gordon wrote:I now know the basics of JSP and Servlets and I am going to make my own web app (shopping cart). I have some ideas for a simple app in which I can practice
what I have learned. But, I am having great difficulty in making a blue print for my code. But, I don't know if my blue print is useful or even missing something.
Can someone please tell me where I can learn a formal process to make blueprints (not algorithms or flowcharts) for my code/web app ? I want to be able to
make such amazing blueprints, that a beginner coder could simply follow the requirements and do all the coding himself. How do I do this ?
What I did so far -
1 - Finalize a small list of features in the app.
2 - Identify all the entities or classes needed for the app - Customer, Product, ShoppingCart, etc.
3 - A list of all the web-pages/servlets/jsp's that the app might require.
I wonder if I can start coding right away. I hope that I have not missed something which will bite me later and will require a
whole rewrite of the code.
Thanks.
Paul Ngom wrote:Ulf,
Thanks for your reply. But the 200 text fields have to show at a go ready for entry.
stshiva raaj wrote:Hi folks, Can I access the session object even session has been expired? I need to check whether session is expired or not for each request. How to check?
The session invalidation is set null the session object. What I concluded, session time out I can access session object but session invalidation I can not access session object. Am I correct? Then How can I find the
session time out by using session object?
Tarun Oohri wrote:
Ulf Dittmer wrote:Servlets are not generally thread-safe - they're thread-safe only if you make them so. Not using instance variables can (and should) be part of that, but by itself that is not sufficient.
Thanks Dittmer, please tell me the way i am relating servlet above is right or wrong..Just want to know if i am thinking in right direction or not!!!
Supun Lakshan Dissanayake wrote:
Suresh KumarPandey wrote:
...
class Child extends Parent implements Serializable { //pay attention here
int age = 11;
Hi,
You have the Parent class which is not serializable, and then the child class that extends Parent and it is serializable.
I like to approach this sysematically: when I want to serialize an object, I make sure everything is serializable. So why don't you create a base class called BaseData that implements Serializable, and then extend everything from that class. In this way Child, Parent etc will be serializable. I cannot say this is the issue, but I do like that and I never had an issue in the first place.
Here is an article
http://proghowto.com/how-to-use-java-objectoutputstream
Daniel
Luis Oliveira wrote:Hi all
I'm currently starting a project, in my university, which involves studying HTML5 and J2EE integration.
I'm also a Struts user. What is the state of HTML5 integration into Struts?
Is there something implemented or any plans to implement it? Will we see features like Web Sockets, Web Messaging, Web Workers, etc as part of Struts in a near future?
Are there any good sites, articles or other reading material about this subject
Many thanks,
Best Regards
Ajay Paswan wrote:Hi,
I am new to this technology, I am using intelliJ IDEA, please give me the pointer to tutorial where from I can learn the simplest web application using struts. It will take a parameter from the client and retrieve any/some information from mySQL and again send this retrieved information to client.
Dipali yadav wrote:Hi,
when I click on reset button, it resets only fields but I want that it should reset error messages as well from the page.
Please help me out for this.
thanks...
Vidya Gupta wrote:
Hi,
Can anyone tell me how to use authentication and authorization concept in struts ... please help me..
Regards,
Vidya
vishal gaiky wrote:hello friends,
i am developing one online exam application using struts i want to use pagination to show five pages and on each page i want to show 5 questions..now problem is that i am using display tag but i dont know how to iterate it for rows only..i want to show data on rows not on columns like
1. question text.
radio button 1
radio button 2
radio button 3
radio button 4
2. question text.
radio button 1
radio button 2
radio button 3
radio button 4
3. question text.
radio button 1
radio button 2
radio button 3
radio button 4
like above
Kaur Manpreet wrote:Hi Bear,
My question is regarding the appending of extension .do (or any other specified in <url-pattern>) to the existing URL.
How is this happening?
Is it behind the scenes (as a rule or out of box feature of Struts).
Thanks
Xin Xu wrote:I plan to write a website used by our church in Java, any recommendation for Java application web hosting provider?
...
Anybody any comment or suggestion? Thank you.
Michele Smith wrote:Okay but my application has hundreds of servlets.
Without using the dispatcher method, how can I effectively link this method encapsulated in its own class, to those hundreds of servlets?
Is making it a helper class sufficient to do this? Should my efforts be geared to making those hundreds of servlets use a helper class?
Thank you, and I am sorry if I am really spacy sometimes Bear, you are very helpful and I am grateful for your advice, thanks again,
Viswanathan Pachaiyappan wrote:I have a jsp page wherein i have to passs the file as input and read the contentsn of a file in servlet.
upload.jsp
<FORM METHOD=POST ENCTYPE="multipart/form-data" ACTION="upload"> File to upload: <INPUT TYPE=FILE NAME="upfile">
<INPUT TYPE=SUBMIT VALUE="Submit">
upload.java
//In upload servlet page i have tried to read the contents of a file in doPost method. I have used
String t1=request.getParameter("upfile");
//It shows null. How to read the content in a file and display in servlet?
Bear Bibeault wrote:Singletons are generally considered a poor pattern. I'm rather agnostic on it myself.
My main issue is that you seem to be saying "Don't do initialization in init(), do it in service()" and I disagree with that. The lifecycle methods are there for a reason and they should be used appropriately. If you're doing something that doesn't require initialization, then obviously there's no need to override init().