Distinguishing between bookmark page and ordinary jsp
If I bookmark a page in my project and close the browser , and again on restarting the browser
viewing the same bookmark page without logging in,
All the links should work.
It is working , but problem arises here
how to
distinguish between bookmark page and ordinary jsp
which is viewed with login
The problem is not the bookmark.
Review your JSP, you may find it does not check the session id.
In this case, everyone can access the page without login.
Similar Messages
-
Distinguish between 'Edit Page' and 'Customize'
I have a portlet/provider that needs to be able to distinguish between 'Edit Page' and 'Customize (Page)' (top level). In both cases you can add portlets, but I want to implement different logic for both instances.
Thanks,
Jan
nullOkay, so here goes!
Oracle Portal stores the way a portlet instance is shown/put on a page in the db-column 'wwpob_portlet_instance$.include'.
In the portlet 'register' call you can find out what the originating action was for this portlet to be placed on the specific page. At this stage only two possible values are interesting:
3: WWPOB_API_PAGE.PORTLET_CUSTOM; The originating action was [Customize Page - Add Portlet]
1: WWPOB_API_PAGE.PORTLET_BASE_SHOWN; The originating action was [Edit Page - Add Portlet]
For now this gives me a hook to process the two originating actions differently.
Please let me know if you know of any other (less hacked) way to do this.
Thx,
Jan. -
Differentiate between oa page and iStore page(jsp)
Hi,
How to Differentiate between OA page and iStore pages?If the URL contains the JSP tag as OA.jsp or RF.jsp, then its an OAF application else if you see some custom jsp, eg, jftchrome.jsp etc, then the application is JTT/JTF based application:
eg:
OAF application:
http://sampledomain.oracle.com:5000/OA_HTML/*OA.jsp*?.......
http://sampledomain.oracle.com:5000/OA_HTML/*OA.jsp*?.......
JTT Application
http://sampledomain.oracle.com:5000/OA_HTML/*jtfchorme.jsp*?....... -
Is it possible to remove the delimiting line between Bookmarks bar and Tab bar?
I place the Tab bar between the Bookmarks bar and the page content area, as the attached image shows.
Is it possible to remove the delimiting line between Bookmarks bar and Tab bar? I feel that line is redundant.Your Tab bar doesn't look standard.
Did you check the code with the default theme if you currently use a custom theme?
''(note that you can still use the code with a smaller font size if you like the monospace font; I do prefer this to make it easier to click the mouse)'' -
Distinguish between pure AS3 and Flex project
Hey,
how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
Any help is much appreciated.
Best,
JoaMXML is converted to AS3 code as part of the compilation process, then the AS3 is compiled normally like the rest of the project. I don’t think that GFPE is run over anything but an AS3 tree. There
may be a way to figure out where the original source came from, e.g. .mxml or .as file, but you’d have to interactively debug and scan the data structures — I don’t know off hand.
- Jono
From: Joa Ebert <[email protected]>
Reply-To: <[email protected]>
Date: Mon, 31 Mar 2008 05:40:13 -0700
To: <[email protected]>
Subject: Distinguish between pure AS3 and Flex project
A new discussion was started by Joa Ebert in
Developers --
Distinguish between pure AS3 and Flex project
Hey,
how can I distinguish if I am compiling currently an AS3 or a Flex project (mxml vs. pure as)?
I acutally want to look something up in the "evaluate" method of a GenerativeFirstPassEvaluator before doing the processing. So I need to know it there.
Any help is much appreciated.
Best,
Joa
View/reply at Distinguish between pure AS3 and Flex project
<http://www.adobeforums.com/webx?13@@.59b4da24>
Replies by email are OK.
Use the unsubscribe
<http://www.adobeforums.com/webx?280@@.59b4da24!folder=.3c060fa3> form to cancel your email subscription. -
How can I distinguish between the first and the rest in Smartforms??
I have made an Invoice in Smartform. I have to take three copies of that. In the first copy it will be printed "ORGINAL INVOICE" and in the next copies it will print "Duplicate copy". How can I distinguish between the first and the rest in Smartforms??
Regards,
Subhasish>
Subhasish Ganguly wrote:
> I have made an Invoice in Smartform. I have to take three copies of that. In the first copy it will be printed "ORGINAL INVOICE" and in the next copies it will print "Duplicate copy". How can I distinguish between the first and the rest in Smartforms??
Hello Vamshi,
As per the OP's requirement he has to print 3 copies of the invoice. Which according to my understanding should be printed at the same time ? May be i am wrong in interpreting this.
You must be knowing you can control the print params of the SmartForms in CONTROL_PARAMETERS where you set the NO_DIALOG & in the OUTPUT_OPTIONS pass the number of copies.
I think the solution you have proposed the "Original Copy" will be printed only once. (Correct me if i am wrong)
Every time the user prints the invoice again he will be getting a "Duplicate Copy". If this is what the OP wants the logic is perfect
Cheers,
SUhas -
Minimized Cover Flow on Bookmarks page and now can't get it back
On the Bookmarks page, I moved the Cover Flow section up so that it disappeared. When I tried to show it again by moving the cursor from the top to bottom of the area is originally displayed, the CF section fails to reappear. How to get it back?
Good gracious. I was able to do that to myself in the course of seeing if I could replicate the problem.
After some swearing and cursing, I managed to get the Cover Flow back showing again in Bookmarks by rebuilding my com.apple.Safari plist file, as per the instructions in the following user tip:
http://discussions.apple.com/thread.jspa?threadID=2316559 -
Bookmarked pages and custom toolbar disappear after firefox crash?
There is no way to restore pages and you have to manually re-drag all the buttons onto the toolbar!
It also seems that if the download window is open, the download time counter messes up your dragging, LOL! Like it updates the time and speed every second, and that resets the position of the item you are dragging, lol! (you wont be able to position the item in just 1 second).
AND - i also cant drag links from address bar to bookmark folders - it just wont "allow" them in... already tried a clean firefox install with folder deletions etc, but its still the same...
Something goes wrong during the import??
firefox version 4.0.1
windows xp, i7 cpu, 3gigs of ram etc...For both part 1 and 2 of your problem, see
* '''Corrupt localstore.rdf''' - MozillaZine Knowledge Base<br>http://kb.mozillazine.org/Corrupt_localstore.rdf
Rather than dragging bookmarks the following would things easier for you
* '''Add Bookmark Here ²''' :: Add-ons for Firefox<br>https://addons.mozilla.org/firefox/addon/add-bookmark-here-2/
*http://dmcritchie.mvps.org/firefox/addbookmarkhere2.txt
For help working with your '''bookmarks and history''' see
* '''Bookmarks''' - MozillaZine Knowledge Base -- http://kb.mozillazine.org/Bookmarks
* '''Sorting and rearranging bookmarks''' - Firefox - MozillaZine Knowledge Base -- http://kb.mozillazine.org/Sorting_and_rearranging_bookmarks_-_Firefox
* '''Viewing the browsing history''' - Firefox - MozillaZine Knowledge Base -- http://kb.mozillazine.org/Viewing_the_browsing_history_-_Firefox -
Distinguish between Document Libraries and Subsite
Hello Team,
When I create a Subsite or create a document Library, How can I access the Document library through the network Share
If I add documents to a Document Library:
Does it create a static link or a dynamic link
How can I access the Document library through the network Share
If I create a folder structure and add document to the folders to subsite
Does it create a static link or a dynamic link
How can I access the folders in a subsite through the network Share
How can I distinguish between a sharepoint site or document library by just looking through a URLFollowing links explain how a Document library can be accessed using Network Share/Windows explorer.
https://hubone.zendesk.com/hc/en-us/articles/200167580-SharePoint-Using-Explorer-View-or-Mapped-Network-Drives
https://social.technet.microsoft.com/Forums/sharepoint/en-US/b3425c4b-6558-4b51-882d-f9603c36f214/accessing-sharepoint-documents-from-windows-explorer-on-the-server?forum=sharepointgenerallegacy
The Url of a Document library will conatin "Forms" in it. Example:
http://yoursite/MyDocs/Forms/AllItems.aspx
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field -
A way to distinguish between 'Parent' keys and 'Referential' keys
Hi,
We use referencial keys to specify the FK to a parent table and also link to other tables... I need to write a script that needs to distinguish between a 'Parent' key and and a 'Referential' keys. In the database they both look the same, as they are both foreign keys...
What's the easiest way to determine whether a FK is a link to a parent table or a link to an unrelated table..
I hope this question makes sense...
EDIT:
Here's an example of the tables, and a better explanation
CREATE TABLE PARENT_TABLE(
par_id number PRIMARY key,
par_name varchar2(200)
create TABLE RELATED_TABLE(
rel_id number PRIMARY key,
rel_name varchar2(200)
create TABLE CHILD_TABLE(
kid_id PRIMARY key,
kid_name varchar2(200),
par_id,
rel_id,
CONSTRAINT kid_par_fk FOREIGN KEY(par_id) REFERENCES PARENT_TABLE(par_id),
CONSTRAINT kid_rel_fk FOREIGN KEY (rel_id) REFERENCES RELATED_TABLE(rel_id)
)Ok, as you can see the child table has 2 references but no way to tell which one is the parent table.. In our database we have this hirearchy of parent-child tables (where it's one-to-many relationships) where we consider a table a parent of other.. And also we have a ton of other foreign keys that link to related tables (many-to-many) relationships...
Now i need a clean way of distinguishing between PARENT and RELATED table.. A more elegegant solution to a keeping a hierarchy table of parent, child tables.. I'm sure others have this kind of structure..
let me know if there is more clarification needed.. Sorry for the confusion..
Edited by: wonderboy87 on 23-Jan-2011 4:07 PM
Edited by: wonderboy87 on 23-Jan-2011 5:59 PM
Edited by: wonderboy87 on 23-Jan-2011 6:00 PMwonderboy87 wrote:
Yes sorry.. I can see how consufing this is. Here goes;
CREATE TABLE PARENT_TABLE(
par_id number PRIMARY key,
par_name varchar2(200)
create TABLE RELATED_TABLE(
rel_id number PRIMARY key,
rel_name varchar2(200)
create TABLE CHILD_TABLE(
kid_id PRIMARY key,
kid_name varchar2(200),
par_id,
rel_id,
CONSTRAINT kid_par_fk FOREIGN KEY(par_id) REFERENCES PARENT_TABLE(par_id),
CONSTRAINT kid_rel_fk FOREIGN KEY (rel_id) REFERENCES RELATED_TABLE(rel_id)
)Ok, as you can see the child table has 2 references but no way to tell which one is the parent table.. You are right. There is no way to tell which one is the "parent". It's only your own business rules and usage that make one of the FK relationships to a "parent" while the other is to .. what, an "uncle"? ;-) Oracle has no way of knowing what your business rules and usage are.
In our database we have this hirearchy of parent-child tables (where it's one-to-many relationships) where we consider a table a parent of other.. And also we have a ton of other foreign keys that link to related tables (many-to-many) relationships...
Now i need a clean way of distinguishing between PARENT and RELATED table.. A more elegegant solution to a keeping a hierarchy table of parent, child tables.. I'm sure others have this kind of structure..
let me know if there is more clarification needed.. Sorry for the confusion..
Edited by: wonderboy87 on 23-Jan-2011 6:00 PM -
Difference between Web pages and journal
I cannot really pin down the difference between a web page and a web journal in Aperture 2. Any ideas? I'm sure it is obvious but I'm dumb today.
Here's a sample of a travelogue done with the Journal mode:
http://ianjameswood.co.uk/ptm-luzern/report/
Watch out, it's 17 pages long...
Ian -
Sharing data between a bean and a jsp
I have a bean that is being used as a helper class for a jsp page. I can call functions in the bean and display what is returned but I can't test the state of the bean in the jsp page. Is this possible?
my code is below:
jsp: a form posts info to this page
<HTML>
<BODY>
<jsp:useBean id='portal' class='portal.portal'/>
<%-- set the username and password --%>
<jsp:setProperty name="portal" property="*" />
<jsp:getProperty name="portal" property="dbconnection"/>
<Center>
<H1>Welcome to the Portal
<jsp:getProperty name="portal" property="firstName"/>
</H1>
<br>
<table border="0">
<%-- while loop grabs all the services --%>
<%-- case tests for special services (links) --%>
<%
String url = "";
int ServiceID = 0;
//I CAN'T PULL THE VALUES FOR THESE VARIABLES SO THE WHOLE WHILE LOOP IS SKIPPED!
while (url.length() != 0)
switch (ServiceID)
case 69:
%>
<tr valign="top" height="45">
<td>
<center>
" TARGET="new_window"><IMG SRC="images\MEDS TAPE LOG.gif" BORDER=white></A><br>
</center>
</td>
</tr>
<%
break;
case 41:
%>
<tr valign="top" height="45">
<td>
<center>
<A HREF="<jsp:getProperty name="portal" property="url"/>" TARGET="new_window"><IMG SRC="images\Lan Support Website.gif" BORDER=white></A><br>
</center>
</td>
</tr>
<%
break;
case 1:
%>
<tr valign="top">
<td>
<center>
<form name="loginfrm" action="http://204.104.185.139/pls/WLOG/login.ValidateUser" method="post" target=_parent>
<INPUT TYPE=hidden NAME=TXTUSERNAME VALUE="<jsp:getProperty name="portal" property="name"/>">
<INPUT TYPE=hidden NAME="TXTPASSWORD" VALUE="<jsp:getProperty name="portal" property="password"/>">
<input TYPE="submit" VALUE="<jsp:getProperty name="portal" property="serviceName"/>" style="width: 120px;" >
<input type="reset" name="reset" value="">
</Form>
</center>
</td>
</tr>
<%
break;
default:
%>
<tr valign="top">
<td>
<center>
<Form method='post' action='<jsp:getProperty name="portal" property="url"/>' name='loginfrm'>
<INPUT TYPE=hidden NAME="TXTPASSWORD" VALUE="<jsp:getProperty name="portal" property="password"/>">
<INPUT TYPE=hidden NAME="TXTUSERNAME" VALUE="<jsp:getProperty name="portal" property="name"/>">
<INPUT TYPE=hidden NAME="firstname" VALUE="<jsp:getProperty name="portal" property="firstName"/>">
<INPUT TYPE=hidden NAME="lastname" VALUE="<jsp:getProperty name="portal" property="lastName"/>">
<INPUT TYPE=hidden NAME="id" VALUE="<jsp:getProperty name="portal" property="userID"/>">
<INPUT TYPE=hidden NAME="role" VALUE="<jsp:getProperty name="portal" property="roleID"/>">
<input type='submit' name='submit' value='<jsp:getProperty name="portal" property="serviceName"/>'>
</Form>
</center>
</td>
</tr>
<%
break;
%>
<jsp:getProperty name="portal" property="nextForm"/>
<%
%>
</table>
</Center>
</Body>
</Html>
here is the bean:
//bean for portal
package portal;
import java.io.*;
import javax.servlet.ServletException;
import javax.servlet.http.*;
import javax.servlet.*;
import java.util.Enumeration;
import java.sql.*;
import java.util.*;
public class portal {
private ResultSet userInfo;
private Statement stmt;
private String pw;//password from the database
private String FirstName;
private String LastName;
private String UserName=""; //network login name
private String UserPassword="";//password supplied by the form
private int UserID; // temp variable while pulling the services from the databases
private int RoleID; // temp variable while pulling the services from the databases
private String ServiceName=""; //temp variable while pulling the services from the database
private int ServiceID;
private String url ="";
//String Message=""; //testing
private String Message2=""; //string that sends the correct html back to the jsp
public int getServiceID(){
return ServiceID;
public void setName(String Name){
UserName = Name;
public String getName(){
return UserName;
public void setPassword(String Password){
UserPassword = Password;
public String getPassword(){
return UserPassword;
public String getFirstName(){
return FirstName;
public String getLastName(){
return LastName;
public String getUrl(){
return url;
public int getUserID(){
return UserID;
public int getRoleID(){
return RoleID;
public String getServiceName(){
return ServiceName;
public String getDbconnection() {
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
DriverManager.setLoginTimeout(60);//time out after 1 min.
Connection con = DriverManager.getConnection("jdbc:odbc:Portal");
stmt = con.createStatement();
String query = "SELECT EMP_TABLE.EMP_PASS, MGR_SERVICES.SERVICE_ID,";
query = query +" MGR_SERVICES.DEFAULT_URL, EMP_TABLE.EMP_USER_ID, *";
query = query +"FROM (EMP_TABLE LEFT JOIN MGR_USER_SERVICES ON";
query = query +" EMP_TABLE.EMP_USER_ID = MGR_USER_SERVICES.USER_ID)";
query = query +" LEFT JOIN MGR_SERVICES ON MGR_USER_SERVICES.SERVICE_ID =";
query = query +" MGR_SERVICES.SERVICE_ID WHERE (((EMP_TABLE.EMP_LAN_ID)='" + UserName+ "'))";
//String query = "SELECT EMP_TABLE.EMP_PASS, MGR_SERVICES.SERVICE_ID,";
//query = query +" MGR_SERVICES.DEFAULT_URL, EMP_TABLE.EMP_USER_ID, *";
//query = query +"FROM (EMP_TABLE LEFT JOIN MGR_USER_SERVICES ON";
//query = query +" EMP_TABLE.EMP_USER_ID = MGR_USER_SERVICES.USER_ID)";
//query = query +" LEFT JOIN MGR_SERVICES ON MGR_USER_SERVICES.SERVICE_ID =";
//query = query +" MGR_SERVICES.SERVICE_ID WHERE (((EMP_TABLE.EMP_LAN_ID)='landwla'))";
//String query = "SELECT * FROM EMP_TABLE WHERE EMP_LAN_ID ='landwla'";
userInfo = stmt.executeQuery(query);
if(userInfo.next())
pw = userInfo.getString("EMP_PASS");
if (UserPassword.equals(pw))
//Message = "Your logged in";
//Message = Message + "Luke you sly devil";
FirstName = userInfo.getString("EMP_FIRST");
LastName = userInfo.getString("EMP_LAST");
UserID = userInfo.getInt("EMP_USER_ID");
RoleID = userInfo.getInt("ROLE_ID");
url=userInfo.getString("DEFAULT_URL");
ServiceName = userInfo.getString("SERVICE_NAME");
ServiceID = userInfo.getInt("Service_ID");
else
Message2 = "<Script Language=JavaScript>";
Message2 = Message2 + "alert('Your Password Information is incorrect');";
Message2 = Message2 + "window.location.href = 'Login.html'";
Message2 = Message2 + "</Script>";
else
Message2 = "<Script Language=JavaScript>";
Message2 = Message2 + "alert('Your Login Information is incorrect');";
Message2 = Message2 + "window.location.href = 'Login.html'";
Message2 = Message2 + "</Script>";
catch (InstantiationException i)
{return (i.toString());}
catch (ClassNotFoundException c)
{return (c.toString());}
catch (SQLException sql)
{return (sql.toString());}
catch (Exception e)
{return (e.toString());}
return Message2;
public String getNextForm() {
try
url="";
ServiceName="";
if(userInfo.next())
url=userInfo.getString("DEFAULT_URL");
ServiceName = userInfo.getString("SERVICE_NAME");
RoleID = userInfo.getInt("ROLE_ID");
ServiceID = userInfo.getInt("Service_ID");
catch (SQLException sql)
{return (sql.toString());}
return Message2;Of course you can.
<%
String url = protal.getUrl();
%> -
Ipod touch flicking between lock page and waiting symbol
have an ipod touch
getting an iphone next week, thought i'd better update itunes software to latest version
did this no problems
however ipod touch now has developed odd issue since this today
have not managed to successfully sync
done 3 restores
screen is flicking between my home page and the waiting symbol
can't power off (however have done the holding down power and home button trick and did get it to power down, problem persists)
cannot access anything on the ipod
using a windows vista to sync via itunes
anyone any suggestions?Try restoring to factory defaults/new iPod you have not yet done that. If you still have the problem that points to a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
-
Distinguish between Office x64 and Office x86 versions in SCCM 2012 R2 Inventory
I need to distinguish between SCCM clients who have Office 2010 x64 and those who have Office 2010 x86 version.
I have tried creating a collection with query-based-membership looking at all computers with ARP64 Display name like Office 2010.
I have also tried creating a report with the same query basics. The query shows different machine lists than the collection looking for the same information. Also, I am looking for the WinWord.exe path, which for x64 version of Office on Win
7 x64 should be "c:\Program Files\Microsoft Office\Office 14". However, I find that file in the "c:\program files (x86)\Microsoft Office\Office 14". So the query returns the machine as having Office x64, but the Office EXEs
are all in the c:\program files (x86)\ folders instead.
Should I trust the report for the inventory? I have done a spot-check on some computers (18 of 222), and it's not always true that they have x64 version of Office installed.
What's a girl to do?
thanks,
Azin
azwrightI suggest you create a compliance base line and deploy it to the collections. The compliance will check whether the clients are running Office x64. If not, it will report as non-compliant, then you can create Collection based on this info.
http://gallery.technet.microsoft.com/scriptcenter/Create-Non-compliant-eb023e3c
Juke Chou
TechNet Community Support -
Difference between Body pages and Master Pages in Adobe forms?
Hi SAP Gurus,
Please can any one tell me the difference between the Body pages and Master Pages in Adobe Forms?
In what scenarios we use Body pages and Master pages?
And also please tell me what is Boiler plates? When these used?
Thanks and Regards
Abinava Siri..Hi,
Master Pages:
Does not included in the content area
Master page we will design logo,company address and header information
Here we can desing footer information
whatever you desing in the master page it will show for all the body pages
Body pages:
Included in the content area
Where we can design table data, it should repeat for line times.
Regards
Ramakrishna Pathi
Maybe you are looking for
-
How can I hide the scroll bar in TextArea?
How can I hide the scroll bar in TextArea?
-
Access denied to Citrix using Safari (error code 7)
I have previously been able to access my Citrix work server from home using Safari. This is no longer possible following update to 10.4.9. When attempting access I get the following message: "A local security certificate could not be loaded (error co
-
When I save a project plan to my local computer from Project Online and open it up in an offline mode and access Resource Usage view I get prompted with Date Range dialog boxes with the first one saying "Show resources/assignments that start or finis
-
SECOND QUESTION - HAS ANYONE GOT ELEMENTS EDITOR NOT WORKING - ON WINDOWS 8.1?
I Get message - when i try to open elements 12 editor... a problem caused program to stop working correctly. Windows will close program and notify if a solution is available -- no response after 2 weeks - anyone help please? john reid
-
I cannot access the Itunes store, but I can update my apps.
I cannot access the Itunes store, but I can update my apps. I have checked the following per Support: http://support.apple.com/kb/TS1368 These articles have helped other users resolve connection issues: Using MSCONFIG to troubleshoot conflicts in Wi