Govind Rajith

Greenhorn
+ Follow
since Feb 15, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Govind Rajith

Hello,

Iam engaged in a new work. The task is explained below but iam not getting any idea of how to create its user interface. Help and support expected in this regard.

"There wil b a gsm modem connected to our computer.we wil b sending a message from our mobile to specified number whose sim card is inserted into the gsm modem.when the message reaches there our application must extract it and send back the requested file into our mail.the system is fully automated.how we wil design the user interface for it.

Thanks in advance
regards
Govind Rajith
Hello,
I would like to know how we can change the button name from an action class. Inside the action class a condition is checked and if it becomes true then the submit button in the jsp should change to edit button. Please give some idea.

Thanks in advance.
Govind Rajith
17 years ago
Hello Friends,

I want to retrieve values into an "Author Name" text field using AJAX. Can anyone tell me the steps to do that?

Thanks in advance
Govind Rajith
Hello Friends,

I want to retrieve values into an "Author Name" text field using AJAX. Can anyone tell me the steps to do that?

Thanks in advance
Govind Rajith
Hello,

I have a link which when clicked should pop-up a new window. I called a java Script function in the onClick of html:link but it shows an error message something like this:

javax.servlet.ServletException: Exception forwarding for name redirect: javax.servlet.ServletException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward", "href", "page" or "action"
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
org.apache.jsp.index_jsp._jspService(index_jsp.java:68)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause

javax.servlet.jsp.JspException: Exception forwarding for name redirect: javax.servlet.ServletException: Cannot create rewrite URL: java.net.MalformedURLException: You must specify exactly one of "forward", "href", "page" or "action"
org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java:125)
org.apache.struts.taglib.logic.ForwardTag.doEndTag(ForwardTag.java:105)
org.apache.jsp.index_jsp._jspx_meth_logic_forward_0(index_jsp.java:85)
org.apache.jsp.index_jsp._jspService(index_jsp.java:59)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


Can anyone tell me what this error is. Also mention if any more details are to be included.

Regards
Govind Rajith
17 years ago
I am really sorry. It was a great blunder made in initializing the array list object. Now it is solved. Also I am sorry for posting in a confusing manner. Actually i was not knowing how to explain it.

Thanks
Govind Rajith
17 years ago
Now a new problem has arised!! Actually there are four combo box in my jsp and i could populate only one.

The code inside the action class is pasted below::

public class IlsMasterEntryAction extends Action{
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
throws Exception{

IlsCataloguingForm catalogForm=(IlsCataloguingForm)form;

IlsCatalogueSerialDto catsDto=new IlsCatalogueSerialDto();
//IlsCataloguingForm catlogForm=new IlsCataloguingForm();

IlsMasterEntryDao masterDao=new IlsMasterEntryDao();
ArrayList docType=masterDao.populateDocument();
ArrayList authDetails=masterDao.populateAuthor();
catsDto.setDoc_Type(docType);
catsDto.setAuthorDetails(authDetails);
PropertyUtils.copyProperties(catalogForm, catsDto);







//IlsCataloguingForm catalogForm=new IlsCataloguingForm();
//IlsCatalogueSerialDto catserDto=new IlsCatalogueSerialDto();
//PropertyUtils.copyProperties(catserDto,catalogForm);
//catserDto.setSerCtrlTitleId(0);

//masterDao.saveCatalogDetails(catserDto);

//catserDto=new IlsCatalogueSerialDto(); //Creating a new instance of IlsCatalogueSerialDto and copying its properties to
//PropertyUtils.copyProperties(catalogForm, catserDto); // the object of IlsCataloguingForm to clear the contents from the text fields

/*/IlsMasterEntryAction ilms=new IlsMasterEntryAction();
//catalogForm=ilms.documentPop();
//System.out.println("size of Doc_type is"+catalogForm.getdoc_Type().size());
//IlsMasterEntryAction ilmObj=new IlsMasterEntryAction();
catalogForm=ilmObj.authorPop();*/




return(mapping.findForward("success"));



}

Is there any method to use the form bean object more than once?
can anyone help me please?

Thanks In advance
GOVIND RAJITH
17 years ago
I solved that problem by simply rdirecting the index page to the corresponding action. Is it a good practice?
17 years ago
Hello Friends,
I have put all my jsp's in "/WEB-INF/jsp/.." To access these jsp i have used an index page in Web Content which redirects to those jsp's. In one of the jsp's i have written a javascript code for a pop up window. Now since the jsp is in WEB-INF, its not being fetched in that window. If i place them in Web Content then it works. How can i fetch it from WEB-INF.
Can anyone help me?

Thanks in advance
Govind
17 years ago
JSP
Hello friend,

I did it using collection but got some error. Then i did it as shown below:

<html:select property="docTypeId">
<logic:iterate id="catFrm" name="catalogForm" property="doc_Type">

<bean efine id="docs" name="catFrm" property="documentType" />
<option value="<%=(String)docs%>"><%=(String)docs%></option>

</logic:iterate>
</html:select>

Now the problem is that the combo gets populated only when i click some buttton i.e its not populating dynamically. Also the values are not getting updated in the database either. Any sugggestions please.

Thanks in advance
17 years ago
Hello,
Im a beginner in struts. My problem is to populate an html:select. Let me explain you in detail, I have table called "Documents" whose records are brought to the action class using a Data transfer object named documentDto. Now the values are assigned to an array list and then set to the jsp's form bean where it has to be populated. The problem is that iam not able to display it or rather populate it in the jsp. What should i do. Please help me.

Thanks in advance
17 years ago