princehyderabad
asked on
Array Display
This the servlet which I hv to use and get all values displayed in JSP. This servlet give you the Array of UserList.
.....
HttpSession session = request.getSession();
String name = (String) session.getAttribute(mm_us erName);
try {
MMUser [] users = getUsers(name);
request.setAttribute(mm_us erList, users);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
....
I'm trying with this code in JSP: Can anyone help to get retriver and display.
<%
String str[] = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
out.println(str); %>
.....
HttpSession session = request.getSession();
String name = (String) session.getAttribute(mm_us
try {
MMUser [] users = getUsers(name);
request.setAttribute(mm_us
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
....
I'm trying with this code in JSP: Can anyone help to get retriver and display.
<%
String str[] = getServletContext().getAtt
out.println(str); %>
out.println(java.util.Arra ys.asList( str));
ASKER
This the error:
incompatible types found : java.lang.Object
required: java.lang.String[]
String str[] = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
^
1 error
incompatible types found : java.lang.Object
required: java.lang.String[]
String str[] = getServletContext().getAtt
^
1 error
>>String str[] = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
Should be
Object object = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
OTHERWISE
if it is a String
String str =(String) getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
Should be
Object object = getServletContext().getAtt
OTHERWISE
if it is a String
String str =(String) getServletContext().getAtt
Are u expecting to code something like this??
<%
String str =(String) getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
MMUsers[] users=(MMUsers[])request.g etAttribut e(str);
%>
<%
String str =(String) getServletContext().getAtt
MMUsers[] users=(MMUsers[])request.g
%>
ASKER
Error
cannot resolve symbol symbol : class MMUsers
cannot resolve symbol symbol : class MMUsers
ASKER
For your code this:
Object object = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
out.println(object);
Output is: null
Object object = getServletContext().getAtt
out.println(object);
Output is: null
Object object = request.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
out.println(object);
out.println(object);
ASKER
Still Output is: null
let me know how you are working with servlet and jsp??
ASKER
This is my servlet which is talking to DB and getting userlist, now I want o get the userlist displays in JSP page. Plz send me jsp code for that.
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, users);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
OK you need to do this
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, users);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
<%
Object []object = session.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
<%
Object []object = session.getAttribute(MMSer
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
or
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, users);
RequestDispatcher dispatcher;
dispatcher = context.getRequestDispatch er(YourJSP Page);
dispatcher.forward(req, res);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
JSP
=====
Comment from objects
Date: 08/20/2004 09:07AM IST
Comment
out.println(java.util.Arra ys.asList( str));
Comment from princehyderabad
Date: 08/20/2004 10:52PM IST
Author Comment
This the error:
incompatible types found : java.lang.Object
required: java.lang.String[]
String str[] = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
^
1 error
Comment from sudhakar_koundinya
Date: 08/21/2004 12:05AM IST
Your Comment
>>String str[] = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
Should be
Object object = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
OTHERWISE
if it is a String
String str =(String) getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
Comment from sudhakar_koundinya
Date: 08/21/2004 12:08AM IST
Your Comment
Are u expecting to code something like this??
<%
String str =(String) getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
MMUsers[] users=(MMUsers[])request.g etAttribut e(str);
%>
Comment from princehyderabad
Date: 08/21/2004 12:18AM IST
Author Comment
Error
cannot resolve symbol symbol : class MMUsers
Comment from princehyderabad
Date: 08/21/2004 12:19AM IST
Author Comment
For your code this:
Object object = getServletContext().getAtt ribute(MMS ervletCons tants.PARA M_USER_LIS T);
out.println(object);
Output is: null
Comment from sudhakar_koundinya
Date: 08/21/2004 01:05AM IST
Your Comment
Object object = request.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
out.println(object);
Comment from princehyderabad
Date: 08/21/2004 01:06AM IST
Author Comment
Still Output is: null
Comment from sudhakar_koundinya
Date: 08/21/2004 01:38AM IST
Your Comment
let me know how you are working with servlet and jsp??
Comment from princehyderabad
Date: 08/21/2004 03:34AM IST
Author Comment
This is my servlet which is talking to DB and getting userlist, now I want o get the userlist displays in JSP page. Plz send me jsp code for that.
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, users);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
Comment from sudhakar_koundinya
Date: 08/21/2004 03:44AM IST
Your Comment
OK you need to do this
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, users);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
<%
Object []object = session.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer
RequestDispatcher dispatcher;
dispatcher = context.getRequestDispatch
dispatcher.forward(req, res);
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
JSP
=====
Comment from objects
Date: 08/20/2004 09:07AM IST
Comment
out.println(java.util.Arra
Comment from princehyderabad
Date: 08/20/2004 10:52PM IST
Author Comment
This the error:
incompatible types found : java.lang.Object
required: java.lang.String[]
String str[] = getServletContext().getAtt
^
1 error
Comment from sudhakar_koundinya
Date: 08/21/2004 12:05AM IST
Your Comment
>>String str[] = getServletContext().getAtt
Should be
Object object = getServletContext().getAtt
OTHERWISE
if it is a String
String str =(String) getServletContext().getAtt
Comment from sudhakar_koundinya
Date: 08/21/2004 12:08AM IST
Your Comment
Are u expecting to code something like this??
<%
String str =(String) getServletContext().getAtt
MMUsers[] users=(MMUsers[])request.g
%>
Comment from princehyderabad
Date: 08/21/2004 12:18AM IST
Author Comment
Error
cannot resolve symbol symbol : class MMUsers
Comment from princehyderabad
Date: 08/21/2004 12:19AM IST
Author Comment
For your code this:
Object object = getServletContext().getAtt
out.println(object);
Output is: null
Comment from sudhakar_koundinya
Date: 08/21/2004 01:05AM IST
Your Comment
Object object = request.getAttribute(MMSer
out.println(object);
Comment from princehyderabad
Date: 08/21/2004 01:06AM IST
Author Comment
Still Output is: null
Comment from sudhakar_koundinya
Date: 08/21/2004 01:38AM IST
Your Comment
let me know how you are working with servlet and jsp??
Comment from princehyderabad
Date: 08/21/2004 03:34AM IST
Author Comment
This is my servlet which is talking to DB and getting userlist, now I want o get the userlist displays in JSP page. Plz send me jsp code for that.
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
Comment from sudhakar_koundinya
Date: 08/21/2004 03:44AM IST
Your Comment
OK you need to do this
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
<%
Object []object = session.getAttribute(MMSer
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
OOPS
Ignore previous one
Solution 1
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, users);
RequestDispatcher dispatcher;
dispatcher = context.getRequestDispatch er(YourJSP Page);
dispatcher.forward(req, res);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
JSP
=====
<%
Object []object = request.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
Solution 2
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, users);
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
JSP
=====
<%
Object []object = session.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
Ignore previous one
Solution 1
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
request.setAttribute(MMSer
RequestDispatcher dispatcher;
dispatcher = context.getRequestDispatch
dispatcher.forward(req, res);
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
JSP
=====
<%
Object []object = request.getAttribute(MMSer
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
Solution 2
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
JSP
=====
<%
Object []object = session.getAttribute(MMSer
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
ASKER
I did for Solution 2:
incompatible types found : java.lang.Object
required: java.lang.Object[] Object []object = session.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
^
1 error
incompatible types found : java.lang.Object
required: java.lang.Object[] Object []object = session.getAttribute(MMSer
^
1 error
It's my mistake
Type cast it
Object []object = (Object[])session.getAttri bute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
Type cast it
Object []object = (Object[])session.getAttri
Even for
first solution
Object []object = (Object[])request.getAttri bute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
BTW
Are u from India Hyderabad or Pakistan Hyderabad?? Just curious
first solution
Object []object = (Object[])request.getAttri
BTW
Are u from India Hyderabad or Pakistan Hyderabad?? Just curious
if that does not work
Here is a modified solution
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_NAME) ;
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer vletConsta nts.PARAM_ USER_LIST, java.util. Arrays.asL ist( users));
} catch (MMFailedUserActionExcepti on e) {
throw new ServletException(e);
}
JSP
=====
<%
Object []object =((java.util.List) session.getAttribute(MMSer vletConsta nts.PARAM_ USER_LIST) ).toArray( );
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
Here is a modified solution
Servlet
========
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
// extract request parameters
HttpSession session = request.getSession();
String name = (String) session.getAttribute(MMSer
try {
MMUser [] users = getUsers(name);
session.setAttribute(MMSer
} catch (MMFailedUserActionExcepti
throw new ServletException(e);
}
JSP
=====
<%
Object []object =((java.util.List) session.getAttribute(MMSer
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
ASKER
I'm trying you solutions ...hold....
I'm from Hyderabad(India) ..
I'm from Hyderabad(India) ..
ASKER
Black Ouput, when I tried to put System.out.println(object) ;
I got "null"
I got "null"
ASKER
Oops I guess why its null, because its bascially not at all going calling servlet. Please help to solve here:
<%@ page import="com.mid.user.MMUse r, com.mid.servlet.*" %> [will this not call the serlvet or include or make servlet run and get ouput]
<%@ page import="java.net.*, java.io.*"%>
<%@ page session="true" %>
<%
Object []object = (Object[])session.getAttri bute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
System.out.println("Testin g on Console: " + object);
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
<%@ page import="com.mid.user.MMUse
<%@ page import="java.net.*, java.io.*"%>
<%@ page session="true" %>
<%
Object []object = (Object[])session.getAttri
System.out.println("Testin
if(object!=null)
{
for(int i=0;i<object.length;i++)
{
out.println(object[i]);
}
}
%>
ASKER
I included the serlvet in the JSP
<jsp:include page="/admin/GetUsers" />
Outputs:
JSP Output: "com.mid.mm.user.MMUser@ff d553 "
Console Output: User List: [Lcom.midstream.mm.user.MM User;@1685 e30
<jsp:include page="/admin/GetUsers" />
Outputs:
JSP Output: "com.mid.mm.user.MMUser@ff
Console Output: User List: [Lcom.midstream.mm.user.MM
ASKER
what happen sudhakar ???
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This is the OUTPUT:
com.mid.mm.user.MMUser@1f0 1b29
com.mid.mm.user.MMUser@872 1bd
com.mid.mm.user.MMUser@1b8 1d4f
Its showing object.length =3 which is correct, but not displaying the proper values...
com.mid.mm.user.MMUser@1f0
com.mid.mm.user.MMUser@872
com.mid.mm.user.MMUser@1b8
Its showing object.length =3 which is correct, but not displaying the proper values...
can u post MMUsers class code??
ASKER
Hey Sudhakar I got it, but now you help me how to do same in beans. I think using bean it would be more easy and small code.
Idea is here to display the ALL: username, password, fullname, role in the table format.
<jsp:include page="/admin/GetUsers" />
<%
MMUser []userlist = (MMUser[])session.getAttri bute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
if(userlist!=null)
{
for(int i=0;i<userlist.length;i++)
{
out.println(userlist[i].ge tName());
out.println("<br>");
}
}
%>
rEGARDS
Idea is here to display the ALL: username, password, fullname, role in the table format.
<jsp:include page="/admin/GetUsers" />
<%
MMUser []userlist = (MMUser[])session.getAttri
if(userlist!=null)
{
for(int i=0;i<userlist.length;i++)
{
out.println(userlist[i].ge
out.println("<br>");
}
}
%>
rEGARDS
Do you know custom tags??
if you know this becomes much easy for you
//import com.mid.mm.user.*;
import javax.servlet.jsp.JspTagEx ception;
import javax.servlet.jsp.PageCont ext;
import javax.servlet.jsp.tagext.S impleTagSu pport;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.* ;
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class MMCustomTag extends SimpleTagSupport {
private String html = null;
public MMCustomTag() {
super();
}
public void setHtml(String name) {
this.html = name;
}
public void doTag() {
try {
PageContext context = (PageContext)getJspContext ();
ServletRequest request=context.getRequest ();
ServletResponse response=context.getRespon se();
PrintWriter out=response.getWriter();
HttpSession session=context.getSession ();
MMUser []userlist = (MMUser[])session.getAttri bute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
if(userlist!=null)
{
for(int i=0;i<userlist.length;i++)
{
String name=userlist[i].getName() ;
String password=userlist[i].getPa ssword();
String role=userlist[i].getRole() ;
String _html=""+html;
html=html.replaceAll("MM:: USER",name );
html=html.replaceAll("MM:: PASS",pass word);
html=html.replaceAll("MM:: ROLE",role );
out.println(html);
html=new String(_html);
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
if you know this becomes much easy for you
//import com.mid.mm.user.*;
import javax.servlet.jsp.JspTagEx
import javax.servlet.jsp.PageCont
import javax.servlet.jsp.tagext.S
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.jsp.tagext.*
import javax.servlet.http.*;
import java.io.*;
import java.util.*;
public class MMCustomTag extends SimpleTagSupport {
private String html = null;
public MMCustomTag() {
super();
}
public void setHtml(String name) {
this.html = name;
}
public void doTag() {
try {
PageContext context = (PageContext)getJspContext
ServletRequest request=context.getRequest
ServletResponse response=context.getRespon
PrintWriter out=response.getWriter();
HttpSession session=context.getSession
MMUser []userlist = (MMUser[])session.getAttri
if(userlist!=null)
{
for(int i=0;i<userlist.length;i++)
{
String name=userlist[i].getName()
String password=userlist[i].getPa
String role=userlist[i].getRole()
String _html=""+html;
html=html.replaceAll("MM::
html=html.replaceAll("MM::
html=html.replaceAll("MM::
out.println(html);
html=new String(_html);
}
}
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
ASKER
oops sudhakar, no just tell me how to do it in JSP using jsp:bean.
Reason is I have this biz logic class (servlet) which I have to make use. I didnt do that big logic class, somebody else worte I hv to use jsp and use that biz logic class.
Please just tell me hwo to do it using JSP bean:
Right now this code is working fine with correct output:
<jsp:include page="/admin/GetUsers" />
<%
MMUser []userlist = (MMUser[])session.getAttri bute(MMSer vletConsta nts.PARAM_ USER_LIST) ;
if(userlist!=null)
{
for(int i=0;i<userlist.length;i++)
{
out.println(userlist[i].ge tName());
out.println("<br>");
}
}
%>
getName(), getfullName, getPassword(), getRole() are the methods already defined just used them as I have used getName() in above code.
regards
Reason is I have this biz logic class (servlet) which I have to make use. I didnt do that big logic class, somebody else worte I hv to use jsp and use that biz logic class.
Please just tell me hwo to do it using JSP bean:
Right now this code is working fine with correct output:
<jsp:include page="/admin/GetUsers" />
<%
MMUser []userlist = (MMUser[])session.getAttri
if(userlist!=null)
{
for(int i=0;i<userlist.length;i++)
{
out.println(userlist[i].ge
out.println("<br>");
}
}
%>
getName(), getfullName, getPassword(), getRole() are the methods already defined just used them as I have used getName() in above code.
regards
And in jsp code you must call that tag simply like this
<jsp:include page="/admin/GetUsers" />
<MMCustomTag html="<YOUR HTML TEMPLATE>" />
that's all
<jsp:include page="/admin/GetUsers" />
<MMCustomTag html="<YOUR HTML TEMPLATE>" />
that's all
no there is nothing to do with that third party codes
and custom tags are much better than beans
ASKER
Okay 2 questions:
1: <MMCustomTag html="<YOUR HTML TEMPLATE>" />
what should be "Your HTML Template". Please tell in deatil
2: If there is a servlet (business logic) which is there already which talk to DB and gets all values and store in MMUser so is it good idea again to write servlet(your custom tag) and again in JSP pass 2 lines code ? Also I wanna display in nice row & colomns that isnt a pain in servlet to code html, in JSP much easy correct ?
If I'm wrong plz explain me ? Why and When
Regards
1: <MMCustomTag html="<YOUR HTML TEMPLATE>" />
what should be "Your HTML Template". Please tell in deatil
2: If there is a servlet (business logic) which is there already which talk to DB and gets all values and store in MMUser so is it good idea again to write servlet(your custom tag) and again in JSP pass 2 lines code ? Also I wanna display in nice row & colomns that isnt a pain in servlet to code html, in JSP much easy correct ?
If I'm wrong plz explain me ? Why and When
Regards