• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to add two fields in a JSP page  RSS feed

 
Rachana Raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

This is a new job assigned to me. I don't know much about jsp.
I was asked to add a field (secondary phone number) to a jsp page.
I have the xml pages where the changes should be reflected. Kindly guide me how to add it.
I have to finish this work soon.
 
Swastik Dey
Rancher
Posts: 1782
14
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What exactly do you mean by adding fields? Are the fields added at run time based on some condition or something? Please be more specific, it would help us to figure out the solution.
 
Rachana Raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Swastik,

It should not be added during run time. Secondary phone number is a field of user's contact information.
The user should be able to add their secondary phone number to that particular field or box.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rachana Raghu wrote:It should not be added during run time.

You have still given us no information to go on. SO we know when it's not to be added, but nothing about what you really need. Please take the time to thoroughly describe what it is you are trying to accomplish.
 
Rachana Raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swastik,

Thank you for your time. Please find the attachment of a screen shot.
Can you find fields like phone number, fax number etc. In the same way I have to add secondary phone
number. I hope it is clear.
Untitled.jpg
[Thumbnail for Untitled.jpg]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's a screen shot of a text editor. What does it have to do with JSP?
 
Rachana Raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree it is a text editor. The JSP page looks similar like this.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That still doesn't tell us anything about what you are trying to do. Again, take the time to explain it clearly. Otherwise, it's going to be impossible to supply any help.
 
Swastik Dey
Rancher
Posts: 1782
14
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your question is still not clear. What is the difficulty here, I believe it's a plain and simple html concept.
 
Rachana Raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your response. I know it is simple. But I have never worked on jsp page.
So I was not able to understand which file should I modify (the xml or java file).
Can you make it clear please?
 
Swastik Dey
Rancher
Posts: 1782
14
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to tell us what do you have in the xml and java file? How are they related?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There should be a JSP file with a filetype of .jsp.

It sounds like you need to read through a tutorial on JSP or to ask your project leader for more guidance.
 
Rachana Raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you suggest me a good jsp tutorial which helps me to learn jsp programming soon and fix this issue?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65833
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If all you need to add is some HTML for the fields, it should be evident how to do that within the JSP file itself. If it's more complicated than that, I think that you're going to need someone's help that already knows JSP.

You can get started by reading this article which will give you an overview of what JSP is all about. Then you can search for Oracle's tutorial on JSP -- it might be linked somewhere in the JspFaq.

 
Swastik Dey
Rancher
Posts: 1782
14
Android Eclipse IDE Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You may wish to have a look on this

http://nic.jlu.edu.cn/newcourse/dbxz/jspbasics.pdf

and there are lot more, just do some google search.
 
Rachana Raghu
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!