Total Pageviews

Sunday, December 12, 2010

New Plans

Hi All!

Since there are only few days left to submit your Software Requirement Specification (SRS), I trust that most of your work is going well.
Just wanted to inform you all on the updated situation.

  • Due to lack of enthusiasm, I've decided to discontinue my blogging here and would perform any further activity on my IBM DeveloperWorks blog . However, you can follow me at my blog, http://sumitbisht.blogspot.com.
  • Please don't ask me for mailing my SRS, you can download the template from TGMC website direct.
  • We've been allocated the IBM lab for further work, if you need, we can hold a workshop there.


I'll be posting my IBM DeveloperWorks blog url as soon as it goes live.

Thursday, November 25, 2010

Configuring Eclipse, WebSphere & DB2 to work together

After trying to configure Eclipse, WebSphere & DB2 to work together and failing in it, I decided to do a bit of research and founded one tutorial at : http://sornakumar.blogspot.com/2009/09/configuring-eclipse-websphere-db2-to.html
Hope you guys set it up correctly.

Anyway, what's your project status ? Are you facing any major problems ? Please discuss here and let's not lose our focus after coming so far in this contest.

Ciao!

Friday, October 15, 2010

Checking out for practice application

Hi!
Welcome again.
I am submitting this post to help all my friends out here who've been restless to get their hands-on with practical examples before trying out on their own.

After practicing this example, you'll learn about JSP scriptlet common coding.

To copy my application, apart from a working copy of Netbeans IDE, you'll need to install a Version Control software (to work in a team). As practice, I've hosted a simple web application on sourceforge.net website. Through Subversion (SVN), you'll check-out(take out) this open source application source code and run it yourself.

First, Download SVN from http://subversion.apache.org and install it on your computer. Run the svn command from command line for verification.

Now open up Netbeans and perform the following steps:

Select Team > Subversion > Checkout










This will give us a window asking for the project url.

Please type https://jspdev.svn.sourceforge.net/svnroot/jspdev into the Repository URL field

Also, leave all the other fields blank.

Select Next,

Here too, you can leave all the fields as blank. But specify the Local Folder field with the directory location of your project on your hard disk.















Now hit finish. After this, you should see the following activity on your taskbar. Here, your application is getting copied.



Finally, you should see the following new Web Application project with all the necessary files on your IDE. You can now start from here onwards.





























This is the sample project with all the files.
NOTE : If you want to improve this application (without breaking its simplicity, please join this 'jspdev' project from the sourceforge.net).

Monday, October 11, 2010

Hei frnzzzzz

if u have any quarries related to ur project or any other new technology related.
then plzzz post ur problem .
we all r expected lot of quarries and related solution.

sushant srivastwa
MCA 3rd sem

Friday, October 8, 2010

Getting up to speed towards building websites using Java technology.
This is a simple tutorial that demonstrates the usage of jsp/servlets approach for building simple dynamic websites.
I am using the foll. Tools :
Netbeans IDE
Tomcat – A servlet/JSP container
First, start up your netbeans IDE













Setting up Application Server
Here, ensure that you have your server setup correctly. On my instance, I have various servers; ranging from simple ones such as Tomcat to complete Java EE servers like Glassfish & Jboss. Also, there are servers for Rails applications. But we'll be only using Tomcat as of now.














Start the server by right-clicking the server node and hitting start. After a successful start, you'd get a following message on the server console : INFO: Server startup in XXX ms.
This means that our server is up and running.

Creating a Web Application
Now create a new web project.


Next choose the Tomcat server.
Leave the context path on the server as the default one now.
Since, we are creating a simple application, do not choose any framework now.
After the project gets created, write down the following on the index.jsp file that is displayed.





This is the dynamic statement that we've created through jsp.
Now hit F6 or the > Button




See the output on the web browser.
Congratulations!

Building Servlets

Now, we'll get our hands dirty with servlets.
Remember, all the JSP pages ultimately get converted into servlets at runtime and knowledge of servlets is key towards building a complete web application.
Now, create a new servlet through right-clicking the project name & selecting the Servlet entry.









Here, let's name it SimpleServlet and put it in a package, bbdnitm.tgmc







Hit the finish button.
Now, edit the servlet class file as:

Next, open up WEB-INF/web.xml file and select xml view from the main tab


This is called the deployment descriptor and is the MAIN file of any java web application. It is similar to web.config file of an asp.Net application.
Here, inside the <web-app> root tag, you'll see the foll. Code generated
<servlet>
<servlet-name>SimpleServlet</servlet-name>
<servlet-class>bbdnitm.tgmc.SimpleServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>SimpleServlet</servlet-name>
<url-pattern>/SimpleServlet</url-pattern>
</servlet-mapping>
This is the configuration details of our servlet. The <servlet-name> performs a mapping between <servlet-class> (the class file) and <url-pattern> (the actual web request) tags.

Finally hit the run (F6) button to deploy your updated site on the server. If all is well, then you should see the following on your web browser:





That's it! You now know the very basics of a java based web application and now you can go on further.
Further Actions:

To continue, I'll request you/ your team the following paths
  • Continue learning jsp via books/tutorials. More specifically, learn
  • Sessions
  • HTML Form submissions
  • <jsp> tags
  • error handling/debugging on jsp pages
  • Learn more about Enterprise java – it was known as j2ee 1.3, j2ee 1.4 earlier and now as Java EE 5 & 6.
  • Enhance your knowledge about Tomcat Server (its catalina servlet container & jasper engine)
  • TGMC Specific tools for further development -> RAD as an IDE and WebSphere App.Server

Thanks in advance!










Thursday, October 7, 2010

Getting Started

Hi all!
A very warm welcome to the IBM's The Great Mind Challenge 2010. In order to start creating this project, you'll need a lot of new ideas & technologies.

But first, a few things;
1. Are you really committed towards/passionate about your project ?
2. Are you prepared to change your lifestyle to suit this additional learning ?
3. Can you try newer avenues of learning ?

These are just a few points that can prove long term success of your project.

To start up, you need to find the basics about project management (how to build a software). Do google and wikipedia search for it and you'll surely learn a lot.

I hope to interact a lot with you guys here and share knowledge amongst you.

Thanks a bunch!

Software download

Please download the required softwares from the following link from the computer lab at the college
file://ibmdca/ibmRAD

Also, do keep posting for questions & answers

All About TGMC

Welcome to the exiciting contest by IBM for all the college students in India.
For more info. please see http://www.ibm.co.in/tgmc before asking for any contest related query

Please join at http://www.ibm.com/developerworks/tgmc and register at https://www.ibm.com/developerworks/mydeveloperworks/groups/service/html/communityview?communityUuid=f870215a-82d8-4701-88a5-7937fb3c73c0